Upstream tarball 9377
[amule.git] / configure
bloba612d1e05a077a3fd853a0f0c43201ee2868c6e0
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 INSTALL_SKINS_TRUE INSTALL_SKINS_FALSE READLINE_LIBS LTLIBOBJS'
315 ac_subst_files=''
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
355 ac_prev=
356 for ac_option
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
361 ac_prev=
362 continue
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
369 case $ac_option in
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 bindir=$ac_optarg ;;
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
388 --config-cache | -C)
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 ac_prev=datadir ;;
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
395 datadir=$ac_optarg ;;
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 *) ac_optarg=yes ;;
416 esac
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 libdir=$ac_optarg ;;
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 mandir=$ac_optarg ;;
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
488 no_create=yes ;;
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 prefix=$ac_optarg ;;
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
563 site=$ac_optarg ;;
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 srcdir=$ac_optarg ;;
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
588 -with-* | --with-*)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 *) ac_optarg=yes ;;
598 esac
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
633 *=*)
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
641 export $ac_envvar ;;
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 esac
652 done
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
663 eval ac_val=$`echo $ac_var`
664 case $ac_val in
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
668 esac
669 done
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val=$`echo $ac_var`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
680 esac
681 done
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
697 cross_compiling=yes
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
723 srcdir=$ac_confdir
724 if test ! -r $srcdir/$ac_unique_file; then
725 srcdir=..
727 else
728 ac_srcdir_defaulted=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
734 else
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CXX_set=${CXX+set}
756 ac_env_CXX_value=$CXX
757 ac_cv_env_CXX_set=${CXX+set}
758 ac_cv_env_CXX_value=$CXX
759 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
760 ac_env_CXXFLAGS_value=$CXXFLAGS
761 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
762 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CXXCPP_set=${CXXCPP+set}
772 ac_env_CXXCPP_value=$CXXCPP
773 ac_cv_env_CXXCPP_set=${CXXCPP+set}
774 ac_cv_env_CXXCPP_value=$CXXCPP
775 ac_env_CC_set=${CC+set}
776 ac_env_CC_value=$CC
777 ac_cv_env_CC_set=${CC+set}
778 ac_cv_env_CC_value=$CC
779 ac_env_CFLAGS_set=${CFLAGS+set}
780 ac_env_CFLAGS_value=$CFLAGS
781 ac_cv_env_CFLAGS_set=${CFLAGS+set}
782 ac_cv_env_CFLAGS_value=$CFLAGS
783 ac_env_CPP_set=${CPP+set}
784 ac_env_CPP_value=$CPP
785 ac_cv_env_CPP_set=${CPP+set}
786 ac_cv_env_CPP_value=$CPP
787 ac_env_RC_set=${RC+set}
788 ac_env_RC_value=$RC
789 ac_cv_env_RC_set=${RC+set}
790 ac_cv_env_RC_value=$RC
791 ac_env_RCFLAGS_set=${RCFLAGS+set}
792 ac_env_RCFLAGS_value=$RCFLAGS
793 ac_cv_env_RCFLAGS_set=${RCFLAGS+set}
794 ac_cv_env_RCFLAGS_value=$RCFLAGS
795 ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
796 ac_env_PKG_CONFIG_value=$PKG_CONFIG
797 ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
798 ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
801 # Report the --help message.
803 if test "$ac_init_help" = "long"; then
804 # Omit some internal or obsolete options to make the list less imposing.
805 # This message is too long to be a string in the A/UX 3.1 sh.
806 cat <<_ACEOF
807 \`configure' configures aMule SVN to adapt to many kinds of systems.
809 Usage: $0 [OPTION]... [VAR=VALUE]...
811 To assign environment variables (e.g., CC, CFLAGS...), specify them as
812 VAR=VALUE. See below for descriptions of some of the useful variables.
814 Defaults for the options are specified in brackets.
816 Configuration:
817 -h, --help display this help and exit
818 --help=short display options specific to this package
819 --help=recursive display the short help of all the included packages
820 -V, --version display version information and exit
821 -q, --quiet, --silent do not print \`checking...' messages
822 --cache-file=FILE cache test results in FILE [disabled]
823 -C, --config-cache alias for \`--cache-file=config.cache'
824 -n, --no-create do not create output files
825 --srcdir=DIR find the sources in DIR [configure dir or \`..']
827 _ACEOF
829 cat <<_ACEOF
830 Installation directories:
831 --prefix=PREFIX install architecture-independent files in PREFIX
832 [$ac_default_prefix]
833 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
834 [PREFIX]
836 By default, \`make install' will install all the files in
837 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
838 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
839 for instance \`--prefix=\$HOME'.
841 For better control, use the options below.
843 Fine tuning of the installation directories:
844 --bindir=DIR user executables [EPREFIX/bin]
845 --sbindir=DIR system admin executables [EPREFIX/sbin]
846 --libexecdir=DIR program executables [EPREFIX/libexec]
847 --datadir=DIR read-only architecture-independent data [PREFIX/share]
848 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
849 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
850 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
851 --libdir=DIR object code libraries [EPREFIX/lib]
852 --includedir=DIR C header files [PREFIX/include]
853 --oldincludedir=DIR C header files for non-gcc [/usr/include]
854 --infodir=DIR info documentation [PREFIX/info]
855 --mandir=DIR man documentation [PREFIX/man]
856 _ACEOF
858 cat <<\_ACEOF
860 Program names:
861 --program-prefix=PREFIX prepend PREFIX to installed program names
862 --program-suffix=SUFFIX append SUFFIX to installed program names
863 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
865 X features:
866 --x-includes=DIR X include files are in DIR
867 --x-libraries=DIR X library files are in DIR
869 System types:
870 --build=BUILD configure for building on BUILD [guessed]
871 --host=HOST cross-compile to build programs to run on HOST [BUILD]
872 _ACEOF
875 if test -n "$ac_init_help"; then
876 case $ac_init_help in
877 short | recursive ) echo "Configuration of aMule SVN:";;
878 esac
879 cat <<\_ACEOF
881 Optional Features:
882 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
883 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
884 --enable-maintainer-mode enable make rules and dependencies not useful
885 (and sometimes confusing) to the casual installer
886 --disable-dependency-tracking speeds up one-time build
887 --enable-dependency-tracking do not reject slow dependency extractors
888 --disable-monolithic disable building of the monolithic aMule app
889 --enable-amule-daemon compile aMule daemon version
890 --enable-amulecmd compile aMule command line client
891 --enable-webserver compile aMule WebServer
892 --enable-amule-gui compile aMule remote GUI (EXPERIMENTAL)
893 --enable-cas compile C aMule Statistics
894 --enable-wxcas compile aMule GUI Statistics
895 --disable-ed2k don't compile aMule ed2k links handler
896 --enable-alc compile aMuleLinkCreator GUI version
897 --enable-alcc compile aMuleLinkCreator for console
898 --disable-upnp do not compile UPnP code
899 --enable-xas install xas XChat2 plugin
900 --enable-geoip compile with GeoIP IP2Country library
901 --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=no
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
7075 # Check if we need to install skins
7076 if test x$MONOLITHIC = xyes; then
7077 INSTALL_SKINS=yes
7080 if test x$AMULE_GUI = xyes; then
7081 INSTALL_SKINS=yes
7084 if test x${INSTALL_SKINS:+set} != xset; then
7085 INSTALL_SKINS=no
7089 # Check for GeoIP (required for IP2Country capability)
7091 # Check whether --enable-geoip or --disable-geoip was given.
7092 if test "${enable_geoip+set}" = set; then
7093 enableval="$enable_geoip"
7094 ENABLE_IP2COUNTRY=$enableval
7095 else
7096 ENABLE_IP2COUNTRY=no
7099 if test ${ENABLE_IP2COUNTRY:-no} = yes; then
7102 # Check whether --with-geoip-headers or --without-geoip-headers was given.
7103 if test "${with_geoip_headers+set}" = set; then
7104 withval="$with_geoip_headers"
7105 GEOIP_CPPFLAGS="-I$withval"
7108 # Check whether --with-geoip-lib or --without-geoip-lib was given.
7109 if test "${with_geoip_lib+set}" = set; then
7110 withval="$with_geoip_lib"
7111 GEOIP_LDFLAGS="-L$withval"
7114 mule_backup_CPPFLAGS="$CPPFLAGS"
7115 CPPFLAGS="$CPPFLAGS $GEOIP_CPPFLAGS"
7116 mule_backup_LDFLAGS="$LDFLAGS"
7117 LDFLAGS="$LDFLAGS $GEOIP_LDFLAGS"
7118 if test "${ac_cv_header_GeoIP_h+set}" = set; then
7119 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
7120 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
7121 if test "${ac_cv_header_GeoIP_h+set}" = set; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7124 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
7125 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
7126 else
7127 # Is the header compilable?
7128 echo "$as_me:$LINENO: checking GeoIP.h usability" >&5
7129 echo $ECHO_N "checking GeoIP.h usability... $ECHO_C" >&6
7130 cat >conftest.$ac_ext <<_ACEOF
7131 /* confdefs.h. */
7132 _ACEOF
7133 cat confdefs.h >>conftest.$ac_ext
7134 cat >>conftest.$ac_ext <<_ACEOF
7135 /* end confdefs.h. */
7136 $ac_includes_default
7137 #include <GeoIP.h>
7138 _ACEOF
7139 rm -f conftest.$ac_objext
7140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7141 (eval $ac_compile) 2>conftest.er1
7142 ac_status=$?
7143 grep -v '^ *+' conftest.er1 >conftest.err
7144 rm -f conftest.er1
7145 cat conftest.err >&5
7146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147 (exit $ac_status); } &&
7148 { ac_try='test -z "$ac_c_werror_flag"
7149 || test ! -s conftest.err'
7150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7151 (eval $ac_try) 2>&5
7152 ac_status=$?
7153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); }; } &&
7155 { ac_try='test -s conftest.$ac_objext'
7156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7157 (eval $ac_try) 2>&5
7158 ac_status=$?
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); }; }; then
7161 ac_header_compiler=yes
7162 else
7163 echo "$as_me: failed program was:" >&5
7164 sed 's/^/| /' conftest.$ac_ext >&5
7166 ac_header_compiler=no
7168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7169 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7170 echo "${ECHO_T}$ac_header_compiler" >&6
7172 # Is the header present?
7173 echo "$as_me:$LINENO: checking GeoIP.h presence" >&5
7174 echo $ECHO_N "checking GeoIP.h presence... $ECHO_C" >&6
7175 cat >conftest.$ac_ext <<_ACEOF
7176 /* confdefs.h. */
7177 _ACEOF
7178 cat confdefs.h >>conftest.$ac_ext
7179 cat >>conftest.$ac_ext <<_ACEOF
7180 /* end confdefs.h. */
7181 #include <GeoIP.h>
7182 _ACEOF
7183 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7184 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7185 ac_status=$?
7186 grep -v '^ *+' conftest.er1 >conftest.err
7187 rm -f conftest.er1
7188 cat conftest.err >&5
7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); } >/dev/null; then
7191 if test -s conftest.err; then
7192 ac_cpp_err=$ac_c_preproc_warn_flag
7193 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7194 else
7195 ac_cpp_err=
7197 else
7198 ac_cpp_err=yes
7200 if test -z "$ac_cpp_err"; then
7201 ac_header_preproc=yes
7202 else
7203 echo "$as_me: failed program was:" >&5
7204 sed 's/^/| /' conftest.$ac_ext >&5
7206 ac_header_preproc=no
7208 rm -f conftest.err conftest.$ac_ext
7209 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7210 echo "${ECHO_T}$ac_header_preproc" >&6
7212 # So? What about this header?
7213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7214 yes:no: )
7215 { echo "$as_me:$LINENO: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&5
7216 echo "$as_me: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7217 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the compiler's result" >&5
7218 echo "$as_me: WARNING: GeoIP.h: proceeding with the compiler's result" >&2;}
7219 ac_header_preproc=yes
7221 no:yes:* )
7222 { echo "$as_me:$LINENO: WARNING: GeoIP.h: present but cannot be compiled" >&5
7223 echo "$as_me: WARNING: GeoIP.h: present but cannot be compiled" >&2;}
7224 { echo "$as_me:$LINENO: WARNING: GeoIP.h: check for missing prerequisite headers?" >&5
7225 echo "$as_me: WARNING: GeoIP.h: check for missing prerequisite headers?" >&2;}
7226 { echo "$as_me:$LINENO: WARNING: GeoIP.h: see the Autoconf documentation" >&5
7227 echo "$as_me: WARNING: GeoIP.h: see the Autoconf documentation" >&2;}
7228 { echo "$as_me:$LINENO: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&5
7229 echo "$as_me: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&2;}
7230 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&5
7231 echo "$as_me: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&2;}
7232 { echo "$as_me:$LINENO: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&5
7233 echo "$as_me: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&2;}
7235 cat <<\_ASBOX
7236 ## ------------------------------ ##
7237 ## Report this to admin@amule.org ##
7238 ## ------------------------------ ##
7239 _ASBOX
7241 sed "s/^/$as_me: WARNING: /" >&2
7243 esac
7244 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
7245 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
7246 if test "${ac_cv_header_GeoIP_h+set}" = set; then
7247 echo $ECHO_N "(cached) $ECHO_C" >&6
7248 else
7249 ac_cv_header_GeoIP_h=$ac_header_preproc
7251 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
7252 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
7255 if test $ac_cv_header_GeoIP_h = yes; then
7257 echo "$as_me:$LINENO: checking for GeoIP_open in -lGeoIP" >&5
7258 echo $ECHO_N "checking for GeoIP_open in -lGeoIP... $ECHO_C" >&6
7259 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then
7260 echo $ECHO_N "(cached) $ECHO_C" >&6
7261 else
7262 ac_check_lib_save_LIBS=$LIBS
7263 LIBS="-lGeoIP $LIBS"
7264 cat >conftest.$ac_ext <<_ACEOF
7265 /* confdefs.h. */
7266 _ACEOF
7267 cat confdefs.h >>conftest.$ac_ext
7268 cat >>conftest.$ac_ext <<_ACEOF
7269 /* end confdefs.h. */
7271 /* Override any gcc2 internal prototype to avoid an error. */
7272 #ifdef __cplusplus
7273 extern "C"
7274 #endif
7275 /* We use char because int might match the return type of a gcc2
7276 builtin and then its argument prototype would still apply. */
7277 char GeoIP_open ();
7279 main ()
7281 GeoIP_open ();
7283 return 0;
7285 _ACEOF
7286 rm -f conftest.$ac_objext conftest$ac_exeext
7287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7288 (eval $ac_link) 2>conftest.er1
7289 ac_status=$?
7290 grep -v '^ *+' conftest.er1 >conftest.err
7291 rm -f conftest.er1
7292 cat conftest.err >&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); } &&
7295 { ac_try='test -z "$ac_c_werror_flag"
7296 || test ! -s conftest.err'
7297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7298 (eval $ac_try) 2>&5
7299 ac_status=$?
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); }; } &&
7302 { ac_try='test -s conftest$ac_exeext'
7303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7304 (eval $ac_try) 2>&5
7305 ac_status=$?
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); }; }; then
7308 ac_cv_lib_GeoIP_GeoIP_open=yes
7309 else
7310 echo "$as_me: failed program was:" >&5
7311 sed 's/^/| /' conftest.$ac_ext >&5
7313 ac_cv_lib_GeoIP_GeoIP_open=no
7315 rm -f conftest.err conftest.$ac_objext \
7316 conftest$ac_exeext conftest.$ac_ext
7317 LIBS=$ac_check_lib_save_LIBS
7319 echo "$as_me:$LINENO: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
7320 echo "${ECHO_T}$ac_cv_lib_GeoIP_GeoIP_open" >&6
7321 if test $ac_cv_lib_GeoIP_GeoIP_open = yes; then
7324 cat >>confdefs.h <<\_ACEOF
7325 #define SUPPORT_GEOIP 1
7326 _ACEOF
7328 GEOIP_LIBS="-lGeoIP"
7329 if test x$SYS = xwin32; then
7330 GEOIP_LIBS="$GEOIP_LIBS -lwsock32"
7333 GEOIP_CPPFLAGS="$GEOIP_CPPFLAGS -DENABLE_IP2COUNTRY=1"
7335 # Check whether --with-geoip-static or --without-geoip-static was given.
7336 if test "${with_geoip_static+set}" = set; then
7337 withval="$with_geoip_static"
7339 if test "$withval" != "no" -a ${enable_static:-no} = no; then
7341 mule_backup_LIBS="$LIBS"
7342 LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic $LIBS"
7343 cat >conftest.$ac_ext <<_ACEOF
7345 /* confdefs.h. */
7346 _ACEOF
7347 cat confdefs.h >>conftest.$ac_ext
7348 cat >>conftest.$ac_ext <<_ACEOF
7349 /* end confdefs.h. */
7351 #include <GeoIP.h>
7354 main ()
7357 GeoIP *g = GeoIP_new(GEOIP_STANDARD);
7360 return 0;
7363 _ACEOF
7364 rm -f conftest.$ac_objext conftest$ac_exeext
7365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7366 (eval $ac_link) 2>conftest.er1
7367 ac_status=$?
7368 grep -v '^ *+' conftest.er1 >conftest.err
7369 rm -f conftest.er1
7370 cat conftest.err >&5
7371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7372 (exit $ac_status); } &&
7373 { ac_try='test -z "$ac_c_werror_flag"
7374 || test ! -s conftest.err'
7375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7376 (eval $ac_try) 2>&5
7377 ac_status=$?
7378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); }; } &&
7380 { ac_try='test -s conftest$ac_exeext'
7381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7382 (eval $ac_try) 2>&5
7383 ac_status=$?
7384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385 (exit $ac_status); }; }; then
7387 GEOIP_LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic"
7389 else
7390 echo "$as_me: failed program was:" >&5
7391 sed 's/^/| /' conftest.$ac_ext >&5
7394 { echo "$as_me:$LINENO: WARNING:
7395 Cannot link GeoIP statically, because your linker ($LD) does not
7396 support it." >&5
7397 echo "$as_me: WARNING:
7398 Cannot link GeoIP statically, because your linker ($LD) does not
7399 support it." >&2;}
7400 _mule_warning_3=yes
7401 _mule_has_warnings=yes
7405 rm -f conftest.err conftest.$ac_objext \
7406 conftest$ac_exeext conftest.$ac_ext
7407 LIBS="$mule_backup_LIBS"
7414 else
7416 ENABLE_IP2COUNTRY=disabled
7417 { echo "$as_me:$LINENO: WARNING:
7418 GeoIP support has been disabled because the GeoIP libraries were not
7419 found" >&5
7420 echo "$as_me: WARNING:
7421 GeoIP support has been disabled because the GeoIP libraries were not
7422 found" >&2;}
7423 _mule_warning_4=yes
7424 _mule_has_warnings=yes
7430 else
7432 ENABLE_IP2COUNTRY=disabled
7433 { echo "$as_me:$LINENO: WARNING:
7434 GeoIP support has been disabled because the GeoIP header files were
7435 not found" >&5
7436 echo "$as_me: WARNING:
7437 GeoIP support has been disabled because the GeoIP header files were
7438 not found" >&2;}
7439 _mule_warning_5=yes
7440 _mule_has_warnings=yes
7447 CPPFLAGS="$mule_backup_CPPFLAGS"
7448 LDFLAGS="$mule_backup_LDFLAGS"
7454 # Check for wx
7457 # Check whether --with-wxdir or --without-wxdir was given.
7458 if test "${with_wxdir+set}" = set; then
7459 withval="$with_wxdir"
7460 wx_config_name="$withval/wx-config"
7461 wx_config_args="--inplace"
7464 # Check whether --with-wx-config or --without-wx-config was given.
7465 if test "${with_wx_config+set}" = set; then
7466 withval="$with_wx_config"
7467 wx_config_name="$withval"
7470 # Check whether --with-wx-prefix or --without-wx-prefix was given.
7471 if test "${with_wx_prefix+set}" = set; then
7472 withval="$with_wx_prefix"
7473 wx_config_prefix="$withval"
7474 else
7475 wx_config_prefix=""
7478 # Check whether --with-wx-exec-prefix or --without-wx-exec-prefix was given.
7479 if test "${with_wx_exec_prefix+set}" = set; then
7480 withval="$with_wx_exec_prefix"
7481 wx_config_exec_prefix="$withval"
7482 else
7483 wx_config_exec_prefix=""
7497 # Check whether --with-toolkit or --without-toolkit was given.
7498 if test "${with_toolkit+set}" = set; then
7499 withval="$with_toolkit"
7501 else
7502 withval="auto"
7505 echo "$as_me:$LINENO: checking for the --with-toolkit option" >&5
7506 echo $ECHO_N "checking for the --with-toolkit option... $ECHO_C" >&6
7507 if test "$withval" = "auto" ; then
7508 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7509 echo "${ECHO_T}will be automatically detected" >&6
7510 TOOLKIT="auto"
7511 else
7512 TOOLKIT="$withval"
7514 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a \
7515 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
7516 "$TOOLKIT" != "x11" -a "$TOOLKIT" != "mac" -a \
7517 "$TOOLKIT" != "mgl" -a "$TOOLKIT" != "dfb" -a \
7518 "$TOOLKIT" != "base" -a "$TOOLKIT" != "cocoa"; then
7519 { { echo "$as_me:$LINENO: error:
7520 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa)
7521 " >&5
7522 echo "$as_me: error:
7523 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa)
7524 " >&2;}
7525 { (exit 1); exit 1; }; }
7528 echo "$as_me:$LINENO: result: $TOOLKIT" >&5
7529 echo "${ECHO_T}$TOOLKIT" >&6
7536 # Check whether --with-wxshared or --without-wxshared was given.
7537 if test "${with_wxshared+set}" = set; then
7538 withval="$with_wxshared"
7540 else
7541 withval="auto"
7544 echo "$as_me:$LINENO: checking for the --with-wxshared option" >&5
7545 echo $ECHO_N "checking for the --with-wxshared option... $ECHO_C" >&6
7546 if test "$withval" = "yes" ; then
7547 echo "$as_me:$LINENO: result: yes" >&5
7548 echo "${ECHO_T}yes" >&6
7549 WX_SHARED=1
7551 elif test "1" = "1" -a "$withval" = "no" ; then
7552 echo "$as_me:$LINENO: result: no" >&5
7553 echo "${ECHO_T}no" >&6
7554 WX_SHARED=0
7555 elif test "$withval" = "auto" ; then
7556 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7557 echo "${ECHO_T}will be automatically detected" >&6
7558 WX_SHARED="auto"
7559 else
7560 { { echo "$as_me:$LINENO: error:
7561 Unrecognized option value (allowed values: yes, auto)
7562 " >&5
7563 echo "$as_me: error:
7564 Unrecognized option value (allowed values: yes, auto)
7565 " >&2;}
7566 { (exit 1); exit 1; }; }
7573 # Check whether --with-wxdebug or --without-wxdebug was given.
7574 if test "${with_wxdebug+set}" = set; then
7575 withval="$with_wxdebug"
7577 else
7578 withval="auto"
7581 echo "$as_me:$LINENO: checking for the --with-wxdebug option" >&5
7582 echo $ECHO_N "checking for the --with-wxdebug option... $ECHO_C" >&6
7583 if test "$withval" = "yes" ; then
7584 echo "$as_me:$LINENO: result: yes" >&5
7585 echo "${ECHO_T}yes" >&6
7586 WX_DEBUG=1
7588 elif test "1" = "1" -a "$withval" = "no" ; then
7589 echo "$as_me:$LINENO: result: no" >&5
7590 echo "${ECHO_T}no" >&6
7591 WX_DEBUG=0
7592 elif test "$withval" = "auto" ; then
7593 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7594 echo "${ECHO_T}will be automatically detected" >&6
7595 WX_DEBUG="auto"
7596 else
7597 { { echo "$as_me:$LINENO: error:
7598 Unrecognized option value (allowed values: yes, auto)
7599 " >&5
7600 echo "$as_me: error:
7601 Unrecognized option value (allowed values: yes, auto)
7602 " >&2;}
7603 { (exit 1); exit 1; }; }
7610 # Check whether --with-wxversion or --without-wxversion was given.
7611 if test "${with_wxversion+set}" = set; then
7612 withval="$with_wxversion"
7614 else
7615 withval="auto"
7618 echo "$as_me:$LINENO: checking for the --with-wxversion option" >&5
7619 echo $ECHO_N "checking for the --with-wxversion option... $ECHO_C" >&6
7620 if test "$withval" = "auto" ; then
7621 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7622 echo "${ECHO_T}will be automatically detected" >&6
7623 WX_VERSION="auto"
7624 else
7626 wx_requested_major_version=`echo $withval | \
7627 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
7628 wx_requested_minor_version=`echo $withval | \
7629 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
7631 if test "${#wx_requested_major_version}" != "1" -o \
7632 "${#wx_requested_minor_version}" != "1" ; then
7633 { { echo "$as_me:$LINENO: error:
7634 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7635 " >&5
7636 echo "$as_me: error:
7637 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7638 " >&2;}
7639 { (exit 1); exit 1; }; }
7642 WX_VERSION="$wx_requested_major_version"".""$wx_requested_minor_version"
7643 echo "$as_me:$LINENO: result: $WX_VERSION" >&5
7644 echo "${ECHO_T}$WX_VERSION" >&6
7648 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7649 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
7650 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
7651 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
7652 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
7653 echo "[dbg] VERSION: $VERSION, WX_VERSION: $WX_VERSION"
7656 # Force using a static wxWidgets library if the executable is to be linked statically.
7657 if test ${enable_static:-no} = yes; then
7658 WX_SHARED=0
7661 # Force using a unicode build of the library
7662 WX_UNICODE=1
7663 DEBUG=$WX_DEBUG
7665 if test "$WX_SHARED" = "1" ; then
7666 WXCONFIG_FLAGS="--static=no "
7667 elif test "$WX_SHARED" = "0" ; then
7668 WXCONFIG_FLAGS="--static=yes "
7671 if test "$WX_DEBUG" = "1" ; then
7672 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=yes "
7673 elif test "$WX_DEBUG" = "0" ; then
7674 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=no "
7677 if test "$WX_UNICODE" = "1" ; then
7678 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=yes "
7679 elif test "$WX_UNICODE" = "0" ; then
7680 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=no "
7683 if test "$TOOLKIT" != "auto" ; then
7684 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
7687 if test "$WX_VERSION" != "auto" ; then
7688 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--version=$WX_VERSION "
7691 WXCONFIG_FLAGS=${WXCONFIG_FLAGS% }
7693 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7694 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
7698 if test x${WX_CONFIG_NAME+set} != xset ; then
7699 WX_CONFIG_NAME=wx-config
7702 if test "x$wx_config_name" != x ; then
7703 WX_CONFIG_NAME="$wx_config_name"
7706 if test x$wx_config_exec_prefix != x ; then
7707 wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
7708 WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
7710 if test x$wx_config_prefix != x ; then
7711 wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
7712 WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
7714 if test "$cross_compiling" = "yes"; then
7715 wx_config_args="$wx_config_args --host=$host_alias"
7718 if test -x "$WX_CONFIG_NAME" ; then
7719 echo "$as_me:$LINENO: checking for wx-config" >&5
7720 echo $ECHO_N "checking for wx-config... $ECHO_C" >&6
7721 WX_CONFIG_PATH="$WX_CONFIG_NAME"
7722 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7723 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7724 else
7725 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
7726 set dummy $WX_CONFIG_NAME; ac_word=$2
7727 echo "$as_me:$LINENO: checking for $ac_word" >&5
7728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7729 if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then
7730 echo $ECHO_N "(cached) $ECHO_C" >&6
7731 else
7732 case $WX_CONFIG_PATH in
7733 [\\/]* | ?:[\\/]*)
7734 ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path.
7737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7738 as_dummy=""$WX_LOOKUP_PATH:$PATH""
7739 for as_dir in $as_dummy
7741 IFS=$as_save_IFS
7742 test -z "$as_dir" && as_dir=.
7743 for ac_exec_ext in '' $ac_executable_extensions; do
7744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7745 ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7747 break 2
7749 done
7750 done
7752 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no"
7754 esac
7756 WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH
7758 if test -n "$WX_CONFIG_PATH"; then
7759 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7760 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7761 else
7762 echo "$as_me:$LINENO: result: no" >&5
7763 echo "${ECHO_T}no" >&6
7768 if test "$WX_CONFIG_PATH" != "no" ; then
7769 WX_VERSION_FULL=""
7771 min_wx_version=2.8.0
7772 if test -z "$WXCONFIG_FLAGS" ; then
7773 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version" >&5
7774 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version... $ECHO_C" >&6
7775 else
7776 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
7777 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... $ECHO_C" >&6
7780 WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS "
7782 WX_VERSION_FULL=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
7783 wx_config_major_version=`echo $WX_VERSION_FULL | \
7784 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7785 wx_config_minor_version=`echo $WX_VERSION_FULL | \
7786 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7787 wx_config_micro_version=`echo $WX_VERSION_FULL | \
7788 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7790 wx_requested_major_version=`echo $min_wx_version | \
7791 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7792 wx_requested_minor_version=`echo $min_wx_version | \
7793 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7794 wx_requested_micro_version=`echo $min_wx_version | \
7795 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7798 wx_ver_ok=""
7799 if test "x$WX_VERSION_FULL" != x ; then
7800 if test $wx_config_major_version -gt $wx_requested_major_version; then
7801 wx_ver_ok=yes
7802 else
7803 if test $wx_config_major_version -eq $wx_requested_major_version; then
7804 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
7805 wx_ver_ok=yes
7806 else
7807 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
7808 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
7809 wx_ver_ok=yes
7818 if test -n "$wx_ver_ok"; then
7820 echo "$as_me:$LINENO: result: yes (version $WX_VERSION_FULL)" >&5
7821 echo "${ECHO_T}yes (version $WX_VERSION_FULL)" >&6
7822 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs`
7824 echo "$as_me:$LINENO: checking for wxWidgets static library" >&5
7825 echo $ECHO_N "checking for wxWidgets static library... $ECHO_C" >&6
7826 WX_LIBS_STATIC=`$WX_CONFIG_WITH_ARGS --static --libs 2>/dev/null`
7827 if test "x$WX_LIBS_STATIC" = "x"; then
7828 echo "$as_me:$LINENO: result: no" >&5
7829 echo "${ECHO_T}no" >&6
7830 else
7831 echo "$as_me:$LINENO: result: yes" >&5
7832 echo "${ECHO_T}yes" >&6
7835 wx_has_cppflags=""
7836 if test $wx_config_major_version -gt 2; then
7837 wx_has_cppflags=yes
7838 else
7839 if test $wx_config_major_version -eq 2; then
7840 if test $wx_config_minor_version -gt 2; then
7841 wx_has_cppflags=yes
7842 else
7843 if test $wx_config_minor_version -eq 2; then
7844 if test $wx_config_micro_version -ge 6; then
7845 wx_has_cppflags=yes
7852 wx_has_rescomp=""
7853 if test $wx_config_major_version -gt 2; then
7854 wx_has_rescomp=yes
7855 else
7856 if test $wx_config_major_version -eq 2; then
7857 if test $wx_config_minor_version -ge 7; then
7858 wx_has_rescomp=yes
7862 if test "x$wx_has_rescomp" = x ; then
7863 WX_RESCOMP=
7864 else
7865 WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
7868 if test "x$wx_has_cppflags" = x ; then
7869 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
7870 WX_CPPFLAGS=$WX_CFLAGS
7871 WX_CXXFLAGS=$WX_CFLAGS
7873 WX_CFLAGS_ONLY=$WX_CFLAGS
7874 WX_CXXFLAGS_ONLY=$WX_CFLAGS
7875 else
7876 WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags`
7877 WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags`
7878 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
7880 WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
7881 WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
7884 wxWin=1
7886 else
7888 if test "x$WX_VERSION_FULL" = x; then
7889 echo "$as_me:$LINENO: result: no" >&5
7890 echo "${ECHO_T}no" >&6
7891 else
7892 echo "$as_me:$LINENO: result: no (version $WX_VERSION_FULL is not new enough)" >&5
7893 echo "${ECHO_T}no (version $WX_VERSION_FULL is not new enough)" >&6
7896 WX_CFLAGS=""
7897 WX_CPPFLAGS=""
7898 WX_CXXFLAGS=""
7899 WX_LIBS=""
7900 WX_LIBS_STATIC=""
7901 WX_RESCOMP=""
7903 if test ! -z "$WXCONFIG_FLAGS"; then
7905 wx_error_message="
7906 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
7907 build with the following settings:
7908 $WXCONFIG_FLAGS
7909 but such build is not available.
7911 To see the wxWidgets builds available on this system, please use
7912 'wx-config --list' command. To use the default build, returned by
7913 'wx-config --selected-config', use the options with their 'auto'
7914 default values."
7918 wx_error_message="
7919 The requested wxWidgets build couldn't be found.
7920 $wx_error_message
7922 If you still get this error, then check that 'wx-config' is
7923 in path, the directory where wxWidgets libraries are installed
7924 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
7925 or equivalent variable and wxWidgets version is 2.8.0 or above."
7927 { { echo "$as_me:$LINENO: error: $wx_error_message" >&5
7928 echo "$as_me: error: $wx_error_message" >&2;}
7929 { (exit 1); exit 1; }; }
7932 else
7934 WX_CFLAGS=""
7935 WX_CPPFLAGS=""
7936 WX_CXXFLAGS=""
7937 WX_LIBS=""
7938 WX_LIBS_STATIC=""
7939 WX_RESCOMP=""
7955 WX_VERSION_MAJOR="$wx_config_major_version"
7956 WX_VERSION_MINOR="$wx_config_minor_version"
7960 if test "$wxWin" != 1; then
7961 { { echo "$as_me:$LINENO: error:
7962 wxWidgets must be installed on your system but wx-config
7963 script couldn't be found. Please check that wx-config is
7964 in path or specified by --with-wx-config=path flag, the
7965 directory where wxWidgets libraries are installed (returned
7966 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7967 equivalent variable and wxWidgets version is 2.8.0 or above.
7968 " >&5
7969 echo "$as_me: error:
7970 wxWidgets must be installed on your system but wx-config
7971 script couldn't be found. Please check that wx-config is
7972 in path or specified by --with-wx-config=path flag, the
7973 directory where wxWidgets libraries are installed (returned
7974 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7975 equivalent variable and wxWidgets version is 2.8.0 or above.
7976 " >&2;}
7977 { (exit 1); exit 1; }; }
7980 WX_VERSION="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
7981 if test $WX_VERSION -lt 26 ; then
7983 { { echo "$as_me:$LINENO: error:
7984 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7985 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7986 version of wxWidgets.
7987 " >&5
7988 echo "$as_me: error:
7989 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7990 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7991 version of wxWidgets.
7992 " >&2;}
7993 { (exit 1); exit 1; }; }
7996 WX_SELECTEDCONFIG=$($WX_CONFIG_WITH_ARGS --selected_config)
7998 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7999 echo "[dbg] Using wx-config --selected-config"
8000 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
8004 if test $WX_SHARED = "1"; then
8005 STATIC=0
8006 elif test $WX_SHARED = "0"; then
8007 STATIC=1
8008 elif test $WX_SHARED = "auto"; then
8009 STATIC="auto"
8013 if test "$UNICODE" = "auto" ; then
8015 echo "$as_me:$LINENO: checking if wxWidgets was built with UNICODE enabled" >&5
8016 echo $ECHO_N "checking if wxWidgets was built with UNICODE enabled... $ECHO_C" >&6
8018 WX_UNICODE=$(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
8020 if test "$WX_UNICODE" != "0"; then
8021 WX_UNICODE=1
8022 echo "$as_me:$LINENO: result: yes" >&5
8023 echo "${ECHO_T}yes" >&6
8025 else
8026 WX_UNICODE=0
8027 echo "$as_me:$LINENO: result: no" >&5
8028 echo "${ECHO_T}no" >&6
8031 else
8033 WX_UNICODE=$UNICODE
8037 if test "$DEBUG" = "auto" ; then
8039 echo "$as_me:$LINENO: checking if wxWidgets was built in DEBUG mode" >&5
8040 echo $ECHO_N "checking if wxWidgets was built in DEBUG mode... $ECHO_C" >&6
8042 WX_DEBUG=$(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
8044 if test "$WX_DEBUG" != "0"; then
8045 WX_DEBUG=1
8046 echo "$as_me:$LINENO: result: yes" >&5
8047 echo "${ECHO_T}yes" >&6
8049 else
8050 WX_DEBUG=0
8051 echo "$as_me:$LINENO: result: no" >&5
8052 echo "${ECHO_T}no" >&6
8055 else
8057 WX_DEBUG=$DEBUG
8061 if test "$STATIC" = "auto" ; then
8063 echo "$as_me:$LINENO: checking if wxWidgets was built in STATIC mode" >&5
8064 echo $ECHO_N "checking if wxWidgets was built in STATIC mode... $ECHO_C" >&6
8066 WX_STATIC=$(expr "$WX_SELECTEDCONFIG" : ".*static.*")
8068 if test "$WX_STATIC" != "0"; then
8069 WX_STATIC=1
8070 echo "$as_me:$LINENO: result: yes" >&5
8071 echo "${ECHO_T}yes" >&6
8073 else
8074 WX_STATIC=0
8075 echo "$as_me:$LINENO: result: no" >&5
8076 echo "${ECHO_T}no" >&6
8079 else
8081 WX_STATIC=$STATIC
8085 if test "$WX_STATIC" != "0"; then
8086 WX_SHARED=0
8087 else
8088 WX_SHARED=1
8095 if test "$TOOLKIT" = "auto" ; then
8097 echo "$as_me:$LINENO: checking which wxWidgets toolkit was selected" >&5
8098 echo $ECHO_N "checking which wxWidgets toolkit was selected... $ECHO_C" >&6
8100 WX_GTKPORT1=$(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
8101 WX_GTKPORT2=$(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
8102 WX_MSWPORT=$(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
8103 WX_MOTIFPORT=$(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
8104 WX_MACPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
8105 WX_X11PORT=$(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
8106 WX_MGLPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mgl.*")
8107 WX_DFBPORT=$(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
8108 WX_BASEPORT=$(expr "$WX_SELECTEDCONFIG" : ".*base.*")
8109 WX_COCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*cocoa.*")
8111 WX_PORT="unknown"
8112 if test "$WX_GTKPORT1" != "0"; then WX_PORT="gtk1"; fi
8113 if test "$WX_GTKPORT2" != "0"; then WX_PORT="gtk2"; fi
8114 if test "$WX_MSWPORT" != "0"; then WX_PORT="msw"; fi
8115 if test "$WX_MOTIFPORT" != "0"; then WX_PORT="motif"; fi
8116 if test "$WX_MACPORT" != "0"; then WX_PORT="mac"; fi
8117 if test "$WX_X11PORT" != "0"; then WX_PORT="x11"; fi
8118 if test "$WX_MGLPORT" != "0"; then WX_PORT="mgl"; fi
8119 if test "$WX_DFBPORT" != "0"; then WX_PORT="dfb"; fi
8120 if test "$WX_BASEPORT" != "0"; then WX_PORT="base"; fi
8121 if test "$WX_COCOAPORT" != "0"; then WX_PORT="cocoa"; fi
8124 if test "$WX_PORT" = "unknown" ; then
8125 { { echo "$as_me:$LINENO: error:
8126 Cannot detect the currently installed wxWidgets port !
8127 Please check your 'wx-config --cxxflags'...
8128 " >&5
8129 echo "$as_me: error:
8130 Cannot detect the currently installed wxWidgets port !
8131 Please check your 'wx-config --cxxflags'...
8132 " >&2;}
8133 { (exit 1); exit 1; }; }
8136 echo "$as_me:$LINENO: result: $WX_PORT" >&5
8137 echo "${ECHO_T}$WX_PORT" >&6
8138 else
8140 if test -z "$TOOLKIT" ; then
8141 WX_PORT=$TOOLKIT
8142 else
8143 WX_PORT=$PORT
8149 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8150 echo "[dbg] Values of all WX_* options after final detection:"
8151 echo "[dbg] WX_DEBUG: $WX_DEBUG"
8152 echo "[dbg] WX_UNICODE: $WX_UNICODE"
8153 echo "[dbg] WX_SHARED: $WX_SHARED"
8154 echo "[dbg] WX_VERSION: $WX_VERSION"
8155 echo "[dbg] WX_PORT: $WX_PORT"
8158 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
8159 { { echo "$as_me:$LINENO: error:
8160 Cannot build shared library against a static build of wxWidgets !
8161 This error happens because the wxWidgets build which was selected
8162 has been detected as static while you asked to build $PACKAGE_NAME
8163 as shared library and this is not possible.
8164 Use the '--disable-shared' option to build $PACKAGE_NAME
8165 as static library or '--with-wxshared' to use wxWidgets as shared library.
8166 " >&5
8167 echo "$as_me: error:
8168 Cannot build shared library against a static build of wxWidgets !
8169 This error happens because the wxWidgets build which was selected
8170 has been detected as static while you asked to build $PACKAGE_NAME
8171 as shared library and this is not possible.
8172 Use the '--disable-shared' option to build $PACKAGE_NAME
8173 as static library or '--with-wxshared' to use wxWidgets as shared library.
8174 " >&2;}
8175 { (exit 1); exit 1; }; }
8178 if test "$DEBUG" = "auto"; then
8179 DEBUG=$WX_DEBUG
8181 if test "$DEBUG" = "1"; then
8182 BUILD="debug"
8183 elif test "$DEBUG" = ""; then
8184 BUILD="release"
8187 if test "$UNICODE" = "auto"; then
8188 UNICODE=$WX_UNICODE
8190 if test "$SHARED" = "auto"; then
8191 SHARED=$WX_SHARED
8193 if test "$TOOLKIT" = "auto"; then
8194 TOOLKIT=$WX_PORT
8199 # We also need wxBase
8200 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs adv,core,net`
8201 WXBASE_LIBS=`$WX_CONFIG_WITH_ARGS --libs net`
8202 WXBASE_CPPFLAGS="$WX_CPPFLAGS -DwxUSE_GUI=0"
8206 if test ${SYS:-unknown} = win32; then
8208 if test -n "$ac_tool_prefix"; then
8209 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8210 set dummy ${ac_tool_prefix}windres; ac_word=$2
8211 echo "$as_me:$LINENO: checking for $ac_word" >&5
8212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8213 if test "${ac_cv_prog_RC+set}" = set; then
8214 echo $ECHO_N "(cached) $ECHO_C" >&6
8215 else
8216 if test -n "$RC"; then
8217 ac_cv_prog_RC="$RC" # Let the user override the test.
8218 else
8219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8220 for as_dir in $PATH
8222 IFS=$as_save_IFS
8223 test -z "$as_dir" && as_dir=.
8224 for ac_exec_ext in '' $ac_executable_extensions; do
8225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8226 ac_cv_prog_RC="${ac_tool_prefix}windres"
8227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8228 break 2
8230 done
8231 done
8235 RC=$ac_cv_prog_RC
8236 if test -n "$RC"; then
8237 echo "$as_me:$LINENO: result: $RC" >&5
8238 echo "${ECHO_T}$RC" >&6
8239 else
8240 echo "$as_me:$LINENO: result: no" >&5
8241 echo "${ECHO_T}no" >&6
8245 if test -z "$ac_cv_prog_RC"; then
8246 ac_ct_RC=$RC
8247 # Extract the first word of "windres", so it can be a program name with args.
8248 set dummy windres; ac_word=$2
8249 echo "$as_me:$LINENO: checking for $ac_word" >&5
8250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8251 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then
8252 echo $ECHO_N "(cached) $ECHO_C" >&6
8253 else
8254 if test -n "$ac_ct_RC"; then
8255 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
8256 else
8257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8258 for as_dir in $PATH
8260 IFS=$as_save_IFS
8261 test -z "$as_dir" && as_dir=.
8262 for ac_exec_ext in '' $ac_executable_extensions; do
8263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8264 ac_cv_prog_ac_ct_RC="windres"
8265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8266 break 2
8268 done
8269 done
8271 test -z "$ac_cv_prog_ac_ct_RC" && ac_cv_prog_ac_ct_RC=":"
8274 ac_ct_RC=$ac_cv_prog_ac_ct_RC
8275 if test -n "$ac_ct_RC"; then
8276 echo "$as_me:$LINENO: result: $ac_ct_RC" >&5
8277 echo "${ECHO_T}$ac_ct_RC" >&6
8278 else
8279 echo "$as_me:$LINENO: result: no" >&5
8280 echo "${ECHO_T}no" >&6
8283 RC=$ac_ct_RC
8284 else
8285 RC="$ac_cv_prog_RC"
8288 MULERCFLAGS=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
8294 # Check for libupnp
8295 if test "${ENABLE_UPNP:-yes}" = yes; then
8299 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8300 if test -n "$ac_tool_prefix"; then
8301 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8302 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8303 echo "$as_me:$LINENO: checking for $ac_word" >&5
8304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8305 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8306 echo $ECHO_N "(cached) $ECHO_C" >&6
8307 else
8308 case $PKG_CONFIG in
8309 [\\/]* | ?:[\\/]*)
8310 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8314 for as_dir in $PATH
8316 IFS=$as_save_IFS
8317 test -z "$as_dir" && as_dir=.
8318 for ac_exec_ext in '' $ac_executable_extensions; do
8319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8320 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8322 break 2
8324 done
8325 done
8328 esac
8330 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8332 if test -n "$PKG_CONFIG"; then
8333 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8334 echo "${ECHO_T}$PKG_CONFIG" >&6
8335 else
8336 echo "$as_me:$LINENO: result: no" >&5
8337 echo "${ECHO_T}no" >&6
8341 if test -z "$ac_cv_path_PKG_CONFIG"; then
8342 ac_pt_PKG_CONFIG=$PKG_CONFIG
8343 # Extract the first word of "pkg-config", so it can be a program name with args.
8344 set dummy pkg-config; ac_word=$2
8345 echo "$as_me:$LINENO: checking for $ac_word" >&5
8346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8347 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
8348 echo $ECHO_N "(cached) $ECHO_C" >&6
8349 else
8350 case $ac_pt_PKG_CONFIG in
8351 [\\/]* | ?:[\\/]*)
8352 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8356 for as_dir in $PATH
8358 IFS=$as_save_IFS
8359 test -z "$as_dir" && as_dir=.
8360 for ac_exec_ext in '' $ac_executable_extensions; do
8361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8362 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8364 break 2
8366 done
8367 done
8370 esac
8372 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8374 if test -n "$ac_pt_PKG_CONFIG"; then
8375 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
8376 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
8377 else
8378 echo "$as_me:$LINENO: result: no" >&5
8379 echo "${ECHO_T}no" >&6
8382 PKG_CONFIG=$ac_pt_PKG_CONFIG
8383 else
8384 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8388 if test -n "$PKG_CONFIG"; then
8389 _pkg_min_version=0.9.0
8390 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
8391 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
8392 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8393 echo "$as_me:$LINENO: result: yes" >&5
8394 echo "${ECHO_T}yes" >&6
8395 else
8396 echo "$as_me:$LINENO: result: no" >&5
8397 echo "${ECHO_T}no" >&6
8398 PKG_CONFIG=""
8404 # Check whether --with-libupnp-prefix or --without-libupnp-prefix was given.
8405 if test "${with_libupnp_prefix+set}" = set; then
8406 withval="$with_libupnp_prefix"
8407 export PKG_CONFIG_PATH=$withval/lib/pkgconfig
8410 if test $cross_compiling = no; then
8411 echo "$as_me:$LINENO: checking for libupnp version >= 1.6.6" >&5
8412 echo $ECHO_N "checking for libupnp version >= 1.6.6... $ECHO_C" >&6
8413 if test -n "$PKG_CONFIG"; then
8414 if $PKG_CONFIG libupnp --exists; then
8415 LIBUPNP_VERSION=`$PKG_CONFIG libupnp --modversion`
8416 if $PKG_CONFIG libupnp --atleast-version=1.6.6; then
8417 result=yes
8418 resultstr=" (version $LIBUPNP_VERSION)"
8419 LIBUPNP_CPPFLAGS=`$PKG_CONFIG libupnp --cflags-only-I`
8420 LIBUPNP_CFLAGS=`$PKG_CONFIG libupnp --cflags-only-other`
8421 LIBUPNP_LDFLAGS=`$PKG_CONFIG libupnp --libs-only-L`
8422 LIBUPNP_LIBS=`$PKG_CONFIG libupnp --libs-only-other`
8423 LIBUPNP_LIBS="$LIBUPNP_LIBS `$PKG_CONFIG libupnp --libs-only-l`"
8425 else
8426 result=no
8427 resultstr=" (version $LIBUPNP_VERSION is not new enough)"
8431 else
8432 result=no
8433 resultstr=" (try to use --with-libupnp-prefix=PREFIX)"
8437 else
8438 result=no
8439 resultstr=" (pkg-config not found)"
8442 echo "$as_me:$LINENO: result: $result$resultstr" >&5
8443 echo "${ECHO_T}$result$resultstr" >&6
8444 libupnp_error="libupnp >= 1.6.6 not found$resultstr"
8446 else
8447 result=no
8448 libupnp_error="cross compiling"
8452 if test ${result:-no} = yes; then
8453 LIBUPNP_CPPFLAGS="$LIBUPNP_CPPFLAGS -DENABLE_UPNP=1"
8454 else
8455 ENABLE_UPNP=disabled
8456 { echo "$as_me:$LINENO: WARNING:
8457 UPnP code has been disabled because ${libupnp_error}." >&5
8458 echo "$as_me: WARNING:
8459 UPnP code has been disabled because ${libupnp_error}." >&2;}
8460 _mule_warning_6=yes
8461 _mule_has_warnings=yes
8472 # Check for Crypto++
8475 # Check whether --with-crypto-prefix or --without-crypto-prefix was given.
8476 if test "${with_crypto_prefix+set}" = set; then
8477 withval="$with_crypto_prefix"
8481 echo "$as_me:$LINENO: checking for crypto++ version >= 5.1" >&5
8482 echo $ECHO_N "checking for crypto++ version >= 5.1... $ECHO_C" >&6
8484 cryptopp_file_with_version="cryptlib.h"
8486 CRYPTOPP_STYLE="unknown"
8487 CRYPTOPP_LIB_NAME="unknown"
8488 cryptopp_includedir="unknown"
8489 CRYPTOPP_INCLUDE_PREFIX="unknown"
8490 cryptopp_libdir="unknown"
8492 for CRYPTOPP_PREFIX in "$with_crypto_prefix" /usr /usr/local /opt /opt/local /usr/pkg /mingw ; do
8493 if test -z "$CRYPTOPP_PREFIX"; then
8494 continue
8498 # Find the Cryptopp header
8499 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8501 CRYPTOPP_STYLE="sources"
8502 CRYPTOPP_LIB_NAME="cryptopp"
8503 cryptopp_includedir=
8504 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
8505 cryptopp_libdir=
8506 break
8508 elif test -f $CRYPTOPP_PREFIX/include/cryptopp/$cryptopp_file_with_version; then
8510 CRYPTOPP_STYLE="installed"
8511 CRYPTOPP_LIB_NAME="cryptopp"
8512 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8513 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8514 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8515 break
8517 elif test -f $CRYPTOPP_PREFIX/include/crypto++/$cryptopp_file_with_version; then
8519 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8520 CRYPTOPP_STYLE="gentoo_debian"
8521 CRYPTOPP_LIB_NAME="crypto++"
8522 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8523 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8524 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8525 break
8529 done
8531 if test $CRYPTOPP_STYLE = "unknown"; then
8532 result=no; resultstr=""
8533 else
8535 # Find out the crypto++ version and check against the minimum required
8536 cryptopp_header_path="${cryptopp_includedir+$cryptopp_includedir/}$CRYPTOPP_INCLUDE_PREFIX/$cryptopp_file_with_version"
8537 CRYPTOPP_VERSION_STRING=`grep "Reference Manual" $cryptopp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
8538 CRYPTOPP_VERSION_NUMBER=`echo $CRYPTOPP_VERSION_STRING | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8539 minvers=`echo 5.1 | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8541 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then
8543 result=yes
8544 resultstr=" (version $CRYPTOPP_VERSION_STRING, $CRYPTOPP_STYLE)"
8545 if test -n "$cryptopp_includedir"; then
8546 CRYPTOPP_CPPFLAGS="-I$cryptopp_includedir"
8547 else
8548 CRYPTOPP_CPPFLAGS=
8551 if test -n "$cryptopp_libdir"; then
8553 CRYPTOPP_LDFLAGS="-L$cryptopp_libdir"
8554 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME"
8556 else
8558 CRYPTOPP_LDFLAGS=
8559 CRYPTOPP_LIBS="${CRYPTOPP_INCLUDE_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a"
8565 cat >>confdefs.h <<_ACEOF
8566 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX
8567 _ACEOF
8570 else
8572 result=no
8573 resultstr=" (version $CRYPTOPP_VERSION_STRING is not new enough)"
8581 echo "$as_me:$LINENO: result: $result$resultstr" >&5
8582 echo "${ECHO_T}$result$resultstr" >&6
8584 if test ${result:-no} = yes; then
8586 # Check for CryptoPP >= 5.5
8587 if test $CRYPTOPP_VERSION_NUMBER -ge "5005000"; then
8588 CRYPTOPP_CPPFLAGS="$CRYPTOPP_CPPFLAGS -D__WEAK_CRYPTO__"
8592 else
8594 { { echo "$as_me:$LINENO: error:
8595 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8596 Please try again with --with-crypto-prefix=/my_crypto_prefix
8597 (replace /my_crypto_prefix with a valid path to your crypto++
8598 installation directory)." >&5
8599 echo "$as_me: error:
8600 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8601 Please try again with --with-crypto-prefix=/my_crypto_prefix
8602 (replace /my_crypto_prefix with a valid path to your crypto++
8603 installation directory)." >&2;}
8604 { (exit 1); exit 1; }; }
8611 ac_ext=cc
8612 ac_cpp='$CXXCPP $CPPFLAGS'
8613 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8614 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8615 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8620 echo "$as_me:$LINENO: checking if we're using the GNU C++ library" >&5
8621 echo $ECHO_N "checking if we're using the GNU C++ library... $ECHO_C" >&6
8622 cat >conftest.$ac_ext <<_ACEOF
8624 /* confdefs.h. */
8625 _ACEOF
8626 cat confdefs.h >>conftest.$ac_ext
8627 cat >>conftest.$ac_ext <<_ACEOF
8628 /* end confdefs.h. */
8630 #include <string>
8631 #ifndef __GLIBCXX__
8632 #error Non-GNU C++ library found.
8633 #endif
8636 _ACEOF
8637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8638 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8639 ac_status=$?
8640 grep -v '^ *+' conftest.er1 >conftest.err
8641 rm -f conftest.er1
8642 cat conftest.err >&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); } >/dev/null; then
8645 if test -s conftest.err; then
8646 ac_cpp_err=$ac_cxx_preproc_warn_flag
8647 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8648 else
8649 ac_cpp_err=
8651 else
8652 ac_cpp_err=yes
8654 if test -z "$ac_cpp_err"; then
8655 GLIBCXX=yes
8656 else
8657 echo "$as_me: failed program was:" >&5
8658 sed 's/^/| /' conftest.$ac_ext >&5
8660 GLIBCXX=no
8662 rm -f conftest.err conftest.$ac_ext
8663 echo "$as_me:$LINENO: result: $GLIBCXX" >&5
8664 echo "${ECHO_T}$GLIBCXX" >&6
8667 mule_backup_CPPFLAGS="$CPPFLAGS"
8668 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
8670 echo "$as_me:$LINENO: checking that wxWidgets has support for large files" >&5
8671 echo $ECHO_N "checking that wxWidgets has support for large files... $ECHO_C" >&6
8672 cat >conftest.$ac_ext <<_ACEOF
8674 /* confdefs.h. */
8675 _ACEOF
8676 cat confdefs.h >>conftest.$ac_ext
8677 cat >>conftest.$ac_ext <<_ACEOF
8678 /* end confdefs.h. */
8680 #include <wx/wx.h>
8681 #if !HAVE_LARGEFILE_SUPPORT && !defined(_LARGE_FILES) && !defined(__WXMSW__)
8682 #error No LargeFile support!
8683 #endif
8686 _ACEOF
8687 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8688 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8689 ac_status=$?
8690 grep -v '^ *+' conftest.er1 >conftest.err
8691 rm -f conftest.er1
8692 cat conftest.err >&5
8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); } >/dev/null; then
8695 if test -s conftest.err; then
8696 ac_cpp_err=$ac_cxx_preproc_warn_flag
8697 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8698 else
8699 ac_cpp_err=
8701 else
8702 ac_cpp_err=yes
8704 if test -z "$ac_cpp_err"; then
8706 echo "$as_me:$LINENO: result: yes" >&5
8707 echo "${ECHO_T}yes" >&6
8709 else
8710 echo "$as_me: failed program was:" >&5
8711 sed 's/^/| /' conftest.$ac_ext >&5
8714 echo "$as_me:$LINENO: result: no" >&5
8715 echo "${ECHO_T}no" >&6
8716 { { echo "$as_me:$LINENO: error:
8717 Support for large files in wxWidgets is required by aMule.
8718 To continue you must recompile wxWidgets with support for
8719 large files enabled." >&5
8720 echo "$as_me: error:
8721 Support for large files in wxWidgets is required by aMule.
8722 To continue you must recompile wxWidgets with support for
8723 large files enabled." >&2;}
8724 { (exit 1); exit 1; }; }
8727 rm -f conftest.err conftest.$ac_ext
8729 CPPFLAGS="$mule_backup_CPPFLAGS"
8732 # Check if the compiler is broken, wrt. exceptions.
8734 echo "$as_me:$LINENO: checking for exception-handling" >&5
8735 echo $ECHO_N "checking for exception-handling... $ECHO_C" >&6
8736 if test "$cross_compiling" = yes; then
8738 echo "$as_me:$LINENO: result: undeterminable" >&5
8739 echo "${ECHO_T}undeterminable" >&6
8740 { echo "$as_me:$LINENO: WARNING:
8741 Cross-compilation detected, so exception handling cannot be tested.
8742 Note that broken exception handling in your compiler may lead to
8743 unexpected crashes." >&5
8744 echo "$as_me: WARNING:
8745 Cross-compilation detected, so exception handling cannot be tested.
8746 Note that broken exception handling in your compiler may lead to
8747 unexpected crashes." >&2;}
8748 _mule_warning_7=yes
8749 _mule_has_warnings=yes
8752 else
8753 cat >conftest.$ac_ext <<_ACEOF
8755 /* confdefs.h. */
8756 _ACEOF
8757 cat confdefs.h >>conftest.$ac_ext
8758 cat >>conftest.$ac_ext <<_ACEOF
8759 /* end confdefs.h. */
8762 main ()
8765 try {
8766 throw 1;
8767 } catch (int) {
8768 return 0;
8770 return 1;
8773 return 0;
8776 _ACEOF
8777 rm -f conftest$ac_exeext
8778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8779 (eval $ac_link) 2>&5
8780 ac_status=$?
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8784 (eval $ac_try) 2>&5
8785 ac_status=$?
8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 (exit $ac_status); }; }; then
8789 echo "$as_me:$LINENO: result: yes" >&5
8790 echo "${ECHO_T}yes" >&6
8792 else
8793 echo "$as_me: program exited with status $ac_status" >&5
8794 echo "$as_me: failed program was:" >&5
8795 sed 's/^/| /' conftest.$ac_ext >&5
8797 ( exit $ac_status )
8799 echo "$as_me:$LINENO: result: no" >&5
8800 echo "${ECHO_T}no" >&6
8801 { { echo "$as_me:$LINENO: error: Exception handling does not work. Broken compiler?" >&5
8802 echo "$as_me: error: Exception handling does not work. Broken compiler?" >&2;}
8803 { (exit 1); exit 1; }; }
8806 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8811 echo "$as_me:$LINENO: checking for <cxxabi.h> and __cxa_demangle()" >&5
8812 echo $ECHO_N "checking for <cxxabi.h> and __cxa_demangle()... $ECHO_C" >&6
8813 cat >conftest.$ac_ext <<_ACEOF
8815 /* confdefs.h. */
8816 _ACEOF
8817 cat confdefs.h >>conftest.$ac_ext
8818 cat >>conftest.$ac_ext <<_ACEOF
8819 /* end confdefs.h. */
8821 #include <cxxabi.h>
8824 main ()
8827 int status;
8828 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
8829 std::type_info *ti = abi::__cxa_current_exception_type();
8832 return 0;
8835 _ACEOF
8836 rm -f conftest.$ac_objext conftest$ac_exeext
8837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8838 (eval $ac_link) 2>conftest.er1
8839 ac_status=$?
8840 grep -v '^ *+' conftest.er1 >conftest.err
8841 rm -f conftest.er1
8842 cat conftest.err >&5
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); } &&
8845 { ac_try='test -z "$ac_cxx_werror_flag"
8846 || test ! -s conftest.err'
8847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8848 (eval $ac_try) 2>&5
8849 ac_status=$?
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); }; } &&
8852 { ac_try='test -s conftest$ac_exeext'
8853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8854 (eval $ac_try) 2>&5
8855 ac_status=$?
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); }; }; then
8861 cat >>confdefs.h <<\_ACEOF
8862 #define HAVE_CXXABI 1
8863 _ACEOF
8865 echo "$as_me:$LINENO: result: yes" >&5
8866 echo "${ECHO_T}yes" >&6
8868 else
8869 echo "$as_me: failed program was:" >&5
8870 sed 's/^/| /' conftest.$ac_ext >&5
8873 echo "$as_me:$LINENO: result: no" >&5
8874 echo "${ECHO_T}no" >&6
8877 rm -f conftest.err conftest.$ac_objext \
8878 conftest$ac_exeext conftest.$ac_ext
8880 ac_ext=c
8881 ac_cpp='$CPP $CPPFLAGS'
8882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8887 # Check for bfd.h (to have proper backtraces without using wxExecute)
8889 echo "$as_me:$LINENO: checking for bfd" >&5
8890 echo $ECHO_N "checking for bfd... $ECHO_C" >&6
8891 mule_backup_LIBS="$LIBS"
8892 mule_backup_LDFLAGS="$LDFLAGS"
8893 LIBS="-lbfd -liberty ${ZLIB_LIBS} $LIBS"
8894 LDFLAGS="$LDFLAGS ${ZLIB_LDFLAGS}"
8895 cat >conftest.$ac_ext <<_ACEOF
8897 /* confdefs.h. */
8898 _ACEOF
8899 cat confdefs.h >>conftest.$ac_ext
8900 cat >>conftest.$ac_ext <<_ACEOF
8901 /* end confdefs.h. */
8903 #include <ansidecl.h>
8904 #include <bfd.h>
8907 main ()
8910 char *dummy = bfd_errmsg(bfd_get_error());
8913 return 0;
8916 _ACEOF
8917 rm -f conftest.$ac_objext conftest$ac_exeext
8918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8919 (eval $ac_link) 2>conftest.er1
8920 ac_status=$?
8921 grep -v '^ *+' conftest.er1 >conftest.err
8922 rm -f conftest.er1
8923 cat conftest.err >&5
8924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925 (exit $ac_status); } &&
8926 { ac_try='test -z "$ac_c_werror_flag"
8927 || test ! -s conftest.err'
8928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8929 (eval $ac_try) 2>&5
8930 ac_status=$?
8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 (exit $ac_status); }; } &&
8933 { ac_try='test -s conftest$ac_exeext'
8934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8935 (eval $ac_try) 2>&5
8936 ac_status=$?
8937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938 (exit $ac_status); }; }; then
8940 echo "$as_me:$LINENO: result: yes" >&5
8941 echo "${ECHO_T}yes" >&6
8942 BFD_CPPFLAGS="-DHAVE_BFD"
8943 BFD_LIBS="-lbfd -liberty"
8945 else
8946 echo "$as_me: failed program was:" >&5
8947 sed 's/^/| /' conftest.$ac_ext >&5
8950 echo "$as_me:$LINENO: result: no" >&5
8951 echo "${ECHO_T}no" >&6
8952 { echo "$as_me:$LINENO: WARNING:
8953 bfd.h not found or unusable, please install binutils development
8954 package if you are a developer or want to help testing aMule" >&5
8955 echo "$as_me: WARNING:
8956 bfd.h not found or unusable, please install binutils development
8957 package if you are a developer or want to help testing aMule" >&2;}
8958 _mule_warning_8=yes
8959 _mule_has_warnings=yes
8963 rm -f conftest.err conftest.$ac_objext \
8964 conftest$ac_exeext conftest.$ac_ext
8965 LIBS="$mule_backup_LIBS"
8966 LDFLAGS="$mule_backup_LDFLAGS"
8970 echo "$as_me:$LINENO: checking for <execinfo.h> and backtrace()" >&5
8971 echo $ECHO_N "checking for <execinfo.h> and backtrace()... $ECHO_C" >&6
8972 cat >conftest.$ac_ext <<_ACEOF
8974 /* confdefs.h. */
8975 _ACEOF
8976 cat confdefs.h >>conftest.$ac_ext
8977 cat >>conftest.$ac_ext <<_ACEOF
8978 /* end confdefs.h. */
8980 #include <execinfo.h>
8983 main ()
8986 void *bt[1];
8987 int n = backtrace(&bt, 1);
8988 const char **bt_syms = backtrace_symbols(bt, n);
8991 return 0;
8994 _ACEOF
8995 rm -f conftest.$ac_objext conftest$ac_exeext
8996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8997 (eval $ac_link) 2>conftest.er1
8998 ac_status=$?
8999 grep -v '^ *+' conftest.er1 >conftest.err
9000 rm -f conftest.er1
9001 cat conftest.err >&5
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); } &&
9004 { ac_try='test -z "$ac_c_werror_flag"
9005 || test ! -s conftest.err'
9006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9007 (eval $ac_try) 2>&5
9008 ac_status=$?
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); }; } &&
9011 { ac_try='test -s conftest$ac_exeext'
9012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9013 (eval $ac_try) 2>&5
9014 ac_status=$?
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); }; }; then
9020 cat >>confdefs.h <<\_ACEOF
9021 #define HAVE_EXECINFO 1
9022 _ACEOF
9024 echo "$as_me:$LINENO: result: yes" >&5
9025 echo "${ECHO_T}yes" >&6
9027 else
9028 echo "$as_me: failed program was:" >&5
9029 sed 's/^/| /' conftest.$ac_ext >&5
9032 echo "$as_me:$LINENO: result: no" >&5
9033 echo "${ECHO_T}no" >&6
9036 rm -f conftest.err conftest.$ac_objext \
9037 conftest$ac_exeext conftest.$ac_ext
9040 # Ok, we have all needed libs, now checking for other stuff
9041 if test "$LEX" = "flex"; then
9043 echo "$as_me:$LINENO: checking for extended flex capabilities" >&5
9044 echo $ECHO_N "checking for extended flex capabilities... $ECHO_C" >&6
9046 extended_flex=`flex --help | grep header-file`
9047 if test -n "$extended_flex"; then
9048 HAVE_FLEX_EXTENDED=yes
9049 else
9050 HAVE_FLEX_EXTENDED=no
9053 echo "$as_me:$LINENO: result: $HAVE_FLEX_EXTENDED" >&5
9054 echo "${ECHO_T}$HAVE_FLEX_EXTENDED" >&6
9056 if test $HAVE_FLEX_EXTENDED = no; then
9057 { echo "$as_me:$LINENO: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&5
9058 echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&6;}
9062 else
9063 HAVE_FLEX_EXTENDED=no
9067 # Flush standard test results for speeding cache
9068 cat >confcache <<\_ACEOF
9069 # This file is a shell script that caches the results of configure
9070 # tests run on this system so they can be shared between configure
9071 # scripts and configure runs, see configure's option --config-cache.
9072 # It is not useful on other systems. If it contains results you don't
9073 # want to keep, you may remove or edit it.
9075 # config.status only pays attention to the cache file if you give it
9076 # the --recheck option to rerun configure.
9078 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9079 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9080 # following values.
9082 _ACEOF
9084 # The following way of writing the cache mishandles newlines in values,
9085 # but we know of no workaround that is simple, portable, and efficient.
9086 # So, don't put newlines in cache variables' values.
9087 # Ultrix sh set writes to stderr and can't be redirected directly,
9088 # and sets the high bit in the cache file unless we assign to the vars.
9090 (set) 2>&1 |
9091 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9092 *ac_space=\ *)
9093 # `set' does not quote correctly, so add quotes (double-quote
9094 # substitution turns \\\\ into \\, and sed turns \\ into \).
9095 sed -n \
9096 "s/'/'\\\\''/g;
9097 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9100 # `set' quotes correctly as required by POSIX, so do not add quotes.
9101 sed -n \
9102 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9104 esac;
9106 sed '
9107 t clear
9108 : clear
9109 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9110 t end
9111 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9112 : end' >>confcache
9113 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9114 if test -w $cache_file; then
9115 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9116 cat confcache >$cache_file
9117 else
9118 echo "not updating unwritable cache $cache_file"
9121 rm -f confcache
9123 # Checks for header files.
9124 echo "$as_me:$LINENO: checking for X" >&5
9125 echo $ECHO_N "checking for X... $ECHO_C" >&6
9128 # Check whether --with-x or --without-x was given.
9129 if test "${with_x+set}" = set; then
9130 withval="$with_x"
9133 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9134 if test "x$with_x" = xno; then
9135 # The user explicitly disabled X.
9136 have_x=disabled
9137 else
9138 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9139 # Both variables are already set.
9140 have_x=yes
9141 else
9142 if test "${ac_cv_have_x+set}" = set; then
9143 echo $ECHO_N "(cached) $ECHO_C" >&6
9144 else
9145 # One or both of the vars are not set, and there is no cached value.
9146 ac_x_includes=no ac_x_libraries=no
9147 rm -fr conftest.dir
9148 if mkdir conftest.dir; then
9149 cd conftest.dir
9150 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9151 cat >Imakefile <<'_ACEOF'
9152 acfindx:
9153 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9154 _ACEOF
9155 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9156 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9157 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9158 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9159 for ac_extension in a so sl; do
9160 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9161 test -f $ac_im_libdir/libX11.$ac_extension; then
9162 ac_im_usrlibdir=$ac_im_libdir; break
9164 done
9165 # Screen out bogus values from the imake configuration. They are
9166 # bogus both because they are the default anyway, and because
9167 # using them would break gcc on systems where it needs fixed includes.
9168 case $ac_im_incroot in
9169 /usr/include) ;;
9170 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9171 esac
9172 case $ac_im_usrlibdir in
9173 /usr/lib | /lib) ;;
9174 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9175 esac
9177 cd ..
9178 rm -fr conftest.dir
9181 # Standard set of common directories for X headers.
9182 # Check X11 before X11Rn because it is often a symlink to the current release.
9183 ac_x_header_dirs='
9184 /usr/X11/include
9185 /usr/X11R6/include
9186 /usr/X11R5/include
9187 /usr/X11R4/include
9189 /usr/include/X11
9190 /usr/include/X11R6
9191 /usr/include/X11R5
9192 /usr/include/X11R4
9194 /usr/local/X11/include
9195 /usr/local/X11R6/include
9196 /usr/local/X11R5/include
9197 /usr/local/X11R4/include
9199 /usr/local/include/X11
9200 /usr/local/include/X11R6
9201 /usr/local/include/X11R5
9202 /usr/local/include/X11R4
9204 /usr/X386/include
9205 /usr/x386/include
9206 /usr/XFree86/include/X11
9208 /usr/include
9209 /usr/local/include
9210 /usr/unsupported/include
9211 /usr/athena/include
9212 /usr/local/x11r5/include
9213 /usr/lpp/Xamples/include
9215 /usr/openwin/include
9216 /usr/openwin/share/include'
9218 if test "$ac_x_includes" = no; then
9219 # Guess where to find include files, by looking for Intrinsic.h.
9220 # First, try using that file with no special directory specified.
9221 cat >conftest.$ac_ext <<_ACEOF
9222 /* confdefs.h. */
9223 _ACEOF
9224 cat confdefs.h >>conftest.$ac_ext
9225 cat >>conftest.$ac_ext <<_ACEOF
9226 /* end confdefs.h. */
9227 #include <X11/Intrinsic.h>
9228 _ACEOF
9229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9230 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9231 ac_status=$?
9232 grep -v '^ *+' conftest.er1 >conftest.err
9233 rm -f conftest.er1
9234 cat conftest.err >&5
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); } >/dev/null; then
9237 if test -s conftest.err; then
9238 ac_cpp_err=$ac_c_preproc_warn_flag
9239 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9240 else
9241 ac_cpp_err=
9243 else
9244 ac_cpp_err=yes
9246 if test -z "$ac_cpp_err"; then
9247 # We can compile using X headers with no special include directory.
9248 ac_x_includes=
9249 else
9250 echo "$as_me: failed program was:" >&5
9251 sed 's/^/| /' conftest.$ac_ext >&5
9253 for ac_dir in $ac_x_header_dirs; do
9254 if test -r "$ac_dir/X11/Intrinsic.h"; then
9255 ac_x_includes=$ac_dir
9256 break
9258 done
9260 rm -f conftest.err conftest.$ac_ext
9261 fi # $ac_x_includes = no
9263 if test "$ac_x_libraries" = no; then
9264 # Check for the libraries.
9265 # See if we find them without any special options.
9266 # Don't add to $LIBS permanently.
9267 ac_save_LIBS=$LIBS
9268 LIBS="-lXt $LIBS"
9269 cat >conftest.$ac_ext <<_ACEOF
9270 /* confdefs.h. */
9271 _ACEOF
9272 cat confdefs.h >>conftest.$ac_ext
9273 cat >>conftest.$ac_ext <<_ACEOF
9274 /* end confdefs.h. */
9275 #include <X11/Intrinsic.h>
9277 main ()
9279 XtMalloc (0)
9281 return 0;
9283 _ACEOF
9284 rm -f conftest.$ac_objext conftest$ac_exeext
9285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9286 (eval $ac_link) 2>conftest.er1
9287 ac_status=$?
9288 grep -v '^ *+' conftest.er1 >conftest.err
9289 rm -f conftest.er1
9290 cat conftest.err >&5
9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 (exit $ac_status); } &&
9293 { ac_try='test -z "$ac_c_werror_flag"
9294 || test ! -s conftest.err'
9295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9296 (eval $ac_try) 2>&5
9297 ac_status=$?
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 (exit $ac_status); }; } &&
9300 { ac_try='test -s conftest$ac_exeext'
9301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9302 (eval $ac_try) 2>&5
9303 ac_status=$?
9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305 (exit $ac_status); }; }; then
9306 LIBS=$ac_save_LIBS
9307 # We can link X programs with no special library path.
9308 ac_x_libraries=
9309 else
9310 echo "$as_me: failed program was:" >&5
9311 sed 's/^/| /' conftest.$ac_ext >&5
9313 LIBS=$ac_save_LIBS
9314 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9316 # Don't even attempt the hair of trying to link an X program!
9317 for ac_extension in a so sl; do
9318 if test -r $ac_dir/libXt.$ac_extension; then
9319 ac_x_libraries=$ac_dir
9320 break 2
9322 done
9323 done
9325 rm -f conftest.err conftest.$ac_objext \
9326 conftest$ac_exeext conftest.$ac_ext
9327 fi # $ac_x_libraries = no
9329 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9330 # Didn't find X anywhere. Cache the known absence of X.
9331 ac_cv_have_x="have_x=no"
9332 else
9333 # Record where we found X for the cache.
9334 ac_cv_have_x="have_x=yes \
9335 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9340 eval "$ac_cv_have_x"
9341 fi # $with_x != no
9343 if test "$have_x" != yes; then
9344 echo "$as_me:$LINENO: result: $have_x" >&5
9345 echo "${ECHO_T}$have_x" >&6
9346 no_x=yes
9347 else
9348 # If each of the values was on the command line, it overrides each guess.
9349 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9350 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9351 # Update the cache value to reflect the command line values.
9352 ac_cv_have_x="have_x=yes \
9353 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9354 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9355 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9358 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9359 # for constant arguments. Useless!
9360 echo "$as_me:$LINENO: checking for working alloca.h" >&5
9361 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9362 if test "${ac_cv_working_alloca_h+set}" = set; then
9363 echo $ECHO_N "(cached) $ECHO_C" >&6
9364 else
9365 cat >conftest.$ac_ext <<_ACEOF
9366 /* confdefs.h. */
9367 _ACEOF
9368 cat confdefs.h >>conftest.$ac_ext
9369 cat >>conftest.$ac_ext <<_ACEOF
9370 /* end confdefs.h. */
9371 #include <alloca.h>
9373 main ()
9375 char *p = (char *) alloca (2 * sizeof (int));
9377 return 0;
9379 _ACEOF
9380 rm -f conftest.$ac_objext conftest$ac_exeext
9381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9382 (eval $ac_link) 2>conftest.er1
9383 ac_status=$?
9384 grep -v '^ *+' conftest.er1 >conftest.err
9385 rm -f conftest.er1
9386 cat conftest.err >&5
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); } &&
9389 { ac_try='test -z "$ac_c_werror_flag"
9390 || test ! -s conftest.err'
9391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9392 (eval $ac_try) 2>&5
9393 ac_status=$?
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 (exit $ac_status); }; } &&
9396 { ac_try='test -s conftest$ac_exeext'
9397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9398 (eval $ac_try) 2>&5
9399 ac_status=$?
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); }; }; then
9402 ac_cv_working_alloca_h=yes
9403 else
9404 echo "$as_me: failed program was:" >&5
9405 sed 's/^/| /' conftest.$ac_ext >&5
9407 ac_cv_working_alloca_h=no
9409 rm -f conftest.err conftest.$ac_objext \
9410 conftest$ac_exeext conftest.$ac_ext
9412 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9413 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9414 if test $ac_cv_working_alloca_h = yes; then
9416 cat >>confdefs.h <<\_ACEOF
9417 #define HAVE_ALLOCA_H 1
9418 _ACEOF
9422 echo "$as_me:$LINENO: checking for alloca" >&5
9423 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9424 if test "${ac_cv_func_alloca_works+set}" = set; then
9425 echo $ECHO_N "(cached) $ECHO_C" >&6
9426 else
9427 cat >conftest.$ac_ext <<_ACEOF
9428 /* confdefs.h. */
9429 _ACEOF
9430 cat confdefs.h >>conftest.$ac_ext
9431 cat >>conftest.$ac_ext <<_ACEOF
9432 /* end confdefs.h. */
9433 #ifdef __GNUC__
9434 # define alloca __builtin_alloca
9435 #else
9436 # ifdef _MSC_VER
9437 # include <malloc.h>
9438 # define alloca _alloca
9439 # else
9440 # if HAVE_ALLOCA_H
9441 # include <alloca.h>
9442 # else
9443 # ifdef _AIX
9444 #pragma alloca
9445 # else
9446 # ifndef alloca /* predefined by HP cc +Olibcalls */
9447 char *alloca ();
9448 # endif
9449 # endif
9450 # endif
9451 # endif
9452 #endif
9455 main ()
9457 char *p = (char *) alloca (1);
9459 return 0;
9461 _ACEOF
9462 rm -f conftest.$ac_objext conftest$ac_exeext
9463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9464 (eval $ac_link) 2>conftest.er1
9465 ac_status=$?
9466 grep -v '^ *+' conftest.er1 >conftest.err
9467 rm -f conftest.er1
9468 cat conftest.err >&5
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); } &&
9471 { ac_try='test -z "$ac_c_werror_flag"
9472 || test ! -s conftest.err'
9473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9474 (eval $ac_try) 2>&5
9475 ac_status=$?
9476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477 (exit $ac_status); }; } &&
9478 { ac_try='test -s conftest$ac_exeext'
9479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9480 (eval $ac_try) 2>&5
9481 ac_status=$?
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); }; }; then
9484 ac_cv_func_alloca_works=yes
9485 else
9486 echo "$as_me: failed program was:" >&5
9487 sed 's/^/| /' conftest.$ac_ext >&5
9489 ac_cv_func_alloca_works=no
9491 rm -f conftest.err conftest.$ac_objext \
9492 conftest$ac_exeext conftest.$ac_ext
9494 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9495 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9497 if test $ac_cv_func_alloca_works = yes; then
9499 cat >>confdefs.h <<\_ACEOF
9500 #define HAVE_ALLOCA 1
9501 _ACEOF
9503 else
9504 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9505 # that cause trouble. Some versions do not even contain alloca or
9506 # contain a buggy version. If you still want to use their alloca,
9507 # use ar to extract alloca.o from them instead of compiling alloca.c.
9509 ALLOCA=alloca.$ac_objext
9511 cat >>confdefs.h <<\_ACEOF
9512 #define C_ALLOCA 1
9513 _ACEOF
9516 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9517 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9518 if test "${ac_cv_os_cray+set}" = set; then
9519 echo $ECHO_N "(cached) $ECHO_C" >&6
9520 else
9521 cat >conftest.$ac_ext <<_ACEOF
9522 /* confdefs.h. */
9523 _ACEOF
9524 cat confdefs.h >>conftest.$ac_ext
9525 cat >>conftest.$ac_ext <<_ACEOF
9526 /* end confdefs.h. */
9527 #if defined(CRAY) && ! defined(CRAY2)
9528 webecray
9529 #else
9530 wenotbecray
9531 #endif
9533 _ACEOF
9534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9535 $EGREP "webecray" >/dev/null 2>&1; then
9536 ac_cv_os_cray=yes
9537 else
9538 ac_cv_os_cray=no
9540 rm -f conftest*
9543 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9544 echo "${ECHO_T}$ac_cv_os_cray" >&6
9545 if test $ac_cv_os_cray = yes; then
9546 for ac_func in _getb67 GETB67 getb67; do
9547 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9548 echo "$as_me:$LINENO: checking for $ac_func" >&5
9549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9550 if eval "test \"\${$as_ac_var+set}\" = set"; then
9551 echo $ECHO_N "(cached) $ECHO_C" >&6
9552 else
9553 cat >conftest.$ac_ext <<_ACEOF
9554 /* confdefs.h. */
9555 _ACEOF
9556 cat confdefs.h >>conftest.$ac_ext
9557 cat >>conftest.$ac_ext <<_ACEOF
9558 /* end confdefs.h. */
9559 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9561 #define $ac_func innocuous_$ac_func
9563 /* System header to define __stub macros and hopefully few prototypes,
9564 which can conflict with char $ac_func (); below.
9565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9566 <limits.h> exists even on freestanding compilers. */
9568 #ifdef __STDC__
9569 # include <limits.h>
9570 #else
9571 # include <assert.h>
9572 #endif
9574 #undef $ac_func
9576 /* Override any gcc2 internal prototype to avoid an error. */
9577 #ifdef __cplusplus
9578 extern "C"
9580 #endif
9581 /* We use char because int might match the return type of a gcc2
9582 builtin and then its argument prototype would still apply. */
9583 char $ac_func ();
9584 /* The GNU C library defines this for functions which it implements
9585 to always fail with ENOSYS. Some functions are actually named
9586 something starting with __ and the normal name is an alias. */
9587 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9588 choke me
9589 #else
9590 char (*f) () = $ac_func;
9591 #endif
9592 #ifdef __cplusplus
9594 #endif
9597 main ()
9599 return f != $ac_func;
9601 return 0;
9603 _ACEOF
9604 rm -f conftest.$ac_objext conftest$ac_exeext
9605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9606 (eval $ac_link) 2>conftest.er1
9607 ac_status=$?
9608 grep -v '^ *+' conftest.er1 >conftest.err
9609 rm -f conftest.er1
9610 cat conftest.err >&5
9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); } &&
9613 { ac_try='test -z "$ac_c_werror_flag"
9614 || test ! -s conftest.err'
9615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9616 (eval $ac_try) 2>&5
9617 ac_status=$?
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); }; } &&
9620 { ac_try='test -s conftest$ac_exeext'
9621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9622 (eval $ac_try) 2>&5
9623 ac_status=$?
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); }; }; then
9626 eval "$as_ac_var=yes"
9627 else
9628 echo "$as_me: failed program was:" >&5
9629 sed 's/^/| /' conftest.$ac_ext >&5
9631 eval "$as_ac_var=no"
9633 rm -f conftest.err conftest.$ac_objext \
9634 conftest$ac_exeext conftest.$ac_ext
9636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9637 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9638 if test `eval echo '${'$as_ac_var'}'` = yes; then
9640 cat >>confdefs.h <<_ACEOF
9641 #define CRAY_STACKSEG_END $ac_func
9642 _ACEOF
9644 break
9647 done
9650 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9651 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9652 if test "${ac_cv_c_stack_direction+set}" = set; then
9653 echo $ECHO_N "(cached) $ECHO_C" >&6
9654 else
9655 if test "$cross_compiling" = yes; then
9656 ac_cv_c_stack_direction=0
9657 else
9658 cat >conftest.$ac_ext <<_ACEOF
9659 /* confdefs.h. */
9660 _ACEOF
9661 cat confdefs.h >>conftest.$ac_ext
9662 cat >>conftest.$ac_ext <<_ACEOF
9663 /* end confdefs.h. */
9665 find_stack_direction ()
9667 static char *addr = 0;
9668 auto char dummy;
9669 if (addr == 0)
9671 addr = &dummy;
9672 return find_stack_direction ();
9674 else
9675 return (&dummy > addr) ? 1 : -1;
9679 main ()
9681 exit (find_stack_direction () < 0);
9683 _ACEOF
9684 rm -f conftest$ac_exeext
9685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9686 (eval $ac_link) 2>&5
9687 ac_status=$?
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9691 (eval $ac_try) 2>&5
9692 ac_status=$?
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); }; }; then
9695 ac_cv_c_stack_direction=1
9696 else
9697 echo "$as_me: program exited with status $ac_status" >&5
9698 echo "$as_me: failed program was:" >&5
9699 sed 's/^/| /' conftest.$ac_ext >&5
9701 ( exit $ac_status )
9702 ac_cv_c_stack_direction=-1
9704 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9707 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9708 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9710 cat >>confdefs.h <<_ACEOF
9711 #define STACK_DIRECTION $ac_cv_c_stack_direction
9712 _ACEOF
9722 ac_header_dirent=no
9723 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9724 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9725 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9726 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9727 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9728 echo $ECHO_N "(cached) $ECHO_C" >&6
9729 else
9730 cat >conftest.$ac_ext <<_ACEOF
9731 /* confdefs.h. */
9732 _ACEOF
9733 cat confdefs.h >>conftest.$ac_ext
9734 cat >>conftest.$ac_ext <<_ACEOF
9735 /* end confdefs.h. */
9736 #include <sys/types.h>
9737 #include <$ac_hdr>
9740 main ()
9742 if ((DIR *) 0)
9743 return 0;
9745 return 0;
9747 _ACEOF
9748 rm -f conftest.$ac_objext
9749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9750 (eval $ac_compile) 2>conftest.er1
9751 ac_status=$?
9752 grep -v '^ *+' conftest.er1 >conftest.err
9753 rm -f conftest.er1
9754 cat conftest.err >&5
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); } &&
9757 { ac_try='test -z "$ac_c_werror_flag"
9758 || test ! -s conftest.err'
9759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9760 (eval $ac_try) 2>&5
9761 ac_status=$?
9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763 (exit $ac_status); }; } &&
9764 { ac_try='test -s conftest.$ac_objext'
9765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9766 (eval $ac_try) 2>&5
9767 ac_status=$?
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); }; }; then
9770 eval "$as_ac_Header=yes"
9771 else
9772 echo "$as_me: failed program was:" >&5
9773 sed 's/^/| /' conftest.$ac_ext >&5
9775 eval "$as_ac_Header=no"
9777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9780 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9782 cat >>confdefs.h <<_ACEOF
9783 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9784 _ACEOF
9786 ac_header_dirent=$ac_hdr; break
9789 done
9790 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9791 if test $ac_header_dirent = dirent.h; then
9792 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9793 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9794 if test "${ac_cv_search_opendir+set}" = set; then
9795 echo $ECHO_N "(cached) $ECHO_C" >&6
9796 else
9797 ac_func_search_save_LIBS=$LIBS
9798 ac_cv_search_opendir=no
9799 cat >conftest.$ac_ext <<_ACEOF
9800 /* confdefs.h. */
9801 _ACEOF
9802 cat confdefs.h >>conftest.$ac_ext
9803 cat >>conftest.$ac_ext <<_ACEOF
9804 /* end confdefs.h. */
9806 /* Override any gcc2 internal prototype to avoid an error. */
9807 #ifdef __cplusplus
9808 extern "C"
9809 #endif
9810 /* We use char because int might match the return type of a gcc2
9811 builtin and then its argument prototype would still apply. */
9812 char opendir ();
9814 main ()
9816 opendir ();
9818 return 0;
9820 _ACEOF
9821 rm -f conftest.$ac_objext conftest$ac_exeext
9822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9823 (eval $ac_link) 2>conftest.er1
9824 ac_status=$?
9825 grep -v '^ *+' conftest.er1 >conftest.err
9826 rm -f conftest.er1
9827 cat conftest.err >&5
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); } &&
9830 { ac_try='test -z "$ac_c_werror_flag"
9831 || test ! -s conftest.err'
9832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9833 (eval $ac_try) 2>&5
9834 ac_status=$?
9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836 (exit $ac_status); }; } &&
9837 { ac_try='test -s conftest$ac_exeext'
9838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9839 (eval $ac_try) 2>&5
9840 ac_status=$?
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); }; }; then
9843 ac_cv_search_opendir="none required"
9844 else
9845 echo "$as_me: failed program was:" >&5
9846 sed 's/^/| /' conftest.$ac_ext >&5
9849 rm -f conftest.err conftest.$ac_objext \
9850 conftest$ac_exeext conftest.$ac_ext
9851 if test "$ac_cv_search_opendir" = no; then
9852 for ac_lib in dir; do
9853 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9854 cat >conftest.$ac_ext <<_ACEOF
9855 /* confdefs.h. */
9856 _ACEOF
9857 cat confdefs.h >>conftest.$ac_ext
9858 cat >>conftest.$ac_ext <<_ACEOF
9859 /* end confdefs.h. */
9861 /* Override any gcc2 internal prototype to avoid an error. */
9862 #ifdef __cplusplus
9863 extern "C"
9864 #endif
9865 /* We use char because int might match the return type of a gcc2
9866 builtin and then its argument prototype would still apply. */
9867 char opendir ();
9869 main ()
9871 opendir ();
9873 return 0;
9875 _ACEOF
9876 rm -f conftest.$ac_objext conftest$ac_exeext
9877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9878 (eval $ac_link) 2>conftest.er1
9879 ac_status=$?
9880 grep -v '^ *+' conftest.er1 >conftest.err
9881 rm -f conftest.er1
9882 cat conftest.err >&5
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); } &&
9885 { ac_try='test -z "$ac_c_werror_flag"
9886 || test ! -s conftest.err'
9887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9888 (eval $ac_try) 2>&5
9889 ac_status=$?
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); }; } &&
9892 { ac_try='test -s conftest$ac_exeext'
9893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9894 (eval $ac_try) 2>&5
9895 ac_status=$?
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); }; }; then
9898 ac_cv_search_opendir="-l$ac_lib"
9899 break
9900 else
9901 echo "$as_me: failed program was:" >&5
9902 sed 's/^/| /' conftest.$ac_ext >&5
9905 rm -f conftest.err conftest.$ac_objext \
9906 conftest$ac_exeext conftest.$ac_ext
9907 done
9909 LIBS=$ac_func_search_save_LIBS
9911 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9912 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9913 if test "$ac_cv_search_opendir" != no; then
9914 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9918 else
9919 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9920 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9921 if test "${ac_cv_search_opendir+set}" = set; then
9922 echo $ECHO_N "(cached) $ECHO_C" >&6
9923 else
9924 ac_func_search_save_LIBS=$LIBS
9925 ac_cv_search_opendir=no
9926 cat >conftest.$ac_ext <<_ACEOF
9927 /* confdefs.h. */
9928 _ACEOF
9929 cat confdefs.h >>conftest.$ac_ext
9930 cat >>conftest.$ac_ext <<_ACEOF
9931 /* end confdefs.h. */
9933 /* Override any gcc2 internal prototype to avoid an error. */
9934 #ifdef __cplusplus
9935 extern "C"
9936 #endif
9937 /* We use char because int might match the return type of a gcc2
9938 builtin and then its argument prototype would still apply. */
9939 char opendir ();
9941 main ()
9943 opendir ();
9945 return 0;
9947 _ACEOF
9948 rm -f conftest.$ac_objext conftest$ac_exeext
9949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9950 (eval $ac_link) 2>conftest.er1
9951 ac_status=$?
9952 grep -v '^ *+' conftest.er1 >conftest.err
9953 rm -f conftest.er1
9954 cat conftest.err >&5
9955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956 (exit $ac_status); } &&
9957 { ac_try='test -z "$ac_c_werror_flag"
9958 || test ! -s conftest.err'
9959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9960 (eval $ac_try) 2>&5
9961 ac_status=$?
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); }; } &&
9964 { ac_try='test -s conftest$ac_exeext'
9965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9966 (eval $ac_try) 2>&5
9967 ac_status=$?
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); }; }; then
9970 ac_cv_search_opendir="none required"
9971 else
9972 echo "$as_me: failed program was:" >&5
9973 sed 's/^/| /' conftest.$ac_ext >&5
9976 rm -f conftest.err conftest.$ac_objext \
9977 conftest$ac_exeext conftest.$ac_ext
9978 if test "$ac_cv_search_opendir" = no; then
9979 for ac_lib in x; do
9980 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9981 cat >conftest.$ac_ext <<_ACEOF
9982 /* confdefs.h. */
9983 _ACEOF
9984 cat confdefs.h >>conftest.$ac_ext
9985 cat >>conftest.$ac_ext <<_ACEOF
9986 /* end confdefs.h. */
9988 /* Override any gcc2 internal prototype to avoid an error. */
9989 #ifdef __cplusplus
9990 extern "C"
9991 #endif
9992 /* We use char because int might match the return type of a gcc2
9993 builtin and then its argument prototype would still apply. */
9994 char opendir ();
9996 main ()
9998 opendir ();
10000 return 0;
10002 _ACEOF
10003 rm -f conftest.$ac_objext conftest$ac_exeext
10004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10005 (eval $ac_link) 2>conftest.er1
10006 ac_status=$?
10007 grep -v '^ *+' conftest.er1 >conftest.err
10008 rm -f conftest.er1
10009 cat conftest.err >&5
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); } &&
10012 { ac_try='test -z "$ac_c_werror_flag"
10013 || test ! -s conftest.err'
10014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10015 (eval $ac_try) 2>&5
10016 ac_status=$?
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018 (exit $ac_status); }; } &&
10019 { ac_try='test -s conftest$ac_exeext'
10020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10021 (eval $ac_try) 2>&5
10022 ac_status=$?
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); }; }; then
10025 ac_cv_search_opendir="-l$ac_lib"
10026 break
10027 else
10028 echo "$as_me: failed program was:" >&5
10029 sed 's/^/| /' conftest.$ac_ext >&5
10032 rm -f conftest.err conftest.$ac_objext \
10033 conftest$ac_exeext conftest.$ac_ext
10034 done
10036 LIBS=$ac_func_search_save_LIBS
10038 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10039 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10040 if test "$ac_cv_search_opendir" != no; then
10041 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10047 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10048 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10049 if test "${ac_cv_header_stdc+set}" = set; then
10050 echo $ECHO_N "(cached) $ECHO_C" >&6
10051 else
10052 cat >conftest.$ac_ext <<_ACEOF
10053 /* confdefs.h. */
10054 _ACEOF
10055 cat confdefs.h >>conftest.$ac_ext
10056 cat >>conftest.$ac_ext <<_ACEOF
10057 /* end confdefs.h. */
10058 #include <stdlib.h>
10059 #include <stdarg.h>
10060 #include <string.h>
10061 #include <float.h>
10064 main ()
10068 return 0;
10070 _ACEOF
10071 rm -f conftest.$ac_objext
10072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10073 (eval $ac_compile) 2>conftest.er1
10074 ac_status=$?
10075 grep -v '^ *+' conftest.er1 >conftest.err
10076 rm -f conftest.er1
10077 cat conftest.err >&5
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); } &&
10080 { ac_try='test -z "$ac_c_werror_flag"
10081 || test ! -s conftest.err'
10082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10083 (eval $ac_try) 2>&5
10084 ac_status=$?
10085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086 (exit $ac_status); }; } &&
10087 { ac_try='test -s conftest.$ac_objext'
10088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10089 (eval $ac_try) 2>&5
10090 ac_status=$?
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); }; }; then
10093 ac_cv_header_stdc=yes
10094 else
10095 echo "$as_me: failed program was:" >&5
10096 sed 's/^/| /' conftest.$ac_ext >&5
10098 ac_cv_header_stdc=no
10100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10102 if test $ac_cv_header_stdc = yes; then
10103 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10104 cat >conftest.$ac_ext <<_ACEOF
10105 /* confdefs.h. */
10106 _ACEOF
10107 cat confdefs.h >>conftest.$ac_ext
10108 cat >>conftest.$ac_ext <<_ACEOF
10109 /* end confdefs.h. */
10110 #include <string.h>
10112 _ACEOF
10113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10114 $EGREP "memchr" >/dev/null 2>&1; then
10116 else
10117 ac_cv_header_stdc=no
10119 rm -f conftest*
10123 if test $ac_cv_header_stdc = yes; then
10124 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10125 cat >conftest.$ac_ext <<_ACEOF
10126 /* confdefs.h. */
10127 _ACEOF
10128 cat confdefs.h >>conftest.$ac_ext
10129 cat >>conftest.$ac_ext <<_ACEOF
10130 /* end confdefs.h. */
10131 #include <stdlib.h>
10133 _ACEOF
10134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10135 $EGREP "free" >/dev/null 2>&1; then
10137 else
10138 ac_cv_header_stdc=no
10140 rm -f conftest*
10144 if test $ac_cv_header_stdc = yes; then
10145 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10146 if test "$cross_compiling" = yes; then
10148 else
10149 cat >conftest.$ac_ext <<_ACEOF
10150 /* confdefs.h. */
10151 _ACEOF
10152 cat confdefs.h >>conftest.$ac_ext
10153 cat >>conftest.$ac_ext <<_ACEOF
10154 /* end confdefs.h. */
10155 #include <ctype.h>
10156 #if ((' ' & 0x0FF) == 0x020)
10157 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10158 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10159 #else
10160 # define ISLOWER(c) \
10161 (('a' <= (c) && (c) <= 'i') \
10162 || ('j' <= (c) && (c) <= 'r') \
10163 || ('s' <= (c) && (c) <= 'z'))
10164 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10165 #endif
10167 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10169 main ()
10171 int i;
10172 for (i = 0; i < 256; i++)
10173 if (XOR (islower (i), ISLOWER (i))
10174 || toupper (i) != TOUPPER (i))
10175 exit(2);
10176 exit (0);
10178 _ACEOF
10179 rm -f conftest$ac_exeext
10180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10181 (eval $ac_link) 2>&5
10182 ac_status=$?
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10186 (eval $ac_try) 2>&5
10187 ac_status=$?
10188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189 (exit $ac_status); }; }; then
10191 else
10192 echo "$as_me: program exited with status $ac_status" >&5
10193 echo "$as_me: failed program was:" >&5
10194 sed 's/^/| /' conftest.$ac_ext >&5
10196 ( exit $ac_status )
10197 ac_cv_header_stdc=no
10199 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10203 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10204 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10205 if test $ac_cv_header_stdc = yes; then
10207 cat >>confdefs.h <<\_ACEOF
10208 #define STDC_HEADERS 1
10209 _ACEOF
10246 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 sys/mman.h unistd.h
10248 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10250 echo "$as_me:$LINENO: checking for $ac_header" >&5
10251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10253 echo $ECHO_N "(cached) $ECHO_C" >&6
10255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10256 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10257 else
10258 # Is the header compilable?
10259 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10260 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10261 cat >conftest.$ac_ext <<_ACEOF
10262 /* confdefs.h. */
10263 _ACEOF
10264 cat confdefs.h >>conftest.$ac_ext
10265 cat >>conftest.$ac_ext <<_ACEOF
10266 /* end confdefs.h. */
10267 $ac_includes_default
10268 #include <$ac_header>
10269 _ACEOF
10270 rm -f conftest.$ac_objext
10271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10272 (eval $ac_compile) 2>conftest.er1
10273 ac_status=$?
10274 grep -v '^ *+' conftest.er1 >conftest.err
10275 rm -f conftest.er1
10276 cat conftest.err >&5
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); } &&
10279 { ac_try='test -z "$ac_c_werror_flag"
10280 || test ! -s conftest.err'
10281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10282 (eval $ac_try) 2>&5
10283 ac_status=$?
10284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); }; } &&
10286 { ac_try='test -s conftest.$ac_objext'
10287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10288 (eval $ac_try) 2>&5
10289 ac_status=$?
10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291 (exit $ac_status); }; }; then
10292 ac_header_compiler=yes
10293 else
10294 echo "$as_me: failed program was:" >&5
10295 sed 's/^/| /' conftest.$ac_ext >&5
10297 ac_header_compiler=no
10299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10300 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10301 echo "${ECHO_T}$ac_header_compiler" >&6
10303 # Is the header present?
10304 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10305 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10306 cat >conftest.$ac_ext <<_ACEOF
10307 /* confdefs.h. */
10308 _ACEOF
10309 cat confdefs.h >>conftest.$ac_ext
10310 cat >>conftest.$ac_ext <<_ACEOF
10311 /* end confdefs.h. */
10312 #include <$ac_header>
10313 _ACEOF
10314 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10316 ac_status=$?
10317 grep -v '^ *+' conftest.er1 >conftest.err
10318 rm -f conftest.er1
10319 cat conftest.err >&5
10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 (exit $ac_status); } >/dev/null; then
10322 if test -s conftest.err; then
10323 ac_cpp_err=$ac_c_preproc_warn_flag
10324 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10325 else
10326 ac_cpp_err=
10328 else
10329 ac_cpp_err=yes
10331 if test -z "$ac_cpp_err"; then
10332 ac_header_preproc=yes
10333 else
10334 echo "$as_me: failed program was:" >&5
10335 sed 's/^/| /' conftest.$ac_ext >&5
10337 ac_header_preproc=no
10339 rm -f conftest.err conftest.$ac_ext
10340 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10341 echo "${ECHO_T}$ac_header_preproc" >&6
10343 # So? What about this header?
10344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10345 yes:no: )
10346 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10347 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10349 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10350 ac_header_preproc=yes
10352 no:yes:* )
10353 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10354 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10355 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10356 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10357 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10358 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10359 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10360 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10362 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10363 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10364 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10366 cat <<\_ASBOX
10367 ## ------------------------------ ##
10368 ## Report this to admin@amule.org ##
10369 ## ------------------------------ ##
10370 _ASBOX
10372 sed "s/^/$as_me: WARNING: /" >&2
10374 esac
10375 echo "$as_me:$LINENO: checking for $ac_header" >&5
10376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10378 echo $ECHO_N "(cached) $ECHO_C" >&6
10379 else
10380 eval "$as_ac_Header=\$ac_header_preproc"
10382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10383 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10387 cat >>confdefs.h <<_ACEOF
10388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10389 _ACEOF
10393 done
10395 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10396 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10397 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10398 echo $ECHO_N "(cached) $ECHO_C" >&6
10399 else
10400 cat >conftest.$ac_ext <<_ACEOF
10401 /* confdefs.h. */
10402 _ACEOF
10403 cat confdefs.h >>conftest.$ac_ext
10404 cat >>conftest.$ac_ext <<_ACEOF
10405 /* end confdefs.h. */
10406 #include <sys/types.h>
10407 #include <sys/wait.h>
10408 #ifndef WEXITSTATUS
10409 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10410 #endif
10411 #ifndef WIFEXITED
10412 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10413 #endif
10416 main ()
10418 int s;
10419 wait (&s);
10420 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10422 return 0;
10424 _ACEOF
10425 rm -f conftest.$ac_objext
10426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10427 (eval $ac_compile) 2>conftest.er1
10428 ac_status=$?
10429 grep -v '^ *+' conftest.er1 >conftest.err
10430 rm -f conftest.er1
10431 cat conftest.err >&5
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); } &&
10434 { ac_try='test -z "$ac_c_werror_flag"
10435 || test ! -s conftest.err'
10436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10437 (eval $ac_try) 2>&5
10438 ac_status=$?
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); }; } &&
10441 { ac_try='test -s conftest.$ac_objext'
10442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10443 (eval $ac_try) 2>&5
10444 ac_status=$?
10445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); }; }; then
10447 ac_cv_header_sys_wait_h=yes
10448 else
10449 echo "$as_me: failed program was:" >&5
10450 sed 's/^/| /' conftest.$ac_ext >&5
10452 ac_cv_header_sys_wait_h=no
10454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10456 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10457 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10458 if test $ac_cv_header_sys_wait_h = yes; then
10460 cat >>confdefs.h <<\_ACEOF
10461 #define HAVE_SYS_WAIT_H 1
10462 _ACEOF
10467 # Checks for typedefs, structures, and compiler characteristics.
10468 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
10469 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
10470 if test "${ac_cv_header_stdbool_h+set}" = set; then
10471 echo $ECHO_N "(cached) $ECHO_C" >&6
10472 else
10473 cat >conftest.$ac_ext <<_ACEOF
10474 /* confdefs.h. */
10475 _ACEOF
10476 cat confdefs.h >>conftest.$ac_ext
10477 cat >>conftest.$ac_ext <<_ACEOF
10478 /* end confdefs.h. */
10480 #include <stdbool.h>
10481 #ifndef bool
10482 # error bool is not defined
10483 #endif
10484 #ifndef false
10485 # error false is not defined
10486 #endif
10487 #if false
10488 # error false is not 0
10489 #endif
10490 #ifndef true
10491 # error true is not defined
10492 #endif
10493 #if true != 1
10494 # error true is not 1
10495 #endif
10496 #ifndef __bool_true_false_are_defined
10497 # error __bool_true_false_are_defined is not defined
10498 #endif
10500 struct s { _Bool s: 1; _Bool t; } s;
10502 char a[true == 1 ? 1 : -1];
10503 char b[false == 0 ? 1 : -1];
10504 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10505 char d[(bool) -0.5 == true ? 1 : -1];
10506 bool e = &s;
10507 char f[(_Bool) -0.0 == false ? 1 : -1];
10508 char g[true];
10509 char h[sizeof (_Bool)];
10510 char i[sizeof s.t];
10513 main ()
10515 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
10517 return 0;
10519 _ACEOF
10520 rm -f conftest.$ac_objext
10521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10522 (eval $ac_compile) 2>conftest.er1
10523 ac_status=$?
10524 grep -v '^ *+' conftest.er1 >conftest.err
10525 rm -f conftest.er1
10526 cat conftest.err >&5
10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 (exit $ac_status); } &&
10529 { ac_try='test -z "$ac_c_werror_flag"
10530 || test ! -s conftest.err'
10531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10532 (eval $ac_try) 2>&5
10533 ac_status=$?
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); }; } &&
10536 { ac_try='test -s conftest.$ac_objext'
10537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10538 (eval $ac_try) 2>&5
10539 ac_status=$?
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); }; }; then
10542 ac_cv_header_stdbool_h=yes
10543 else
10544 echo "$as_me: failed program was:" >&5
10545 sed 's/^/| /' conftest.$ac_ext >&5
10547 ac_cv_header_stdbool_h=no
10549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10551 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
10552 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
10553 echo "$as_me:$LINENO: checking for _Bool" >&5
10554 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
10555 if test "${ac_cv_type__Bool+set}" = set; then
10556 echo $ECHO_N "(cached) $ECHO_C" >&6
10557 else
10558 cat >conftest.$ac_ext <<_ACEOF
10559 /* confdefs.h. */
10560 _ACEOF
10561 cat confdefs.h >>conftest.$ac_ext
10562 cat >>conftest.$ac_ext <<_ACEOF
10563 /* end confdefs.h. */
10564 $ac_includes_default
10566 main ()
10568 if ((_Bool *) 0)
10569 return 0;
10570 if (sizeof (_Bool))
10571 return 0;
10573 return 0;
10575 _ACEOF
10576 rm -f conftest.$ac_objext
10577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10578 (eval $ac_compile) 2>conftest.er1
10579 ac_status=$?
10580 grep -v '^ *+' conftest.er1 >conftest.err
10581 rm -f conftest.er1
10582 cat conftest.err >&5
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); } &&
10585 { ac_try='test -z "$ac_c_werror_flag"
10586 || test ! -s conftest.err'
10587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10588 (eval $ac_try) 2>&5
10589 ac_status=$?
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); }; } &&
10592 { ac_try='test -s conftest.$ac_objext'
10593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10594 (eval $ac_try) 2>&5
10595 ac_status=$?
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); }; }; then
10598 ac_cv_type__Bool=yes
10599 else
10600 echo "$as_me: failed program was:" >&5
10601 sed 's/^/| /' conftest.$ac_ext >&5
10603 ac_cv_type__Bool=no
10605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10607 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10608 echo "${ECHO_T}$ac_cv_type__Bool" >&6
10609 if test $ac_cv_type__Bool = yes; then
10611 cat >>confdefs.h <<_ACEOF
10612 #define HAVE__BOOL 1
10613 _ACEOF
10618 if test $ac_cv_header_stdbool_h = yes; then
10620 cat >>confdefs.h <<\_ACEOF
10621 #define HAVE_STDBOOL_H 1
10622 _ACEOF
10626 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10627 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10628 if test "${ac_cv_c_const+set}" = set; then
10629 echo $ECHO_N "(cached) $ECHO_C" >&6
10630 else
10631 cat >conftest.$ac_ext <<_ACEOF
10632 /* confdefs.h. */
10633 _ACEOF
10634 cat confdefs.h >>conftest.$ac_ext
10635 cat >>conftest.$ac_ext <<_ACEOF
10636 /* end confdefs.h. */
10639 main ()
10641 /* FIXME: Include the comments suggested by Paul. */
10642 #ifndef __cplusplus
10643 /* Ultrix mips cc rejects this. */
10644 typedef int charset[2];
10645 const charset x;
10646 /* SunOS 4.1.1 cc rejects this. */
10647 char const *const *ccp;
10648 char **p;
10649 /* NEC SVR4.0.2 mips cc rejects this. */
10650 struct point {int x, y;};
10651 static struct point const zero = {0,0};
10652 /* AIX XL C 1.02.0.0 rejects this.
10653 It does not let you subtract one const X* pointer from another in
10654 an arm of an if-expression whose if-part is not a constant
10655 expression */
10656 const char *g = "string";
10657 ccp = &g + (g ? g-g : 0);
10658 /* HPUX 7.0 cc rejects these. */
10659 ++ccp;
10660 p = (char**) ccp;
10661 ccp = (char const *const *) p;
10662 { /* SCO 3.2v4 cc rejects this. */
10663 char *t;
10664 char const *s = 0 ? (char *) 0 : (char const *) 0;
10666 *t++ = 0;
10668 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10669 int x[] = {25, 17};
10670 const int *foo = &x[0];
10671 ++foo;
10673 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10674 typedef const int *iptr;
10675 iptr p = 0;
10676 ++p;
10678 { /* AIX XL C 1.02.0.0 rejects this saying
10679 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10680 struct s { int j; const int *ap[3]; };
10681 struct s *b; b->j = 5;
10683 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10684 const int foo = 10;
10686 #endif
10689 return 0;
10691 _ACEOF
10692 rm -f conftest.$ac_objext
10693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10694 (eval $ac_compile) 2>conftest.er1
10695 ac_status=$?
10696 grep -v '^ *+' conftest.er1 >conftest.err
10697 rm -f conftest.er1
10698 cat conftest.err >&5
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); } &&
10701 { ac_try='test -z "$ac_c_werror_flag"
10702 || test ! -s conftest.err'
10703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10704 (eval $ac_try) 2>&5
10705 ac_status=$?
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); }; } &&
10708 { ac_try='test -s conftest.$ac_objext'
10709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10710 (eval $ac_try) 2>&5
10711 ac_status=$?
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); }; }; then
10714 ac_cv_c_const=yes
10715 else
10716 echo "$as_me: failed program was:" >&5
10717 sed 's/^/| /' conftest.$ac_ext >&5
10719 ac_cv_c_const=no
10721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10723 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10724 echo "${ECHO_T}$ac_cv_c_const" >&6
10725 if test $ac_cv_c_const = no; then
10727 cat >>confdefs.h <<\_ACEOF
10728 #define const
10729 _ACEOF
10733 echo "$as_me:$LINENO: checking for inline" >&5
10734 echo $ECHO_N "checking for inline... $ECHO_C" >&6
10735 if test "${ac_cv_c_inline+set}" = set; then
10736 echo $ECHO_N "(cached) $ECHO_C" >&6
10737 else
10738 ac_cv_c_inline=no
10739 for ac_kw in inline __inline__ __inline; do
10740 cat >conftest.$ac_ext <<_ACEOF
10741 /* confdefs.h. */
10742 _ACEOF
10743 cat confdefs.h >>conftest.$ac_ext
10744 cat >>conftest.$ac_ext <<_ACEOF
10745 /* end confdefs.h. */
10746 #ifndef __cplusplus
10747 typedef int foo_t;
10748 static $ac_kw foo_t static_foo () {return 0; }
10749 $ac_kw foo_t foo () {return 0; }
10750 #endif
10752 _ACEOF
10753 rm -f conftest.$ac_objext
10754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10755 (eval $ac_compile) 2>conftest.er1
10756 ac_status=$?
10757 grep -v '^ *+' conftest.er1 >conftest.err
10758 rm -f conftest.er1
10759 cat conftest.err >&5
10760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); } &&
10762 { ac_try='test -z "$ac_c_werror_flag"
10763 || test ! -s conftest.err'
10764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10765 (eval $ac_try) 2>&5
10766 ac_status=$?
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); }; } &&
10769 { ac_try='test -s conftest.$ac_objext'
10770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10771 (eval $ac_try) 2>&5
10772 ac_status=$?
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); }; }; then
10775 ac_cv_c_inline=$ac_kw; break
10776 else
10777 echo "$as_me: failed program was:" >&5
10778 sed 's/^/| /' conftest.$ac_ext >&5
10781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10782 done
10785 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10786 echo "${ECHO_T}$ac_cv_c_inline" >&6
10789 case $ac_cv_c_inline in
10790 inline | yes) ;;
10792 case $ac_cv_c_inline in
10793 no) ac_val=;;
10794 *) ac_val=$ac_cv_c_inline;;
10795 esac
10796 cat >>confdefs.h <<_ACEOF
10797 #ifndef __cplusplus
10798 #define inline $ac_val
10799 #endif
10800 _ACEOF
10802 esac
10804 echo "$as_me:$LINENO: checking for mode_t" >&5
10805 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10806 if test "${ac_cv_type_mode_t+set}" = set; then
10807 echo $ECHO_N "(cached) $ECHO_C" >&6
10808 else
10809 cat >conftest.$ac_ext <<_ACEOF
10810 /* confdefs.h. */
10811 _ACEOF
10812 cat confdefs.h >>conftest.$ac_ext
10813 cat >>conftest.$ac_ext <<_ACEOF
10814 /* end confdefs.h. */
10815 $ac_includes_default
10817 main ()
10819 if ((mode_t *) 0)
10820 return 0;
10821 if (sizeof (mode_t))
10822 return 0;
10824 return 0;
10826 _ACEOF
10827 rm -f conftest.$ac_objext
10828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10829 (eval $ac_compile) 2>conftest.er1
10830 ac_status=$?
10831 grep -v '^ *+' conftest.er1 >conftest.err
10832 rm -f conftest.er1
10833 cat conftest.err >&5
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); } &&
10836 { ac_try='test -z "$ac_c_werror_flag"
10837 || test ! -s conftest.err'
10838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10839 (eval $ac_try) 2>&5
10840 ac_status=$?
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); }; } &&
10843 { ac_try='test -s conftest.$ac_objext'
10844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10845 (eval $ac_try) 2>&5
10846 ac_status=$?
10847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848 (exit $ac_status); }; }; then
10849 ac_cv_type_mode_t=yes
10850 else
10851 echo "$as_me: failed program was:" >&5
10852 sed 's/^/| /' conftest.$ac_ext >&5
10854 ac_cv_type_mode_t=no
10856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10858 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10859 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10860 if test $ac_cv_type_mode_t = yes; then
10862 else
10864 cat >>confdefs.h <<_ACEOF
10865 #define mode_t int
10866 _ACEOF
10870 echo "$as_me:$LINENO: checking for off_t" >&5
10871 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10872 if test "${ac_cv_type_off_t+set}" = set; then
10873 echo $ECHO_N "(cached) $ECHO_C" >&6
10874 else
10875 cat >conftest.$ac_ext <<_ACEOF
10876 /* confdefs.h. */
10877 _ACEOF
10878 cat confdefs.h >>conftest.$ac_ext
10879 cat >>conftest.$ac_ext <<_ACEOF
10880 /* end confdefs.h. */
10881 $ac_includes_default
10883 main ()
10885 if ((off_t *) 0)
10886 return 0;
10887 if (sizeof (off_t))
10888 return 0;
10890 return 0;
10892 _ACEOF
10893 rm -f conftest.$ac_objext
10894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10895 (eval $ac_compile) 2>conftest.er1
10896 ac_status=$?
10897 grep -v '^ *+' conftest.er1 >conftest.err
10898 rm -f conftest.er1
10899 cat conftest.err >&5
10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); } &&
10902 { ac_try='test -z "$ac_c_werror_flag"
10903 || test ! -s conftest.err'
10904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10905 (eval $ac_try) 2>&5
10906 ac_status=$?
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); }; } &&
10909 { ac_try='test -s conftest.$ac_objext'
10910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10911 (eval $ac_try) 2>&5
10912 ac_status=$?
10913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914 (exit $ac_status); }; }; then
10915 ac_cv_type_off_t=yes
10916 else
10917 echo "$as_me: failed program was:" >&5
10918 sed 's/^/| /' conftest.$ac_ext >&5
10920 ac_cv_type_off_t=no
10922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10924 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10925 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10926 if test $ac_cv_type_off_t = yes; then
10928 else
10930 cat >>confdefs.h <<_ACEOF
10931 #define off_t long
10932 _ACEOF
10936 echo "$as_me:$LINENO: checking for size_t" >&5
10937 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10938 if test "${ac_cv_type_size_t+set}" = set; then
10939 echo $ECHO_N "(cached) $ECHO_C" >&6
10940 else
10941 cat >conftest.$ac_ext <<_ACEOF
10942 /* confdefs.h. */
10943 _ACEOF
10944 cat confdefs.h >>conftest.$ac_ext
10945 cat >>conftest.$ac_ext <<_ACEOF
10946 /* end confdefs.h. */
10947 $ac_includes_default
10949 main ()
10951 if ((size_t *) 0)
10952 return 0;
10953 if (sizeof (size_t))
10954 return 0;
10956 return 0;
10958 _ACEOF
10959 rm -f conftest.$ac_objext
10960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10961 (eval $ac_compile) 2>conftest.er1
10962 ac_status=$?
10963 grep -v '^ *+' conftest.er1 >conftest.err
10964 rm -f conftest.er1
10965 cat conftest.err >&5
10966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); } &&
10968 { ac_try='test -z "$ac_c_werror_flag"
10969 || test ! -s conftest.err'
10970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10971 (eval $ac_try) 2>&5
10972 ac_status=$?
10973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974 (exit $ac_status); }; } &&
10975 { ac_try='test -s conftest.$ac_objext'
10976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10977 (eval $ac_try) 2>&5
10978 ac_status=$?
10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 (exit $ac_status); }; }; then
10981 ac_cv_type_size_t=yes
10982 else
10983 echo "$as_me: failed program was:" >&5
10984 sed 's/^/| /' conftest.$ac_ext >&5
10986 ac_cv_type_size_t=no
10988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10990 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10991 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10992 if test $ac_cv_type_size_t = yes; then
10994 else
10996 cat >>confdefs.h <<_ACEOF
10997 #define size_t unsigned
10998 _ACEOF
11002 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11003 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11004 if test "${ac_cv_header_time+set}" = set; then
11005 echo $ECHO_N "(cached) $ECHO_C" >&6
11006 else
11007 cat >conftest.$ac_ext <<_ACEOF
11008 /* confdefs.h. */
11009 _ACEOF
11010 cat confdefs.h >>conftest.$ac_ext
11011 cat >>conftest.$ac_ext <<_ACEOF
11012 /* end confdefs.h. */
11013 #include <sys/types.h>
11014 #include <sys/time.h>
11015 #include <time.h>
11018 main ()
11020 if ((struct tm *) 0)
11021 return 0;
11023 return 0;
11025 _ACEOF
11026 rm -f conftest.$ac_objext
11027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11028 (eval $ac_compile) 2>conftest.er1
11029 ac_status=$?
11030 grep -v '^ *+' conftest.er1 >conftest.err
11031 rm -f conftest.er1
11032 cat conftest.err >&5
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); } &&
11035 { ac_try='test -z "$ac_c_werror_flag"
11036 || test ! -s conftest.err'
11037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11038 (eval $ac_try) 2>&5
11039 ac_status=$?
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); }; } &&
11042 { ac_try='test -s conftest.$ac_objext'
11043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11044 (eval $ac_try) 2>&5
11045 ac_status=$?
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); }; }; then
11048 ac_cv_header_time=yes
11049 else
11050 echo "$as_me: failed program was:" >&5
11051 sed 's/^/| /' conftest.$ac_ext >&5
11053 ac_cv_header_time=no
11055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11057 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11058 echo "${ECHO_T}$ac_cv_header_time" >&6
11059 if test $ac_cv_header_time = yes; then
11061 cat >>confdefs.h <<\_ACEOF
11062 #define TIME_WITH_SYS_TIME 1
11063 _ACEOF
11067 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11068 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11069 if test "${ac_cv_struct_tm+set}" = set; then
11070 echo $ECHO_N "(cached) $ECHO_C" >&6
11071 else
11072 cat >conftest.$ac_ext <<_ACEOF
11073 /* confdefs.h. */
11074 _ACEOF
11075 cat confdefs.h >>conftest.$ac_ext
11076 cat >>conftest.$ac_ext <<_ACEOF
11077 /* end confdefs.h. */
11078 #include <sys/types.h>
11079 #include <time.h>
11082 main ()
11084 struct tm *tp; tp->tm_sec;
11086 return 0;
11088 _ACEOF
11089 rm -f conftest.$ac_objext
11090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11091 (eval $ac_compile) 2>conftest.er1
11092 ac_status=$?
11093 grep -v '^ *+' conftest.er1 >conftest.err
11094 rm -f conftest.er1
11095 cat conftest.err >&5
11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); } &&
11098 { ac_try='test -z "$ac_c_werror_flag"
11099 || test ! -s conftest.err'
11100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11101 (eval $ac_try) 2>&5
11102 ac_status=$?
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); }; } &&
11105 { ac_try='test -s conftest.$ac_objext'
11106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11107 (eval $ac_try) 2>&5
11108 ac_status=$?
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); }; }; then
11111 ac_cv_struct_tm=time.h
11112 else
11113 echo "$as_me: failed program was:" >&5
11114 sed 's/^/| /' conftest.$ac_ext >&5
11116 ac_cv_struct_tm=sys/time.h
11118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11120 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11121 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11122 if test $ac_cv_struct_tm = sys/time.h; then
11124 cat >>confdefs.h <<\_ACEOF
11125 #define TM_IN_SYS_TIME 1
11126 _ACEOF
11130 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11131 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11132 if test "${ac_cv_type_uid_t+set}" = set; then
11133 echo $ECHO_N "(cached) $ECHO_C" >&6
11134 else
11135 cat >conftest.$ac_ext <<_ACEOF
11136 /* confdefs.h. */
11137 _ACEOF
11138 cat confdefs.h >>conftest.$ac_ext
11139 cat >>conftest.$ac_ext <<_ACEOF
11140 /* end confdefs.h. */
11141 #include <sys/types.h>
11143 _ACEOF
11144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11145 $EGREP "uid_t" >/dev/null 2>&1; then
11146 ac_cv_type_uid_t=yes
11147 else
11148 ac_cv_type_uid_t=no
11150 rm -f conftest*
11153 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11154 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11155 if test $ac_cv_type_uid_t = no; then
11157 cat >>confdefs.h <<\_ACEOF
11158 #define uid_t int
11159 _ACEOF
11162 cat >>confdefs.h <<\_ACEOF
11163 #define gid_t int
11164 _ACEOF
11168 echo "$as_me:$LINENO: checking for working volatile" >&5
11169 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
11170 if test "${ac_cv_c_volatile+set}" = set; then
11171 echo $ECHO_N "(cached) $ECHO_C" >&6
11172 else
11173 cat >conftest.$ac_ext <<_ACEOF
11174 /* confdefs.h. */
11175 _ACEOF
11176 cat confdefs.h >>conftest.$ac_ext
11177 cat >>conftest.$ac_ext <<_ACEOF
11178 /* end confdefs.h. */
11181 main ()
11184 volatile int x;
11185 int * volatile y;
11187 return 0;
11189 _ACEOF
11190 rm -f conftest.$ac_objext
11191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11192 (eval $ac_compile) 2>conftest.er1
11193 ac_status=$?
11194 grep -v '^ *+' conftest.er1 >conftest.err
11195 rm -f conftest.er1
11196 cat conftest.err >&5
11197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198 (exit $ac_status); } &&
11199 { ac_try='test -z "$ac_c_werror_flag"
11200 || test ! -s conftest.err'
11201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11202 (eval $ac_try) 2>&5
11203 ac_status=$?
11204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205 (exit $ac_status); }; } &&
11206 { ac_try='test -s conftest.$ac_objext'
11207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11208 (eval $ac_try) 2>&5
11209 ac_status=$?
11210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11211 (exit $ac_status); }; }; then
11212 ac_cv_c_volatile=yes
11213 else
11214 echo "$as_me: failed program was:" >&5
11215 sed 's/^/| /' conftest.$ac_ext >&5
11217 ac_cv_c_volatile=no
11219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11221 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11222 echo "${ECHO_T}$ac_cv_c_volatile" >&6
11223 if test $ac_cv_c_volatile = no; then
11225 cat >>confdefs.h <<\_ACEOF
11226 #define volatile
11227 _ACEOF
11231 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11232 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
11233 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11234 echo $ECHO_N "(cached) $ECHO_C" >&6
11235 else
11236 cat >conftest.$ac_ext <<_ACEOF
11237 /* confdefs.h. */
11238 _ACEOF
11239 cat confdefs.h >>conftest.$ac_ext
11240 cat >>conftest.$ac_ext <<_ACEOF
11241 /* end confdefs.h. */
11242 $ac_includes_default
11244 main ()
11246 if ((ptrdiff_t *) 0)
11247 return 0;
11248 if (sizeof (ptrdiff_t))
11249 return 0;
11251 return 0;
11253 _ACEOF
11254 rm -f conftest.$ac_objext
11255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11256 (eval $ac_compile) 2>conftest.er1
11257 ac_status=$?
11258 grep -v '^ *+' conftest.er1 >conftest.err
11259 rm -f conftest.er1
11260 cat conftest.err >&5
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); } &&
11263 { ac_try='test -z "$ac_c_werror_flag"
11264 || test ! -s conftest.err'
11265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11266 (eval $ac_try) 2>&5
11267 ac_status=$?
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); }; } &&
11270 { ac_try='test -s conftest.$ac_objext'
11271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11272 (eval $ac_try) 2>&5
11273 ac_status=$?
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); }; }; then
11276 ac_cv_type_ptrdiff_t=yes
11277 else
11278 echo "$as_me: failed program was:" >&5
11279 sed 's/^/| /' conftest.$ac_ext >&5
11281 ac_cv_type_ptrdiff_t=no
11283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11285 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11286 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
11287 if test $ac_cv_type_ptrdiff_t = yes; then
11289 cat >>confdefs.h <<_ACEOF
11290 #define HAVE_PTRDIFF_T 1
11291 _ACEOF
11297 # Checks for library functions.
11298 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
11299 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
11300 if test "${ac_cv_func_closedir_void+set}" = set; then
11301 echo $ECHO_N "(cached) $ECHO_C" >&6
11302 else
11303 if test "$cross_compiling" = yes; then
11304 ac_cv_func_closedir_void=yes
11305 else
11306 cat >conftest.$ac_ext <<_ACEOF
11307 /* confdefs.h. */
11308 _ACEOF
11309 cat confdefs.h >>conftest.$ac_ext
11310 cat >>conftest.$ac_ext <<_ACEOF
11311 /* end confdefs.h. */
11312 $ac_includes_default
11313 #include <$ac_header_dirent>
11314 #ifndef __cplusplus
11315 int closedir ();
11316 #endif
11319 main ()
11321 exit (closedir (opendir (".")) != 0);
11323 return 0;
11325 _ACEOF
11326 rm -f conftest$ac_exeext
11327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11328 (eval $ac_link) 2>&5
11329 ac_status=$?
11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11333 (eval $ac_try) 2>&5
11334 ac_status=$?
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); }; }; then
11337 ac_cv_func_closedir_void=no
11338 else
11339 echo "$as_me: program exited with status $ac_status" >&5
11340 echo "$as_me: failed program was:" >&5
11341 sed 's/^/| /' conftest.$ac_ext >&5
11343 ( exit $ac_status )
11344 ac_cv_func_closedir_void=yes
11346 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11349 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
11350 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
11351 if test $ac_cv_func_closedir_void = yes; then
11353 cat >>confdefs.h <<\_ACEOF
11354 #define CLOSEDIR_VOID 1
11355 _ACEOF
11359 if test $ac_cv_c_compiler_gnu = yes; then
11360 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11361 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11362 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11363 echo $ECHO_N "(cached) $ECHO_C" >&6
11364 else
11365 ac_pattern="Autoconf.*'x'"
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 <sgtty.h>
11373 Autoconf TIOCGETP
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
11378 else
11379 ac_cv_prog_gcc_traditional=no
11381 rm -f conftest*
11384 if test $ac_cv_prog_gcc_traditional = no; then
11385 cat >conftest.$ac_ext <<_ACEOF
11386 /* confdefs.h. */
11387 _ACEOF
11388 cat confdefs.h >>conftest.$ac_ext
11389 cat >>conftest.$ac_ext <<_ACEOF
11390 /* end confdefs.h. */
11391 #include <termio.h>
11392 Autoconf TCGETA
11393 _ACEOF
11394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11395 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11396 ac_cv_prog_gcc_traditional=yes
11398 rm -f conftest*
11402 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11403 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11404 if test $ac_cv_prog_gcc_traditional = yes; then
11405 CC="$CC -traditional"
11409 echo "$as_me:$LINENO: checking for pid_t" >&5
11410 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11411 if test "${ac_cv_type_pid_t+set}" = set; then
11412 echo $ECHO_N "(cached) $ECHO_C" >&6
11413 else
11414 cat >conftest.$ac_ext <<_ACEOF
11415 /* confdefs.h. */
11416 _ACEOF
11417 cat confdefs.h >>conftest.$ac_ext
11418 cat >>conftest.$ac_ext <<_ACEOF
11419 /* end confdefs.h. */
11420 $ac_includes_default
11422 main ()
11424 if ((pid_t *) 0)
11425 return 0;
11426 if (sizeof (pid_t))
11427 return 0;
11429 return 0;
11431 _ACEOF
11432 rm -f conftest.$ac_objext
11433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11434 (eval $ac_compile) 2>conftest.er1
11435 ac_status=$?
11436 grep -v '^ *+' conftest.er1 >conftest.err
11437 rm -f conftest.er1
11438 cat conftest.err >&5
11439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440 (exit $ac_status); } &&
11441 { ac_try='test -z "$ac_c_werror_flag"
11442 || test ! -s conftest.err'
11443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11444 (eval $ac_try) 2>&5
11445 ac_status=$?
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); }; } &&
11448 { ac_try='test -s conftest.$ac_objext'
11449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11450 (eval $ac_try) 2>&5
11451 ac_status=$?
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); }; }; then
11454 ac_cv_type_pid_t=yes
11455 else
11456 echo "$as_me: failed program was:" >&5
11457 sed 's/^/| /' conftest.$ac_ext >&5
11459 ac_cv_type_pid_t=no
11461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11463 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11464 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11465 if test $ac_cv_type_pid_t = yes; then
11467 else
11469 cat >>confdefs.h <<_ACEOF
11470 #define pid_t int
11471 _ACEOF
11477 for ac_header in unistd.h vfork.h
11479 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11481 echo "$as_me:$LINENO: checking for $ac_header" >&5
11482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11484 echo $ECHO_N "(cached) $ECHO_C" >&6
11486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11488 else
11489 # Is the header compilable?
11490 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11491 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11492 cat >conftest.$ac_ext <<_ACEOF
11493 /* confdefs.h. */
11494 _ACEOF
11495 cat confdefs.h >>conftest.$ac_ext
11496 cat >>conftest.$ac_ext <<_ACEOF
11497 /* end confdefs.h. */
11498 $ac_includes_default
11499 #include <$ac_header>
11500 _ACEOF
11501 rm -f conftest.$ac_objext
11502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11503 (eval $ac_compile) 2>conftest.er1
11504 ac_status=$?
11505 grep -v '^ *+' conftest.er1 >conftest.err
11506 rm -f conftest.er1
11507 cat conftest.err >&5
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); } &&
11510 { ac_try='test -z "$ac_c_werror_flag"
11511 || test ! -s conftest.err'
11512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11513 (eval $ac_try) 2>&5
11514 ac_status=$?
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); }; } &&
11517 { ac_try='test -s conftest.$ac_objext'
11518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11519 (eval $ac_try) 2>&5
11520 ac_status=$?
11521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522 (exit $ac_status); }; }; then
11523 ac_header_compiler=yes
11524 else
11525 echo "$as_me: failed program was:" >&5
11526 sed 's/^/| /' conftest.$ac_ext >&5
11528 ac_header_compiler=no
11530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11531 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11532 echo "${ECHO_T}$ac_header_compiler" >&6
11534 # Is the header present?
11535 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11536 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11537 cat >conftest.$ac_ext <<_ACEOF
11538 /* confdefs.h. */
11539 _ACEOF
11540 cat confdefs.h >>conftest.$ac_ext
11541 cat >>conftest.$ac_ext <<_ACEOF
11542 /* end confdefs.h. */
11543 #include <$ac_header>
11544 _ACEOF
11545 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11546 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11547 ac_status=$?
11548 grep -v '^ *+' conftest.er1 >conftest.err
11549 rm -f conftest.er1
11550 cat conftest.err >&5
11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); } >/dev/null; then
11553 if test -s conftest.err; then
11554 ac_cpp_err=$ac_c_preproc_warn_flag
11555 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11556 else
11557 ac_cpp_err=
11559 else
11560 ac_cpp_err=yes
11562 if test -z "$ac_cpp_err"; then
11563 ac_header_preproc=yes
11564 else
11565 echo "$as_me: failed program was:" >&5
11566 sed 's/^/| /' conftest.$ac_ext >&5
11568 ac_header_preproc=no
11570 rm -f conftest.err conftest.$ac_ext
11571 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11572 echo "${ECHO_T}$ac_header_preproc" >&6
11574 # So? What about this header?
11575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11576 yes:no: )
11577 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11578 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11580 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11581 ac_header_preproc=yes
11583 no:yes:* )
11584 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11585 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11586 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11587 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11588 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11589 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11590 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11591 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11593 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11594 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11595 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11597 cat <<\_ASBOX
11598 ## ------------------------------ ##
11599 ## Report this to admin@amule.org ##
11600 ## ------------------------------ ##
11601 _ASBOX
11603 sed "s/^/$as_me: WARNING: /" >&2
11605 esac
11606 echo "$as_me:$LINENO: checking for $ac_header" >&5
11607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11608 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11609 echo $ECHO_N "(cached) $ECHO_C" >&6
11610 else
11611 eval "$as_ac_Header=\$ac_header_preproc"
11613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11614 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11617 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11618 cat >>confdefs.h <<_ACEOF
11619 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11620 _ACEOF
11624 done
11628 for ac_func in fork vfork
11630 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11631 echo "$as_me:$LINENO: checking for $ac_func" >&5
11632 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11633 if eval "test \"\${$as_ac_var+set}\" = set"; then
11634 echo $ECHO_N "(cached) $ECHO_C" >&6
11635 else
11636 cat >conftest.$ac_ext <<_ACEOF
11637 /* confdefs.h. */
11638 _ACEOF
11639 cat confdefs.h >>conftest.$ac_ext
11640 cat >>conftest.$ac_ext <<_ACEOF
11641 /* end confdefs.h. */
11642 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11644 #define $ac_func innocuous_$ac_func
11646 /* System header to define __stub macros and hopefully few prototypes,
11647 which can conflict with char $ac_func (); below.
11648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11649 <limits.h> exists even on freestanding compilers. */
11651 #ifdef __STDC__
11652 # include <limits.h>
11653 #else
11654 # include <assert.h>
11655 #endif
11657 #undef $ac_func
11659 /* Override any gcc2 internal prototype to avoid an error. */
11660 #ifdef __cplusplus
11661 extern "C"
11663 #endif
11664 /* We use char because int might match the return type of a gcc2
11665 builtin and then its argument prototype would still apply. */
11666 char $ac_func ();
11667 /* The GNU C library defines this for functions which it implements
11668 to always fail with ENOSYS. Some functions are actually named
11669 something starting with __ and the normal name is an alias. */
11670 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11671 choke me
11672 #else
11673 char (*f) () = $ac_func;
11674 #endif
11675 #ifdef __cplusplus
11677 #endif
11680 main ()
11682 return f != $ac_func;
11684 return 0;
11686 _ACEOF
11687 rm -f conftest.$ac_objext conftest$ac_exeext
11688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11689 (eval $ac_link) 2>conftest.er1
11690 ac_status=$?
11691 grep -v '^ *+' conftest.er1 >conftest.err
11692 rm -f conftest.er1
11693 cat conftest.err >&5
11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 (exit $ac_status); } &&
11696 { ac_try='test -z "$ac_c_werror_flag"
11697 || test ! -s conftest.err'
11698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11699 (eval $ac_try) 2>&5
11700 ac_status=$?
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); }; } &&
11703 { ac_try='test -s conftest$ac_exeext'
11704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11705 (eval $ac_try) 2>&5
11706 ac_status=$?
11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); }; }; then
11709 eval "$as_ac_var=yes"
11710 else
11711 echo "$as_me: failed program was:" >&5
11712 sed 's/^/| /' conftest.$ac_ext >&5
11714 eval "$as_ac_var=no"
11716 rm -f conftest.err conftest.$ac_objext \
11717 conftest$ac_exeext conftest.$ac_ext
11719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11720 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11721 if test `eval echo '${'$as_ac_var'}'` = yes; then
11722 cat >>confdefs.h <<_ACEOF
11723 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11724 _ACEOF
11727 done
11729 if test "x$ac_cv_func_fork" = xyes; then
11730 echo "$as_me:$LINENO: checking for working fork" >&5
11731 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
11732 if test "${ac_cv_func_fork_works+set}" = set; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
11734 else
11735 if test "$cross_compiling" = yes; then
11736 ac_cv_func_fork_works=cross
11737 else
11738 cat >conftest.$ac_ext <<_ACEOF
11739 /* By Ruediger Kuhlmann. */
11740 #include <sys/types.h>
11741 #if HAVE_UNISTD_H
11742 # include <unistd.h>
11743 #endif
11744 /* Some systems only have a dummy stub for fork() */
11745 int main ()
11747 if (fork() < 0)
11748 exit (1);
11749 exit (0);
11751 _ACEOF
11752 rm -f conftest$ac_exeext
11753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11754 (eval $ac_link) 2>&5
11755 ac_status=$?
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11759 (eval $ac_try) 2>&5
11760 ac_status=$?
11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762 (exit $ac_status); }; }; then
11763 ac_cv_func_fork_works=yes
11764 else
11765 echo "$as_me: program exited with status $ac_status" >&5
11766 echo "$as_me: failed program was:" >&5
11767 sed 's/^/| /' conftest.$ac_ext >&5
11769 ( exit $ac_status )
11770 ac_cv_func_fork_works=no
11772 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11775 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11776 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11778 else
11779 ac_cv_func_fork_works=$ac_cv_func_fork
11781 if test "x$ac_cv_func_fork_works" = xcross; then
11782 case $host in
11783 *-*-amigaos* | *-*-msdosdjgpp*)
11784 # Override, as these systems have only a dummy fork() stub
11785 ac_cv_func_fork_works=no
11788 ac_cv_func_fork_works=yes
11790 esac
11791 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11792 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11794 ac_cv_func_vfork_works=$ac_cv_func_vfork
11795 if test "x$ac_cv_func_vfork" = xyes; then
11796 echo "$as_me:$LINENO: checking for working vfork" >&5
11797 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11798 if test "${ac_cv_func_vfork_works+set}" = set; then
11799 echo $ECHO_N "(cached) $ECHO_C" >&6
11800 else
11801 if test "$cross_compiling" = yes; then
11802 ac_cv_func_vfork_works=cross
11803 else
11804 cat >conftest.$ac_ext <<_ACEOF
11805 /* confdefs.h. */
11806 _ACEOF
11807 cat confdefs.h >>conftest.$ac_ext
11808 cat >>conftest.$ac_ext <<_ACEOF
11809 /* end confdefs.h. */
11810 /* Thanks to Paul Eggert for this test. */
11811 #include <stdio.h>
11812 #include <stdlib.h>
11813 #include <sys/types.h>
11814 #include <sys/stat.h>
11815 #include <sys/wait.h>
11816 #if HAVE_UNISTD_H
11817 # include <unistd.h>
11818 #endif
11819 #if HAVE_VFORK_H
11820 # include <vfork.h>
11821 #endif
11822 /* On some sparc systems, changes by the child to local and incoming
11823 argument registers are propagated back to the parent. The compiler
11824 is told about this with #include <vfork.h>, but some compilers
11825 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11826 static variable whose address is put into a register that is
11827 clobbered by the vfork. */
11828 static void
11829 #ifdef __cplusplus
11830 sparc_address_test (int arg)
11831 # else
11832 sparc_address_test (arg) int arg;
11833 #endif
11835 static pid_t child;
11836 if (!child) {
11837 child = vfork ();
11838 if (child < 0) {
11839 perror ("vfork");
11840 _exit(2);
11842 if (!child) {
11843 arg = getpid();
11844 write(-1, "", 0);
11845 _exit (arg);
11851 main ()
11853 pid_t parent = getpid ();
11854 pid_t child;
11856 sparc_address_test (0);
11858 child = vfork ();
11860 if (child == 0) {
11861 /* Here is another test for sparc vfork register problems. This
11862 test uses lots of local variables, at least as many local
11863 variables as main has allocated so far including compiler
11864 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11865 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11866 reuse the register of parent for one of the local variables,
11867 since it will think that parent can't possibly be used any more
11868 in this routine. Assigning to the local variable will thus
11869 munge parent in the parent process. */
11870 pid_t
11871 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11872 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11873 /* Convince the compiler that p..p7 are live; otherwise, it might
11874 use the same hardware register for all 8 local variables. */
11875 if (p != p1 || p != p2 || p != p3 || p != p4
11876 || p != p5 || p != p6 || p != p7)
11877 _exit(1);
11879 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11880 from child file descriptors. If the child closes a descriptor
11881 before it execs or exits, this munges the parent's descriptor
11882 as well. Test for this by closing stdout in the child. */
11883 _exit(close(fileno(stdout)) != 0);
11884 } else {
11885 int status;
11886 struct stat st;
11888 while (wait(&status) != child)
11890 exit(
11891 /* Was there some problem with vforking? */
11892 child < 0
11894 /* Did the child fail? (This shouldn't happen.) */
11895 || status
11897 /* Did the vfork/compiler bug occur? */
11898 || parent != getpid()
11900 /* Did the file descriptor bug occur? */
11901 || fstat(fileno(stdout), &st) != 0
11905 _ACEOF
11906 rm -f conftest$ac_exeext
11907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11908 (eval $ac_link) 2>&5
11909 ac_status=$?
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11913 (eval $ac_try) 2>&5
11914 ac_status=$?
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); }; }; then
11917 ac_cv_func_vfork_works=yes
11918 else
11919 echo "$as_me: program exited with status $ac_status" >&5
11920 echo "$as_me: failed program was:" >&5
11921 sed 's/^/| /' conftest.$ac_ext >&5
11923 ( exit $ac_status )
11924 ac_cv_func_vfork_works=no
11926 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11929 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11930 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11933 if test "x$ac_cv_func_fork_works" = xcross; then
11934 ac_cv_func_vfork_works=$ac_cv_func_vfork
11935 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11936 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11939 if test "x$ac_cv_func_vfork_works" = xyes; then
11941 cat >>confdefs.h <<\_ACEOF
11942 #define HAVE_WORKING_VFORK 1
11943 _ACEOF
11945 else
11947 cat >>confdefs.h <<\_ACEOF
11948 #define vfork fork
11949 _ACEOF
11952 if test "x$ac_cv_func_fork_works" = xyes; then
11954 cat >>confdefs.h <<\_ACEOF
11955 #define HAVE_WORKING_FORK 1
11956 _ACEOF
11960 if test x$SYS != xwin32; then
11962 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
11963 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
11964 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
11965 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
11966 echo $ECHO_N "(cached) $ECHO_C" >&6
11967 else
11968 ac_check_lib_save_LIBS=$LIBS
11969 LIBS="-lsun $LIBS"
11970 cat >conftest.$ac_ext <<_ACEOF
11971 /* confdefs.h. */
11972 _ACEOF
11973 cat confdefs.h >>conftest.$ac_ext
11974 cat >>conftest.$ac_ext <<_ACEOF
11975 /* end confdefs.h. */
11977 /* Override any gcc2 internal prototype to avoid an error. */
11978 #ifdef __cplusplus
11979 extern "C"
11980 #endif
11981 /* We use char because int might match the return type of a gcc2
11982 builtin and then its argument prototype would still apply. */
11983 char getmntent ();
11985 main ()
11987 getmntent ();
11989 return 0;
11991 _ACEOF
11992 rm -f conftest.$ac_objext conftest$ac_exeext
11993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11994 (eval $ac_link) 2>conftest.er1
11995 ac_status=$?
11996 grep -v '^ *+' conftest.er1 >conftest.err
11997 rm -f conftest.er1
11998 cat conftest.err >&5
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); } &&
12001 { ac_try='test -z "$ac_c_werror_flag"
12002 || test ! -s conftest.err'
12003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004 (eval $ac_try) 2>&5
12005 ac_status=$?
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); }; } &&
12008 { ac_try='test -s conftest$ac_exeext'
12009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12010 (eval $ac_try) 2>&5
12011 ac_status=$?
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; }; then
12014 ac_cv_lib_sun_getmntent=yes
12015 else
12016 echo "$as_me: failed program was:" >&5
12017 sed 's/^/| /' conftest.$ac_ext >&5
12019 ac_cv_lib_sun_getmntent=no
12021 rm -f conftest.err conftest.$ac_objext \
12022 conftest$ac_exeext conftest.$ac_ext
12023 LIBS=$ac_check_lib_save_LIBS
12025 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
12026 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
12027 if test $ac_cv_lib_sun_getmntent = yes; then
12028 LIBS="-lsun $LIBS"
12029 else
12030 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
12031 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
12032 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
12033 echo $ECHO_N "(cached) $ECHO_C" >&6
12034 else
12035 ac_check_lib_save_LIBS=$LIBS
12036 LIBS="-lseq $LIBS"
12037 cat >conftest.$ac_ext <<_ACEOF
12038 /* confdefs.h. */
12039 _ACEOF
12040 cat confdefs.h >>conftest.$ac_ext
12041 cat >>conftest.$ac_ext <<_ACEOF
12042 /* end confdefs.h. */
12044 /* Override any gcc2 internal prototype to avoid an error. */
12045 #ifdef __cplusplus
12046 extern "C"
12047 #endif
12048 /* We use char because int might match the return type of a gcc2
12049 builtin and then its argument prototype would still apply. */
12050 char getmntent ();
12052 main ()
12054 getmntent ();
12056 return 0;
12058 _ACEOF
12059 rm -f conftest.$ac_objext conftest$ac_exeext
12060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12061 (eval $ac_link) 2>conftest.er1
12062 ac_status=$?
12063 grep -v '^ *+' conftest.er1 >conftest.err
12064 rm -f conftest.er1
12065 cat conftest.err >&5
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); } &&
12068 { ac_try='test -z "$ac_c_werror_flag"
12069 || test ! -s conftest.err'
12070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12071 (eval $ac_try) 2>&5
12072 ac_status=$?
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); }; } &&
12075 { ac_try='test -s conftest$ac_exeext'
12076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12077 (eval $ac_try) 2>&5
12078 ac_status=$?
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); }; }; then
12081 ac_cv_lib_seq_getmntent=yes
12082 else
12083 echo "$as_me: failed program was:" >&5
12084 sed 's/^/| /' conftest.$ac_ext >&5
12086 ac_cv_lib_seq_getmntent=no
12088 rm -f conftest.err conftest.$ac_objext \
12089 conftest$ac_exeext conftest.$ac_ext
12090 LIBS=$ac_check_lib_save_LIBS
12092 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
12093 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
12094 if test $ac_cv_lib_seq_getmntent = yes; then
12095 LIBS="-lseq $LIBS"
12096 else
12097 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
12098 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
12099 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
12100 echo $ECHO_N "(cached) $ECHO_C" >&6
12101 else
12102 ac_check_lib_save_LIBS=$LIBS
12103 LIBS="-lgen $LIBS"
12104 cat >conftest.$ac_ext <<_ACEOF
12105 /* confdefs.h. */
12106 _ACEOF
12107 cat confdefs.h >>conftest.$ac_ext
12108 cat >>conftest.$ac_ext <<_ACEOF
12109 /* end confdefs.h. */
12111 /* Override any gcc2 internal prototype to avoid an error. */
12112 #ifdef __cplusplus
12113 extern "C"
12114 #endif
12115 /* We use char because int might match the return type of a gcc2
12116 builtin and then its argument prototype would still apply. */
12117 char getmntent ();
12119 main ()
12121 getmntent ();
12123 return 0;
12125 _ACEOF
12126 rm -f conftest.$ac_objext conftest$ac_exeext
12127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12128 (eval $ac_link) 2>conftest.er1
12129 ac_status=$?
12130 grep -v '^ *+' conftest.er1 >conftest.err
12131 rm -f conftest.er1
12132 cat conftest.err >&5
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); } &&
12135 { ac_try='test -z "$ac_c_werror_flag"
12136 || test ! -s conftest.err'
12137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12138 (eval $ac_try) 2>&5
12139 ac_status=$?
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); }; } &&
12142 { ac_try='test -s conftest$ac_exeext'
12143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12144 (eval $ac_try) 2>&5
12145 ac_status=$?
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); }; }; then
12148 ac_cv_lib_gen_getmntent=yes
12149 else
12150 echo "$as_me: failed program was:" >&5
12151 sed 's/^/| /' conftest.$ac_ext >&5
12153 ac_cv_lib_gen_getmntent=no
12155 rm -f conftest.err conftest.$ac_objext \
12156 conftest$ac_exeext conftest.$ac_ext
12157 LIBS=$ac_check_lib_save_LIBS
12159 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
12160 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
12161 if test $ac_cv_lib_gen_getmntent = yes; then
12162 LIBS="-lgen $LIBS"
12170 for ac_func in getmntent
12172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12173 echo "$as_me:$LINENO: checking for $ac_func" >&5
12174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12175 if eval "test \"\${$as_ac_var+set}\" = set"; then
12176 echo $ECHO_N "(cached) $ECHO_C" >&6
12177 else
12178 cat >conftest.$ac_ext <<_ACEOF
12179 /* confdefs.h. */
12180 _ACEOF
12181 cat confdefs.h >>conftest.$ac_ext
12182 cat >>conftest.$ac_ext <<_ACEOF
12183 /* end confdefs.h. */
12184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12186 #define $ac_func innocuous_$ac_func
12188 /* System header to define __stub macros and hopefully few prototypes,
12189 which can conflict with char $ac_func (); below.
12190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12191 <limits.h> exists even on freestanding compilers. */
12193 #ifdef __STDC__
12194 # include <limits.h>
12195 #else
12196 # include <assert.h>
12197 #endif
12199 #undef $ac_func
12201 /* Override any gcc2 internal prototype to avoid an error. */
12202 #ifdef __cplusplus
12203 extern "C"
12205 #endif
12206 /* We use char because int might match the return type of a gcc2
12207 builtin and then its argument prototype would still apply. */
12208 char $ac_func ();
12209 /* The GNU C library defines this for functions which it implements
12210 to always fail with ENOSYS. Some functions are actually named
12211 something starting with __ and the normal name is an alias. */
12212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12213 choke me
12214 #else
12215 char (*f) () = $ac_func;
12216 #endif
12217 #ifdef __cplusplus
12219 #endif
12222 main ()
12224 return f != $ac_func;
12226 return 0;
12228 _ACEOF
12229 rm -f conftest.$ac_objext conftest$ac_exeext
12230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12231 (eval $ac_link) 2>conftest.er1
12232 ac_status=$?
12233 grep -v '^ *+' conftest.er1 >conftest.err
12234 rm -f conftest.er1
12235 cat conftest.err >&5
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); } &&
12238 { ac_try='test -z "$ac_c_werror_flag"
12239 || test ! -s conftest.err'
12240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12241 (eval $ac_try) 2>&5
12242 ac_status=$?
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); }; } &&
12245 { ac_try='test -s conftest$ac_exeext'
12246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12247 (eval $ac_try) 2>&5
12248 ac_status=$?
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); }; }; then
12251 eval "$as_ac_var=yes"
12252 else
12253 echo "$as_me: failed program was:" >&5
12254 sed 's/^/| /' conftest.$ac_ext >&5
12256 eval "$as_ac_var=no"
12258 rm -f conftest.err conftest.$ac_objext \
12259 conftest$ac_exeext conftest.$ac_ext
12261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12262 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12263 if test `eval echo '${'$as_ac_var'}'` = yes; then
12264 cat >>confdefs.h <<_ACEOF
12265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12266 _ACEOF
12269 done
12272 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
12273 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
12274 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
12275 echo $ECHO_N "(cached) $ECHO_C" >&6
12276 else
12277 rm -f conftest.sym conftest.file
12278 echo >conftest.file
12279 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
12280 if test "$cross_compiling" = yes; then
12281 ac_cv_func_lstat_dereferences_slashed_symlink=no
12282 else
12283 cat >conftest.$ac_ext <<_ACEOF
12284 /* confdefs.h. */
12285 _ACEOF
12286 cat confdefs.h >>conftest.$ac_ext
12287 cat >>conftest.$ac_ext <<_ACEOF
12288 /* end confdefs.h. */
12289 $ac_includes_default
12291 main ()
12293 struct stat sbuf;
12294 /* Linux will dereference the symlink and fail.
12295 That is better in the sense that it means we will not
12296 have to compile and use the lstat wrapper. */
12297 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
12299 return 0;
12301 _ACEOF
12302 rm -f conftest$ac_exeext
12303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12304 (eval $ac_link) 2>&5
12305 ac_status=$?
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12309 (eval $ac_try) 2>&5
12310 ac_status=$?
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); }; }; then
12313 ac_cv_func_lstat_dereferences_slashed_symlink=yes
12314 else
12315 echo "$as_me: program exited with status $ac_status" >&5
12316 echo "$as_me: failed program was:" >&5
12317 sed 's/^/| /' conftest.$ac_ext >&5
12319 ( exit $ac_status )
12320 ac_cv_func_lstat_dereferences_slashed_symlink=no
12322 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12324 else
12325 # If the `ln -s' command failed, then we probably don't even
12326 # have an lstat function.
12327 ac_cv_func_lstat_dereferences_slashed_symlink=no
12329 rm -f conftest.sym conftest.file
12332 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
12333 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
12335 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
12337 cat >>confdefs.h <<_ACEOF
12338 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
12339 _ACEOF
12342 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
12343 case $LIBOBJS in
12344 "lstat.$ac_objext" | \
12345 *" lstat.$ac_objext" | \
12346 "lstat.$ac_objext "* | \
12347 *" lstat.$ac_objext "* ) ;;
12348 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
12349 esac
12353 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
12354 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
12355 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
12356 echo $ECHO_N "(cached) $ECHO_C" >&6
12357 else
12358 if test "$cross_compiling" = yes; then
12359 ac_cv_func_lstat_empty_string_bug=yes
12360 else
12361 cat >conftest.$ac_ext <<_ACEOF
12362 /* confdefs.h. */
12363 _ACEOF
12364 cat confdefs.h >>conftest.$ac_ext
12365 cat >>conftest.$ac_ext <<_ACEOF
12366 /* end confdefs.h. */
12367 $ac_includes_default
12369 main ()
12371 struct stat sbuf;
12372 exit (lstat ("", &sbuf) ? 1 : 0);
12374 return 0;
12376 _ACEOF
12377 rm -f conftest$ac_exeext
12378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12379 (eval $ac_link) 2>&5
12380 ac_status=$?
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12384 (eval $ac_try) 2>&5
12385 ac_status=$?
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); }; }; then
12388 ac_cv_func_lstat_empty_string_bug=yes
12389 else
12390 echo "$as_me: program exited with status $ac_status" >&5
12391 echo "$as_me: failed program was:" >&5
12392 sed 's/^/| /' conftest.$ac_ext >&5
12394 ( exit $ac_status )
12395 ac_cv_func_lstat_empty_string_bug=no
12397 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12400 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
12401 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
12402 if test $ac_cv_func_lstat_empty_string_bug = yes; then
12403 case $LIBOBJS in
12404 "lstat.$ac_objext" | \
12405 *" lstat.$ac_objext" | \
12406 "lstat.$ac_objext "* | \
12407 *" lstat.$ac_objext "* ) ;;
12408 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
12409 esac
12412 cat >>confdefs.h <<_ACEOF
12413 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
12414 _ACEOF
12418 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
12419 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
12420 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
12421 echo $ECHO_N "(cached) $ECHO_C" >&6
12422 else
12423 rm -f conftest.sym conftest.file
12424 echo >conftest.file
12425 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
12426 if test "$cross_compiling" = yes; then
12427 ac_cv_func_lstat_dereferences_slashed_symlink=no
12428 else
12429 cat >conftest.$ac_ext <<_ACEOF
12430 /* confdefs.h. */
12431 _ACEOF
12432 cat confdefs.h >>conftest.$ac_ext
12433 cat >>conftest.$ac_ext <<_ACEOF
12434 /* end confdefs.h. */
12435 $ac_includes_default
12437 main ()
12439 struct stat sbuf;
12440 /* Linux will dereference the symlink and fail.
12441 That is better in the sense that it means we will not
12442 have to compile and use the lstat wrapper. */
12443 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
12445 return 0;
12447 _ACEOF
12448 rm -f conftest$ac_exeext
12449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12450 (eval $ac_link) 2>&5
12451 ac_status=$?
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12455 (eval $ac_try) 2>&5
12456 ac_status=$?
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); }; }; then
12459 ac_cv_func_lstat_dereferences_slashed_symlink=yes
12460 else
12461 echo "$as_me: program exited with status $ac_status" >&5
12462 echo "$as_me: failed program was:" >&5
12463 sed 's/^/| /' conftest.$ac_ext >&5
12465 ( exit $ac_status )
12466 ac_cv_func_lstat_dereferences_slashed_symlink=no
12468 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12470 else
12471 # If the `ln -s' command failed, then we probably don't even
12472 # have an lstat function.
12473 ac_cv_func_lstat_dereferences_slashed_symlink=no
12475 rm -f conftest.sym conftest.file
12478 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
12479 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
12481 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
12483 cat >>confdefs.h <<_ACEOF
12484 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
12485 _ACEOF
12488 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
12489 case $LIBOBJS in
12490 "lstat.$ac_objext" | \
12491 *" lstat.$ac_objext" | \
12492 "lstat.$ac_objext "* | \
12493 *" lstat.$ac_objext "* ) ;;
12494 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
12495 esac
12502 echo "$as_me:$LINENO: checking for working memcmp" >&5
12503 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
12504 if test "${ac_cv_func_memcmp_working+set}" = set; then
12505 echo $ECHO_N "(cached) $ECHO_C" >&6
12506 else
12507 if test "$cross_compiling" = yes; then
12508 ac_cv_func_memcmp_working=no
12509 else
12510 cat >conftest.$ac_ext <<_ACEOF
12511 /* confdefs.h. */
12512 _ACEOF
12513 cat confdefs.h >>conftest.$ac_ext
12514 cat >>conftest.$ac_ext <<_ACEOF
12515 /* end confdefs.h. */
12516 $ac_includes_default
12518 main ()
12521 /* Some versions of memcmp are not 8-bit clean. */
12522 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
12523 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12524 exit (1);
12526 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12527 or more and with at least one buffer not starting on a 4-byte boundary.
12528 William Lewis provided this test program. */
12530 char foo[21];
12531 char bar[21];
12532 int i;
12533 for (i = 0; i < 4; i++)
12535 char *a = foo + i;
12536 char *b = bar + i;
12537 strcpy (a, "--------01111111");
12538 strcpy (b, "--------10000000");
12539 if (memcmp (a, b, 16) >= 0)
12540 exit (1);
12542 exit (0);
12546 return 0;
12548 _ACEOF
12549 rm -f conftest$ac_exeext
12550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12551 (eval $ac_link) 2>&5
12552 ac_status=$?
12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12556 (eval $ac_try) 2>&5
12557 ac_status=$?
12558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); }; }; then
12560 ac_cv_func_memcmp_working=yes
12561 else
12562 echo "$as_me: program exited with status $ac_status" >&5
12563 echo "$as_me: failed program was:" >&5
12564 sed 's/^/| /' conftest.$ac_ext >&5
12566 ( exit $ac_status )
12567 ac_cv_func_memcmp_working=no
12569 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12572 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
12573 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
12574 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
12575 "memcmp.$ac_objext" | \
12576 *" memcmp.$ac_objext" | \
12577 "memcmp.$ac_objext "* | \
12578 *" memcmp.$ac_objext "* ) ;;
12579 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
12580 esac
12585 for ac_header in stdlib.h unistd.h
12587 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12589 echo "$as_me:$LINENO: checking for $ac_header" >&5
12590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12592 echo $ECHO_N "(cached) $ECHO_C" >&6
12594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12595 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12596 else
12597 # Is the header compilable?
12598 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12599 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12600 cat >conftest.$ac_ext <<_ACEOF
12601 /* confdefs.h. */
12602 _ACEOF
12603 cat confdefs.h >>conftest.$ac_ext
12604 cat >>conftest.$ac_ext <<_ACEOF
12605 /* end confdefs.h. */
12606 $ac_includes_default
12607 #include <$ac_header>
12608 _ACEOF
12609 rm -f conftest.$ac_objext
12610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12611 (eval $ac_compile) 2>conftest.er1
12612 ac_status=$?
12613 grep -v '^ *+' conftest.er1 >conftest.err
12614 rm -f conftest.er1
12615 cat conftest.err >&5
12616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617 (exit $ac_status); } &&
12618 { ac_try='test -z "$ac_c_werror_flag"
12619 || test ! -s conftest.err'
12620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12621 (eval $ac_try) 2>&5
12622 ac_status=$?
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); }; } &&
12625 { ac_try='test -s conftest.$ac_objext'
12626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12627 (eval $ac_try) 2>&5
12628 ac_status=$?
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); }; }; then
12631 ac_header_compiler=yes
12632 else
12633 echo "$as_me: failed program was:" >&5
12634 sed 's/^/| /' conftest.$ac_ext >&5
12636 ac_header_compiler=no
12638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12639 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12640 echo "${ECHO_T}$ac_header_compiler" >&6
12642 # Is the header present?
12643 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12644 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12645 cat >conftest.$ac_ext <<_ACEOF
12646 /* confdefs.h. */
12647 _ACEOF
12648 cat confdefs.h >>conftest.$ac_ext
12649 cat >>conftest.$ac_ext <<_ACEOF
12650 /* end confdefs.h. */
12651 #include <$ac_header>
12652 _ACEOF
12653 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12654 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12655 ac_status=$?
12656 grep -v '^ *+' conftest.er1 >conftest.err
12657 rm -f conftest.er1
12658 cat conftest.err >&5
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); } >/dev/null; then
12661 if test -s conftest.err; then
12662 ac_cpp_err=$ac_c_preproc_warn_flag
12663 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12664 else
12665 ac_cpp_err=
12667 else
12668 ac_cpp_err=yes
12670 if test -z "$ac_cpp_err"; then
12671 ac_header_preproc=yes
12672 else
12673 echo "$as_me: failed program was:" >&5
12674 sed 's/^/| /' conftest.$ac_ext >&5
12676 ac_header_preproc=no
12678 rm -f conftest.err conftest.$ac_ext
12679 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12680 echo "${ECHO_T}$ac_header_preproc" >&6
12682 # So? What about this header?
12683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12684 yes:no: )
12685 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12686 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12688 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12689 ac_header_preproc=yes
12691 no:yes:* )
12692 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12693 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12694 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12695 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12696 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12697 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12698 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12699 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12701 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12702 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12703 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12705 cat <<\_ASBOX
12706 ## ------------------------------ ##
12707 ## Report this to admin@amule.org ##
12708 ## ------------------------------ ##
12709 _ASBOX
12711 sed "s/^/$as_me: WARNING: /" >&2
12713 esac
12714 echo "$as_me:$LINENO: checking for $ac_header" >&5
12715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12717 echo $ECHO_N "(cached) $ECHO_C" >&6
12718 else
12719 eval "$as_ac_Header=\$ac_header_preproc"
12721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12722 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12726 cat >>confdefs.h <<_ACEOF
12727 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12728 _ACEOF
12732 done
12735 for ac_func in getpagesize
12737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12738 echo "$as_me:$LINENO: checking for $ac_func" >&5
12739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12740 if eval "test \"\${$as_ac_var+set}\" = set"; then
12741 echo $ECHO_N "(cached) $ECHO_C" >&6
12742 else
12743 cat >conftest.$ac_ext <<_ACEOF
12744 /* confdefs.h. */
12745 _ACEOF
12746 cat confdefs.h >>conftest.$ac_ext
12747 cat >>conftest.$ac_ext <<_ACEOF
12748 /* end confdefs.h. */
12749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12751 #define $ac_func innocuous_$ac_func
12753 /* System header to define __stub macros and hopefully few prototypes,
12754 which can conflict with char $ac_func (); below.
12755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12756 <limits.h> exists even on freestanding compilers. */
12758 #ifdef __STDC__
12759 # include <limits.h>
12760 #else
12761 # include <assert.h>
12762 #endif
12764 #undef $ac_func
12766 /* Override any gcc2 internal prototype to avoid an error. */
12767 #ifdef __cplusplus
12768 extern "C"
12770 #endif
12771 /* We use char because int might match the return type of a gcc2
12772 builtin and then its argument prototype would still apply. */
12773 char $ac_func ();
12774 /* The GNU C library defines this for functions which it implements
12775 to always fail with ENOSYS. Some functions are actually named
12776 something starting with __ and the normal name is an alias. */
12777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12778 choke me
12779 #else
12780 char (*f) () = $ac_func;
12781 #endif
12782 #ifdef __cplusplus
12784 #endif
12787 main ()
12789 return f != $ac_func;
12791 return 0;
12793 _ACEOF
12794 rm -f conftest.$ac_objext conftest$ac_exeext
12795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12796 (eval $ac_link) 2>conftest.er1
12797 ac_status=$?
12798 grep -v '^ *+' conftest.er1 >conftest.err
12799 rm -f conftest.er1
12800 cat conftest.err >&5
12801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); } &&
12803 { ac_try='test -z "$ac_c_werror_flag"
12804 || test ! -s conftest.err'
12805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12806 (eval $ac_try) 2>&5
12807 ac_status=$?
12808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809 (exit $ac_status); }; } &&
12810 { ac_try='test -s conftest$ac_exeext'
12811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12812 (eval $ac_try) 2>&5
12813 ac_status=$?
12814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815 (exit $ac_status); }; }; then
12816 eval "$as_ac_var=yes"
12817 else
12818 echo "$as_me: failed program was:" >&5
12819 sed 's/^/| /' conftest.$ac_ext >&5
12821 eval "$as_ac_var=no"
12823 rm -f conftest.err conftest.$ac_objext \
12824 conftest$ac_exeext conftest.$ac_ext
12826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12827 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12828 if test `eval echo '${'$as_ac_var'}'` = yes; then
12829 cat >>confdefs.h <<_ACEOF
12830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12831 _ACEOF
12834 done
12836 echo "$as_me:$LINENO: checking for working mmap" >&5
12837 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
12838 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12839 echo $ECHO_N "(cached) $ECHO_C" >&6
12840 else
12841 if test "$cross_compiling" = yes; then
12842 ac_cv_func_mmap_fixed_mapped=no
12843 else
12844 cat >conftest.$ac_ext <<_ACEOF
12845 /* confdefs.h. */
12846 _ACEOF
12847 cat confdefs.h >>conftest.$ac_ext
12848 cat >>conftest.$ac_ext <<_ACEOF
12849 /* end confdefs.h. */
12850 $ac_includes_default
12851 /* malloc might have been renamed as rpl_malloc. */
12852 #undef malloc
12854 /* Thanks to Mike Haertel and Jim Avera for this test.
12855 Here is a matrix of mmap possibilities:
12856 mmap private not fixed
12857 mmap private fixed at somewhere currently unmapped
12858 mmap private fixed at somewhere already mapped
12859 mmap shared not fixed
12860 mmap shared fixed at somewhere currently unmapped
12861 mmap shared fixed at somewhere already mapped
12862 For private mappings, we should verify that changes cannot be read()
12863 back from the file, nor mmap's back from the file at a different
12864 address. (There have been systems where private was not correctly
12865 implemented like the infamous i386 svr4.0, and systems where the
12866 VM page cache was not coherent with the file system buffer cache
12867 like early versions of FreeBSD and possibly contemporary NetBSD.)
12868 For shared mappings, we should conversely verify that changes get
12869 propagated back to all the places they're supposed to be.
12871 Grep wants private fixed already mapped.
12872 The main things grep needs to know about mmap are:
12873 * does it exist and is it safe to write into the mmap'd area
12874 * how to use it (BSD variants) */
12876 #include <fcntl.h>
12877 #include <sys/mman.h>
12879 #if !STDC_HEADERS && !HAVE_STDLIB_H
12880 char *malloc ();
12881 #endif
12883 /* This mess was copied from the GNU getpagesize.h. */
12884 #if !HAVE_GETPAGESIZE
12885 /* Assume that all systems that can run configure have sys/param.h. */
12886 # if !HAVE_SYS_PARAM_H
12887 # define HAVE_SYS_PARAM_H 1
12888 # endif
12890 # ifdef _SC_PAGESIZE
12891 # define getpagesize() sysconf(_SC_PAGESIZE)
12892 # else /* no _SC_PAGESIZE */
12893 # if HAVE_SYS_PARAM_H
12894 # include <sys/param.h>
12895 # ifdef EXEC_PAGESIZE
12896 # define getpagesize() EXEC_PAGESIZE
12897 # else /* no EXEC_PAGESIZE */
12898 # ifdef NBPG
12899 # define getpagesize() NBPG * CLSIZE
12900 # ifndef CLSIZE
12901 # define CLSIZE 1
12902 # endif /* no CLSIZE */
12903 # else /* no NBPG */
12904 # ifdef NBPC
12905 # define getpagesize() NBPC
12906 # else /* no NBPC */
12907 # ifdef PAGESIZE
12908 # define getpagesize() PAGESIZE
12909 # endif /* PAGESIZE */
12910 # endif /* no NBPC */
12911 # endif /* no NBPG */
12912 # endif /* no EXEC_PAGESIZE */
12913 # else /* no HAVE_SYS_PARAM_H */
12914 # define getpagesize() 8192 /* punt totally */
12915 # endif /* no HAVE_SYS_PARAM_H */
12916 # endif /* no _SC_PAGESIZE */
12918 #endif /* no HAVE_GETPAGESIZE */
12921 main ()
12923 char *data, *data2, *data3;
12924 int i, pagesize;
12925 int fd;
12927 pagesize = getpagesize ();
12929 /* First, make a file with some known garbage in it. */
12930 data = (char *) malloc (pagesize);
12931 if (!data)
12932 exit (1);
12933 for (i = 0; i < pagesize; ++i)
12934 *(data + i) = rand ();
12935 umask (0);
12936 fd = creat ("conftest.mmap", 0600);
12937 if (fd < 0)
12938 exit (1);
12939 if (write (fd, data, pagesize) != pagesize)
12940 exit (1);
12941 close (fd);
12943 /* Next, try to mmap the file at a fixed address which already has
12944 something else allocated at it. If we can, also make sure that
12945 we see the same garbage. */
12946 fd = open ("conftest.mmap", O_RDWR);
12947 if (fd < 0)
12948 exit (1);
12949 data2 = (char *) malloc (2 * pagesize);
12950 if (!data2)
12951 exit (1);
12952 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
12953 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12954 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12955 exit (1);
12956 for (i = 0; i < pagesize; ++i)
12957 if (*(data + i) != *(data2 + i))
12958 exit (1);
12960 /* Finally, make sure that changes to the mapped area do not
12961 percolate back to the file as seen by read(). (This is a bug on
12962 some variants of i386 svr4.0.) */
12963 for (i = 0; i < pagesize; ++i)
12964 *(data2 + i) = *(data2 + i) + 1;
12965 data3 = (char *) malloc (pagesize);
12966 if (!data3)
12967 exit (1);
12968 if (read (fd, data3, pagesize) != pagesize)
12969 exit (1);
12970 for (i = 0; i < pagesize; ++i)
12971 if (*(data + i) != *(data3 + i))
12972 exit (1);
12973 close (fd);
12974 exit (0);
12976 _ACEOF
12977 rm -f conftest$ac_exeext
12978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12979 (eval $ac_link) 2>&5
12980 ac_status=$?
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12984 (eval $ac_try) 2>&5
12985 ac_status=$?
12986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987 (exit $ac_status); }; }; then
12988 ac_cv_func_mmap_fixed_mapped=yes
12989 else
12990 echo "$as_me: program exited with status $ac_status" >&5
12991 echo "$as_me: failed program was:" >&5
12992 sed 's/^/| /' conftest.$ac_ext >&5
12994 ( exit $ac_status )
12995 ac_cv_func_mmap_fixed_mapped=no
12997 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13000 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
13001 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
13002 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13004 cat >>confdefs.h <<\_ACEOF
13005 #define HAVE_MMAP 1
13006 _ACEOF
13009 rm -f conftest.mmap
13013 for ac_header in sys/select.h sys/socket.h
13015 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13017 echo "$as_me:$LINENO: checking for $ac_header" >&5
13018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13020 echo $ECHO_N "(cached) $ECHO_C" >&6
13022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13023 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13024 else
13025 # Is the header compilable?
13026 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13027 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13028 cat >conftest.$ac_ext <<_ACEOF
13029 /* confdefs.h. */
13030 _ACEOF
13031 cat confdefs.h >>conftest.$ac_ext
13032 cat >>conftest.$ac_ext <<_ACEOF
13033 /* end confdefs.h. */
13034 $ac_includes_default
13035 #include <$ac_header>
13036 _ACEOF
13037 rm -f conftest.$ac_objext
13038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13039 (eval $ac_compile) 2>conftest.er1
13040 ac_status=$?
13041 grep -v '^ *+' conftest.er1 >conftest.err
13042 rm -f conftest.er1
13043 cat conftest.err >&5
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); } &&
13046 { ac_try='test -z "$ac_c_werror_flag"
13047 || test ! -s conftest.err'
13048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13049 (eval $ac_try) 2>&5
13050 ac_status=$?
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); }; } &&
13053 { ac_try='test -s conftest.$ac_objext'
13054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13055 (eval $ac_try) 2>&5
13056 ac_status=$?
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); }; }; then
13059 ac_header_compiler=yes
13060 else
13061 echo "$as_me: failed program was:" >&5
13062 sed 's/^/| /' conftest.$ac_ext >&5
13064 ac_header_compiler=no
13066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13067 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13068 echo "${ECHO_T}$ac_header_compiler" >&6
13070 # Is the header present?
13071 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13072 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13073 cat >conftest.$ac_ext <<_ACEOF
13074 /* confdefs.h. */
13075 _ACEOF
13076 cat confdefs.h >>conftest.$ac_ext
13077 cat >>conftest.$ac_ext <<_ACEOF
13078 /* end confdefs.h. */
13079 #include <$ac_header>
13080 _ACEOF
13081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13083 ac_status=$?
13084 grep -v '^ *+' conftest.er1 >conftest.err
13085 rm -f conftest.er1
13086 cat conftest.err >&5
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); } >/dev/null; then
13089 if test -s conftest.err; then
13090 ac_cpp_err=$ac_c_preproc_warn_flag
13091 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13092 else
13093 ac_cpp_err=
13095 else
13096 ac_cpp_err=yes
13098 if test -z "$ac_cpp_err"; then
13099 ac_header_preproc=yes
13100 else
13101 echo "$as_me: failed program was:" >&5
13102 sed 's/^/| /' conftest.$ac_ext >&5
13104 ac_header_preproc=no
13106 rm -f conftest.err conftest.$ac_ext
13107 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13108 echo "${ECHO_T}$ac_header_preproc" >&6
13110 # So? What about this header?
13111 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13112 yes:no: )
13113 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13114 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13116 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13117 ac_header_preproc=yes
13119 no:yes:* )
13120 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13121 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13122 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13123 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13124 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13125 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13126 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13127 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13129 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13130 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13131 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13133 cat <<\_ASBOX
13134 ## ------------------------------ ##
13135 ## Report this to admin@amule.org ##
13136 ## ------------------------------ ##
13137 _ASBOX
13139 sed "s/^/$as_me: WARNING: /" >&2
13141 esac
13142 echo "$as_me:$LINENO: checking for $ac_header" >&5
13143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13145 echo $ECHO_N "(cached) $ECHO_C" >&6
13146 else
13147 eval "$as_ac_Header=\$ac_header_preproc"
13149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13150 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13153 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13154 cat >>confdefs.h <<_ACEOF
13155 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13156 _ACEOF
13160 done
13162 echo "$as_me:$LINENO: checking types of arguments for select" >&5
13163 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
13164 if test "${ac_cv_func_select_args+set}" = set; then
13165 echo $ECHO_N "(cached) $ECHO_C" >&6
13166 else
13167 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
13168 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
13169 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
13170 cat >conftest.$ac_ext <<_ACEOF
13171 /* confdefs.h. */
13172 _ACEOF
13173 cat confdefs.h >>conftest.$ac_ext
13174 cat >>conftest.$ac_ext <<_ACEOF
13175 /* end confdefs.h. */
13176 $ac_includes_default
13177 #if HAVE_SYS_SELECT_H
13178 # include <sys/select.h>
13179 #endif
13180 #if HAVE_SYS_SOCKET_H
13181 # include <sys/socket.h>
13182 #endif
13185 main ()
13187 extern int select ($ac_arg1,
13188 $ac_arg234, $ac_arg234, $ac_arg234,
13189 $ac_arg5);
13191 return 0;
13193 _ACEOF
13194 rm -f conftest.$ac_objext
13195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13196 (eval $ac_compile) 2>conftest.er1
13197 ac_status=$?
13198 grep -v '^ *+' conftest.er1 >conftest.err
13199 rm -f conftest.er1
13200 cat conftest.err >&5
13201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202 (exit $ac_status); } &&
13203 { ac_try='test -z "$ac_c_werror_flag"
13204 || test ! -s conftest.err'
13205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13206 (eval $ac_try) 2>&5
13207 ac_status=$?
13208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); }; } &&
13210 { ac_try='test -s conftest.$ac_objext'
13211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13212 (eval $ac_try) 2>&5
13213 ac_status=$?
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); }; }; then
13216 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
13217 else
13218 echo "$as_me: failed program was:" >&5
13219 sed 's/^/| /' conftest.$ac_ext >&5
13222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13223 done
13224 done
13225 done
13226 # Provide a safe default value.
13227 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
13230 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
13231 echo "${ECHO_T}$ac_cv_func_select_args" >&6
13232 ac_save_IFS=$IFS; IFS=','
13233 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
13234 IFS=$ac_save_IFS
13235 shift
13237 cat >>confdefs.h <<_ACEOF
13238 #define SELECT_TYPE_ARG1 $1
13239 _ACEOF
13242 cat >>confdefs.h <<_ACEOF
13243 #define SELECT_TYPE_ARG234 ($2)
13244 _ACEOF
13247 cat >>confdefs.h <<_ACEOF
13248 #define SELECT_TYPE_ARG5 ($3)
13249 _ACEOF
13251 rm -f conftest*
13253 echo "$as_me:$LINENO: checking for function prototypes" >&5
13254 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
13255 if test "$ac_cv_prog_cc_stdc" != no; then
13256 echo "$as_me:$LINENO: result: yes" >&5
13257 echo "${ECHO_T}yes" >&6
13259 cat >>confdefs.h <<\_ACEOF
13260 #define PROTOTYPES 1
13261 _ACEOF
13264 cat >>confdefs.h <<\_ACEOF
13265 #define __PROTOTYPES 1
13266 _ACEOF
13268 else
13269 echo "$as_me:$LINENO: result: no" >&5
13270 echo "${ECHO_T}no" >&6
13273 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
13274 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
13275 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
13276 echo $ECHO_N "(cached) $ECHO_C" >&6
13277 else
13278 ac_cv_func_setvbuf_reversed=no
13279 cat >conftest.$ac_ext <<_ACEOF
13280 /* confdefs.h. */
13281 _ACEOF
13282 cat confdefs.h >>conftest.$ac_ext
13283 cat >>conftest.$ac_ext <<_ACEOF
13284 /* end confdefs.h. */
13285 #include <stdio.h>
13286 # if PROTOTYPES
13287 int (setvbuf) (FILE *, int, char *, size_t);
13288 # endif
13290 main ()
13292 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
13294 return 0;
13296 _ACEOF
13297 rm -f conftest.$ac_objext conftest$ac_exeext
13298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13299 (eval $ac_link) 2>conftest.er1
13300 ac_status=$?
13301 grep -v '^ *+' conftest.er1 >conftest.err
13302 rm -f conftest.er1
13303 cat conftest.err >&5
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); } &&
13306 { ac_try='test -z "$ac_c_werror_flag"
13307 || test ! -s conftest.err'
13308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13309 (eval $ac_try) 2>&5
13310 ac_status=$?
13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); }; } &&
13313 { ac_try='test -s conftest$ac_exeext'
13314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13315 (eval $ac_try) 2>&5
13316 ac_status=$?
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); }; }; then
13319 cat >conftest.$ac_ext <<_ACEOF
13320 /* confdefs.h. */
13321 _ACEOF
13322 cat confdefs.h >>conftest.$ac_ext
13323 cat >>conftest.$ac_ext <<_ACEOF
13324 /* end confdefs.h. */
13325 #include <stdio.h>
13326 # if PROTOTYPES
13327 int (setvbuf) (FILE *, int, char *, size_t);
13328 # endif
13330 main ()
13332 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
13334 return 0;
13336 _ACEOF
13337 rm -f conftest.$ac_objext conftest$ac_exeext
13338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13339 (eval $ac_link) 2>conftest.er1
13340 ac_status=$?
13341 grep -v '^ *+' conftest.er1 >conftest.err
13342 rm -f conftest.er1
13343 cat conftest.err >&5
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); } &&
13346 { ac_try='test -z "$ac_c_werror_flag"
13347 || test ! -s conftest.err'
13348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13349 (eval $ac_try) 2>&5
13350 ac_status=$?
13351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); }; } &&
13353 { ac_try='test -s conftest$ac_exeext'
13354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13355 (eval $ac_try) 2>&5
13356 ac_status=$?
13357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358 (exit $ac_status); }; }; then
13359 # It compiles and links either way, so it must not be declared
13360 # with a prototype and most likely this is a K&R C compiler.
13361 # Try running it.
13362 if test "$cross_compiling" = yes; then
13363 : # Assume setvbuf is not reversed when cross-compiling.
13364 else
13365 cat >conftest.$ac_ext <<_ACEOF
13366 /* confdefs.h. */
13367 _ACEOF
13368 cat confdefs.h >>conftest.$ac_ext
13369 cat >>conftest.$ac_ext <<_ACEOF
13370 /* end confdefs.h. */
13371 #include <stdio.h>
13373 main ()
13375 /* This call has the arguments reversed.
13376 A reversed system may check and see that the address of buf
13377 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
13378 char buf;
13379 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
13380 exit (1);
13381 putchar ('\r');
13382 exit (0); /* Non-reversed systems SEGV here. */
13384 return 0;
13386 _ACEOF
13387 rm -f conftest$ac_exeext
13388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13389 (eval $ac_link) 2>&5
13390 ac_status=$?
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13394 (eval $ac_try) 2>&5
13395 ac_status=$?
13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); }; }; then
13398 ac_cv_func_setvbuf_reversed=yes
13399 else
13400 echo "$as_me: program exited with status $ac_status" >&5
13401 echo "$as_me: failed program was:" >&5
13402 sed 's/^/| /' conftest.$ac_ext >&5
13404 ( exit $ac_status )
13405 rm -f core *.core
13407 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13409 ac_cv_func_setvbuf_reversed=yes
13410 else
13411 echo "$as_me: failed program was:" >&5
13412 sed 's/^/| /' conftest.$ac_ext >&5
13415 rm -f conftest.err conftest.$ac_objext \
13416 conftest$ac_exeext conftest.$ac_ext
13417 else
13418 echo "$as_me: failed program was:" >&5
13419 sed 's/^/| /' conftest.$ac_ext >&5
13422 rm -f conftest.err conftest.$ac_objext \
13423 conftest$ac_exeext conftest.$ac_ext
13425 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
13426 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
13427 if test $ac_cv_func_setvbuf_reversed = yes; then
13429 cat >>confdefs.h <<\_ACEOF
13430 #define SETVBUF_REVERSED 1
13431 _ACEOF
13435 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13436 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13437 if test "${ac_cv_type_signal+set}" = set; then
13438 echo $ECHO_N "(cached) $ECHO_C" >&6
13439 else
13440 cat >conftest.$ac_ext <<_ACEOF
13441 /* confdefs.h. */
13442 _ACEOF
13443 cat confdefs.h >>conftest.$ac_ext
13444 cat >>conftest.$ac_ext <<_ACEOF
13445 /* end confdefs.h. */
13446 #include <sys/types.h>
13447 #include <signal.h>
13448 #ifdef signal
13449 # undef signal
13450 #endif
13451 #ifdef __cplusplus
13452 extern "C" void (*signal (int, void (*)(int)))(int);
13453 #else
13454 void (*signal ()) ();
13455 #endif
13458 main ()
13460 int i;
13462 return 0;
13464 _ACEOF
13465 rm -f conftest.$ac_objext
13466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13467 (eval $ac_compile) 2>conftest.er1
13468 ac_status=$?
13469 grep -v '^ *+' conftest.er1 >conftest.err
13470 rm -f conftest.er1
13471 cat conftest.err >&5
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); } &&
13474 { ac_try='test -z "$ac_c_werror_flag"
13475 || test ! -s conftest.err'
13476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13477 (eval $ac_try) 2>&5
13478 ac_status=$?
13479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 (exit $ac_status); }; } &&
13481 { ac_try='test -s conftest.$ac_objext'
13482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13483 (eval $ac_try) 2>&5
13484 ac_status=$?
13485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 (exit $ac_status); }; }; then
13487 ac_cv_type_signal=void
13488 else
13489 echo "$as_me: failed program was:" >&5
13490 sed 's/^/| /' conftest.$ac_ext >&5
13492 ac_cv_type_signal=int
13494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13496 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13497 echo "${ECHO_T}$ac_cv_type_signal" >&6
13499 cat >>confdefs.h <<_ACEOF
13500 #define RETSIGTYPE $ac_cv_type_signal
13501 _ACEOF
13504 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
13505 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
13506 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
13507 echo $ECHO_N "(cached) $ECHO_C" >&6
13508 else
13509 if test "$cross_compiling" = yes; then
13510 ac_cv_func_stat_empty_string_bug=yes
13511 else
13512 cat >conftest.$ac_ext <<_ACEOF
13513 /* confdefs.h. */
13514 _ACEOF
13515 cat confdefs.h >>conftest.$ac_ext
13516 cat >>conftest.$ac_ext <<_ACEOF
13517 /* end confdefs.h. */
13518 $ac_includes_default
13520 main ()
13522 struct stat sbuf;
13523 exit (stat ("", &sbuf) ? 1 : 0);
13525 return 0;
13527 _ACEOF
13528 rm -f conftest$ac_exeext
13529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13530 (eval $ac_link) 2>&5
13531 ac_status=$?
13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13535 (eval $ac_try) 2>&5
13536 ac_status=$?
13537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538 (exit $ac_status); }; }; then
13539 ac_cv_func_stat_empty_string_bug=yes
13540 else
13541 echo "$as_me: program exited with status $ac_status" >&5
13542 echo "$as_me: failed program was:" >&5
13543 sed 's/^/| /' conftest.$ac_ext >&5
13545 ( exit $ac_status )
13546 ac_cv_func_stat_empty_string_bug=no
13548 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13551 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
13552 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
13553 if test $ac_cv_func_stat_empty_string_bug = yes; then
13554 case $LIBOBJS in
13555 "stat.$ac_objext" | \
13556 *" stat.$ac_objext" | \
13557 "stat.$ac_objext "* | \
13558 *" stat.$ac_objext "* ) ;;
13559 *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
13560 esac
13563 cat >>confdefs.h <<_ACEOF
13564 #define HAVE_STAT_EMPTY_STRING_BUG 1
13565 _ACEOF
13570 for ac_func in strftime
13572 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13573 echo "$as_me:$LINENO: checking for $ac_func" >&5
13574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13575 if eval "test \"\${$as_ac_var+set}\" = set"; then
13576 echo $ECHO_N "(cached) $ECHO_C" >&6
13577 else
13578 cat >conftest.$ac_ext <<_ACEOF
13579 /* confdefs.h. */
13580 _ACEOF
13581 cat confdefs.h >>conftest.$ac_ext
13582 cat >>conftest.$ac_ext <<_ACEOF
13583 /* end confdefs.h. */
13584 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13586 #define $ac_func innocuous_$ac_func
13588 /* System header to define __stub macros and hopefully few prototypes,
13589 which can conflict with char $ac_func (); below.
13590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13591 <limits.h> exists even on freestanding compilers. */
13593 #ifdef __STDC__
13594 # include <limits.h>
13595 #else
13596 # include <assert.h>
13597 #endif
13599 #undef $ac_func
13601 /* Override any gcc2 internal prototype to avoid an error. */
13602 #ifdef __cplusplus
13603 extern "C"
13605 #endif
13606 /* We use char because int might match the return type of a gcc2
13607 builtin and then its argument prototype would still apply. */
13608 char $ac_func ();
13609 /* The GNU C library defines this for functions which it implements
13610 to always fail with ENOSYS. Some functions are actually named
13611 something starting with __ and the normal name is an alias. */
13612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13613 choke me
13614 #else
13615 char (*f) () = $ac_func;
13616 #endif
13617 #ifdef __cplusplus
13619 #endif
13622 main ()
13624 return f != $ac_func;
13626 return 0;
13628 _ACEOF
13629 rm -f conftest.$ac_objext conftest$ac_exeext
13630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13631 (eval $ac_link) 2>conftest.er1
13632 ac_status=$?
13633 grep -v '^ *+' conftest.er1 >conftest.err
13634 rm -f conftest.er1
13635 cat conftest.err >&5
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); } &&
13638 { ac_try='test -z "$ac_c_werror_flag"
13639 || test ! -s conftest.err'
13640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13641 (eval $ac_try) 2>&5
13642 ac_status=$?
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); }; } &&
13645 { ac_try='test -s conftest$ac_exeext'
13646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13647 (eval $ac_try) 2>&5
13648 ac_status=$?
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); }; }; then
13651 eval "$as_ac_var=yes"
13652 else
13653 echo "$as_me: failed program was:" >&5
13654 sed 's/^/| /' conftest.$ac_ext >&5
13656 eval "$as_ac_var=no"
13658 rm -f conftest.err conftest.$ac_objext \
13659 conftest$ac_exeext conftest.$ac_ext
13661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13662 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13663 if test `eval echo '${'$as_ac_var'}'` = yes; then
13664 cat >>confdefs.h <<_ACEOF
13665 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13666 _ACEOF
13668 else
13669 # strftime is in -lintl on SCO UNIX.
13670 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
13671 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
13672 if test "${ac_cv_lib_intl_strftime+set}" = set; then
13673 echo $ECHO_N "(cached) $ECHO_C" >&6
13674 else
13675 ac_check_lib_save_LIBS=$LIBS
13676 LIBS="-lintl $LIBS"
13677 cat >conftest.$ac_ext <<_ACEOF
13678 /* confdefs.h. */
13679 _ACEOF
13680 cat confdefs.h >>conftest.$ac_ext
13681 cat >>conftest.$ac_ext <<_ACEOF
13682 /* end confdefs.h. */
13684 /* Override any gcc2 internal prototype to avoid an error. */
13685 #ifdef __cplusplus
13686 extern "C"
13687 #endif
13688 /* We use char because int might match the return type of a gcc2
13689 builtin and then its argument prototype would still apply. */
13690 char strftime ();
13692 main ()
13694 strftime ();
13696 return 0;
13698 _ACEOF
13699 rm -f conftest.$ac_objext conftest$ac_exeext
13700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13701 (eval $ac_link) 2>conftest.er1
13702 ac_status=$?
13703 grep -v '^ *+' conftest.er1 >conftest.err
13704 rm -f conftest.er1
13705 cat conftest.err >&5
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); } &&
13708 { ac_try='test -z "$ac_c_werror_flag"
13709 || test ! -s conftest.err'
13710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13711 (eval $ac_try) 2>&5
13712 ac_status=$?
13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); }; } &&
13715 { ac_try='test -s conftest$ac_exeext'
13716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13717 (eval $ac_try) 2>&5
13718 ac_status=$?
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); }; }; then
13721 ac_cv_lib_intl_strftime=yes
13722 else
13723 echo "$as_me: failed program was:" >&5
13724 sed 's/^/| /' conftest.$ac_ext >&5
13726 ac_cv_lib_intl_strftime=no
13728 rm -f conftest.err conftest.$ac_objext \
13729 conftest$ac_exeext conftest.$ac_ext
13730 LIBS=$ac_check_lib_save_LIBS
13732 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
13733 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
13734 if test $ac_cv_lib_intl_strftime = yes; then
13735 cat >>confdefs.h <<\_ACEOF
13736 #define HAVE_STRFTIME 1
13737 _ACEOF
13739 LIBS="-lintl $LIBS"
13743 done
13745 echo "$as_me:$LINENO: checking for working strtod" >&5
13746 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
13747 if test "${ac_cv_func_strtod+set}" = set; then
13748 echo $ECHO_N "(cached) $ECHO_C" >&6
13749 else
13750 if test "$cross_compiling" = yes; then
13751 ac_cv_func_strtod=no
13752 else
13753 cat >conftest.$ac_ext <<_ACEOF
13754 /* confdefs.h. */
13755 _ACEOF
13756 cat confdefs.h >>conftest.$ac_ext
13757 cat >>conftest.$ac_ext <<_ACEOF
13758 /* end confdefs.h. */
13760 double strtod ();
13762 main()
13765 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
13766 char *string = " +69";
13767 char *term;
13768 double value;
13769 value = strtod (string, &term);
13770 if (value != 69 || term != (string + 4))
13771 exit (1);
13775 /* Under Solaris 2.4, strtod returns the wrong value for the
13776 terminating character under some conditions. */
13777 char *string = "NaN";
13778 char *term;
13779 strtod (string, &term);
13780 if (term != string && *(term - 1) == 0)
13781 exit (1);
13783 exit (0);
13786 _ACEOF
13787 rm -f conftest$ac_exeext
13788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13789 (eval $ac_link) 2>&5
13790 ac_status=$?
13791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13794 (eval $ac_try) 2>&5
13795 ac_status=$?
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); }; }; then
13798 ac_cv_func_strtod=yes
13799 else
13800 echo "$as_me: program exited with status $ac_status" >&5
13801 echo "$as_me: failed program was:" >&5
13802 sed 's/^/| /' conftest.$ac_ext >&5
13804 ( exit $ac_status )
13805 ac_cv_func_strtod=no
13807 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13810 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
13811 echo "${ECHO_T}$ac_cv_func_strtod" >&6
13812 if test $ac_cv_func_strtod = no; then
13813 case $LIBOBJS in
13814 "strtod.$ac_objext" | \
13815 *" strtod.$ac_objext" | \
13816 "strtod.$ac_objext "* | \
13817 *" strtod.$ac_objext "* ) ;;
13818 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;;
13819 esac
13821 echo "$as_me:$LINENO: checking for pow" >&5
13822 echo $ECHO_N "checking for pow... $ECHO_C" >&6
13823 if test "${ac_cv_func_pow+set}" = set; then
13824 echo $ECHO_N "(cached) $ECHO_C" >&6
13825 else
13826 cat >conftest.$ac_ext <<_ACEOF
13827 /* confdefs.h. */
13828 _ACEOF
13829 cat confdefs.h >>conftest.$ac_ext
13830 cat >>conftest.$ac_ext <<_ACEOF
13831 /* end confdefs.h. */
13832 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
13833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13834 #define pow innocuous_pow
13836 /* System header to define __stub macros and hopefully few prototypes,
13837 which can conflict with char pow (); below.
13838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13839 <limits.h> exists even on freestanding compilers. */
13841 #ifdef __STDC__
13842 # include <limits.h>
13843 #else
13844 # include <assert.h>
13845 #endif
13847 #undef pow
13849 /* Override any gcc2 internal prototype to avoid an error. */
13850 #ifdef __cplusplus
13851 extern "C"
13853 #endif
13854 /* We use char because int might match the return type of a gcc2
13855 builtin and then its argument prototype would still apply. */
13856 char pow ();
13857 /* The GNU C library defines this for functions which it implements
13858 to always fail with ENOSYS. Some functions are actually named
13859 something starting with __ and the normal name is an alias. */
13860 #if defined (__stub_pow) || defined (__stub___pow)
13861 choke me
13862 #else
13863 char (*f) () = pow;
13864 #endif
13865 #ifdef __cplusplus
13867 #endif
13870 main ()
13872 return f != pow;
13874 return 0;
13876 _ACEOF
13877 rm -f conftest.$ac_objext conftest$ac_exeext
13878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13879 (eval $ac_link) 2>conftest.er1
13880 ac_status=$?
13881 grep -v '^ *+' conftest.er1 >conftest.err
13882 rm -f conftest.er1
13883 cat conftest.err >&5
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); } &&
13886 { ac_try='test -z "$ac_c_werror_flag"
13887 || test ! -s conftest.err'
13888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13889 (eval $ac_try) 2>&5
13890 ac_status=$?
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); }; } &&
13893 { ac_try='test -s conftest$ac_exeext'
13894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13895 (eval $ac_try) 2>&5
13896 ac_status=$?
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); }; }; then
13899 ac_cv_func_pow=yes
13900 else
13901 echo "$as_me: failed program was:" >&5
13902 sed 's/^/| /' conftest.$ac_ext >&5
13904 ac_cv_func_pow=no
13906 rm -f conftest.err conftest.$ac_objext \
13907 conftest$ac_exeext conftest.$ac_ext
13909 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
13910 echo "${ECHO_T}$ac_cv_func_pow" >&6
13912 if test $ac_cv_func_pow = no; then
13913 echo "$as_me:$LINENO: checking for pow in -lm" >&5
13914 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
13915 if test "${ac_cv_lib_m_pow+set}" = set; then
13916 echo $ECHO_N "(cached) $ECHO_C" >&6
13917 else
13918 ac_check_lib_save_LIBS=$LIBS
13919 LIBS="-lm $LIBS"
13920 cat >conftest.$ac_ext <<_ACEOF
13921 /* confdefs.h. */
13922 _ACEOF
13923 cat confdefs.h >>conftest.$ac_ext
13924 cat >>conftest.$ac_ext <<_ACEOF
13925 /* end confdefs.h. */
13927 /* Override any gcc2 internal prototype to avoid an error. */
13928 #ifdef __cplusplus
13929 extern "C"
13930 #endif
13931 /* We use char because int might match the return type of a gcc2
13932 builtin and then its argument prototype would still apply. */
13933 char pow ();
13935 main ()
13937 pow ();
13939 return 0;
13941 _ACEOF
13942 rm -f conftest.$ac_objext conftest$ac_exeext
13943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13944 (eval $ac_link) 2>conftest.er1
13945 ac_status=$?
13946 grep -v '^ *+' conftest.er1 >conftest.err
13947 rm -f conftest.er1
13948 cat conftest.err >&5
13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); } &&
13951 { ac_try='test -z "$ac_c_werror_flag"
13952 || test ! -s conftest.err'
13953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13954 (eval $ac_try) 2>&5
13955 ac_status=$?
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); }; } &&
13958 { ac_try='test -s conftest$ac_exeext'
13959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13960 (eval $ac_try) 2>&5
13961 ac_status=$?
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); }; }; then
13964 ac_cv_lib_m_pow=yes
13965 else
13966 echo "$as_me: failed program was:" >&5
13967 sed 's/^/| /' conftest.$ac_ext >&5
13969 ac_cv_lib_m_pow=no
13971 rm -f conftest.err conftest.$ac_objext \
13972 conftest$ac_exeext conftest.$ac_ext
13973 LIBS=$ac_check_lib_save_LIBS
13975 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
13976 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
13977 if test $ac_cv_lib_m_pow = yes; then
13978 POW_LIB=-lm
13979 else
13980 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
13981 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
13989 for ac_func in vprintf
13991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13992 echo "$as_me:$LINENO: checking for $ac_func" >&5
13993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13994 if eval "test \"\${$as_ac_var+set}\" = set"; then
13995 echo $ECHO_N "(cached) $ECHO_C" >&6
13996 else
13997 cat >conftest.$ac_ext <<_ACEOF
13998 /* confdefs.h. */
13999 _ACEOF
14000 cat confdefs.h >>conftest.$ac_ext
14001 cat >>conftest.$ac_ext <<_ACEOF
14002 /* end confdefs.h. */
14003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14005 #define $ac_func innocuous_$ac_func
14007 /* System header to define __stub macros and hopefully few prototypes,
14008 which can conflict with char $ac_func (); below.
14009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14010 <limits.h> exists even on freestanding compilers. */
14012 #ifdef __STDC__
14013 # include <limits.h>
14014 #else
14015 # include <assert.h>
14016 #endif
14018 #undef $ac_func
14020 /* Override any gcc2 internal prototype to avoid an error. */
14021 #ifdef __cplusplus
14022 extern "C"
14024 #endif
14025 /* We use char because int might match the return type of a gcc2
14026 builtin and then its argument prototype would still apply. */
14027 char $ac_func ();
14028 /* The GNU C library defines this for functions which it implements
14029 to always fail with ENOSYS. Some functions are actually named
14030 something starting with __ and the normal name is an alias. */
14031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14032 choke me
14033 #else
14034 char (*f) () = $ac_func;
14035 #endif
14036 #ifdef __cplusplus
14038 #endif
14041 main ()
14043 return f != $ac_func;
14045 return 0;
14047 _ACEOF
14048 rm -f conftest.$ac_objext conftest$ac_exeext
14049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14050 (eval $ac_link) 2>conftest.er1
14051 ac_status=$?
14052 grep -v '^ *+' conftest.er1 >conftest.err
14053 rm -f conftest.er1
14054 cat conftest.err >&5
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); } &&
14057 { ac_try='test -z "$ac_c_werror_flag"
14058 || test ! -s conftest.err'
14059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14060 (eval $ac_try) 2>&5
14061 ac_status=$?
14062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063 (exit $ac_status); }; } &&
14064 { ac_try='test -s conftest$ac_exeext'
14065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14066 (eval $ac_try) 2>&5
14067 ac_status=$?
14068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069 (exit $ac_status); }; }; then
14070 eval "$as_ac_var=yes"
14071 else
14072 echo "$as_me: failed program was:" >&5
14073 sed 's/^/| /' conftest.$ac_ext >&5
14075 eval "$as_ac_var=no"
14077 rm -f conftest.err conftest.$ac_objext \
14078 conftest$ac_exeext conftest.$ac_ext
14080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14081 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14082 if test `eval echo '${'$as_ac_var'}'` = yes; then
14083 cat >>confdefs.h <<_ACEOF
14084 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14085 _ACEOF
14087 echo "$as_me:$LINENO: checking for _doprnt" >&5
14088 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
14089 if test "${ac_cv_func__doprnt+set}" = set; then
14090 echo $ECHO_N "(cached) $ECHO_C" >&6
14091 else
14092 cat >conftest.$ac_ext <<_ACEOF
14093 /* confdefs.h. */
14094 _ACEOF
14095 cat confdefs.h >>conftest.$ac_ext
14096 cat >>conftest.$ac_ext <<_ACEOF
14097 /* end confdefs.h. */
14098 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
14099 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14100 #define _doprnt innocuous__doprnt
14102 /* System header to define __stub macros and hopefully few prototypes,
14103 which can conflict with char _doprnt (); below.
14104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14105 <limits.h> exists even on freestanding compilers. */
14107 #ifdef __STDC__
14108 # include <limits.h>
14109 #else
14110 # include <assert.h>
14111 #endif
14113 #undef _doprnt
14115 /* Override any gcc2 internal prototype to avoid an error. */
14116 #ifdef __cplusplus
14117 extern "C"
14119 #endif
14120 /* We use char because int might match the return type of a gcc2
14121 builtin and then its argument prototype would still apply. */
14122 char _doprnt ();
14123 /* The GNU C library defines this for functions which it implements
14124 to always fail with ENOSYS. Some functions are actually named
14125 something starting with __ and the normal name is an alias. */
14126 #if defined (__stub__doprnt) || defined (__stub____doprnt)
14127 choke me
14128 #else
14129 char (*f) () = _doprnt;
14130 #endif
14131 #ifdef __cplusplus
14133 #endif
14136 main ()
14138 return f != _doprnt;
14140 return 0;
14142 _ACEOF
14143 rm -f conftest.$ac_objext conftest$ac_exeext
14144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14145 (eval $ac_link) 2>conftest.er1
14146 ac_status=$?
14147 grep -v '^ *+' conftest.er1 >conftest.err
14148 rm -f conftest.er1
14149 cat conftest.err >&5
14150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151 (exit $ac_status); } &&
14152 { ac_try='test -z "$ac_c_werror_flag"
14153 || test ! -s conftest.err'
14154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14155 (eval $ac_try) 2>&5
14156 ac_status=$?
14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 (exit $ac_status); }; } &&
14159 { ac_try='test -s conftest$ac_exeext'
14160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14161 (eval $ac_try) 2>&5
14162 ac_status=$?
14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 (exit $ac_status); }; }; then
14165 ac_cv_func__doprnt=yes
14166 else
14167 echo "$as_me: failed program was:" >&5
14168 sed 's/^/| /' conftest.$ac_ext >&5
14170 ac_cv_func__doprnt=no
14172 rm -f conftest.err conftest.$ac_objext \
14173 conftest$ac_exeext conftest.$ac_ext
14175 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
14176 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
14177 if test $ac_cv_func__doprnt = yes; then
14179 cat >>confdefs.h <<\_ACEOF
14180 #define HAVE_DOPRNT 1
14181 _ACEOF
14186 done
14189 if test $cross_compiling = yes -a $gnumalloc = yes; then
14191 { echo "$as_me:$LINENO: WARNING:
14192 configure cannot check whether malloc() and realloc() are GNU libc
14193 compatible. You have to be ABSOLUTELY sure that they are, otherwise
14194 run configure with the --without-gnu-malloc switch." >&5
14195 echo "$as_me: WARNING:
14196 configure cannot check whether malloc() and realloc() are GNU libc
14197 compatible. You have to be ABSOLUTELY sure that they are, otherwise
14198 run configure with the --without-gnu-malloc switch." >&2;}
14199 _mule_warning_9=yes
14200 _mule_has_warnings=yes
14202 ac_cv_func_malloc_0_nonnull=yes
14203 ac_cv_func_realloc_0_nonnull=yes
14208 for ac_header in stdlib.h
14210 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14212 echo "$as_me:$LINENO: checking for $ac_header" >&5
14213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14214 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14215 echo $ECHO_N "(cached) $ECHO_C" >&6
14217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14219 else
14220 # Is the header compilable?
14221 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14222 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14223 cat >conftest.$ac_ext <<_ACEOF
14224 /* confdefs.h. */
14225 _ACEOF
14226 cat confdefs.h >>conftest.$ac_ext
14227 cat >>conftest.$ac_ext <<_ACEOF
14228 /* end confdefs.h. */
14229 $ac_includes_default
14230 #include <$ac_header>
14231 _ACEOF
14232 rm -f conftest.$ac_objext
14233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14234 (eval $ac_compile) 2>conftest.er1
14235 ac_status=$?
14236 grep -v '^ *+' conftest.er1 >conftest.err
14237 rm -f conftest.er1
14238 cat conftest.err >&5
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); } &&
14241 { ac_try='test -z "$ac_c_werror_flag"
14242 || test ! -s conftest.err'
14243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14244 (eval $ac_try) 2>&5
14245 ac_status=$?
14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247 (exit $ac_status); }; } &&
14248 { ac_try='test -s conftest.$ac_objext'
14249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14250 (eval $ac_try) 2>&5
14251 ac_status=$?
14252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253 (exit $ac_status); }; }; then
14254 ac_header_compiler=yes
14255 else
14256 echo "$as_me: failed program was:" >&5
14257 sed 's/^/| /' conftest.$ac_ext >&5
14259 ac_header_compiler=no
14261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14262 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14263 echo "${ECHO_T}$ac_header_compiler" >&6
14265 # Is the header present?
14266 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14267 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14268 cat >conftest.$ac_ext <<_ACEOF
14269 /* confdefs.h. */
14270 _ACEOF
14271 cat confdefs.h >>conftest.$ac_ext
14272 cat >>conftest.$ac_ext <<_ACEOF
14273 /* end confdefs.h. */
14274 #include <$ac_header>
14275 _ACEOF
14276 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14277 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14278 ac_status=$?
14279 grep -v '^ *+' conftest.er1 >conftest.err
14280 rm -f conftest.er1
14281 cat conftest.err >&5
14282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283 (exit $ac_status); } >/dev/null; then
14284 if test -s conftest.err; then
14285 ac_cpp_err=$ac_c_preproc_warn_flag
14286 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14287 else
14288 ac_cpp_err=
14290 else
14291 ac_cpp_err=yes
14293 if test -z "$ac_cpp_err"; then
14294 ac_header_preproc=yes
14295 else
14296 echo "$as_me: failed program was:" >&5
14297 sed 's/^/| /' conftest.$ac_ext >&5
14299 ac_header_preproc=no
14301 rm -f conftest.err conftest.$ac_ext
14302 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14303 echo "${ECHO_T}$ac_header_preproc" >&6
14305 # So? What about this header?
14306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14307 yes:no: )
14308 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14309 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14311 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14312 ac_header_preproc=yes
14314 no:yes:* )
14315 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14316 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14317 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14318 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14319 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14320 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14321 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14322 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14324 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14325 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14326 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14328 cat <<\_ASBOX
14329 ## ------------------------------ ##
14330 ## Report this to admin@amule.org ##
14331 ## ------------------------------ ##
14332 _ASBOX
14334 sed "s/^/$as_me: WARNING: /" >&2
14336 esac
14337 echo "$as_me:$LINENO: checking for $ac_header" >&5
14338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14340 echo $ECHO_N "(cached) $ECHO_C" >&6
14341 else
14342 eval "$as_ac_Header=\$ac_header_preproc"
14344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14348 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14349 cat >>confdefs.h <<_ACEOF
14350 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14351 _ACEOF
14355 done
14357 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
14358 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
14359 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
14360 echo $ECHO_N "(cached) $ECHO_C" >&6
14361 else
14362 if test "$cross_compiling" = yes; then
14363 ac_cv_func_malloc_0_nonnull=no
14364 else
14365 cat >conftest.$ac_ext <<_ACEOF
14366 /* confdefs.h. */
14367 _ACEOF
14368 cat confdefs.h >>conftest.$ac_ext
14369 cat >>conftest.$ac_ext <<_ACEOF
14370 /* end confdefs.h. */
14371 #if STDC_HEADERS || HAVE_STDLIB_H
14372 # include <stdlib.h>
14373 #else
14374 char *malloc ();
14375 #endif
14378 main ()
14380 exit (malloc (0) ? 0 : 1);
14382 return 0;
14384 _ACEOF
14385 rm -f conftest$ac_exeext
14386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14387 (eval $ac_link) 2>&5
14388 ac_status=$?
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14392 (eval $ac_try) 2>&5
14393 ac_status=$?
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); }; }; then
14396 ac_cv_func_malloc_0_nonnull=yes
14397 else
14398 echo "$as_me: program exited with status $ac_status" >&5
14399 echo "$as_me: failed program was:" >&5
14400 sed 's/^/| /' conftest.$ac_ext >&5
14402 ( exit $ac_status )
14403 ac_cv_func_malloc_0_nonnull=no
14405 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14408 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
14409 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
14410 if test $ac_cv_func_malloc_0_nonnull = yes; then
14412 cat >>confdefs.h <<\_ACEOF
14413 #define HAVE_MALLOC 1
14414 _ACEOF
14416 else
14417 cat >>confdefs.h <<\_ACEOF
14418 #define HAVE_MALLOC 0
14419 _ACEOF
14421 case $LIBOBJS in
14422 "malloc.$ac_objext" | \
14423 *" malloc.$ac_objext" | \
14424 "malloc.$ac_objext "* | \
14425 *" malloc.$ac_objext "* ) ;;
14426 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
14427 esac
14430 cat >>confdefs.h <<\_ACEOF
14431 #define malloc rpl_malloc
14432 _ACEOF
14439 for ac_header in stdlib.h
14441 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14443 echo "$as_me:$LINENO: checking for $ac_header" >&5
14444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14446 echo $ECHO_N "(cached) $ECHO_C" >&6
14448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14450 else
14451 # Is the header compilable?
14452 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14453 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14454 cat >conftest.$ac_ext <<_ACEOF
14455 /* confdefs.h. */
14456 _ACEOF
14457 cat confdefs.h >>conftest.$ac_ext
14458 cat >>conftest.$ac_ext <<_ACEOF
14459 /* end confdefs.h. */
14460 $ac_includes_default
14461 #include <$ac_header>
14462 _ACEOF
14463 rm -f conftest.$ac_objext
14464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14465 (eval $ac_compile) 2>conftest.er1
14466 ac_status=$?
14467 grep -v '^ *+' conftest.er1 >conftest.err
14468 rm -f conftest.er1
14469 cat conftest.err >&5
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); } &&
14472 { ac_try='test -z "$ac_c_werror_flag"
14473 || test ! -s conftest.err'
14474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14475 (eval $ac_try) 2>&5
14476 ac_status=$?
14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478 (exit $ac_status); }; } &&
14479 { ac_try='test -s conftest.$ac_objext'
14480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14481 (eval $ac_try) 2>&5
14482 ac_status=$?
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); }; }; then
14485 ac_header_compiler=yes
14486 else
14487 echo "$as_me: failed program was:" >&5
14488 sed 's/^/| /' conftest.$ac_ext >&5
14490 ac_header_compiler=no
14492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14493 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14494 echo "${ECHO_T}$ac_header_compiler" >&6
14496 # Is the header present?
14497 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14499 cat >conftest.$ac_ext <<_ACEOF
14500 /* confdefs.h. */
14501 _ACEOF
14502 cat confdefs.h >>conftest.$ac_ext
14503 cat >>conftest.$ac_ext <<_ACEOF
14504 /* end confdefs.h. */
14505 #include <$ac_header>
14506 _ACEOF
14507 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14508 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14509 ac_status=$?
14510 grep -v '^ *+' conftest.er1 >conftest.err
14511 rm -f conftest.er1
14512 cat conftest.err >&5
14513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514 (exit $ac_status); } >/dev/null; then
14515 if test -s conftest.err; then
14516 ac_cpp_err=$ac_c_preproc_warn_flag
14517 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14518 else
14519 ac_cpp_err=
14521 else
14522 ac_cpp_err=yes
14524 if test -z "$ac_cpp_err"; then
14525 ac_header_preproc=yes
14526 else
14527 echo "$as_me: failed program was:" >&5
14528 sed 's/^/| /' conftest.$ac_ext >&5
14530 ac_header_preproc=no
14532 rm -f conftest.err conftest.$ac_ext
14533 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14534 echo "${ECHO_T}$ac_header_preproc" >&6
14536 # So? What about this header?
14537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14538 yes:no: )
14539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14542 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14543 ac_header_preproc=yes
14545 no:yes:* )
14546 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14547 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14548 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14549 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14550 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14551 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14552 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14553 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14556 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14557 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14559 cat <<\_ASBOX
14560 ## ------------------------------ ##
14561 ## Report this to admin@amule.org ##
14562 ## ------------------------------ ##
14563 _ASBOX
14565 sed "s/^/$as_me: WARNING: /" >&2
14567 esac
14568 echo "$as_me:$LINENO: checking for $ac_header" >&5
14569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14571 echo $ECHO_N "(cached) $ECHO_C" >&6
14572 else
14573 eval "$as_ac_Header=\$ac_header_preproc"
14575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14580 cat >>confdefs.h <<_ACEOF
14581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14582 _ACEOF
14586 done
14588 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
14589 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
14590 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
14591 echo $ECHO_N "(cached) $ECHO_C" >&6
14592 else
14593 if test "$cross_compiling" = yes; then
14594 ac_cv_func_realloc_0_nonnull=no
14595 else
14596 cat >conftest.$ac_ext <<_ACEOF
14597 /* confdefs.h. */
14598 _ACEOF
14599 cat confdefs.h >>conftest.$ac_ext
14600 cat >>conftest.$ac_ext <<_ACEOF
14601 /* end confdefs.h. */
14602 #if STDC_HEADERS || HAVE_STDLIB_H
14603 # include <stdlib.h>
14604 #else
14605 char *realloc ();
14606 #endif
14609 main ()
14611 exit (realloc (0, 0) ? 0 : 1);
14613 return 0;
14615 _ACEOF
14616 rm -f conftest$ac_exeext
14617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14618 (eval $ac_link) 2>&5
14619 ac_status=$?
14620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14623 (eval $ac_try) 2>&5
14624 ac_status=$?
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); }; }; then
14627 ac_cv_func_realloc_0_nonnull=yes
14628 else
14629 echo "$as_me: program exited with status $ac_status" >&5
14630 echo "$as_me: failed program was:" >&5
14631 sed 's/^/| /' conftest.$ac_ext >&5
14633 ( exit $ac_status )
14634 ac_cv_func_realloc_0_nonnull=no
14636 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14639 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
14640 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
14641 if test $ac_cv_func_realloc_0_nonnull = yes; then
14643 cat >>confdefs.h <<\_ACEOF
14644 #define HAVE_REALLOC 1
14645 _ACEOF
14647 else
14648 cat >>confdefs.h <<\_ACEOF
14649 #define HAVE_REALLOC 0
14650 _ACEOF
14652 case $LIBOBJS in
14653 "realloc.$ac_objext" | \
14654 *" realloc.$ac_objext" | \
14655 "realloc.$ac_objext "* | \
14656 *" realloc.$ac_objext "* ) ;;
14657 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
14658 esac
14661 cat >>confdefs.h <<\_ACEOF
14662 #define realloc rpl_realloc
14663 _ACEOF
14703 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 mmap
14705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14706 echo "$as_me:$LINENO: checking for $ac_func" >&5
14707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14708 if eval "test \"\${$as_ac_var+set}\" = set"; then
14709 echo $ECHO_N "(cached) $ECHO_C" >&6
14710 else
14711 cat >conftest.$ac_ext <<_ACEOF
14712 /* confdefs.h. */
14713 _ACEOF
14714 cat confdefs.h >>conftest.$ac_ext
14715 cat >>conftest.$ac_ext <<_ACEOF
14716 /* end confdefs.h. */
14717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14719 #define $ac_func innocuous_$ac_func
14721 /* System header to define __stub macros and hopefully few prototypes,
14722 which can conflict with char $ac_func (); below.
14723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14724 <limits.h> exists even on freestanding compilers. */
14726 #ifdef __STDC__
14727 # include <limits.h>
14728 #else
14729 # include <assert.h>
14730 #endif
14732 #undef $ac_func
14734 /* Override any gcc2 internal prototype to avoid an error. */
14735 #ifdef __cplusplus
14736 extern "C"
14738 #endif
14739 /* We use char because int might match the return type of a gcc2
14740 builtin and then its argument prototype would still apply. */
14741 char $ac_func ();
14742 /* The GNU C library defines this for functions which it implements
14743 to always fail with ENOSYS. Some functions are actually named
14744 something starting with __ and the normal name is an alias. */
14745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14746 choke me
14747 #else
14748 char (*f) () = $ac_func;
14749 #endif
14750 #ifdef __cplusplus
14752 #endif
14755 main ()
14757 return f != $ac_func;
14759 return 0;
14761 _ACEOF
14762 rm -f conftest.$ac_objext conftest$ac_exeext
14763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14764 (eval $ac_link) 2>conftest.er1
14765 ac_status=$?
14766 grep -v '^ *+' conftest.er1 >conftest.err
14767 rm -f conftest.er1
14768 cat conftest.err >&5
14769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770 (exit $ac_status); } &&
14771 { ac_try='test -z "$ac_c_werror_flag"
14772 || test ! -s conftest.err'
14773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14774 (eval $ac_try) 2>&5
14775 ac_status=$?
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); }; } &&
14778 { ac_try='test -s conftest$ac_exeext'
14779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14780 (eval $ac_try) 2>&5
14781 ac_status=$?
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); }; }; then
14784 eval "$as_ac_var=yes"
14785 else
14786 echo "$as_me: failed program was:" >&5
14787 sed 's/^/| /' conftest.$ac_ext >&5
14789 eval "$as_ac_var=no"
14791 rm -f conftest.err conftest.$ac_objext \
14792 conftest$ac_exeext conftest.$ac_ext
14794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14795 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14796 if test `eval echo '${'$as_ac_var'}'` = yes; then
14797 cat >>confdefs.h <<_ACEOF
14798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14799 _ACEOF
14802 done
14804 #-------------------------------------------------------------------------------
14805 # End of autoscan stuff
14806 #-------------------------------------------------------------------------------
14812 for ac_func in mkdir getrlimit setrlimit getopt_long
14814 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14815 echo "$as_me:$LINENO: checking for $ac_func" >&5
14816 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14817 if eval "test \"\${$as_ac_var+set}\" = set"; then
14818 echo $ECHO_N "(cached) $ECHO_C" >&6
14819 else
14820 cat >conftest.$ac_ext <<_ACEOF
14821 /* confdefs.h. */
14822 _ACEOF
14823 cat confdefs.h >>conftest.$ac_ext
14824 cat >>conftest.$ac_ext <<_ACEOF
14825 /* end confdefs.h. */
14826 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14828 #define $ac_func innocuous_$ac_func
14830 /* System header to define __stub macros and hopefully few prototypes,
14831 which can conflict with char $ac_func (); below.
14832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14833 <limits.h> exists even on freestanding compilers. */
14835 #ifdef __STDC__
14836 # include <limits.h>
14837 #else
14838 # include <assert.h>
14839 #endif
14841 #undef $ac_func
14843 /* Override any gcc2 internal prototype to avoid an error. */
14844 #ifdef __cplusplus
14845 extern "C"
14847 #endif
14848 /* We use char because int might match the return type of a gcc2
14849 builtin and then its argument prototype would still apply. */
14850 char $ac_func ();
14851 /* The GNU C library defines this for functions which it implements
14852 to always fail with ENOSYS. Some functions are actually named
14853 something starting with __ and the normal name is an alias. */
14854 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14855 choke me
14856 #else
14857 char (*f) () = $ac_func;
14858 #endif
14859 #ifdef __cplusplus
14861 #endif
14864 main ()
14866 return f != $ac_func;
14868 return 0;
14870 _ACEOF
14871 rm -f conftest.$ac_objext conftest$ac_exeext
14872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14873 (eval $ac_link) 2>conftest.er1
14874 ac_status=$?
14875 grep -v '^ *+' conftest.er1 >conftest.err
14876 rm -f conftest.er1
14877 cat conftest.err >&5
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); } &&
14880 { ac_try='test -z "$ac_c_werror_flag"
14881 || test ! -s conftest.err'
14882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14883 (eval $ac_try) 2>&5
14884 ac_status=$?
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); }; } &&
14887 { ac_try='test -s conftest$ac_exeext'
14888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14889 (eval $ac_try) 2>&5
14890 ac_status=$?
14891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892 (exit $ac_status); }; }; then
14893 eval "$as_ac_var=yes"
14894 else
14895 echo "$as_me: failed program was:" >&5
14896 sed 's/^/| /' conftest.$ac_ext >&5
14898 eval "$as_ac_var=no"
14900 rm -f conftest.err conftest.$ac_objext \
14901 conftest$ac_exeext conftest.$ac_ext
14903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14904 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14905 if test `eval echo '${'$as_ac_var'}'` = yes; then
14906 cat >>confdefs.h <<_ACEOF
14907 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14908 _ACEOF
14911 done
14914 mule_backup_CPPFLAGS="$CPPFLAGS"
14915 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600"
14916 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
14917 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
14918 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
14919 echo $ECHO_N "(cached) $ECHO_C" >&6
14920 else
14921 cat >conftest.$ac_ext <<_ACEOF
14922 /* confdefs.h. */
14923 _ACEOF
14924 cat confdefs.h >>conftest.$ac_ext
14925 cat >>conftest.$ac_ext <<_ACEOF
14926 /* end confdefs.h. */
14927 $ac_includes_default
14929 main ()
14931 #ifndef strerror_r
14932 char *p = (char *) strerror_r;
14933 #endif
14936 return 0;
14938 _ACEOF
14939 rm -f conftest.$ac_objext
14940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14941 (eval $ac_compile) 2>conftest.er1
14942 ac_status=$?
14943 grep -v '^ *+' conftest.er1 >conftest.err
14944 rm -f conftest.er1
14945 cat conftest.err >&5
14946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947 (exit $ac_status); } &&
14948 { ac_try='test -z "$ac_c_werror_flag"
14949 || test ! -s conftest.err'
14950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14951 (eval $ac_try) 2>&5
14952 ac_status=$?
14953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954 (exit $ac_status); }; } &&
14955 { ac_try='test -s conftest.$ac_objext'
14956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14957 (eval $ac_try) 2>&5
14958 ac_status=$?
14959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960 (exit $ac_status); }; }; then
14961 ac_cv_have_decl_strerror_r=yes
14962 else
14963 echo "$as_me: failed program was:" >&5
14964 sed 's/^/| /' conftest.$ac_ext >&5
14966 ac_cv_have_decl_strerror_r=no
14968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14970 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
14971 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
14972 if test $ac_cv_have_decl_strerror_r = yes; then
14974 cat >>confdefs.h <<_ACEOF
14975 #define HAVE_DECL_STRERROR_R 1
14976 _ACEOF
14979 else
14980 cat >>confdefs.h <<_ACEOF
14981 #define HAVE_DECL_STRERROR_R 0
14982 _ACEOF
14989 for ac_func in strerror_r
14991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14992 echo "$as_me:$LINENO: checking for $ac_func" >&5
14993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14994 if eval "test \"\${$as_ac_var+set}\" = set"; then
14995 echo $ECHO_N "(cached) $ECHO_C" >&6
14996 else
14997 cat >conftest.$ac_ext <<_ACEOF
14998 /* confdefs.h. */
14999 _ACEOF
15000 cat confdefs.h >>conftest.$ac_ext
15001 cat >>conftest.$ac_ext <<_ACEOF
15002 /* end confdefs.h. */
15003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15005 #define $ac_func innocuous_$ac_func
15007 /* System header to define __stub macros and hopefully few prototypes,
15008 which can conflict with char $ac_func (); below.
15009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15010 <limits.h> exists even on freestanding compilers. */
15012 #ifdef __STDC__
15013 # include <limits.h>
15014 #else
15015 # include <assert.h>
15016 #endif
15018 #undef $ac_func
15020 /* Override any gcc2 internal prototype to avoid an error. */
15021 #ifdef __cplusplus
15022 extern "C"
15024 #endif
15025 /* We use char because int might match the return type of a gcc2
15026 builtin and then its argument prototype would still apply. */
15027 char $ac_func ();
15028 /* The GNU C library defines this for functions which it implements
15029 to always fail with ENOSYS. Some functions are actually named
15030 something starting with __ and the normal name is an alias. */
15031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15032 choke me
15033 #else
15034 char (*f) () = $ac_func;
15035 #endif
15036 #ifdef __cplusplus
15038 #endif
15041 main ()
15043 return f != $ac_func;
15045 return 0;
15047 _ACEOF
15048 rm -f conftest.$ac_objext conftest$ac_exeext
15049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15050 (eval $ac_link) 2>conftest.er1
15051 ac_status=$?
15052 grep -v '^ *+' conftest.er1 >conftest.err
15053 rm -f conftest.er1
15054 cat conftest.err >&5
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); } &&
15057 { ac_try='test -z "$ac_c_werror_flag"
15058 || test ! -s conftest.err'
15059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15060 (eval $ac_try) 2>&5
15061 ac_status=$?
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); }; } &&
15064 { ac_try='test -s conftest$ac_exeext'
15065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15066 (eval $ac_try) 2>&5
15067 ac_status=$?
15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 (exit $ac_status); }; }; then
15070 eval "$as_ac_var=yes"
15071 else
15072 echo "$as_me: failed program was:" >&5
15073 sed 's/^/| /' conftest.$ac_ext >&5
15075 eval "$as_ac_var=no"
15077 rm -f conftest.err conftest.$ac_objext \
15078 conftest$ac_exeext conftest.$ac_ext
15080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15081 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15082 if test `eval echo '${'$as_ac_var'}'` = yes; then
15083 cat >>confdefs.h <<_ACEOF
15084 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15085 _ACEOF
15088 done
15090 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
15091 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
15092 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
15093 echo $ECHO_N "(cached) $ECHO_C" >&6
15094 else
15096 ac_cv_func_strerror_r_char_p=no
15097 if test $ac_cv_have_decl_strerror_r = yes; then
15098 cat >conftest.$ac_ext <<_ACEOF
15099 /* confdefs.h. */
15100 _ACEOF
15101 cat confdefs.h >>conftest.$ac_ext
15102 cat >>conftest.$ac_ext <<_ACEOF
15103 /* end confdefs.h. */
15104 $ac_includes_default
15106 main ()
15109 char buf[100];
15110 char x = *strerror_r (0, buf, sizeof buf);
15111 char *p = strerror_r (0, buf, sizeof buf);
15114 return 0;
15116 _ACEOF
15117 rm -f conftest.$ac_objext
15118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15119 (eval $ac_compile) 2>conftest.er1
15120 ac_status=$?
15121 grep -v '^ *+' conftest.er1 >conftest.err
15122 rm -f conftest.er1
15123 cat conftest.err >&5
15124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125 (exit $ac_status); } &&
15126 { ac_try='test -z "$ac_c_werror_flag"
15127 || test ! -s conftest.err'
15128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15129 (eval $ac_try) 2>&5
15130 ac_status=$?
15131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132 (exit $ac_status); }; } &&
15133 { ac_try='test -s conftest.$ac_objext'
15134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15135 (eval $ac_try) 2>&5
15136 ac_status=$?
15137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138 (exit $ac_status); }; }; then
15139 ac_cv_func_strerror_r_char_p=yes
15140 else
15141 echo "$as_me: failed program was:" >&5
15142 sed 's/^/| /' conftest.$ac_ext >&5
15145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15146 else
15147 # strerror_r is not declared. Choose between
15148 # systems that have relatively inaccessible declarations for the
15149 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
15150 # former has a strerror_r that returns char*, while the latter
15151 # has a strerror_r that returns `int'.
15152 # This test should segfault on the DEC system.
15153 if test "$cross_compiling" = yes; then
15155 else
15156 cat >conftest.$ac_ext <<_ACEOF
15157 /* confdefs.h. */
15158 _ACEOF
15159 cat confdefs.h >>conftest.$ac_ext
15160 cat >>conftest.$ac_ext <<_ACEOF
15161 /* end confdefs.h. */
15162 $ac_includes_default
15163 extern char *strerror_r ();
15165 main ()
15167 char buf[100];
15168 char x = *strerror_r (0, buf, sizeof buf);
15169 exit (!isalpha (x));
15171 return 0;
15173 _ACEOF
15174 rm -f conftest$ac_exeext
15175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15176 (eval $ac_link) 2>&5
15177 ac_status=$?
15178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15181 (eval $ac_try) 2>&5
15182 ac_status=$?
15183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184 (exit $ac_status); }; }; then
15185 ac_cv_func_strerror_r_char_p=yes
15186 else
15187 echo "$as_me: program exited with status $ac_status" >&5
15188 echo "$as_me: failed program was:" >&5
15189 sed 's/^/| /' conftest.$ac_ext >&5
15192 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15197 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
15198 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
15199 if test $ac_cv_func_strerror_r_char_p = yes; then
15201 cat >>confdefs.h <<\_ACEOF
15202 #define STRERROR_R_CHAR_P 1
15203 _ACEOF
15207 CPPFLAGS="$mule_backup_CPPFLAGS"
15209 # Look for a way to preallocate disk space for files.
15211 echo "$as_me:$LINENO: checking for fallocate" >&5
15212 echo $ECHO_N "checking for fallocate... $ECHO_C" >&6
15213 cat >conftest.$ac_ext <<_ACEOF
15215 /* confdefs.h. */
15216 _ACEOF
15217 cat confdefs.h >>conftest.$ac_ext
15218 cat >>conftest.$ac_ext <<_ACEOF
15219 /* end confdefs.h. */
15221 #include <linux/falloc.h>
15224 main ()
15227 fallocate(0, 0, 0, 0);
15230 return 0;
15233 _ACEOF
15234 rm -f conftest.$ac_objext conftest$ac_exeext
15235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15236 (eval $ac_link) 2>conftest.er1
15237 ac_status=$?
15238 grep -v '^ *+' conftest.er1 >conftest.err
15239 rm -f conftest.er1
15240 cat conftest.err >&5
15241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); } &&
15243 { ac_try='test -z "$ac_c_werror_flag"
15244 || test ! -s conftest.err'
15245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15246 (eval $ac_try) 2>&5
15247 ac_status=$?
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); }; } &&
15250 { ac_try='test -s conftest$ac_exeext'
15251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15252 (eval $ac_try) 2>&5
15253 ac_status=$?
15254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 (exit $ac_status); }; }; then
15259 cat >>confdefs.h <<\_ACEOF
15260 #define HAVE_FALLOCATE 1
15261 _ACEOF
15263 echo "$as_me:$LINENO: result: yes" >&5
15264 echo "${ECHO_T}yes" >&6
15266 else
15267 echo "$as_me: failed program was:" >&5
15268 sed 's/^/| /' conftest.$ac_ext >&5
15271 echo "$as_me:$LINENO: result: no" >&5
15272 echo "${ECHO_T}no" >&6
15275 rm -f conftest.err conftest.$ac_objext \
15276 conftest$ac_exeext conftest.$ac_ext
15279 echo "$as_me:$LINENO: checking for SYS_fallocate" >&5
15280 echo $ECHO_N "checking for SYS_fallocate... $ECHO_C" >&6
15281 cat >conftest.$ac_ext <<_ACEOF
15283 /* confdefs.h. */
15284 _ACEOF
15285 cat confdefs.h >>conftest.$ac_ext
15286 cat >>conftest.$ac_ext <<_ACEOF
15287 /* end confdefs.h. */
15289 #include <sys/sycall.h>
15290 #include <sys/types.h>
15291 #include <unistd.h>
15294 main ()
15297 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0);
15300 return 0;
15303 _ACEOF
15304 rm -f conftest.$ac_objext conftest$ac_exeext
15305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15306 (eval $ac_link) 2>conftest.er1
15307 ac_status=$?
15308 grep -v '^ *+' conftest.er1 >conftest.err
15309 rm -f conftest.er1
15310 cat conftest.err >&5
15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); } &&
15313 { ac_try='test -z "$ac_c_werror_flag"
15314 || test ! -s conftest.err'
15315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15316 (eval $ac_try) 2>&5
15317 ac_status=$?
15318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319 (exit $ac_status); }; } &&
15320 { ac_try='test -s conftest$ac_exeext'
15321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15322 (eval $ac_try) 2>&5
15323 ac_status=$?
15324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325 (exit $ac_status); }; }; then
15329 cat >>confdefs.h <<\_ACEOF
15330 #define HAVE_SYS_FALLOCATE 1
15331 _ACEOF
15333 echo "$as_me:$LINENO: result: yes" >&5
15334 echo "${ECHO_T}yes" >&6
15336 else
15337 echo "$as_me: failed program was:" >&5
15338 sed 's/^/| /' conftest.$ac_ext >&5
15341 echo "$as_me:$LINENO: result: no" >&5
15342 echo "${ECHO_T}no" >&6
15345 rm -f conftest.err conftest.$ac_objext \
15346 conftest$ac_exeext conftest.$ac_ext
15348 echo "$as_me:$LINENO: checking for posix_fallocate" >&5
15349 echo $ECHO_N "checking for posix_fallocate... $ECHO_C" >&6
15350 cat >conftest.$ac_ext <<_ACEOF
15352 /* confdefs.h. */
15353 _ACEOF
15354 cat confdefs.h >>conftest.$ac_ext
15355 cat >>conftest.$ac_ext <<_ACEOF
15356 /* end confdefs.h. */
15358 #define _XOPEN_SOURCE 600
15359 #include <stdlib.h>
15360 #ifdef HAVE_FCNTL_H
15361 # include <fcntl.h>
15362 #endif
15365 main ()
15368 posix_fallocate(0, 0, 0);
15371 return 0;
15374 _ACEOF
15375 rm -f conftest.$ac_objext conftest$ac_exeext
15376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15377 (eval $ac_link) 2>conftest.er1
15378 ac_status=$?
15379 grep -v '^ *+' conftest.er1 >conftest.err
15380 rm -f conftest.er1
15381 cat conftest.err >&5
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); } &&
15384 { ac_try='test -z "$ac_c_werror_flag"
15385 || test ! -s conftest.err'
15386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15387 (eval $ac_try) 2>&5
15388 ac_status=$?
15389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390 (exit $ac_status); }; } &&
15391 { ac_try='test -s conftest$ac_exeext'
15392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15393 (eval $ac_try) 2>&5
15394 ac_status=$?
15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396 (exit $ac_status); }; }; then
15400 cat >>confdefs.h <<\_ACEOF
15401 #define HAVE_POSIX_FALLOCATE 1
15402 _ACEOF
15404 echo "$as_me:$LINENO: result: yes" >&5
15405 echo "${ECHO_T}yes" >&6
15407 else
15408 echo "$as_me: failed program was:" >&5
15409 sed 's/^/| /' conftest.$ac_ext >&5
15412 echo "$as_me:$LINENO: result: no" >&5
15413 echo "${ECHO_T}no" >&6
15416 rm -f conftest.err conftest.$ac_objext \
15417 conftest$ac_exeext conftest.$ac_ext
15420 # Checking Native Language Support
15423 MKINSTALLDIRS=
15424 if test -n "$ac_aux_dir"; then
15425 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
15427 if test -z "$MKINSTALLDIRS"; then
15428 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15435 # Extract the first word of "msgfmt", so it can be a program name with args.
15436 set dummy msgfmt; ac_word=$2
15437 echo "$as_me:$LINENO: checking for $ac_word" >&5
15438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15439 if test "${ac_cv_path_MSGFMT+set}" = set; then
15440 echo $ECHO_N "(cached) $ECHO_C" >&6
15441 else
15442 case "$MSGFMT" in
15444 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15447 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15448 for ac_dir in $PATH; do
15449 test -z "$ac_dir" && ac_dir=.
15450 if test -f $ac_dir/$ac_word; then
15451 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
15452 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15453 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
15454 break
15457 done
15458 IFS="$ac_save_ifs"
15459 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15461 esac
15463 MSGFMT="$ac_cv_path_MSGFMT"
15464 if test "$MSGFMT" != ":"; then
15465 echo "$as_me:$LINENO: result: $MSGFMT" >&5
15466 echo "${ECHO_T}$MSGFMT" >&6
15467 else
15468 echo "$as_me:$LINENO: result: no" >&5
15469 echo "${ECHO_T}no" >&6
15472 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15473 set dummy gmsgfmt; ac_word=$2
15474 echo "$as_me:$LINENO: checking for $ac_word" >&5
15475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15476 if test "${ac_cv_path_GMSGFMT+set}" = set; then
15477 echo $ECHO_N "(cached) $ECHO_C" >&6
15478 else
15479 case $GMSGFMT in
15480 [\\/]* | ?:[\\/]*)
15481 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15485 for as_dir in $PATH
15487 IFS=$as_save_IFS
15488 test -z "$as_dir" && as_dir=.
15489 for ac_exec_ext in '' $ac_executable_extensions; do
15490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15491 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15493 break 2
15495 done
15496 done
15498 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15500 esac
15502 GMSGFMT=$ac_cv_path_GMSGFMT
15504 if test -n "$GMSGFMT"; then
15505 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
15506 echo "${ECHO_T}$GMSGFMT" >&6
15507 else
15508 echo "$as_me:$LINENO: result: no" >&5
15509 echo "${ECHO_T}no" >&6
15513 # Extract the first word of "xgettext", so it can be a program name with args.
15514 set dummy xgettext; ac_word=$2
15515 echo "$as_me:$LINENO: checking for $ac_word" >&5
15516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15517 if test "${ac_cv_path_XGETTEXT+set}" = set; then
15518 echo $ECHO_N "(cached) $ECHO_C" >&6
15519 else
15520 case "$XGETTEXT" in
15522 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15525 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15526 for ac_dir in $PATH; do
15527 test -z "$ac_dir" && ac_dir=.
15528 if test -f $ac_dir/$ac_word; then
15529 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
15530 (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
15531 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
15532 break
15535 done
15536 IFS="$ac_save_ifs"
15537 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15539 esac
15541 XGETTEXT="$ac_cv_path_XGETTEXT"
15542 if test "$XGETTEXT" != ":"; then
15543 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15544 echo "${ECHO_T}$XGETTEXT" >&6
15545 else
15546 echo "$as_me:$LINENO: result: no" >&5
15547 echo "${ECHO_T}no" >&6
15550 rm -f messages.po
15552 # Extract the first word of "msgmerge", so it can be a program name with args.
15553 set dummy msgmerge; ac_word=$2
15554 echo "$as_me:$LINENO: checking for $ac_word" >&5
15555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15556 if test "${ac_cv_path_MSGMERGE+set}" = set; then
15557 echo $ECHO_N "(cached) $ECHO_C" >&6
15558 else
15559 case "$MSGMERGE" in
15561 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15564 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15565 for ac_dir in $PATH; do
15566 test -z "$ac_dir" && ac_dir=.
15567 if test -f $ac_dir/$ac_word; then
15568 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
15569 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
15570 break
15573 done
15574 IFS="$ac_save_ifs"
15575 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
15577 esac
15579 MSGMERGE="$ac_cv_path_MSGMERGE"
15580 if test "$MSGMERGE" != ":"; then
15581 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15582 echo "${ECHO_T}$MSGMERGE" >&6
15583 else
15584 echo "$as_me:$LINENO: result: no" >&5
15585 echo "${ECHO_T}no" >&6
15589 if test "$GMSGFMT" != ":"; then
15590 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
15591 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15593 else
15594 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
15595 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
15596 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
15597 GMSGFMT=":"
15601 if test "$XGETTEXT" != ":"; then
15602 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
15603 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15605 else
15606 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
15607 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
15608 XGETTEXT=":"
15610 rm -f messages.po
15613 ac_config_commands="$ac_config_commands default-1"
15616 echo "$as_me:$LINENO: checking for library containing strerror" >&5
15617 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
15618 if test "${ac_cv_search_strerror+set}" = set; then
15619 echo $ECHO_N "(cached) $ECHO_C" >&6
15620 else
15621 ac_func_search_save_LIBS=$LIBS
15622 ac_cv_search_strerror=no
15623 cat >conftest.$ac_ext <<_ACEOF
15624 /* confdefs.h. */
15625 _ACEOF
15626 cat confdefs.h >>conftest.$ac_ext
15627 cat >>conftest.$ac_ext <<_ACEOF
15628 /* end confdefs.h. */
15630 /* Override any gcc2 internal prototype to avoid an error. */
15631 #ifdef __cplusplus
15632 extern "C"
15633 #endif
15634 /* We use char because int might match the return type of a gcc2
15635 builtin and then its argument prototype would still apply. */
15636 char strerror ();
15638 main ()
15640 strerror ();
15642 return 0;
15644 _ACEOF
15645 rm -f conftest.$ac_objext conftest$ac_exeext
15646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15647 (eval $ac_link) 2>conftest.er1
15648 ac_status=$?
15649 grep -v '^ *+' conftest.er1 >conftest.err
15650 rm -f conftest.er1
15651 cat conftest.err >&5
15652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); } &&
15654 { ac_try='test -z "$ac_c_werror_flag"
15655 || test ! -s conftest.err'
15656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15657 (eval $ac_try) 2>&5
15658 ac_status=$?
15659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660 (exit $ac_status); }; } &&
15661 { ac_try='test -s conftest$ac_exeext'
15662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15663 (eval $ac_try) 2>&5
15664 ac_status=$?
15665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666 (exit $ac_status); }; }; then
15667 ac_cv_search_strerror="none required"
15668 else
15669 echo "$as_me: failed program was:" >&5
15670 sed 's/^/| /' conftest.$ac_ext >&5
15673 rm -f conftest.err conftest.$ac_objext \
15674 conftest$ac_exeext conftest.$ac_ext
15675 if test "$ac_cv_search_strerror" = no; then
15676 for ac_lib in cposix; do
15677 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15678 cat >conftest.$ac_ext <<_ACEOF
15679 /* confdefs.h. */
15680 _ACEOF
15681 cat confdefs.h >>conftest.$ac_ext
15682 cat >>conftest.$ac_ext <<_ACEOF
15683 /* end confdefs.h. */
15685 /* Override any gcc2 internal prototype to avoid an error. */
15686 #ifdef __cplusplus
15687 extern "C"
15688 #endif
15689 /* We use char because int might match the return type of a gcc2
15690 builtin and then its argument prototype would still apply. */
15691 char strerror ();
15693 main ()
15695 strerror ();
15697 return 0;
15699 _ACEOF
15700 rm -f conftest.$ac_objext conftest$ac_exeext
15701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15702 (eval $ac_link) 2>conftest.er1
15703 ac_status=$?
15704 grep -v '^ *+' conftest.er1 >conftest.err
15705 rm -f conftest.er1
15706 cat conftest.err >&5
15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); } &&
15709 { ac_try='test -z "$ac_c_werror_flag"
15710 || test ! -s conftest.err'
15711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15712 (eval $ac_try) 2>&5
15713 ac_status=$?
15714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); }; } &&
15716 { ac_try='test -s conftest$ac_exeext'
15717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15718 (eval $ac_try) 2>&5
15719 ac_status=$?
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); }; }; then
15722 ac_cv_search_strerror="-l$ac_lib"
15723 break
15724 else
15725 echo "$as_me: failed program was:" >&5
15726 sed 's/^/| /' conftest.$ac_ext >&5
15729 rm -f conftest.err conftest.$ac_objext \
15730 conftest$ac_exeext conftest.$ac_ext
15731 done
15733 LIBS=$ac_func_search_save_LIBS
15735 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
15736 echo "${ECHO_T}$ac_cv_search_strerror" >&6
15737 if test "$ac_cv_search_strerror" != no; then
15738 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
15743 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
15744 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
15745 if test "${ac_cv_gnu_library_2_1+set}" = set; then
15746 echo $ECHO_N "(cached) $ECHO_C" >&6
15747 else
15748 cat >conftest.$ac_ext <<_ACEOF
15749 /* confdefs.h. */
15750 _ACEOF
15751 cat confdefs.h >>conftest.$ac_ext
15752 cat >>conftest.$ac_ext <<_ACEOF
15753 /* end confdefs.h. */
15755 #include <features.h>
15756 #ifdef __GNU_LIBRARY__
15757 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
15758 Lucky GNU user
15759 #endif
15760 #endif
15762 _ACEOF
15763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15764 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
15765 ac_cv_gnu_library_2_1=yes
15766 else
15767 ac_cv_gnu_library_2_1=no
15769 rm -f conftest*
15774 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
15775 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
15777 GLIBC21="$ac_cv_gnu_library_2_1"
15782 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
15783 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
15784 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
15785 echo $ECHO_N "(cached) $ECHO_C" >&6
15786 else
15788 if test "$cross_compiling" = yes; then
15790 # Guess based on the CPU.
15791 case "$host_cpu" in
15792 alpha* | i3456786 | m68k | s390*)
15793 gt_cv_int_divbyzero_sigfpe="guessing yes";;
15795 gt_cv_int_divbyzero_sigfpe="guessing no";;
15796 esac
15798 else
15799 cat >conftest.$ac_ext <<_ACEOF
15800 /* confdefs.h. */
15801 _ACEOF
15802 cat confdefs.h >>conftest.$ac_ext
15803 cat >>conftest.$ac_ext <<_ACEOF
15804 /* end confdefs.h. */
15806 #include <stdlib.h>
15807 #include <signal.h>
15809 static void
15810 #ifdef __cplusplus
15811 sigfpe_handler (int sig)
15812 #else
15813 sigfpe_handler (sig) int sig;
15814 #endif
15816 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
15817 exit (sig != SIGFPE);
15820 int x = 1;
15821 int y = 0;
15822 int z;
15823 int nan;
15825 int main ()
15827 signal (SIGFPE, sigfpe_handler);
15828 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
15829 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
15830 signal (SIGTRAP, sigfpe_handler);
15831 #endif
15832 /* Linux/SPARC yields signal SIGILL. */
15833 #if defined (__sparc__) && defined (__linux__)
15834 signal (SIGILL, sigfpe_handler);
15835 #endif
15837 z = x / y;
15838 nan = y / y;
15839 exit (1);
15842 _ACEOF
15843 rm -f conftest$ac_exeext
15844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15845 (eval $ac_link) 2>&5
15846 ac_status=$?
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15850 (eval $ac_try) 2>&5
15851 ac_status=$?
15852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853 (exit $ac_status); }; }; then
15854 gt_cv_int_divbyzero_sigfpe=yes
15855 else
15856 echo "$as_me: program exited with status $ac_status" >&5
15857 echo "$as_me: failed program was:" >&5
15858 sed 's/^/| /' conftest.$ac_ext >&5
15860 ( exit $ac_status )
15861 gt_cv_int_divbyzero_sigfpe=no
15863 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15867 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
15868 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
15869 case "$gt_cv_int_divbyzero_sigfpe" in
15870 *yes) value=1;;
15871 *) value=0;;
15872 esac
15874 cat >>confdefs.h <<_ACEOF
15875 #define INTDIV0_RAISES_SIGFPE $value
15876 _ACEOF
15880 echo "$as_me:$LINENO: checking for inttypes.h" >&5
15881 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
15882 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
15883 echo $ECHO_N "(cached) $ECHO_C" >&6
15884 else
15885 cat >conftest.$ac_ext <<_ACEOF
15886 /* confdefs.h. */
15887 _ACEOF
15888 cat confdefs.h >>conftest.$ac_ext
15889 cat >>conftest.$ac_ext <<_ACEOF
15890 /* end confdefs.h. */
15891 #include <sys/types.h>
15892 #include <inttypes.h>
15894 main ()
15896 uintmax_t i = (uintmax_t) -1;
15898 return 0;
15900 _ACEOF
15901 rm -f conftest.$ac_objext
15902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15903 (eval $ac_compile) 2>conftest.er1
15904 ac_status=$?
15905 grep -v '^ *+' conftest.er1 >conftest.err
15906 rm -f conftest.er1
15907 cat conftest.err >&5
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); } &&
15910 { ac_try='test -z "$ac_c_werror_flag"
15911 || test ! -s conftest.err'
15912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15913 (eval $ac_try) 2>&5
15914 ac_status=$?
15915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916 (exit $ac_status); }; } &&
15917 { ac_try='test -s conftest.$ac_objext'
15918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15919 (eval $ac_try) 2>&5
15920 ac_status=$?
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); }; }; then
15923 jm_ac_cv_header_inttypes_h=yes
15924 else
15925 echo "$as_me: failed program was:" >&5
15926 sed 's/^/| /' conftest.$ac_ext >&5
15928 jm_ac_cv_header_inttypes_h=no
15930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15932 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
15933 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
15934 if test $jm_ac_cv_header_inttypes_h = yes; then
15936 cat >>confdefs.h <<_ACEOF
15937 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
15938 _ACEOF
15943 echo "$as_me:$LINENO: checking for stdint.h" >&5
15944 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
15945 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
15946 echo $ECHO_N "(cached) $ECHO_C" >&6
15947 else
15948 cat >conftest.$ac_ext <<_ACEOF
15949 /* confdefs.h. */
15950 _ACEOF
15951 cat confdefs.h >>conftest.$ac_ext
15952 cat >>conftest.$ac_ext <<_ACEOF
15953 /* end confdefs.h. */
15954 #include <sys/types.h>
15955 #include <stdint.h>
15957 main ()
15959 uintmax_t i = (uintmax_t) -1;
15961 return 0;
15963 _ACEOF
15964 rm -f conftest.$ac_objext
15965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15966 (eval $ac_compile) 2>conftest.er1
15967 ac_status=$?
15968 grep -v '^ *+' conftest.er1 >conftest.err
15969 rm -f conftest.er1
15970 cat conftest.err >&5
15971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972 (exit $ac_status); } &&
15973 { ac_try='test -z "$ac_c_werror_flag"
15974 || test ! -s conftest.err'
15975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15976 (eval $ac_try) 2>&5
15977 ac_status=$?
15978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979 (exit $ac_status); }; } &&
15980 { ac_try='test -s conftest.$ac_objext'
15981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15982 (eval $ac_try) 2>&5
15983 ac_status=$?
15984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985 (exit $ac_status); }; }; then
15986 jm_ac_cv_header_stdint_h=yes
15987 else
15988 echo "$as_me: failed program was:" >&5
15989 sed 's/^/| /' conftest.$ac_ext >&5
15991 jm_ac_cv_header_stdint_h=no
15993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15995 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
15996 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
15997 if test $jm_ac_cv_header_stdint_h = yes; then
15999 cat >>confdefs.h <<_ACEOF
16000 #define HAVE_STDINT_H_WITH_UINTMAX 1
16001 _ACEOF
16006 echo "$as_me:$LINENO: checking for unsigned long long" >&5
16007 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
16008 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
16009 echo $ECHO_N "(cached) $ECHO_C" >&6
16010 else
16011 cat >conftest.$ac_ext <<_ACEOF
16012 /* confdefs.h. */
16013 _ACEOF
16014 cat confdefs.h >>conftest.$ac_ext
16015 cat >>conftest.$ac_ext <<_ACEOF
16016 /* end confdefs.h. */
16017 unsigned long long ull = 1; int i = 63;
16019 main ()
16021 unsigned long long ullmax = (unsigned long long) -1;
16022 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
16024 return 0;
16026 _ACEOF
16027 rm -f conftest.$ac_objext conftest$ac_exeext
16028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16029 (eval $ac_link) 2>conftest.er1
16030 ac_status=$?
16031 grep -v '^ *+' conftest.er1 >conftest.err
16032 rm -f conftest.er1
16033 cat conftest.err >&5
16034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035 (exit $ac_status); } &&
16036 { ac_try='test -z "$ac_c_werror_flag"
16037 || test ! -s conftest.err'
16038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16039 (eval $ac_try) 2>&5
16040 ac_status=$?
16041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); }; } &&
16043 { ac_try='test -s conftest$ac_exeext'
16044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16045 (eval $ac_try) 2>&5
16046 ac_status=$?
16047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048 (exit $ac_status); }; }; then
16049 ac_cv_type_unsigned_long_long=yes
16050 else
16051 echo "$as_me: failed program was:" >&5
16052 sed 's/^/| /' conftest.$ac_ext >&5
16054 ac_cv_type_unsigned_long_long=no
16056 rm -f conftest.err conftest.$ac_objext \
16057 conftest$ac_exeext conftest.$ac_ext
16059 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
16060 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
16061 if test $ac_cv_type_unsigned_long_long = yes; then
16063 cat >>confdefs.h <<\_ACEOF
16064 #define HAVE_UNSIGNED_LONG_LONG 1
16065 _ACEOF
16072 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
16074 test $ac_cv_type_unsigned_long_long = yes \
16075 && ac_type='unsigned long long' \
16076 || ac_type='unsigned long'
16078 cat >>confdefs.h <<_ACEOF
16079 #define uintmax_t $ac_type
16080 _ACEOF
16085 echo "$as_me:$LINENO: checking for inttypes.h" >&5
16086 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
16087 if test "${gt_cv_header_inttypes_h+set}" = set; then
16088 echo $ECHO_N "(cached) $ECHO_C" >&6
16089 else
16091 cat >conftest.$ac_ext <<_ACEOF
16092 /* confdefs.h. */
16093 _ACEOF
16094 cat confdefs.h >>conftest.$ac_ext
16095 cat >>conftest.$ac_ext <<_ACEOF
16096 /* end confdefs.h. */
16097 #include <sys/types.h>
16098 #include <inttypes.h>
16100 main ()
16104 return 0;
16106 _ACEOF
16107 rm -f conftest.$ac_objext
16108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16109 (eval $ac_compile) 2>conftest.er1
16110 ac_status=$?
16111 grep -v '^ *+' conftest.er1 >conftest.err
16112 rm -f conftest.er1
16113 cat conftest.err >&5
16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 (exit $ac_status); } &&
16116 { ac_try='test -z "$ac_c_werror_flag"
16117 || test ! -s conftest.err'
16118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16119 (eval $ac_try) 2>&5
16120 ac_status=$?
16121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122 (exit $ac_status); }; } &&
16123 { ac_try='test -s conftest.$ac_objext'
16124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16125 (eval $ac_try) 2>&5
16126 ac_status=$?
16127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16128 (exit $ac_status); }; }; then
16129 gt_cv_header_inttypes_h=yes
16130 else
16131 echo "$as_me: failed program was:" >&5
16132 sed 's/^/| /' conftest.$ac_ext >&5
16134 gt_cv_header_inttypes_h=no
16136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16139 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
16140 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
16141 if test $gt_cv_header_inttypes_h = yes; then
16143 cat >>confdefs.h <<_ACEOF
16144 #define HAVE_INTTYPES_H 1
16145 _ACEOF
16151 if test $gt_cv_header_inttypes_h = yes; then
16152 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
16153 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
16154 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
16155 echo $ECHO_N "(cached) $ECHO_C" >&6
16156 else
16158 cat >conftest.$ac_ext <<_ACEOF
16159 /* confdefs.h. */
16160 _ACEOF
16161 cat confdefs.h >>conftest.$ac_ext
16162 cat >>conftest.$ac_ext <<_ACEOF
16163 /* end confdefs.h. */
16164 #include <inttypes.h>
16165 #ifdef PRId32
16166 char *p = PRId32;
16167 #endif
16170 main ()
16174 return 0;
16176 _ACEOF
16177 rm -f conftest.$ac_objext
16178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16179 (eval $ac_compile) 2>conftest.er1
16180 ac_status=$?
16181 grep -v '^ *+' conftest.er1 >conftest.err
16182 rm -f conftest.er1
16183 cat conftest.err >&5
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); } &&
16186 { ac_try='test -z "$ac_c_werror_flag"
16187 || test ! -s conftest.err'
16188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16189 (eval $ac_try) 2>&5
16190 ac_status=$?
16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); }; } &&
16193 { ac_try='test -s conftest.$ac_objext'
16194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16195 (eval $ac_try) 2>&5
16196 ac_status=$?
16197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198 (exit $ac_status); }; }; then
16199 gt_cv_inttypes_pri_broken=no
16200 else
16201 echo "$as_me: failed program was:" >&5
16202 sed 's/^/| /' conftest.$ac_ext >&5
16204 gt_cv_inttypes_pri_broken=yes
16206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16209 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
16210 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
16212 if test "$gt_cv_inttypes_pri_broken" = yes; then
16214 cat >>confdefs.h <<_ACEOF
16215 #define PRI_MACROS_BROKEN 1
16216 _ACEOF
16221 if test "X$prefix" = "XNONE"; then
16222 acl_final_prefix="$ac_default_prefix"
16223 else
16224 acl_final_prefix="$prefix"
16226 if test "X$exec_prefix" = "XNONE"; then
16227 acl_final_exec_prefix='${prefix}'
16228 else
16229 acl_final_exec_prefix="$exec_prefix"
16231 acl_save_prefix="$prefix"
16232 prefix="$acl_final_prefix"
16233 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16234 prefix="$acl_save_prefix"
16237 # Check whether --with-gnu-ld or --without-gnu-ld was given.
16238 if test "${with_gnu_ld+set}" = set; then
16239 withval="$with_gnu_ld"
16240 test "$withval" = no || with_gnu_ld=yes
16241 else
16242 with_gnu_ld=no
16244 ac_prog=ld
16245 if test "$GCC" = yes; then
16246 # Check if gcc -print-prog-name=ld gives a path.
16247 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16248 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
16249 case $host in
16250 *-*-mingw*)
16251 # gcc leaves a trailing carriage return which upsets mingw
16252 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16254 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16255 esac
16256 case $ac_prog in
16257 # Accept absolute paths.
16258 [\\/]* | [A-Za-z]:[\\/]*)
16259 re_direlt='/[^/][^/]*/\.\./'
16260 # Canonicalize the path of ld
16261 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16262 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16263 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16264 done
16265 test -z "$LD" && LD="$ac_prog"
16268 # If it fails, then pretend we aren't using GCC.
16269 ac_prog=ld
16272 # If it is relative, then search for the first ld in PATH.
16273 with_gnu_ld=unknown
16275 esac
16276 elif test "$with_gnu_ld" = yes; then
16277 echo "$as_me:$LINENO: checking for GNU ld" >&5
16278 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
16279 else
16280 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16281 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
16283 if test "${acl_cv_path_LD+set}" = set; then
16284 echo $ECHO_N "(cached) $ECHO_C" >&6
16285 else
16286 if test -z "$LD"; then
16287 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16288 for ac_dir in $PATH; do
16289 test -z "$ac_dir" && ac_dir=.
16290 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16291 acl_cv_path_LD="$ac_dir/$ac_prog"
16292 # Check to see if the program is GNU ld. I'd rather use --version,
16293 # but apparently some GNU ld's only accept -v.
16294 # Break only if it was the GNU/non-GNU ld that we prefer.
16295 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
16296 test "$with_gnu_ld" != no && break
16297 else
16298 test "$with_gnu_ld" != yes && break
16301 done
16302 IFS="$ac_save_ifs"
16303 else
16304 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16308 LD="$acl_cv_path_LD"
16309 if test -n "$LD"; then
16310 echo "$as_me:$LINENO: result: $LD" >&5
16311 echo "${ECHO_T}$LD" >&6
16312 else
16313 echo "$as_me:$LINENO: result: no" >&5
16314 echo "${ECHO_T}no" >&6
16316 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16317 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16318 { (exit 1); exit 1; }; }
16319 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16320 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
16321 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16322 echo $ECHO_N "(cached) $ECHO_C" >&6
16323 else
16324 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16325 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
16326 acl_cv_prog_gnu_ld=yes
16327 else
16328 acl_cv_prog_gnu_ld=no
16331 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16332 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
16333 with_gnu_ld=$acl_cv_prog_gnu_ld
16337 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16338 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
16339 if test "${acl_cv_rpath+set}" = set; then
16340 echo $ECHO_N "(cached) $ECHO_C" >&6
16341 else
16343 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16344 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16345 . ./conftest.sh
16346 rm -f ./conftest.sh
16347 acl_cv_rpath=done
16350 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16351 echo "${ECHO_T}$acl_cv_rpath" >&6
16352 wl="$acl_cv_wl"
16353 libext="$acl_cv_libext"
16354 shlibext="$acl_cv_shlibext"
16355 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16356 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16357 hardcode_direct="$acl_cv_hardcode_direct"
16358 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16359 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
16360 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
16361 # Check whether --enable-rpath or --disable-rpath was given.
16362 if test "${enable_rpath+set}" = set; then
16363 enableval="$enable_rpath"
16365 else
16366 enable_rpath=yes
16375 use_additional=yes
16377 acl_save_prefix="$prefix"
16378 prefix="$acl_final_prefix"
16379 acl_save_exec_prefix="$exec_prefix"
16380 exec_prefix="$acl_final_exec_prefix"
16382 eval additional_includedir=\"$includedir\"
16383 eval additional_libdir=\"$libdir\"
16385 exec_prefix="$acl_save_exec_prefix"
16386 prefix="$acl_save_prefix"
16389 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
16390 if test "${with_libiconv_prefix+set}" = set; then
16391 withval="$with_libiconv_prefix"
16393 if test "X$withval" = "Xno"; then
16394 use_additional=no
16395 else
16396 if test "X$withval" = "X"; then
16398 acl_save_prefix="$prefix"
16399 prefix="$acl_final_prefix"
16400 acl_save_exec_prefix="$exec_prefix"
16401 exec_prefix="$acl_final_exec_prefix"
16403 eval additional_includedir=\"$includedir\"
16404 eval additional_libdir=\"$libdir\"
16406 exec_prefix="$acl_save_exec_prefix"
16407 prefix="$acl_save_prefix"
16409 else
16410 additional_includedir="$withval/include"
16411 additional_libdir="$withval/lib"
16416 LIBICONV=
16417 LTLIBICONV=
16418 INCICONV=
16419 rpathdirs=
16420 ltrpathdirs=
16421 names_already_handled=
16422 names_next_round='iconv '
16423 while test -n "$names_next_round"; do
16424 names_this_round="$names_next_round"
16425 names_next_round=
16426 for name in $names_this_round; do
16427 already_handled=
16428 for n in $names_already_handled; do
16429 if test "$n" = "$name"; then
16430 already_handled=yes
16431 break
16433 done
16434 if test -z "$already_handled"; then
16435 names_already_handled="$names_already_handled $name"
16436 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16437 eval value=\"\$HAVE_LIB$uppername\"
16438 if test -n "$value"; then
16439 if test "$value" = yes; then
16440 eval value=\"\$LIB$uppername\"
16441 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16442 eval value=\"\$LTLIB$uppername\"
16443 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16444 else
16447 else
16448 found_dir=
16449 found_la=
16450 found_so=
16451 found_a=
16452 if test $use_additional = yes; then
16453 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16454 found_dir="$additional_libdir"
16455 found_so="$additional_libdir/lib$name.$shlibext"
16456 if test -f "$additional_libdir/lib$name.la"; then
16457 found_la="$additional_libdir/lib$name.la"
16459 else
16460 if test -f "$additional_libdir/lib$name.$libext"; then
16461 found_dir="$additional_libdir"
16462 found_a="$additional_libdir/lib$name.$libext"
16463 if test -f "$additional_libdir/lib$name.la"; then
16464 found_la="$additional_libdir/lib$name.la"
16469 if test "X$found_dir" = "X"; then
16470 for x in $LDFLAGS $LTLIBICONV; do
16472 acl_save_prefix="$prefix"
16473 prefix="$acl_final_prefix"
16474 acl_save_exec_prefix="$exec_prefix"
16475 exec_prefix="$acl_final_exec_prefix"
16476 eval x=\"$x\"
16477 exec_prefix="$acl_save_exec_prefix"
16478 prefix="$acl_save_prefix"
16480 case "$x" in
16481 -L*)
16482 dir=`echo "X$x" | sed -e 's/^X-L//'`
16483 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16484 found_dir="$dir"
16485 found_so="$dir/lib$name.$shlibext"
16486 if test -f "$dir/lib$name.la"; then
16487 found_la="$dir/lib$name.la"
16489 else
16490 if test -f "$dir/lib$name.$libext"; then
16491 found_dir="$dir"
16492 found_a="$dir/lib$name.$libext"
16493 if test -f "$dir/lib$name.la"; then
16494 found_la="$dir/lib$name.la"
16499 esac
16500 if test "X$found_dir" != "X"; then
16501 break
16503 done
16505 if test "X$found_dir" != "X"; then
16506 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16507 if test "X$found_so" != "X"; then
16508 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16509 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16510 else
16511 haveit=
16512 for x in $ltrpathdirs; do
16513 if test "X$x" = "X$found_dir"; then
16514 haveit=yes
16515 break
16517 done
16518 if test -z "$haveit"; then
16519 ltrpathdirs="$ltrpathdirs $found_dir"
16521 if test "$hardcode_direct" = yes; then
16522 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16523 else
16524 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16525 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16526 haveit=
16527 for x in $rpathdirs; do
16528 if test "X$x" = "X$found_dir"; then
16529 haveit=yes
16530 break
16532 done
16533 if test -z "$haveit"; then
16534 rpathdirs="$rpathdirs $found_dir"
16536 else
16537 haveit=
16538 for x in $LDFLAGS $LIBICONV; do
16540 acl_save_prefix="$prefix"
16541 prefix="$acl_final_prefix"
16542 acl_save_exec_prefix="$exec_prefix"
16543 exec_prefix="$acl_final_exec_prefix"
16544 eval x=\"$x\"
16545 exec_prefix="$acl_save_exec_prefix"
16546 prefix="$acl_save_prefix"
16548 if test "X$x" = "X-L$found_dir"; then
16549 haveit=yes
16550 break
16552 done
16553 if test -z "$haveit"; then
16554 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16556 if test "$hardcode_minus_L" != no; then
16557 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16558 else
16559 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16564 else
16565 if test "X$found_a" != "X"; then
16566 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16567 else
16568 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16571 additional_includedir=
16572 case "$found_dir" in
16573 */lib | */lib/)
16574 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16575 additional_includedir="$basedir/include"
16577 esac
16578 if test "X$additional_includedir" != "X"; then
16579 if test "X$additional_includedir" != "X/usr/include"; then
16580 haveit=
16581 if test "X$additional_includedir" = "X/usr/local/include"; then
16582 if test -n "$GCC"; then
16583 case $host_os in
16584 linux*) haveit=yes;;
16585 esac
16588 if test -z "$haveit"; then
16589 for x in $CPPFLAGS $INCICONV; do
16591 acl_save_prefix="$prefix"
16592 prefix="$acl_final_prefix"
16593 acl_save_exec_prefix="$exec_prefix"
16594 exec_prefix="$acl_final_exec_prefix"
16595 eval x=\"$x\"
16596 exec_prefix="$acl_save_exec_prefix"
16597 prefix="$acl_save_prefix"
16599 if test "X$x" = "X-I$additional_includedir"; then
16600 haveit=yes
16601 break
16603 done
16604 if test -z "$haveit"; then
16605 if test -d "$additional_includedir"; then
16606 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16612 if test -n "$found_la"; then
16613 save_libdir="$libdir"
16614 case "$found_la" in
16615 */* | *\\*) . "$found_la" ;;
16616 *) . "./$found_la" ;;
16617 esac
16618 libdir="$save_libdir"
16619 for dep in $dependency_libs; do
16620 case "$dep" in
16621 -L*)
16622 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16623 if test "X$additional_libdir" != "X/usr/lib"; then
16624 haveit=
16625 if test "X$additional_libdir" = "X/usr/local/lib"; then
16626 if test -n "$GCC"; then
16627 case $host_os in
16628 linux*) haveit=yes;;
16629 esac
16632 if test -z "$haveit"; then
16633 haveit=
16634 for x in $LDFLAGS $LIBICONV; do
16636 acl_save_prefix="$prefix"
16637 prefix="$acl_final_prefix"
16638 acl_save_exec_prefix="$exec_prefix"
16639 exec_prefix="$acl_final_exec_prefix"
16640 eval x=\"$x\"
16641 exec_prefix="$acl_save_exec_prefix"
16642 prefix="$acl_save_prefix"
16644 if test "X$x" = "X-L$additional_libdir"; then
16645 haveit=yes
16646 break
16648 done
16649 if test -z "$haveit"; then
16650 if test -d "$additional_libdir"; then
16651 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16654 haveit=
16655 for x in $LDFLAGS $LTLIBICONV; do
16657 acl_save_prefix="$prefix"
16658 prefix="$acl_final_prefix"
16659 acl_save_exec_prefix="$exec_prefix"
16660 exec_prefix="$acl_final_exec_prefix"
16661 eval x=\"$x\"
16662 exec_prefix="$acl_save_exec_prefix"
16663 prefix="$acl_save_prefix"
16665 if test "X$x" = "X-L$additional_libdir"; then
16666 haveit=yes
16667 break
16669 done
16670 if test -z "$haveit"; then
16671 if test -d "$additional_libdir"; then
16672 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16678 -R*)
16679 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16680 if test "$enable_rpath" != no; then
16681 haveit=
16682 for x in $rpathdirs; do
16683 if test "X$x" = "X$dir"; then
16684 haveit=yes
16685 break
16687 done
16688 if test -z "$haveit"; then
16689 rpathdirs="$rpathdirs $dir"
16691 haveit=
16692 for x in $ltrpathdirs; do
16693 if test "X$x" = "X$dir"; then
16694 haveit=yes
16695 break
16697 done
16698 if test -z "$haveit"; then
16699 ltrpathdirs="$ltrpathdirs $dir"
16703 -l*)
16704 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16706 *.la)
16707 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16710 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16711 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16713 esac
16714 done
16716 else
16717 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16718 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16722 done
16723 done
16724 if test "X$rpathdirs" != "X"; then
16725 if test -n "$hardcode_libdir_separator"; then
16726 alldirs=
16727 for found_dir in $rpathdirs; do
16728 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16729 done
16730 acl_save_libdir="$libdir"
16731 libdir="$alldirs"
16732 eval flag=\"$hardcode_libdir_flag_spec\"
16733 libdir="$acl_save_libdir"
16734 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16735 else
16736 for found_dir in $rpathdirs; do
16737 acl_save_libdir="$libdir"
16738 libdir="$found_dir"
16739 eval flag=\"$hardcode_libdir_flag_spec\"
16740 libdir="$acl_save_libdir"
16741 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16742 done
16745 if test "X$ltrpathdirs" != "X"; then
16746 for found_dir in $ltrpathdirs; do
16747 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16748 done
16764 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
16765 stdlib.h string.h unistd.h sys/param.h
16767 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16769 echo "$as_me:$LINENO: checking for $ac_header" >&5
16770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16772 echo $ECHO_N "(cached) $ECHO_C" >&6
16774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16775 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16776 else
16777 # Is the header compilable?
16778 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16779 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16780 cat >conftest.$ac_ext <<_ACEOF
16781 /* confdefs.h. */
16782 _ACEOF
16783 cat confdefs.h >>conftest.$ac_ext
16784 cat >>conftest.$ac_ext <<_ACEOF
16785 /* end confdefs.h. */
16786 $ac_includes_default
16787 #include <$ac_header>
16788 _ACEOF
16789 rm -f conftest.$ac_objext
16790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16791 (eval $ac_compile) 2>conftest.er1
16792 ac_status=$?
16793 grep -v '^ *+' conftest.er1 >conftest.err
16794 rm -f conftest.er1
16795 cat conftest.err >&5
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); } &&
16798 { ac_try='test -z "$ac_c_werror_flag"
16799 || test ! -s conftest.err'
16800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16801 (eval $ac_try) 2>&5
16802 ac_status=$?
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); }; } &&
16805 { ac_try='test -s conftest.$ac_objext'
16806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16807 (eval $ac_try) 2>&5
16808 ac_status=$?
16809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810 (exit $ac_status); }; }; then
16811 ac_header_compiler=yes
16812 else
16813 echo "$as_me: failed program was:" >&5
16814 sed 's/^/| /' conftest.$ac_ext >&5
16816 ac_header_compiler=no
16818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16819 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16820 echo "${ECHO_T}$ac_header_compiler" >&6
16822 # Is the header present?
16823 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16824 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16825 cat >conftest.$ac_ext <<_ACEOF
16826 /* confdefs.h. */
16827 _ACEOF
16828 cat confdefs.h >>conftest.$ac_ext
16829 cat >>conftest.$ac_ext <<_ACEOF
16830 /* end confdefs.h. */
16831 #include <$ac_header>
16832 _ACEOF
16833 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16834 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16835 ac_status=$?
16836 grep -v '^ *+' conftest.er1 >conftest.err
16837 rm -f conftest.er1
16838 cat conftest.err >&5
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); } >/dev/null; then
16841 if test -s conftest.err; then
16842 ac_cpp_err=$ac_c_preproc_warn_flag
16843 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16844 else
16845 ac_cpp_err=
16847 else
16848 ac_cpp_err=yes
16850 if test -z "$ac_cpp_err"; then
16851 ac_header_preproc=yes
16852 else
16853 echo "$as_me: failed program was:" >&5
16854 sed 's/^/| /' conftest.$ac_ext >&5
16856 ac_header_preproc=no
16858 rm -f conftest.err conftest.$ac_ext
16859 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16860 echo "${ECHO_T}$ac_header_preproc" >&6
16862 # So? What about this header?
16863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16864 yes:no: )
16865 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16866 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16868 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16869 ac_header_preproc=yes
16871 no:yes:* )
16872 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16873 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16874 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16875 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16876 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16877 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16878 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16879 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16882 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16883 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16885 cat <<\_ASBOX
16886 ## ------------------------------ ##
16887 ## Report this to admin@amule.org ##
16888 ## ------------------------------ ##
16889 _ASBOX
16891 sed "s/^/$as_me: WARNING: /" >&2
16893 esac
16894 echo "$as_me:$LINENO: checking for $ac_header" >&5
16895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16897 echo $ECHO_N "(cached) $ECHO_C" >&6
16898 else
16899 eval "$as_ac_Header=\$ac_header_preproc"
16901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16906 cat >>confdefs.h <<_ACEOF
16907 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16908 _ACEOF
16912 done
16935 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
16936 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
16937 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
16939 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16940 echo "$as_me:$LINENO: checking for $ac_func" >&5
16941 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16942 if eval "test \"\${$as_ac_var+set}\" = set"; then
16943 echo $ECHO_N "(cached) $ECHO_C" >&6
16944 else
16945 cat >conftest.$ac_ext <<_ACEOF
16946 /* confdefs.h. */
16947 _ACEOF
16948 cat confdefs.h >>conftest.$ac_ext
16949 cat >>conftest.$ac_ext <<_ACEOF
16950 /* end confdefs.h. */
16951 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16953 #define $ac_func innocuous_$ac_func
16955 /* System header to define __stub macros and hopefully few prototypes,
16956 which can conflict with char $ac_func (); below.
16957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16958 <limits.h> exists even on freestanding compilers. */
16960 #ifdef __STDC__
16961 # include <limits.h>
16962 #else
16963 # include <assert.h>
16964 #endif
16966 #undef $ac_func
16968 /* Override any gcc2 internal prototype to avoid an error. */
16969 #ifdef __cplusplus
16970 extern "C"
16972 #endif
16973 /* We use char because int might match the return type of a gcc2
16974 builtin and then its argument prototype would still apply. */
16975 char $ac_func ();
16976 /* The GNU C library defines this for functions which it implements
16977 to always fail with ENOSYS. Some functions are actually named
16978 something starting with __ and the normal name is an alias. */
16979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16980 choke me
16981 #else
16982 char (*f) () = $ac_func;
16983 #endif
16984 #ifdef __cplusplus
16986 #endif
16989 main ()
16991 return f != $ac_func;
16993 return 0;
16995 _ACEOF
16996 rm -f conftest.$ac_objext conftest$ac_exeext
16997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16998 (eval $ac_link) 2>conftest.er1
16999 ac_status=$?
17000 grep -v '^ *+' conftest.er1 >conftest.err
17001 rm -f conftest.er1
17002 cat conftest.err >&5
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); } &&
17005 { ac_try='test -z "$ac_c_werror_flag"
17006 || test ! -s conftest.err'
17007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17008 (eval $ac_try) 2>&5
17009 ac_status=$?
17010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011 (exit $ac_status); }; } &&
17012 { ac_try='test -s conftest$ac_exeext'
17013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17014 (eval $ac_try) 2>&5
17015 ac_status=$?
17016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017 (exit $ac_status); }; }; then
17018 eval "$as_ac_var=yes"
17019 else
17020 echo "$as_me: failed program was:" >&5
17021 sed 's/^/| /' conftest.$ac_ext >&5
17023 eval "$as_ac_var=no"
17025 rm -f conftest.err conftest.$ac_objext \
17026 conftest$ac_exeext conftest.$ac_ext
17028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17029 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17030 if test `eval echo '${'$as_ac_var'}'` = yes; then
17031 cat >>confdefs.h <<_ACEOF
17032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17033 _ACEOF
17036 done
17044 am_save_CPPFLAGS="$CPPFLAGS"
17046 for element in $INCICONV; do
17047 haveit=
17048 for x in $CPPFLAGS; do
17050 acl_save_prefix="$prefix"
17051 prefix="$acl_final_prefix"
17052 acl_save_exec_prefix="$exec_prefix"
17053 exec_prefix="$acl_final_exec_prefix"
17054 eval x=\"$x\"
17055 exec_prefix="$acl_save_exec_prefix"
17056 prefix="$acl_save_prefix"
17058 if test "X$x" = "X$element"; then
17059 haveit=yes
17060 break
17062 done
17063 if test -z "$haveit"; then
17064 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17066 done
17069 echo "$as_me:$LINENO: checking for iconv" >&5
17070 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
17071 if test "${am_cv_func_iconv+set}" = set; then
17072 echo $ECHO_N "(cached) $ECHO_C" >&6
17073 else
17075 am_cv_func_iconv="no, consider installing GNU libiconv"
17076 am_cv_lib_iconv=no
17077 cat >conftest.$ac_ext <<_ACEOF
17078 /* confdefs.h. */
17079 _ACEOF
17080 cat confdefs.h >>conftest.$ac_ext
17081 cat >>conftest.$ac_ext <<_ACEOF
17082 /* end confdefs.h. */
17083 #include <stdlib.h>
17084 #include <iconv.h>
17086 main ()
17088 iconv_t cd = iconv_open("","");
17089 iconv(cd,NULL,NULL,NULL,NULL);
17090 iconv_close(cd);
17092 return 0;
17094 _ACEOF
17095 rm -f conftest.$ac_objext conftest$ac_exeext
17096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17097 (eval $ac_link) 2>conftest.er1
17098 ac_status=$?
17099 grep -v '^ *+' conftest.er1 >conftest.err
17100 rm -f conftest.er1
17101 cat conftest.err >&5
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); } &&
17104 { ac_try='test -z "$ac_c_werror_flag"
17105 || test ! -s conftest.err'
17106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17107 (eval $ac_try) 2>&5
17108 ac_status=$?
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); }; } &&
17111 { ac_try='test -s conftest$ac_exeext'
17112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17113 (eval $ac_try) 2>&5
17114 ac_status=$?
17115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116 (exit $ac_status); }; }; then
17117 am_cv_func_iconv=yes
17118 else
17119 echo "$as_me: failed program was:" >&5
17120 sed 's/^/| /' conftest.$ac_ext >&5
17123 rm -f conftest.err conftest.$ac_objext \
17124 conftest$ac_exeext conftest.$ac_ext
17125 if test "$am_cv_func_iconv" != yes; then
17126 am_save_LIBS="$LIBS"
17127 LIBS="$LIBS $LIBICONV"
17128 cat >conftest.$ac_ext <<_ACEOF
17129 /* confdefs.h. */
17130 _ACEOF
17131 cat confdefs.h >>conftest.$ac_ext
17132 cat >>conftest.$ac_ext <<_ACEOF
17133 /* end confdefs.h. */
17134 #include <stdlib.h>
17135 #include <iconv.h>
17137 main ()
17139 iconv_t cd = iconv_open("","");
17140 iconv(cd,NULL,NULL,NULL,NULL);
17141 iconv_close(cd);
17143 return 0;
17145 _ACEOF
17146 rm -f conftest.$ac_objext conftest$ac_exeext
17147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17148 (eval $ac_link) 2>conftest.er1
17149 ac_status=$?
17150 grep -v '^ *+' conftest.er1 >conftest.err
17151 rm -f conftest.er1
17152 cat conftest.err >&5
17153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154 (exit $ac_status); } &&
17155 { ac_try='test -z "$ac_c_werror_flag"
17156 || test ! -s conftest.err'
17157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17158 (eval $ac_try) 2>&5
17159 ac_status=$?
17160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); }; } &&
17162 { ac_try='test -s conftest$ac_exeext'
17163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17164 (eval $ac_try) 2>&5
17165 ac_status=$?
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); }; }; then
17168 am_cv_lib_iconv=yes
17169 am_cv_func_iconv=yes
17170 else
17171 echo "$as_me: failed program was:" >&5
17172 sed 's/^/| /' conftest.$ac_ext >&5
17175 rm -f conftest.err conftest.$ac_objext \
17176 conftest$ac_exeext conftest.$ac_ext
17177 LIBS="$am_save_LIBS"
17181 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17182 echo "${ECHO_T}$am_cv_func_iconv" >&6
17183 if test "$am_cv_func_iconv" = yes; then
17185 cat >>confdefs.h <<\_ACEOF
17186 #define HAVE_ICONV 1
17187 _ACEOF
17190 if test "$am_cv_lib_iconv" = yes; then
17191 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17192 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
17193 echo "$as_me:$LINENO: result: $LIBICONV" >&5
17194 echo "${ECHO_T}$LIBICONV" >&6
17195 else
17196 CPPFLAGS="$am_save_CPPFLAGS"
17197 LIBICONV=
17198 LTLIBICONV=
17203 if test "$am_cv_func_iconv" = yes; then
17204 echo "$as_me:$LINENO: checking for iconv declaration" >&5
17205 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
17206 if test "${am_cv_proto_iconv+set}" = set; then
17207 echo $ECHO_N "(cached) $ECHO_C" >&6
17208 else
17210 cat >conftest.$ac_ext <<_ACEOF
17211 /* confdefs.h. */
17212 _ACEOF
17213 cat confdefs.h >>conftest.$ac_ext
17214 cat >>conftest.$ac_ext <<_ACEOF
17215 /* end confdefs.h. */
17217 #include <stdlib.h>
17218 #include <iconv.h>
17219 extern
17220 #ifdef __cplusplus
17222 #endif
17223 #if defined(__STDC__) || defined(__cplusplus)
17224 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17225 #else
17226 size_t iconv();
17227 #endif
17230 main ()
17234 return 0;
17236 _ACEOF
17237 rm -f conftest.$ac_objext
17238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17239 (eval $ac_compile) 2>conftest.er1
17240 ac_status=$?
17241 grep -v '^ *+' conftest.er1 >conftest.err
17242 rm -f conftest.er1
17243 cat conftest.err >&5
17244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245 (exit $ac_status); } &&
17246 { ac_try='test -z "$ac_c_werror_flag"
17247 || test ! -s conftest.err'
17248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17249 (eval $ac_try) 2>&5
17250 ac_status=$?
17251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252 (exit $ac_status); }; } &&
17253 { ac_try='test -s conftest.$ac_objext'
17254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17255 (eval $ac_try) 2>&5
17256 ac_status=$?
17257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17258 (exit $ac_status); }; }; then
17259 am_cv_proto_iconv_arg1=""
17260 else
17261 echo "$as_me: failed program was:" >&5
17262 sed 's/^/| /' conftest.$ac_ext >&5
17264 am_cv_proto_iconv_arg1="const"
17266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17267 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);"
17270 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
17271 echo "$as_me:$LINENO: result: ${ac_t:-
17272 }$am_cv_proto_iconv" >&5
17273 echo "${ECHO_T}${ac_t:-
17274 }$am_cv_proto_iconv" >&6
17276 cat >>confdefs.h <<_ACEOF
17277 #define ICONV_CONST $am_cv_proto_iconv_arg1
17278 _ACEOF
17283 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
17284 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
17285 if test "${am_cv_langinfo_codeset+set}" = set; then
17286 echo $ECHO_N "(cached) $ECHO_C" >&6
17287 else
17288 cat >conftest.$ac_ext <<_ACEOF
17289 /* confdefs.h. */
17290 _ACEOF
17291 cat confdefs.h >>conftest.$ac_ext
17292 cat >>conftest.$ac_ext <<_ACEOF
17293 /* end confdefs.h. */
17294 #include <langinfo.h>
17296 main ()
17298 char* cs = nl_langinfo(CODESET);
17300 return 0;
17302 _ACEOF
17303 rm -f conftest.$ac_objext conftest$ac_exeext
17304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17305 (eval $ac_link) 2>conftest.er1
17306 ac_status=$?
17307 grep -v '^ *+' conftest.er1 >conftest.err
17308 rm -f conftest.er1
17309 cat conftest.err >&5
17310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311 (exit $ac_status); } &&
17312 { ac_try='test -z "$ac_c_werror_flag"
17313 || test ! -s conftest.err'
17314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17315 (eval $ac_try) 2>&5
17316 ac_status=$?
17317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318 (exit $ac_status); }; } &&
17319 { ac_try='test -s conftest$ac_exeext'
17320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17321 (eval $ac_try) 2>&5
17322 ac_status=$?
17323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324 (exit $ac_status); }; }; then
17325 am_cv_langinfo_codeset=yes
17326 else
17327 echo "$as_me: failed program was:" >&5
17328 sed 's/^/| /' conftest.$ac_ext >&5
17330 am_cv_langinfo_codeset=no
17332 rm -f conftest.err conftest.$ac_objext \
17333 conftest$ac_exeext conftest.$ac_ext
17336 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
17337 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
17338 if test $am_cv_langinfo_codeset = yes; then
17340 cat >>confdefs.h <<\_ACEOF
17341 #define HAVE_LANGINFO_CODESET 1
17342 _ACEOF
17346 if test $ac_cv_header_locale_h = yes; then
17348 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
17349 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
17350 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
17351 echo $ECHO_N "(cached) $ECHO_C" >&6
17352 else
17353 cat >conftest.$ac_ext <<_ACEOF
17354 /* confdefs.h. */
17355 _ACEOF
17356 cat confdefs.h >>conftest.$ac_ext
17357 cat >>conftest.$ac_ext <<_ACEOF
17358 /* end confdefs.h. */
17359 #include <locale.h>
17361 main ()
17363 return LC_MESSAGES
17365 return 0;
17367 _ACEOF
17368 rm -f conftest.$ac_objext conftest$ac_exeext
17369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17370 (eval $ac_link) 2>conftest.er1
17371 ac_status=$?
17372 grep -v '^ *+' conftest.er1 >conftest.err
17373 rm -f conftest.er1
17374 cat conftest.err >&5
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); } &&
17377 { ac_try='test -z "$ac_c_werror_flag"
17378 || test ! -s conftest.err'
17379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17380 (eval $ac_try) 2>&5
17381 ac_status=$?
17382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383 (exit $ac_status); }; } &&
17384 { ac_try='test -s conftest$ac_exeext'
17385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17386 (eval $ac_try) 2>&5
17387 ac_status=$?
17388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389 (exit $ac_status); }; }; then
17390 am_cv_val_LC_MESSAGES=yes
17391 else
17392 echo "$as_me: failed program was:" >&5
17393 sed 's/^/| /' conftest.$ac_ext >&5
17395 am_cv_val_LC_MESSAGES=no
17397 rm -f conftest.err conftest.$ac_objext \
17398 conftest$ac_exeext conftest.$ac_ext
17400 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
17401 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
17402 if test $am_cv_val_LC_MESSAGES = yes; then
17404 cat >>confdefs.h <<\_ACEOF
17405 #define HAVE_LC_MESSAGES 1
17406 _ACEOF
17412 for ac_prog in bison
17414 # Extract the first word of "$ac_prog", so it can be a program name with args.
17415 set dummy $ac_prog; ac_word=$2
17416 echo "$as_me:$LINENO: checking for $ac_word" >&5
17417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17418 if test "${ac_cv_prog_INTLBISON+set}" = set; then
17419 echo $ECHO_N "(cached) $ECHO_C" >&6
17420 else
17421 if test -n "$INTLBISON"; then
17422 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
17423 else
17424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17425 for as_dir in $PATH
17427 IFS=$as_save_IFS
17428 test -z "$as_dir" && as_dir=.
17429 for ac_exec_ext in '' $ac_executable_extensions; do
17430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17431 ac_cv_prog_INTLBISON="$ac_prog"
17432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17433 break 2
17435 done
17436 done
17440 INTLBISON=$ac_cv_prog_INTLBISON
17441 if test -n "$INTLBISON"; then
17442 echo "$as_me:$LINENO: result: $INTLBISON" >&5
17443 echo "${ECHO_T}$INTLBISON" >&6
17444 else
17445 echo "$as_me:$LINENO: result: no" >&5
17446 echo "${ECHO_T}no" >&6
17449 test -n "$INTLBISON" && break
17450 done
17452 if test -z "$INTLBISON"; then
17453 ac_verc_fail=yes
17454 else
17455 echo "$as_me:$LINENO: checking version of bison" >&5
17456 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
17457 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
17458 case $ac_prog_version in
17459 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
17460 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
17461 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
17462 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
17463 esac
17464 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
17465 echo "${ECHO_T}$ac_prog_version" >&6
17467 if test $ac_verc_fail = yes; then
17468 INTLBISON=:
17473 # Check whether --with-language or --without-language was given.
17474 if test "${with_language+set}" = set; then
17475 withval="$with_language"
17476 if test "$withval" = "all"; then
17477 LINGUAS='%UNSET%'
17478 else
17479 LINGUAS="`echo $withval | sed -e 's/,/ /g'`"
17498 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17499 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
17500 # Check whether --enable-nls or --disable-nls was given.
17501 if test "${enable_nls+set}" = set; then
17502 enableval="$enable_nls"
17503 USE_NLS=$enableval
17504 else
17505 USE_NLS=yes
17507 echo "$as_me:$LINENO: result: $USE_NLS" >&5
17508 echo "${ECHO_T}$USE_NLS" >&6
17512 BUILD_INCLUDED_LIBINTL=no
17513 USE_INCLUDED_LIBINTL=no
17515 LIBINTL=
17516 LTLIBINTL=
17517 POSUB=
17519 if test "$USE_NLS" = "yes"; then
17520 gt_use_preinstalled_gnugettext=no
17522 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
17523 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
17525 # Check whether --with-included-gettext or --without-included-gettext was given.
17526 if test "${with_included_gettext+set}" = set; then
17527 withval="$with_included_gettext"
17528 nls_cv_force_use_gnu_gettext=$withval
17529 else
17530 nls_cv_force_use_gnu_gettext=no
17532 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
17533 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
17535 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
17536 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
17543 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17544 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
17545 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
17546 echo $ECHO_N "(cached) $ECHO_C" >&6
17547 else
17548 cat >conftest.$ac_ext <<_ACEOF
17549 /* confdefs.h. */
17550 _ACEOF
17551 cat confdefs.h >>conftest.$ac_ext
17552 cat >>conftest.$ac_ext <<_ACEOF
17553 /* end confdefs.h. */
17554 #include <libintl.h>
17555 extern int _nl_msg_cat_cntr;
17556 extern int *_nl_domain_bindings;
17558 main ()
17560 bindtextdomain ("", "");
17561 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
17563 return 0;
17565 _ACEOF
17566 rm -f conftest.$ac_objext conftest$ac_exeext
17567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17568 (eval $ac_link) 2>conftest.er1
17569 ac_status=$?
17570 grep -v '^ *+' conftest.er1 >conftest.err
17571 rm -f conftest.er1
17572 cat conftest.err >&5
17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574 (exit $ac_status); } &&
17575 { ac_try='test -z "$ac_c_werror_flag"
17576 || test ! -s conftest.err'
17577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17578 (eval $ac_try) 2>&5
17579 ac_status=$?
17580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581 (exit $ac_status); }; } &&
17582 { ac_try='test -s conftest$ac_exeext'
17583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17584 (eval $ac_try) 2>&5
17585 ac_status=$?
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); }; }; then
17588 gt_cv_func_gnugettext2_libc=yes
17589 else
17590 echo "$as_me: failed program was:" >&5
17591 sed 's/^/| /' conftest.$ac_ext >&5
17593 gt_cv_func_gnugettext2_libc=no
17595 rm -f conftest.err conftest.$ac_objext \
17596 conftest$ac_exeext conftest.$ac_ext
17598 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
17599 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
17601 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
17605 use_additional=yes
17607 acl_save_prefix="$prefix"
17608 prefix="$acl_final_prefix"
17609 acl_save_exec_prefix="$exec_prefix"
17610 exec_prefix="$acl_final_exec_prefix"
17612 eval additional_includedir=\"$includedir\"
17613 eval additional_libdir=\"$libdir\"
17615 exec_prefix="$acl_save_exec_prefix"
17616 prefix="$acl_save_prefix"
17619 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
17620 if test "${with_libintl_prefix+set}" = set; then
17621 withval="$with_libintl_prefix"
17623 if test "X$withval" = "Xno"; then
17624 use_additional=no
17625 else
17626 if test "X$withval" = "X"; then
17628 acl_save_prefix="$prefix"
17629 prefix="$acl_final_prefix"
17630 acl_save_exec_prefix="$exec_prefix"
17631 exec_prefix="$acl_final_exec_prefix"
17633 eval additional_includedir=\"$includedir\"
17634 eval additional_libdir=\"$libdir\"
17636 exec_prefix="$acl_save_exec_prefix"
17637 prefix="$acl_save_prefix"
17639 else
17640 additional_includedir="$withval/include"
17641 additional_libdir="$withval/lib"
17646 LIBINTL=
17647 LTLIBINTL=
17648 INCINTL=
17649 rpathdirs=
17650 ltrpathdirs=
17651 names_already_handled=
17652 names_next_round='intl '
17653 while test -n "$names_next_round"; do
17654 names_this_round="$names_next_round"
17655 names_next_round=
17656 for name in $names_this_round; do
17657 already_handled=
17658 for n in $names_already_handled; do
17659 if test "$n" = "$name"; then
17660 already_handled=yes
17661 break
17663 done
17664 if test -z "$already_handled"; then
17665 names_already_handled="$names_already_handled $name"
17666 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17667 eval value=\"\$HAVE_LIB$uppername\"
17668 if test -n "$value"; then
17669 if test "$value" = yes; then
17670 eval value=\"\$LIB$uppername\"
17671 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17672 eval value=\"\$LTLIB$uppername\"
17673 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17674 else
17677 else
17678 found_dir=
17679 found_la=
17680 found_so=
17681 found_a=
17682 if test $use_additional = yes; then
17683 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17684 found_dir="$additional_libdir"
17685 found_so="$additional_libdir/lib$name.$shlibext"
17686 if test -f "$additional_libdir/lib$name.la"; then
17687 found_la="$additional_libdir/lib$name.la"
17689 else
17690 if test -f "$additional_libdir/lib$name.$libext"; then
17691 found_dir="$additional_libdir"
17692 found_a="$additional_libdir/lib$name.$libext"
17693 if test -f "$additional_libdir/lib$name.la"; then
17694 found_la="$additional_libdir/lib$name.la"
17699 if test "X$found_dir" = "X"; then
17700 for x in $LDFLAGS $LTLIBINTL; do
17702 acl_save_prefix="$prefix"
17703 prefix="$acl_final_prefix"
17704 acl_save_exec_prefix="$exec_prefix"
17705 exec_prefix="$acl_final_exec_prefix"
17706 eval x=\"$x\"
17707 exec_prefix="$acl_save_exec_prefix"
17708 prefix="$acl_save_prefix"
17710 case "$x" in
17711 -L*)
17712 dir=`echo "X$x" | sed -e 's/^X-L//'`
17713 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17714 found_dir="$dir"
17715 found_so="$dir/lib$name.$shlibext"
17716 if test -f "$dir/lib$name.la"; then
17717 found_la="$dir/lib$name.la"
17719 else
17720 if test -f "$dir/lib$name.$libext"; then
17721 found_dir="$dir"
17722 found_a="$dir/lib$name.$libext"
17723 if test -f "$dir/lib$name.la"; then
17724 found_la="$dir/lib$name.la"
17729 esac
17730 if test "X$found_dir" != "X"; then
17731 break
17733 done
17735 if test "X$found_dir" != "X"; then
17736 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17737 if test "X$found_so" != "X"; then
17738 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17739 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17740 else
17741 haveit=
17742 for x in $ltrpathdirs; do
17743 if test "X$x" = "X$found_dir"; then
17744 haveit=yes
17745 break
17747 done
17748 if test -z "$haveit"; then
17749 ltrpathdirs="$ltrpathdirs $found_dir"
17751 if test "$hardcode_direct" = yes; then
17752 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17753 else
17754 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17755 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17756 haveit=
17757 for x in $rpathdirs; do
17758 if test "X$x" = "X$found_dir"; then
17759 haveit=yes
17760 break
17762 done
17763 if test -z "$haveit"; then
17764 rpathdirs="$rpathdirs $found_dir"
17766 else
17767 haveit=
17768 for x in $LDFLAGS $LIBINTL; do
17770 acl_save_prefix="$prefix"
17771 prefix="$acl_final_prefix"
17772 acl_save_exec_prefix="$exec_prefix"
17773 exec_prefix="$acl_final_exec_prefix"
17774 eval x=\"$x\"
17775 exec_prefix="$acl_save_exec_prefix"
17776 prefix="$acl_save_prefix"
17778 if test "X$x" = "X-L$found_dir"; then
17779 haveit=yes
17780 break
17782 done
17783 if test -z "$haveit"; then
17784 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17786 if test "$hardcode_minus_L" != no; then
17787 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17788 else
17789 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17794 else
17795 if test "X$found_a" != "X"; then
17796 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17797 else
17798 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17801 additional_includedir=
17802 case "$found_dir" in
17803 */lib | */lib/)
17804 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17805 additional_includedir="$basedir/include"
17807 esac
17808 if test "X$additional_includedir" != "X"; then
17809 if test "X$additional_includedir" != "X/usr/include"; then
17810 haveit=
17811 if test "X$additional_includedir" = "X/usr/local/include"; then
17812 if test -n "$GCC"; then
17813 case $host_os in
17814 linux*) haveit=yes;;
17815 esac
17818 if test -z "$haveit"; then
17819 for x in $CPPFLAGS $INCINTL; do
17821 acl_save_prefix="$prefix"
17822 prefix="$acl_final_prefix"
17823 acl_save_exec_prefix="$exec_prefix"
17824 exec_prefix="$acl_final_exec_prefix"
17825 eval x=\"$x\"
17826 exec_prefix="$acl_save_exec_prefix"
17827 prefix="$acl_save_prefix"
17829 if test "X$x" = "X-I$additional_includedir"; then
17830 haveit=yes
17831 break
17833 done
17834 if test -z "$haveit"; then
17835 if test -d "$additional_includedir"; then
17836 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17842 if test -n "$found_la"; then
17843 save_libdir="$libdir"
17844 case "$found_la" in
17845 */* | *\\*) . "$found_la" ;;
17846 *) . "./$found_la" ;;
17847 esac
17848 libdir="$save_libdir"
17849 for dep in $dependency_libs; do
17850 case "$dep" in
17851 -L*)
17852 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17853 if test "X$additional_libdir" != "X/usr/lib"; then
17854 haveit=
17855 if test "X$additional_libdir" = "X/usr/local/lib"; then
17856 if test -n "$GCC"; then
17857 case $host_os in
17858 linux*) haveit=yes;;
17859 esac
17862 if test -z "$haveit"; then
17863 haveit=
17864 for x in $LDFLAGS $LIBINTL; do
17866 acl_save_prefix="$prefix"
17867 prefix="$acl_final_prefix"
17868 acl_save_exec_prefix="$exec_prefix"
17869 exec_prefix="$acl_final_exec_prefix"
17870 eval x=\"$x\"
17871 exec_prefix="$acl_save_exec_prefix"
17872 prefix="$acl_save_prefix"
17874 if test "X$x" = "X-L$additional_libdir"; then
17875 haveit=yes
17876 break
17878 done
17879 if test -z "$haveit"; then
17880 if test -d "$additional_libdir"; then
17881 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17884 haveit=
17885 for x in $LDFLAGS $LTLIBINTL; do
17887 acl_save_prefix="$prefix"
17888 prefix="$acl_final_prefix"
17889 acl_save_exec_prefix="$exec_prefix"
17890 exec_prefix="$acl_final_exec_prefix"
17891 eval x=\"$x\"
17892 exec_prefix="$acl_save_exec_prefix"
17893 prefix="$acl_save_prefix"
17895 if test "X$x" = "X-L$additional_libdir"; then
17896 haveit=yes
17897 break
17899 done
17900 if test -z "$haveit"; then
17901 if test -d "$additional_libdir"; then
17902 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17908 -R*)
17909 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17910 if test "$enable_rpath" != no; then
17911 haveit=
17912 for x in $rpathdirs; do
17913 if test "X$x" = "X$dir"; then
17914 haveit=yes
17915 break
17917 done
17918 if test -z "$haveit"; then
17919 rpathdirs="$rpathdirs $dir"
17921 haveit=
17922 for x in $ltrpathdirs; do
17923 if test "X$x" = "X$dir"; then
17924 haveit=yes
17925 break
17927 done
17928 if test -z "$haveit"; then
17929 ltrpathdirs="$ltrpathdirs $dir"
17933 -l*)
17934 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17936 *.la)
17937 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17940 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17941 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17943 esac
17944 done
17946 else
17947 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17948 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17952 done
17953 done
17954 if test "X$rpathdirs" != "X"; then
17955 if test -n "$hardcode_libdir_separator"; then
17956 alldirs=
17957 for found_dir in $rpathdirs; do
17958 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17959 done
17960 acl_save_libdir="$libdir"
17961 libdir="$alldirs"
17962 eval flag=\"$hardcode_libdir_flag_spec\"
17963 libdir="$acl_save_libdir"
17964 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17965 else
17966 for found_dir in $rpathdirs; do
17967 acl_save_libdir="$libdir"
17968 libdir="$found_dir"
17969 eval flag=\"$hardcode_libdir_flag_spec\"
17970 libdir="$acl_save_libdir"
17971 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17972 done
17975 if test "X$ltrpathdirs" != "X"; then
17976 for found_dir in $ltrpathdirs; do
17977 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17978 done
17981 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
17982 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
17983 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
17984 echo $ECHO_N "(cached) $ECHO_C" >&6
17985 else
17986 gt_save_CPPFLAGS="$CPPFLAGS"
17987 CPPFLAGS="$CPPFLAGS $INCINTL"
17988 gt_save_LIBS="$LIBS"
17989 LIBS="$LIBS $LIBINTL"
17990 cat >conftest.$ac_ext <<_ACEOF
17991 /* confdefs.h. */
17992 _ACEOF
17993 cat confdefs.h >>conftest.$ac_ext
17994 cat >>conftest.$ac_ext <<_ACEOF
17995 /* end confdefs.h. */
17996 #include <libintl.h>
17997 extern int _nl_msg_cat_cntr;
17998 extern
17999 #ifdef __cplusplus
18001 #endif
18002 const char *_nl_expand_alias ();
18004 main ()
18006 bindtextdomain ("", "");
18007 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
18009 return 0;
18011 _ACEOF
18012 rm -f conftest.$ac_objext conftest$ac_exeext
18013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18014 (eval $ac_link) 2>conftest.er1
18015 ac_status=$?
18016 grep -v '^ *+' conftest.er1 >conftest.err
18017 rm -f conftest.er1
18018 cat conftest.err >&5
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); } &&
18021 { ac_try='test -z "$ac_c_werror_flag"
18022 || test ! -s conftest.err'
18023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18024 (eval $ac_try) 2>&5
18025 ac_status=$?
18026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027 (exit $ac_status); }; } &&
18028 { ac_try='test -s conftest$ac_exeext'
18029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18030 (eval $ac_try) 2>&5
18031 ac_status=$?
18032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18033 (exit $ac_status); }; }; then
18034 gt_cv_func_gnugettext2_libintl=yes
18035 else
18036 echo "$as_me: failed program was:" >&5
18037 sed 's/^/| /' conftest.$ac_ext >&5
18039 gt_cv_func_gnugettext2_libintl=no
18041 rm -f conftest.err conftest.$ac_objext \
18042 conftest$ac_exeext conftest.$ac_ext
18043 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
18044 LIBS="$LIBS $LIBICONV"
18045 cat >conftest.$ac_ext <<_ACEOF
18046 /* confdefs.h. */
18047 _ACEOF
18048 cat confdefs.h >>conftest.$ac_ext
18049 cat >>conftest.$ac_ext <<_ACEOF
18050 /* end confdefs.h. */
18051 #include <libintl.h>
18052 extern int _nl_msg_cat_cntr;
18053 extern
18054 #ifdef __cplusplus
18056 #endif
18057 const char *_nl_expand_alias ();
18059 main ()
18061 bindtextdomain ("", "");
18062 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
18064 return 0;
18066 _ACEOF
18067 rm -f conftest.$ac_objext conftest$ac_exeext
18068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18069 (eval $ac_link) 2>conftest.er1
18070 ac_status=$?
18071 grep -v '^ *+' conftest.er1 >conftest.err
18072 rm -f conftest.er1
18073 cat conftest.err >&5
18074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); } &&
18076 { ac_try='test -z "$ac_c_werror_flag"
18077 || test ! -s conftest.err'
18078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18079 (eval $ac_try) 2>&5
18080 ac_status=$?
18081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); }; } &&
18083 { ac_try='test -s conftest$ac_exeext'
18084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18085 (eval $ac_try) 2>&5
18086 ac_status=$?
18087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088 (exit $ac_status); }; }; then
18089 LIBINTL="$LIBINTL $LIBICONV"
18090 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18091 gt_cv_func_gnugettext2_libintl=yes
18093 else
18094 echo "$as_me: failed program was:" >&5
18095 sed 's/^/| /' conftest.$ac_ext >&5
18098 rm -f conftest.err conftest.$ac_objext \
18099 conftest$ac_exeext conftest.$ac_ext
18101 CPPFLAGS="$gt_save_CPPFLAGS"
18102 LIBS="$gt_save_LIBS"
18104 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
18105 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
18108 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
18109 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
18110 && test "$PACKAGE" != gettext; }; then
18111 gt_use_preinstalled_gnugettext=yes
18112 else
18113 LIBINTL=
18114 LTLIBINTL=
18115 INCINTL=
18119 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
18120 nls_cv_use_gnu_gettext=yes
18124 if test "$nls_cv_use_gnu_gettext" = "yes"; then
18125 INTLOBJS="\$(GETTOBJS)"
18126 BUILD_INCLUDED_LIBINTL=yes
18127 USE_INCLUDED_LIBINTL=yes
18128 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
18129 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
18130 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
18133 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18134 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18135 CATOBJEXT=.gmo
18139 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18140 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18142 cat >>confdefs.h <<\_ACEOF
18143 #define ENABLE_NLS 1
18144 _ACEOF
18146 else
18147 USE_NLS=no
18151 if test "$USE_NLS" = "yes"; then
18153 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18154 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
18155 echo "$as_me:$LINENO: checking how to link with libintl" >&5
18156 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
18157 echo "$as_me:$LINENO: result: $LIBINTL" >&5
18158 echo "${ECHO_T}$LIBINTL" >&6
18160 for element in $INCINTL; do
18161 haveit=
18162 for x in $CPPFLAGS; do
18164 acl_save_prefix="$prefix"
18165 prefix="$acl_final_prefix"
18166 acl_save_exec_prefix="$exec_prefix"
18167 exec_prefix="$acl_final_exec_prefix"
18168 eval x=\"$x\"
18169 exec_prefix="$acl_save_exec_prefix"
18170 prefix="$acl_save_prefix"
18172 if test "X$x" = "X$element"; then
18173 haveit=yes
18174 break
18176 done
18177 if test -z "$haveit"; then
18178 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18180 done
18185 cat >>confdefs.h <<\_ACEOF
18186 #define HAVE_GETTEXT 1
18187 _ACEOF
18190 cat >>confdefs.h <<\_ACEOF
18191 #define HAVE_DCGETTEXT 1
18192 _ACEOF
18196 POSUB=po
18200 if test "$PACKAGE" = gettext; then
18201 BUILD_INCLUDED_LIBINTL=yes
18209 nls_cv_header_intl=
18210 nls_cv_header_libgt=
18212 DATADIRNAME=share
18215 INSTOBJEXT=.mo
18218 GENCAT=gencat
18221 INTL_LIBTOOL_SUFFIX_PREFIX=
18225 INTLLIBS="$LIBINTL"
18232 if test $USE_INCLUDED_LIBINTL = yes; then
18233 INCINTL=-I\${top_builddir}/intl
18237 if test x$USE_NLS = xyes; then
18239 echo "$as_me:$LINENO: checking for autopoint" >&5
18240 echo $ECHO_N "checking for autopoint... $ECHO_C" >&6
18241 autopoint_version=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
18242 if test -n "$autopoint_version"; then
18244 echo "$as_me:$LINENO: result: yes ($autopoint_version)" >&5
18245 echo "${ECHO_T}yes ($autopoint_version)" >&6
18248 else
18250 echo "$as_me:$LINENO: result: no" >&5
18251 echo "${ECHO_T}no" >&6
18252 USE_NLS=no
18259 if test x$USE_NLS = xno -a x${enable_nls:-yes} = xyes; then
18260 { echo "$as_me:$LINENO: WARNING:
18261 You need to install GNU gettext/gettext-tools to compile aMule with
18262 i18n support." >&5
18263 echo "$as_me: WARNING:
18264 You need to install GNU gettext/gettext-tools to compile aMule with
18265 i18n support." >&2;}
18266 _mule_warning_10=yes
18267 _mule_has_warnings=yes
18272 if test ${USE_NLS:-no} = yes; then
18274 echo "$as_me:$LINENO: checking for requested languages" >&5
18275 echo $ECHO_N "checking for requested languages... $ECHO_C" >&6
18276 Generate_Langs=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
18278 if test "$AMULE_DAEMON" = "yes"; then
18280 if test -z "$LINGUAS"; then
18281 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
18282 else
18284 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18285 AMULE_DAEMON_MANPAGES="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
18289 AMULE_DAEMON_MANPAGES=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
18291 else
18292 AMULE_DAEMON_MANPAGES=
18298 if test "$AMULECMD" = "yes"; then
18300 if test -z "$LINGUAS"; then
18301 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
18302 else
18304 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18305 AMULECMD_MANPAGES="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
18309 AMULECMD_MANPAGES=`echo $AMULECMD_MANPAGES | tr -d '\n'`
18311 else
18312 AMULECMD_MANPAGES=
18318 if test "$WEB" = "yes"; then
18320 if test -z "$LINGUAS"; then
18321 WEB_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
18322 else
18324 WEB_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18325 WEB_MANPAGES="`basename docs/man/amuleweb.1` $WEB_MANPAGES"
18329 WEB_MANPAGES=`echo $WEB_MANPAGES | tr -d '\n'`
18331 else
18332 WEB_MANPAGES=
18338 if test "$AMULE_GUI" = "yes"; then
18340 if test -z "$LINGUAS"; then
18341 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
18342 else
18344 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18345 AMULE_GUI_MANPAGES="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
18349 AMULE_GUI_MANPAGES=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
18351 else
18352 AMULE_GUI_MANPAGES=
18358 if test "$CAS" = "yes"; then
18360 if test -z "$LINGUAS"; then
18361 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
18362 else
18364 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18365 CAS_MANPAGES="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
18369 CAS_MANPAGES=`echo $CAS_MANPAGES | tr -d '\n'`
18371 else
18372 CAS_MANPAGES=
18378 if test "$WXCAS" = "yes"; then
18380 if test -z "$LINGUAS"; then
18381 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
18382 else
18384 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18385 WXCAS_MANPAGES="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
18389 WXCAS_MANPAGES=`echo $WXCAS_MANPAGES | tr -d '\n'`
18391 else
18392 WXCAS_MANPAGES=
18398 if test "$ED2K" = "yes"; then
18400 if test -z "$LINGUAS"; then
18401 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
18402 else
18404 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18405 ED2K_MANPAGES="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
18409 ED2K_MANPAGES=`echo $ED2K_MANPAGES | tr -d '\n'`
18411 else
18412 ED2K_MANPAGES=
18418 if test "$ALC" = "yes"; then
18420 if test -z "$LINGUAS"; then
18421 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
18422 else
18424 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18425 ALC_MANPAGES="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
18429 ALC_MANPAGES=`echo $ALC_MANPAGES | tr -d '\n'`
18431 else
18432 ALC_MANPAGES=
18438 if test "$ALCC" = "yes"; then
18440 if test -z "$LINGUAS"; then
18441 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
18442 else
18444 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18445 ALCC_MANPAGES="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
18449 ALCC_MANPAGES=`echo $ALCC_MANPAGES | tr -d '\n'`
18451 else
18452 ALCC_MANPAGES=
18458 if test "$MONOLITHIC" = "yes"; then
18460 if test -z "$LINGUAS"; then
18461 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
18462 else
18464 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18465 MONOLITHIC_MANPAGES="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
18469 MONOLITHIC_MANPAGES=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
18471 else
18472 MONOLITHIC_MANPAGES=
18477 echo "$as_me:$LINENO: result: ${LINGUAS:-all}" >&5
18478 echo "${ECHO_T}${LINGUAS:-all}" >&6
18485 # Flush standard test results for speeding cache
18486 cat >confcache <<\_ACEOF
18487 # This file is a shell script that caches the results of configure
18488 # tests run on this system so they can be shared between configure
18489 # scripts and configure runs, see configure's option --config-cache.
18490 # It is not useful on other systems. If it contains results you don't
18491 # want to keep, you may remove or edit it.
18493 # config.status only pays attention to the cache file if you give it
18494 # the --recheck option to rerun configure.
18496 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18497 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18498 # following values.
18500 _ACEOF
18502 # The following way of writing the cache mishandles newlines in values,
18503 # but we know of no workaround that is simple, portable, and efficient.
18504 # So, don't put newlines in cache variables' values.
18505 # Ultrix sh set writes to stderr and can't be redirected directly,
18506 # and sets the high bit in the cache file unless we assign to the vars.
18508 (set) 2>&1 |
18509 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18510 *ac_space=\ *)
18511 # `set' does not quote correctly, so add quotes (double-quote
18512 # substitution turns \\\\ into \\, and sed turns \\ into \).
18513 sed -n \
18514 "s/'/'\\\\''/g;
18515 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18518 # `set' quotes correctly as required by POSIX, so do not add quotes.
18519 sed -n \
18520 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18522 esac;
18524 sed '
18525 t clear
18526 : clear
18527 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18528 t end
18529 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18530 : end' >>confcache
18531 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18532 if test -w $cache_file; then
18533 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18534 cat confcache >$cache_file
18535 else
18536 echo "not updating unwritable cache $cache_file"
18539 rm -f confcache
18541 # Other tests
18542 # aMule options
18545 # Check whether --enable-debug or --disable-debug was given.
18546 if test "${enable_debug+set}" = set; then
18547 enableval="$enable_debug"
18548 USE_DEBUG=${enableval:-yes}
18549 else
18550 USE_DEBUG=yes
18553 if test $USE_DEBUG = yes; then
18555 MULECPPFLAGS="$MULECPPFLAGS -D__DEBUG__"
18557 MULECFLAGS="$MULECFLAGS -g"
18558 MULECXXFLAGS="$MULECXXFLAGS -g"
18560 if test ${GLIBCXX:-no} = yes; then
18561 MULECPPFLAGS="$MULECPPFLAGS -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC"
18564 if test ${GCC:-no} = yes; then
18566 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18567 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18571 if test ${SYS:-unknown} = win32; then
18572 MULERCFLAGS="$MULERCFLAGS -D__DEBUG__"
18576 else
18578 if test ${GCC:-no} = yes; then
18580 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef"
18581 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef"
18590 # Check whether --enable-optimize or --disable-optimize was given.
18591 if test "${enable_optimize+set}" = set; then
18592 enableval="$enable_optimize"
18593 USE_OPTIMIZE=${enableval:-no}
18594 else
18595 USE_OPTIMIZE=no
18598 if test $USE_OPTIMIZE = yes; then
18600 MULECFLAGS="$MULECFLAGS -O2"
18601 MULECXXFLAGS="$MULECXXFLAGS -O2"
18607 # Check whether --enable-profile or --disable-profile was given.
18608 if test "${enable_profile+set}" = set; then
18609 enableval="$enable_profile"
18610 USE_PROFILE=${enableval:-no}
18611 else
18612 USE_PROFILE=no
18615 if test $USE_PROFILE = yes; then
18618 MULECFLAGS="$MULECFLAGS -pg"
18619 MULECXXFLAGS="$MULECXXFLAGS -pg"
18621 MULELDFLAGS="$MULELDFLAGS -pg"
18627 echo "$as_me:$LINENO: checking if the applications should be statically linked" >&5
18628 echo $ECHO_N "checking if the applications should be statically linked... $ECHO_C" >&6
18629 # Check whether --enable-static or --disable-static was given.
18630 if test "${enable_static+set}" = set; then
18631 enableval="$enable_static"
18632 if test ${enableval:-no} = yes; then
18633 MULELDFLAGS="$MULELDFLAGS -static"
18637 echo "$as_me:$LINENO: result: ${enableval:-no}" >&5
18638 echo "${ECHO_T}${enableval:-no}" >&6
18640 MULECPPFLAGS="$MULECPPFLAGS -DUSE_WX_EXTENSIONS"
18643 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
18644 echo "$as_me:$LINENO: checking for docdir" >&5
18645 echo $ECHO_N "checking for docdir... $ECHO_C" >&6
18646 if test -z "$docdir"; then
18647 docdir="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}"
18650 echo "$as_me:$LINENO: result: $docdir" >&5
18651 echo "${ECHO_T}$docdir" >&6
18653 # Try to set the SVN checkout-date
18654 echo "$as_me:$LINENO: checking for SVNDATE" >&5
18655 echo $ECHO_N "checking for SVNDATE... $ECHO_C" >&6
18656 if test -f "$srcdir/.svn-revision" # SVNDATE for tarballs
18657 then
18658 svndate="rev. `cat $srcdir/.svn-revision`"
18659 elif test -d $srcdir/.svn # SVNDATE for svn
18660 then
18661 svndate="rev. `svnversion $srcdir | sed -e 's/[0-9][0-9]*:\(.*\)/\1/' -e 's/\([0-9][0-9]*\).*/\1/'`"
18663 echo "$as_me:$LINENO: result: ${svndate:-None required}" >&5
18664 echo "${ECHO_T}${svndate:-None required}" >&6
18665 if test -n "$svndate"; then
18668 cat >>confdefs.h <<_ACEOF
18669 #define SVNDATE "$svndate"
18670 _ACEOF
18672 MULERCFLAGS="$MULERCFLAGS -D__PRERELEASE__"
18676 SVNDATE=$svndate
18680 # Check whether --with-denoise-level or --without-denoise-level was given.
18681 if test "${with_denoise_level+set}" = set; then
18682 withval="$with_denoise_level"
18686 echo "$as_me:$LINENO: checking denoising level" >&5
18687 echo $ECHO_N "checking denoising level... $ECHO_C" >&6
18688 if test ${with_denoise_level:-5} = yes; then
18689 with_denoise_level=5
18692 if test ${with_denoise_level:-5} = no; then
18693 with_denoise_level=0
18696 if test ${with_denoise_level:-5} -gt 4; then
18697 if test "${svndate:+set}" = "set"; then
18698 with_denoise_level=0
18699 else
18700 with_denoise_level=4
18705 echo "$as_me:$LINENO: result: $with_denoise_level" >&5
18706 echo "${ECHO_T}$with_denoise_level" >&6
18708 ac_config_commands="$ac_config_commands denoiser"
18714 if test x$WEB = xyes; then
18715 WEB_TRUE=
18716 WEB_FALSE='#'
18717 else
18718 WEB_TRUE='#'
18719 WEB_FALSE=
18724 if test x$ED2K = xyes; then
18725 ED2K_TRUE=
18726 ED2K_FALSE='#'
18727 else
18728 ED2K_TRUE='#'
18729 ED2K_FALSE=
18734 if test x$CAS = xyes; then
18735 CAS_TRUE=
18736 CAS_FALSE='#'
18737 else
18738 CAS_TRUE='#'
18739 CAS_FALSE=
18744 if test x$WXCAS = xyes; then
18745 WXCAS_TRUE=
18746 WXCAS_FALSE='#'
18747 else
18748 WXCAS_TRUE='#'
18749 WXCAS_FALSE=
18754 if test x$ALC = xyes; then
18755 ALC_TRUE=
18756 ALC_FALSE='#'
18757 else
18758 ALC_TRUE='#'
18759 ALC_FALSE=
18764 if test x$ALCC = xyes; then
18765 ALCC_TRUE=
18766 ALCC_FALSE='#'
18767 else
18768 ALCC_TRUE='#'
18769 ALCC_FALSE=
18774 if test x$AMULE_GUI = xyes; then
18775 AMULE_GUI_TRUE=
18776 AMULE_GUI_FALSE='#'
18777 else
18778 AMULE_GUI_TRUE='#'
18779 AMULE_GUI_FALSE=
18784 if test x$AMULE_DAEMON = xyes; then
18785 AMULE_DAEMON_TRUE=
18786 AMULE_DAEMON_FALSE='#'
18787 else
18788 AMULE_DAEMON_TRUE='#'
18789 AMULE_DAEMON_FALSE=
18794 if test x$AMULECMD = xyes; then
18795 COMPILE_CMD_TRUE=
18796 COMPILE_CMD_FALSE='#'
18797 else
18798 COMPILE_CMD_TRUE='#'
18799 COMPILE_CMD_FALSE=
18804 if test x$MONOLITHIC = xyes; then
18805 MONOLITHIC_TRUE=
18806 MONOLITHIC_FALSE='#'
18807 else
18808 MONOLITHIC_TRUE='#'
18809 MONOLITHIC_FALSE=
18814 if test x$XAS = xyes; then
18815 XAS_TRUE=
18816 XAS_FALSE='#'
18817 else
18818 XAS_TRUE='#'
18819 XAS_FALSE=
18824 if test x$ENABLE_UPNP = xyes; then
18825 ENABLE_UPNP_TRUE=
18826 ENABLE_UPNP_FALSE='#'
18827 else
18828 ENABLE_UPNP_TRUE='#'
18829 ENABLE_UPNP_FALSE=
18834 if test x$ENABLE_IP2COUNTRY = xyes; then
18835 ENABLE_IP2COUNTRY_TRUE=
18836 ENABLE_IP2COUNTRY_FALSE='#'
18837 else
18838 ENABLE_IP2COUNTRY_TRUE='#'
18839 ENABLE_IP2COUNTRY_FALSE=
18844 if test x$SYS = xwin32; then
18845 SYS_WIN32_TRUE=
18846 SYS_WIN32_FALSE='#'
18847 else
18848 SYS_WIN32_TRUE='#'
18849 SYS_WIN32_FALSE=
18854 if test x$SYS = xwin32 -a "$RC" != ":"; then
18855 NEED_RC_TRUE=
18856 NEED_RC_FALSE='#'
18857 else
18858 NEED_RC_TRUE='#'
18859 NEED_RC_FALSE=
18864 if test x$SYS = xdarwin; then
18865 NEED_CORESERVICES_TRUE=
18866 NEED_CORESERVICES_FALSE='#'
18867 else
18868 NEED_CORESERVICES_TRUE='#'
18869 NEED_CORESERVICES_FALSE=
18874 if test x$USE_NLS = xyes; then
18875 COMPILE_NLS_TRUE=
18876 COMPILE_NLS_FALSE='#'
18877 else
18878 COMPILE_NLS_TRUE='#'
18879 COMPILE_NLS_FALSE=
18884 if test x$HAVE_FLEX_EXTENDED = xyes; then
18885 GENERATE_FLEX_HEADER_TRUE=
18886 GENERATE_FLEX_HEADER_FALSE='#'
18887 else
18888 GENERATE_FLEX_HEADER_TRUE='#'
18889 GENERATE_FLEX_HEADER_FALSE=
18894 if test x$INSTALL_SKINS = xyes; then
18895 INSTALL_SKINS_TRUE=
18896 INSTALL_SKINS_FALSE='#'
18897 else
18898 INSTALL_SKINS_TRUE='#'
18899 INSTALL_SKINS_FALSE=
18903 # Check for readline library
18904 if test x$AMULECMD = xyes -o x$WEB = xyes; then
18906 echo "$as_me:$LINENO: checking for a readline compatible library" >&5
18907 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6
18908 if test "${vl_cv_lib_readline+set}" = set; then
18909 echo $ECHO_N "(cached) $ECHO_C" >&6
18910 else
18912 ORIG_LIBS="$LIBS"
18913 for readline_lib in readline edit editline; do
18914 for termcap_lib in "" termcap curses ncurses; do
18915 if test -z "$termcap_lib"; then
18916 TRY_LIB="-l$readline_lib"
18917 else
18918 TRY_LIB="-l$readline_lib -l$termcap_lib"
18920 LIBS="$ORIG_LIBS $TRY_LIB"
18921 cat >conftest.$ac_ext <<_ACEOF
18922 /* confdefs.h. */
18923 _ACEOF
18924 cat confdefs.h >>conftest.$ac_ext
18925 cat >>conftest.$ac_ext <<_ACEOF
18926 /* end confdefs.h. */
18928 /* Override any gcc2 internal prototype to avoid an error. */
18929 #ifdef __cplusplus
18930 extern "C"
18931 #endif
18932 /* We use char because int might match the return type of a gcc2
18933 builtin and then its argument prototype would still apply. */
18934 char readline ();
18936 main ()
18938 readline ();
18940 return 0;
18942 _ACEOF
18943 rm -f conftest.$ac_objext conftest$ac_exeext
18944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18945 (eval $ac_link) 2>conftest.er1
18946 ac_status=$?
18947 grep -v '^ *+' conftest.er1 >conftest.err
18948 rm -f conftest.er1
18949 cat conftest.err >&5
18950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951 (exit $ac_status); } &&
18952 { ac_try='test -z "$ac_c_werror_flag"
18953 || test ! -s conftest.err'
18954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18955 (eval $ac_try) 2>&5
18956 ac_status=$?
18957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958 (exit $ac_status); }; } &&
18959 { ac_try='test -s conftest$ac_exeext'
18960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18961 (eval $ac_try) 2>&5
18962 ac_status=$?
18963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964 (exit $ac_status); }; }; then
18965 vl_cv_lib_readline="$TRY_LIB"
18966 else
18967 echo "$as_me: failed program was:" >&5
18968 sed 's/^/| /' conftest.$ac_ext >&5
18971 rm -f conftest.err conftest.$ac_objext \
18972 conftest$ac_exeext conftest.$ac_ext
18973 if test -n "$vl_cv_lib_readline"; then
18974 break
18976 done
18977 if test -n "$vl_cv_lib_readline"; then
18978 break
18980 done
18981 if test -z "$vl_cv_lib_readline"; then
18982 vl_cv_lib_readline="no"
18983 LIBS="$ORIG_LIBS"
18984 READLINE_LIBS=""
18985 else
18986 READLINE_LIBS="$vl_cv_lib_readline"
18990 echo "$as_me:$LINENO: result: $vl_cv_lib_readline" >&5
18991 echo "${ECHO_T}$vl_cv_lib_readline" >&6
18993 if test "$vl_cv_lib_readline" != "no"; then
18995 cat >>confdefs.h <<\_ACEOF
18996 #define HAVE_LIBREADLINE 1
18997 _ACEOF
19001 for ac_header in readline.h readline/readline.h
19003 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19005 echo "$as_me:$LINENO: checking for $ac_header" >&5
19006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19008 echo $ECHO_N "(cached) $ECHO_C" >&6
19010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19011 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19012 else
19013 # Is the header compilable?
19014 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19015 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19016 cat >conftest.$ac_ext <<_ACEOF
19017 /* confdefs.h. */
19018 _ACEOF
19019 cat confdefs.h >>conftest.$ac_ext
19020 cat >>conftest.$ac_ext <<_ACEOF
19021 /* end confdefs.h. */
19022 $ac_includes_default
19023 #include <$ac_header>
19024 _ACEOF
19025 rm -f conftest.$ac_objext
19026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19027 (eval $ac_compile) 2>conftest.er1
19028 ac_status=$?
19029 grep -v '^ *+' conftest.er1 >conftest.err
19030 rm -f conftest.er1
19031 cat conftest.err >&5
19032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033 (exit $ac_status); } &&
19034 { ac_try='test -z "$ac_c_werror_flag"
19035 || test ! -s conftest.err'
19036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19037 (eval $ac_try) 2>&5
19038 ac_status=$?
19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040 (exit $ac_status); }; } &&
19041 { ac_try='test -s conftest.$ac_objext'
19042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19043 (eval $ac_try) 2>&5
19044 ac_status=$?
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); }; }; then
19047 ac_header_compiler=yes
19048 else
19049 echo "$as_me: failed program was:" >&5
19050 sed 's/^/| /' conftest.$ac_ext >&5
19052 ac_header_compiler=no
19054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19055 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19056 echo "${ECHO_T}$ac_header_compiler" >&6
19058 # Is the header present?
19059 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19060 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19061 cat >conftest.$ac_ext <<_ACEOF
19062 /* confdefs.h. */
19063 _ACEOF
19064 cat confdefs.h >>conftest.$ac_ext
19065 cat >>conftest.$ac_ext <<_ACEOF
19066 /* end confdefs.h. */
19067 #include <$ac_header>
19068 _ACEOF
19069 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19070 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19071 ac_status=$?
19072 grep -v '^ *+' conftest.er1 >conftest.err
19073 rm -f conftest.er1
19074 cat conftest.err >&5
19075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); } >/dev/null; then
19077 if test -s conftest.err; then
19078 ac_cpp_err=$ac_c_preproc_warn_flag
19079 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19080 else
19081 ac_cpp_err=
19083 else
19084 ac_cpp_err=yes
19086 if test -z "$ac_cpp_err"; then
19087 ac_header_preproc=yes
19088 else
19089 echo "$as_me: failed program was:" >&5
19090 sed 's/^/| /' conftest.$ac_ext >&5
19092 ac_header_preproc=no
19094 rm -f conftest.err conftest.$ac_ext
19095 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19096 echo "${ECHO_T}$ac_header_preproc" >&6
19098 # So? What about this header?
19099 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19100 yes:no: )
19101 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19102 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19104 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19105 ac_header_preproc=yes
19107 no:yes:* )
19108 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19109 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19110 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19111 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19112 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19113 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19114 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19115 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19117 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19118 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19119 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19121 cat <<\_ASBOX
19122 ## ------------------------------ ##
19123 ## Report this to admin@amule.org ##
19124 ## ------------------------------ ##
19125 _ASBOX
19127 sed "s/^/$as_me: WARNING: /" >&2
19129 esac
19130 echo "$as_me:$LINENO: checking for $ac_header" >&5
19131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19132 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19133 echo $ECHO_N "(cached) $ECHO_C" >&6
19134 else
19135 eval "$as_ac_Header=\$ac_header_preproc"
19137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19138 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19141 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19142 cat >>confdefs.h <<_ACEOF
19143 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19144 _ACEOF
19148 done
19150 echo "$as_me:$LINENO: checking whether readline supports history" >&5
19151 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6
19152 if test "${vl_cv_lib_readline_history+set}" = set; then
19153 echo $ECHO_N "(cached) $ECHO_C" >&6
19154 else
19156 vl_cv_lib_readline_history="no"
19157 cat >conftest.$ac_ext <<_ACEOF
19158 /* confdefs.h. */
19159 _ACEOF
19160 cat confdefs.h >>conftest.$ac_ext
19161 cat >>conftest.$ac_ext <<_ACEOF
19162 /* end confdefs.h. */
19164 /* Override any gcc2 internal prototype to avoid an error. */
19165 #ifdef __cplusplus
19166 extern "C"
19167 #endif
19168 /* We use char because int might match the return type of a gcc2
19169 builtin and then its argument prototype would still apply. */
19170 char add_history ();
19172 main ()
19174 add_history ();
19176 return 0;
19178 _ACEOF
19179 rm -f conftest.$ac_objext conftest$ac_exeext
19180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19181 (eval $ac_link) 2>conftest.er1
19182 ac_status=$?
19183 grep -v '^ *+' conftest.er1 >conftest.err
19184 rm -f conftest.er1
19185 cat conftest.err >&5
19186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187 (exit $ac_status); } &&
19188 { ac_try='test -z "$ac_c_werror_flag"
19189 || test ! -s conftest.err'
19190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19191 (eval $ac_try) 2>&5
19192 ac_status=$?
19193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194 (exit $ac_status); }; } &&
19195 { ac_try='test -s conftest$ac_exeext'
19196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19197 (eval $ac_try) 2>&5
19198 ac_status=$?
19199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200 (exit $ac_status); }; }; then
19201 vl_cv_lib_readline_history="yes"
19202 else
19203 echo "$as_me: failed program was:" >&5
19204 sed 's/^/| /' conftest.$ac_ext >&5
19207 rm -f conftest.err conftest.$ac_objext \
19208 conftest$ac_exeext conftest.$ac_ext
19211 echo "$as_me:$LINENO: result: $vl_cv_lib_readline_history" >&5
19212 echo "${ECHO_T}$vl_cv_lib_readline_history" >&6
19213 if test "$vl_cv_lib_readline_history" = "yes"; then
19215 cat >>confdefs.h <<\_ACEOF
19216 #define HAVE_READLINE_HISTORY 1
19217 _ACEOF
19221 for ac_header in history.h readline/history.h
19223 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19225 echo "$as_me:$LINENO: checking for $ac_header" >&5
19226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19228 echo $ECHO_N "(cached) $ECHO_C" >&6
19230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19231 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19232 else
19233 # Is the header compilable?
19234 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19235 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19236 cat >conftest.$ac_ext <<_ACEOF
19237 /* confdefs.h. */
19238 _ACEOF
19239 cat confdefs.h >>conftest.$ac_ext
19240 cat >>conftest.$ac_ext <<_ACEOF
19241 /* end confdefs.h. */
19242 $ac_includes_default
19243 #include <$ac_header>
19244 _ACEOF
19245 rm -f conftest.$ac_objext
19246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19247 (eval $ac_compile) 2>conftest.er1
19248 ac_status=$?
19249 grep -v '^ *+' conftest.er1 >conftest.err
19250 rm -f conftest.er1
19251 cat conftest.err >&5
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); } &&
19254 { ac_try='test -z "$ac_c_werror_flag"
19255 || test ! -s conftest.err'
19256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19257 (eval $ac_try) 2>&5
19258 ac_status=$?
19259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260 (exit $ac_status); }; } &&
19261 { ac_try='test -s conftest.$ac_objext'
19262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19263 (eval $ac_try) 2>&5
19264 ac_status=$?
19265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266 (exit $ac_status); }; }; then
19267 ac_header_compiler=yes
19268 else
19269 echo "$as_me: failed program was:" >&5
19270 sed 's/^/| /' conftest.$ac_ext >&5
19272 ac_header_compiler=no
19274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19275 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19276 echo "${ECHO_T}$ac_header_compiler" >&6
19278 # Is the header present?
19279 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19280 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19281 cat >conftest.$ac_ext <<_ACEOF
19282 /* confdefs.h. */
19283 _ACEOF
19284 cat confdefs.h >>conftest.$ac_ext
19285 cat >>conftest.$ac_ext <<_ACEOF
19286 /* end confdefs.h. */
19287 #include <$ac_header>
19288 _ACEOF
19289 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19290 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19291 ac_status=$?
19292 grep -v '^ *+' conftest.er1 >conftest.err
19293 rm -f conftest.er1
19294 cat conftest.err >&5
19295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296 (exit $ac_status); } >/dev/null; then
19297 if test -s conftest.err; then
19298 ac_cpp_err=$ac_c_preproc_warn_flag
19299 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19300 else
19301 ac_cpp_err=
19303 else
19304 ac_cpp_err=yes
19306 if test -z "$ac_cpp_err"; then
19307 ac_header_preproc=yes
19308 else
19309 echo "$as_me: failed program was:" >&5
19310 sed 's/^/| /' conftest.$ac_ext >&5
19312 ac_header_preproc=no
19314 rm -f conftest.err conftest.$ac_ext
19315 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19316 echo "${ECHO_T}$ac_header_preproc" >&6
19318 # So? What about this header?
19319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19320 yes:no: )
19321 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19322 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19324 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19325 ac_header_preproc=yes
19327 no:yes:* )
19328 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19329 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19330 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19331 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19332 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19333 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19334 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19335 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19337 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19338 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19339 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19341 cat <<\_ASBOX
19342 ## ------------------------------ ##
19343 ## Report this to admin@amule.org ##
19344 ## ------------------------------ ##
19345 _ASBOX
19347 sed "s/^/$as_me: WARNING: /" >&2
19349 esac
19350 echo "$as_me:$LINENO: checking for $ac_header" >&5
19351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19353 echo $ECHO_N "(cached) $ECHO_C" >&6
19354 else
19355 eval "$as_ac_Header=\$ac_header_preproc"
19357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19362 cat >>confdefs.h <<_ACEOF
19363 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19364 _ACEOF
19368 done
19373 LIBS="$ORIG_LIBS"
19377 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
19380 # Check whether --enable-ccache or --disable-ccache was given.
19381 if test "${enable_ccache+set}" = set; then
19382 enableval="$enable_ccache"
19387 # Check whether --with-ccache-prefix or --without-ccache-prefix was given.
19388 if test "${with_ccache_prefix+set}" = set; then
19389 withval="$with_ccache_prefix"
19393 echo "$as_me:$LINENO: checking whether ccache support should be added" >&5
19394 echo $ECHO_N "checking whether ccache support should be added... $ECHO_C" >&6
19395 echo "$as_me:$LINENO: result: ${enable_ccache:-no}" >&5
19396 echo "${ECHO_T}${enable_ccache:-no}" >&6
19398 if test ${enable_ccache:-no} = yes; then
19400 echo "$as_me:$LINENO: checking for ccache presence" >&5
19401 echo $ECHO_N "checking for ccache presence... $ECHO_C" >&6
19402 if test -z "$with_ccache_prefix"; then
19404 ccache_full=`which ccache`
19405 with_ccache_prefix=`dirname ${ccache_full}`
19409 if $with_ccache_prefix/ccache -V >/dev/null 2>&1; then
19411 echo "$as_me:$LINENO: result: yes" >&5
19412 echo "${ECHO_T}yes" >&6
19413 CC="$with_ccache_prefix/ccache $CC"
19414 CXX="$with_ccache_prefix/ccache $CXX"
19415 BUILD_CC="$with_ccache_prefix/ccache $BUILD_CC"
19417 else
19419 enable_ccache=no
19420 echo "$as_me:$LINENO: result: no" >&5
19421 echo "${ECHO_T}no" >&6
19430 ac_config_files="$ac_config_files Makefile docs/Makefile docs/man/Makefile intl/Makefile src/Makefile src/pixmaps/Makefile src/pixmaps/flags_xpm/Makefile src/libs/Makefile src/libs/ec/Makefile src/libs/ec/cpp/Makefile src/libs/common/Makefile src/utils/Makefile src/utils/aLinkCreator/Makefile src/utils/aLinkCreator/docs/Makefile src/utils/aLinkCreator/src/Makefile src/utils/cas/Makefile src/utils/cas/docs/Makefile src/utils/fileview/Makefile src/utils/wxCas/Makefile src/utils/wxCas/docs/Makefile src/utils/wxCas/src/Makefile src/utils/xas/Makefile src/utils/xas/autostart-xas src/utils/xas/docs/Makefile src/skins/Makefile src/webserver/Makefile src/webserver/src/Makefile src/webserver/default/Makefile unittests/Makefile unittests/muleunit/Makefile unittests/tests/Makefile"
19432 ac_config_files="$ac_config_files po/Makefile.in Compilation.flags"
19434 if test x$SYS = xwin32; then
19435 ac_config_files="$ac_config_files version.rc"
19439 cat >confcache <<\_ACEOF
19440 # This file is a shell script that caches the results of configure
19441 # tests run on this system so they can be shared between configure
19442 # scripts and configure runs, see configure's option --config-cache.
19443 # It is not useful on other systems. If it contains results you don't
19444 # want to keep, you may remove or edit it.
19446 # config.status only pays attention to the cache file if you give it
19447 # the --recheck option to rerun configure.
19449 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19450 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19451 # following values.
19453 _ACEOF
19455 # The following way of writing the cache mishandles newlines in values,
19456 # but we know of no workaround that is simple, portable, and efficient.
19457 # So, don't put newlines in cache variables' values.
19458 # Ultrix sh set writes to stderr and can't be redirected directly,
19459 # and sets the high bit in the cache file unless we assign to the vars.
19461 (set) 2>&1 |
19462 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19463 *ac_space=\ *)
19464 # `set' does not quote correctly, so add quotes (double-quote
19465 # substitution turns \\\\ into \\, and sed turns \\ into \).
19466 sed -n \
19467 "s/'/'\\\\''/g;
19468 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19471 # `set' quotes correctly as required by POSIX, so do not add quotes.
19472 sed -n \
19473 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19475 esac;
19477 sed '
19478 t clear
19479 : clear
19480 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19481 t end
19482 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19483 : end' >>confcache
19484 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19485 if test -w $cache_file; then
19486 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19487 cat confcache >$cache_file
19488 else
19489 echo "not updating unwritable cache $cache_file"
19492 rm -f confcache
19494 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19495 # Let make expand exec_prefix.
19496 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19498 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19499 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19500 # trailing colons and then remove the whole line if VPATH becomes empty
19501 # (actually we leave an empty line to preserve line numbers).
19502 if test "x$srcdir" = x.; then
19503 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19504 s/:*\$(srcdir):*/:/;
19505 s/:*\${srcdir}:*/:/;
19506 s/:*@srcdir@:*/:/;
19507 s/^\([^=]*=[ ]*\):*/\1/;
19508 s/:*$//;
19509 s/^[^=]*=[ ]*$//;
19513 DEFS=-DHAVE_CONFIG_H
19515 ac_libobjs=
19516 ac_ltlibobjs=
19517 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19518 # 1. Remove the extension, and $U if already installed.
19519 ac_i=`echo "$ac_i" |
19520 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19521 # 2. Add them.
19522 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19523 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19524 done
19525 LIBOBJS=$ac_libobjs
19527 LTLIBOBJS=$ac_ltlibobjs
19530 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19531 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19532 Usually this means the macro was only invoked conditionally." >&5
19533 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19534 Usually this means the macro was only invoked conditionally." >&2;}
19535 { (exit 1); exit 1; }; }
19537 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19538 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19539 Usually this means the macro was only invoked conditionally." >&5
19540 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19541 Usually this means the macro was only invoked conditionally." >&2;}
19542 { (exit 1); exit 1; }; }
19544 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19545 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19546 Usually this means the macro was only invoked conditionally." >&5
19547 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19548 Usually this means the macro was only invoked conditionally." >&2;}
19549 { (exit 1); exit 1; }; }
19551 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19552 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19553 Usually this means the macro was only invoked conditionally." >&5
19554 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19555 Usually this means the macro was only invoked conditionally." >&2;}
19556 { (exit 1); exit 1; }; }
19558 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
19559 { { echo "$as_me:$LINENO: error: conditional \"WEB\" was never defined.
19560 Usually this means the macro was only invoked conditionally." >&5
19561 echo "$as_me: error: conditional \"WEB\" was never defined.
19562 Usually this means the macro was only invoked conditionally." >&2;}
19563 { (exit 1); exit 1; }; }
19565 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
19566 { { echo "$as_me:$LINENO: error: conditional \"ED2K\" was never defined.
19567 Usually this means the macro was only invoked conditionally." >&5
19568 echo "$as_me: error: conditional \"ED2K\" was never defined.
19569 Usually this means the macro was only invoked conditionally." >&2;}
19570 { (exit 1); exit 1; }; }
19572 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
19573 { { echo "$as_me:$LINENO: error: conditional \"CAS\" was never defined.
19574 Usually this means the macro was only invoked conditionally." >&5
19575 echo "$as_me: error: conditional \"CAS\" was never defined.
19576 Usually this means the macro was only invoked conditionally." >&2;}
19577 { (exit 1); exit 1; }; }
19579 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
19580 { { echo "$as_me:$LINENO: error: conditional \"WXCAS\" was never defined.
19581 Usually this means the macro was only invoked conditionally." >&5
19582 echo "$as_me: error: conditional \"WXCAS\" was never defined.
19583 Usually this means the macro was only invoked conditionally." >&2;}
19584 { (exit 1); exit 1; }; }
19586 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
19587 { { echo "$as_me:$LINENO: error: conditional \"ALC\" was never defined.
19588 Usually this means the macro was only invoked conditionally." >&5
19589 echo "$as_me: error: conditional \"ALC\" was never defined.
19590 Usually this means the macro was only invoked conditionally." >&2;}
19591 { (exit 1); exit 1; }; }
19593 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
19594 { { echo "$as_me:$LINENO: error: conditional \"ALCC\" was never defined.
19595 Usually this means the macro was only invoked conditionally." >&5
19596 echo "$as_me: error: conditional \"ALCC\" was never defined.
19597 Usually this means the macro was only invoked conditionally." >&2;}
19598 { (exit 1); exit 1; }; }
19600 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
19601 { { echo "$as_me:$LINENO: error: conditional \"AMULE_GUI\" was never defined.
19602 Usually this means the macro was only invoked conditionally." >&5
19603 echo "$as_me: error: conditional \"AMULE_GUI\" was never defined.
19604 Usually this means the macro was only invoked conditionally." >&2;}
19605 { (exit 1); exit 1; }; }
19607 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
19608 { { echo "$as_me:$LINENO: error: conditional \"AMULE_DAEMON\" was never defined.
19609 Usually this means the macro was only invoked conditionally." >&5
19610 echo "$as_me: error: conditional \"AMULE_DAEMON\" was never defined.
19611 Usually this means the macro was only invoked conditionally." >&2;}
19612 { (exit 1); exit 1; }; }
19614 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
19615 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_CMD\" was never defined.
19616 Usually this means the macro was only invoked conditionally." >&5
19617 echo "$as_me: error: conditional \"COMPILE_CMD\" was never defined.
19618 Usually this means the macro was only invoked conditionally." >&2;}
19619 { (exit 1); exit 1; }; }
19621 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
19622 { { echo "$as_me:$LINENO: error: conditional \"MONOLITHIC\" was never defined.
19623 Usually this means the macro was only invoked conditionally." >&5
19624 echo "$as_me: error: conditional \"MONOLITHIC\" was never defined.
19625 Usually this means the macro was only invoked conditionally." >&2;}
19626 { (exit 1); exit 1; }; }
19628 if test -z "${XAS_TRUE}" && test -z "${XAS_FALSE}"; then
19629 { { echo "$as_me:$LINENO: error: conditional \"XAS\" was never defined.
19630 Usually this means the macro was only invoked conditionally." >&5
19631 echo "$as_me: error: conditional \"XAS\" was never defined.
19632 Usually this means the macro was only invoked conditionally." >&2;}
19633 { (exit 1); exit 1; }; }
19635 if test -z "${ENABLE_UPNP_TRUE}" && test -z "${ENABLE_UPNP_FALSE}"; then
19636 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_UPNP\" was never defined.
19637 Usually this means the macro was only invoked conditionally." >&5
19638 echo "$as_me: error: conditional \"ENABLE_UPNP\" was never defined.
19639 Usually this means the macro was only invoked conditionally." >&2;}
19640 { (exit 1); exit 1; }; }
19642 if test -z "${ENABLE_IP2COUNTRY_TRUE}" && test -z "${ENABLE_IP2COUNTRY_FALSE}"; then
19643 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
19644 Usually this means the macro was only invoked conditionally." >&5
19645 echo "$as_me: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
19646 Usually this means the macro was only invoked conditionally." >&2;}
19647 { (exit 1); exit 1; }; }
19649 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
19650 { { echo "$as_me:$LINENO: error: conditional \"SYS_WIN32\" was never defined.
19651 Usually this means the macro was only invoked conditionally." >&5
19652 echo "$as_me: error: conditional \"SYS_WIN32\" was never defined.
19653 Usually this means the macro was only invoked conditionally." >&2;}
19654 { (exit 1); exit 1; }; }
19656 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
19657 { { echo "$as_me:$LINENO: error: conditional \"NEED_RC\" was never defined.
19658 Usually this means the macro was only invoked conditionally." >&5
19659 echo "$as_me: error: conditional \"NEED_RC\" was never defined.
19660 Usually this means the macro was only invoked conditionally." >&2;}
19661 { (exit 1); exit 1; }; }
19663 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
19664 { { echo "$as_me:$LINENO: error: conditional \"NEED_CORESERVICES\" was never defined.
19665 Usually this means the macro was only invoked conditionally." >&5
19666 echo "$as_me: error: conditional \"NEED_CORESERVICES\" was never defined.
19667 Usually this means the macro was only invoked conditionally." >&2;}
19668 { (exit 1); exit 1; }; }
19670 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
19671 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_NLS\" was never defined.
19672 Usually this means the macro was only invoked conditionally." >&5
19673 echo "$as_me: error: conditional \"COMPILE_NLS\" was never defined.
19674 Usually this means the macro was only invoked conditionally." >&2;}
19675 { (exit 1); exit 1; }; }
19677 if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then
19678 { { echo "$as_me:$LINENO: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19679 Usually this means the macro was only invoked conditionally." >&5
19680 echo "$as_me: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19681 Usually this means the macro was only invoked conditionally." >&2;}
19682 { (exit 1); exit 1; }; }
19684 if test -z "${INSTALL_SKINS_TRUE}" && test -z "${INSTALL_SKINS_FALSE}"; then
19685 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_SKINS\" was never defined.
19686 Usually this means the macro was only invoked conditionally." >&5
19687 echo "$as_me: error: conditional \"INSTALL_SKINS\" was never defined.
19688 Usually this means the macro was only invoked conditionally." >&2;}
19689 { (exit 1); exit 1; }; }
19692 : ${CONFIG_STATUS=./config.status}
19693 ac_clean_files_save=$ac_clean_files
19694 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19695 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19696 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19697 cat >$CONFIG_STATUS <<_ACEOF
19698 #! $SHELL
19699 # Generated by $as_me.
19700 # Run this file to recreate the current configuration.
19701 # Compiler output produced by configure, useful for debugging
19702 # configure, is in config.log if it exists.
19704 debug=false
19705 ac_cs_recheck=false
19706 ac_cs_silent=false
19707 SHELL=\${CONFIG_SHELL-$SHELL}
19708 _ACEOF
19710 cat >>$CONFIG_STATUS <<\_ACEOF
19711 ## --------------------- ##
19712 ## M4sh Initialization. ##
19713 ## --------------------- ##
19715 # Be Bourne compatible
19716 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19717 emulate sh
19718 NULLCMD=:
19719 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19720 # is contrary to our usage. Disable this feature.
19721 alias -g '${1+"$@"}'='"$@"'
19722 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19723 set -o posix
19725 DUALCASE=1; export DUALCASE # for MKS sh
19727 # Support unset when possible.
19728 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19729 as_unset=unset
19730 else
19731 as_unset=false
19735 # Work around bugs in pre-3.0 UWIN ksh.
19736 $as_unset ENV MAIL MAILPATH
19737 PS1='$ '
19738 PS2='> '
19739 PS4='+ '
19741 # NLS nuisances.
19742 for as_var in \
19743 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19744 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19745 LC_TELEPHONE LC_TIME
19747 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19748 eval $as_var=C; export $as_var
19749 else
19750 $as_unset $as_var
19752 done
19754 # Required to use basename.
19755 if expr a : '\(a\)' >/dev/null 2>&1; then
19756 as_expr=expr
19757 else
19758 as_expr=false
19761 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19762 as_basename=basename
19763 else
19764 as_basename=false
19768 # Name of the executable.
19769 as_me=`$as_basename "$0" ||
19770 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19771 X"$0" : 'X\(//\)$' \| \
19772 X"$0" : 'X\(/\)$' \| \
19773 . : '\(.\)' 2>/dev/null ||
19774 echo X/"$0" |
19775 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19776 /^X\/\(\/\/\)$/{ s//\1/; q; }
19777 /^X\/\(\/\).*/{ s//\1/; q; }
19778 s/.*/./; q'`
19781 # PATH needs CR, and LINENO needs CR and PATH.
19782 # Avoid depending upon Character Ranges.
19783 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19784 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19785 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19786 as_cr_digits='0123456789'
19787 as_cr_alnum=$as_cr_Letters$as_cr_digits
19789 # The user is always right.
19790 if test "${PATH_SEPARATOR+set}" != set; then
19791 echo "#! /bin/sh" >conf$$.sh
19792 echo "exit 0" >>conf$$.sh
19793 chmod +x conf$$.sh
19794 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19795 PATH_SEPARATOR=';'
19796 else
19797 PATH_SEPARATOR=:
19799 rm -f conf$$.sh
19803 as_lineno_1=$LINENO
19804 as_lineno_2=$LINENO
19805 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19806 test "x$as_lineno_1" != "x$as_lineno_2" &&
19807 test "x$as_lineno_3" = "x$as_lineno_2" || {
19808 # Find who we are. Look in the path if we contain no path at all
19809 # relative or not.
19810 case $0 in
19811 *[\\/]* ) as_myself=$0 ;;
19812 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19813 for as_dir in $PATH
19815 IFS=$as_save_IFS
19816 test -z "$as_dir" && as_dir=.
19817 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19818 done
19821 esac
19822 # We did not find ourselves, most probably we were run as `sh COMMAND'
19823 # in which case we are not to be found in the path.
19824 if test "x$as_myself" = x; then
19825 as_myself=$0
19827 if test ! -f "$as_myself"; then
19828 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19829 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19830 { (exit 1); exit 1; }; }
19832 case $CONFIG_SHELL in
19834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19835 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19837 IFS=$as_save_IFS
19838 test -z "$as_dir" && as_dir=.
19839 for as_base in sh bash ksh sh5; do
19840 case $as_dir in
19842 if ("$as_dir/$as_base" -c '
19843 as_lineno_1=$LINENO
19844 as_lineno_2=$LINENO
19845 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19846 test "x$as_lineno_1" != "x$as_lineno_2" &&
19847 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19848 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19849 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19850 CONFIG_SHELL=$as_dir/$as_base
19851 export CONFIG_SHELL
19852 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19853 fi;;
19854 esac
19855 done
19856 done
19858 esac
19860 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19861 # uniformly replaced by the line number. The first 'sed' inserts a
19862 # line-number line before each line; the second 'sed' does the real
19863 # work. The second script uses 'N' to pair each line-number line
19864 # with the numbered line, and appends trailing '-' during
19865 # substitution so that $LINENO is not a special case at line end.
19866 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19867 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19868 sed '=' <$as_myself |
19869 sed '
19871 s,$,-,
19872 : loop
19873 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19874 t loop
19875 s,-$,,
19876 s,^['$as_cr_digits']*\n,,
19877 ' >$as_me.lineno &&
19878 chmod +x $as_me.lineno ||
19879 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19880 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19881 { (exit 1); exit 1; }; }
19883 # Don't try to exec as it changes $[0], causing all sort of problems
19884 # (the dirname of $[0] is not the place where we might find the
19885 # original and so on. Autoconf is especially sensible to this).
19886 . ./$as_me.lineno
19887 # Exit status is that of the last command.
19888 exit
19892 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19893 *c*,-n*) ECHO_N= ECHO_C='
19894 ' ECHO_T=' ' ;;
19895 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19896 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19897 esac
19899 if expr a : '\(a\)' >/dev/null 2>&1; then
19900 as_expr=expr
19901 else
19902 as_expr=false
19905 rm -f conf$$ conf$$.exe conf$$.file
19906 echo >conf$$.file
19907 if ln -s conf$$.file conf$$ 2>/dev/null; then
19908 # We could just check for DJGPP; but this test a) works b) is more generic
19909 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19910 if test -f conf$$.exe; then
19911 # Don't use ln at all; we don't have any links
19912 as_ln_s='cp -p'
19913 else
19914 as_ln_s='ln -s'
19916 elif ln conf$$.file conf$$ 2>/dev/null; then
19917 as_ln_s=ln
19918 else
19919 as_ln_s='cp -p'
19921 rm -f conf$$ conf$$.exe conf$$.file
19923 if mkdir -p . 2>/dev/null; then
19924 as_mkdir_p=:
19925 else
19926 test -d ./-p && rmdir ./-p
19927 as_mkdir_p=false
19930 as_executable_p="test -f"
19932 # Sed expression to map a string onto a valid CPP name.
19933 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19935 # Sed expression to map a string onto a valid variable name.
19936 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19939 # IFS
19940 # We need space, tab and new line, in precisely that order.
19941 as_nl='
19943 IFS=" $as_nl"
19945 # CDPATH.
19946 $as_unset CDPATH
19948 exec 6>&1
19950 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19951 # report actual input values of CONFIG_FILES etc. instead of their
19952 # values after options handling. Logging --version etc. is OK.
19953 exec 5>>config.log
19955 echo
19956 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19957 ## Running $as_me. ##
19958 _ASBOX
19959 } >&5
19960 cat >&5 <<_CSEOF
19962 This file was extended by aMule $as_me SVN, which was
19963 generated by GNU Autoconf 2.59. Invocation command line was
19965 CONFIG_FILES = $CONFIG_FILES
19966 CONFIG_HEADERS = $CONFIG_HEADERS
19967 CONFIG_LINKS = $CONFIG_LINKS
19968 CONFIG_COMMANDS = $CONFIG_COMMANDS
19969 $ $0 $@
19971 _CSEOF
19972 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19973 echo >&5
19974 _ACEOF
19976 # Files that config.status was made for.
19977 if test -n "$ac_config_files"; then
19978 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19981 if test -n "$ac_config_headers"; then
19982 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19985 if test -n "$ac_config_links"; then
19986 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19989 if test -n "$ac_config_commands"; then
19990 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19993 cat >>$CONFIG_STATUS <<\_ACEOF
19995 ac_cs_usage="\
19996 \`$as_me' instantiates files from templates according to the
19997 current configuration.
19999 Usage: $0 [OPTIONS] [FILE]...
20001 -h, --help print this help, then exit
20002 -V, --version print version number, then exit
20003 -q, --quiet do not print progress messages
20004 -d, --debug don't remove temporary files
20005 --recheck update $as_me by reconfiguring in the same conditions
20006 --file=FILE[:TEMPLATE]
20007 instantiate the configuration file FILE
20008 --header=FILE[:TEMPLATE]
20009 instantiate the configuration header FILE
20011 Configuration files:
20012 $config_files
20014 Configuration headers:
20015 $config_headers
20017 Configuration commands:
20018 $config_commands
20020 Report bugs to <bug-autoconf@gnu.org>."
20021 _ACEOF
20023 cat >>$CONFIG_STATUS <<_ACEOF
20024 ac_cs_version="\\
20025 aMule config.status SVN
20026 configured by $0, generated by GNU Autoconf 2.59,
20027 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20029 Copyright (C) 2003 Free Software Foundation, Inc.
20030 This config.status script is free software; the Free Software Foundation
20031 gives unlimited permission to copy, distribute and modify it."
20032 srcdir=$srcdir
20033 INSTALL="$INSTALL"
20034 _ACEOF
20036 cat >>$CONFIG_STATUS <<\_ACEOF
20037 # If no file are specified by the user, then we need to provide default
20038 # value. By we need to know if files were specified by the user.
20039 ac_need_defaults=:
20040 while test $# != 0
20042 case $1 in
20043 --*=*)
20044 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20045 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20046 ac_shift=:
20049 ac_option=$1
20050 ac_optarg=$2
20051 ac_shift=shift
20053 *) # This is not an option, so the user has probably given explicit
20054 # arguments.
20055 ac_option=$1
20056 ac_need_defaults=false;;
20057 esac
20059 case $ac_option in
20060 # Handling of the options.
20061 _ACEOF
20062 cat >>$CONFIG_STATUS <<\_ACEOF
20063 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20064 ac_cs_recheck=: ;;
20065 --version | --vers* | -V )
20066 echo "$ac_cs_version"; exit 0 ;;
20067 --he | --h)
20068 # Conflict between --help and --header
20069 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20070 Try \`$0 --help' for more information." >&5
20071 echo "$as_me: error: ambiguous option: $1
20072 Try \`$0 --help' for more information." >&2;}
20073 { (exit 1); exit 1; }; };;
20074 --help | --hel | -h )
20075 echo "$ac_cs_usage"; exit 0 ;;
20076 --debug | --d* | -d )
20077 debug=: ;;
20078 --file | --fil | --fi | --f )
20079 $ac_shift
20080 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20081 ac_need_defaults=false;;
20082 --header | --heade | --head | --hea )
20083 $ac_shift
20084 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20085 ac_need_defaults=false;;
20086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20087 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20088 ac_cs_silent=: ;;
20090 # This is an error.
20091 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20092 Try \`$0 --help' for more information." >&5
20093 echo "$as_me: error: unrecognized option: $1
20094 Try \`$0 --help' for more information." >&2;}
20095 { (exit 1); exit 1; }; } ;;
20097 *) ac_config_targets="$ac_config_targets $1" ;;
20099 esac
20100 shift
20101 done
20103 ac_configure_extra_args=
20105 if $ac_cs_silent; then
20106 exec 6>/dev/null
20107 ac_configure_extra_args="$ac_configure_extra_args --silent"
20110 _ACEOF
20111 cat >>$CONFIG_STATUS <<_ACEOF
20112 if \$ac_cs_recheck; then
20113 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20114 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20117 _ACEOF
20119 cat >>$CONFIG_STATUS <<_ACEOF
20121 # INIT-COMMANDS section.
20124 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20125 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
20126 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
20127 # from automake.
20128 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
20129 # Capture the value of LINGUAS because we need it to compute CATALOGS.
20130 LINGUAS="${LINGUAS-%UNSET%}"
20132 denoiserlevel=$with_denoise_level
20134 _ACEOF
20138 cat >>$CONFIG_STATUS <<\_ACEOF
20139 for ac_config_target in $ac_config_targets
20141 case "$ac_config_target" in
20142 # Handling of arguments.
20143 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20144 "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
20145 "docs/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/man/Makefile" ;;
20146 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
20147 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20148 "src/pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pixmaps/Makefile" ;;
20149 "src/pixmaps/flags_xpm/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
20150 "src/libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/Makefile" ;;
20151 "src/libs/ec/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/ec/Makefile" ;;
20152 "src/libs/ec/cpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
20153 "src/libs/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/common/Makefile" ;;
20154 "src/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
20155 "src/utils/aLinkCreator/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
20156 "src/utils/aLinkCreator/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
20157 "src/utils/aLinkCreator/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
20158 "src/utils/cas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/cas/Makefile" ;;
20159 "src/utils/cas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
20160 "src/utils/fileview/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/fileview/Makefile" ;;
20161 "src/utils/wxCas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
20162 "src/utils/wxCas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
20163 "src/utils/wxCas/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
20164 "src/utils/xas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/Makefile" ;;
20165 "src/utils/xas/autostart-xas" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
20166 "src/utils/xas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
20167 "src/skins/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/skins/Makefile" ;;
20168 "src/webserver/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/Makefile" ;;
20169 "src/webserver/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/src/Makefile" ;;
20170 "src/webserver/default/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/default/Makefile" ;;
20171 "unittests/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/Makefile" ;;
20172 "unittests/muleunit/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/muleunit/Makefile" ;;
20173 "unittests/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/tests/Makefile" ;;
20174 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
20175 "Compilation.flags" ) CONFIG_FILES="$CONFIG_FILES Compilation.flags" ;;
20176 "version.rc" ) CONFIG_FILES="$CONFIG_FILES version.rc" ;;
20177 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20178 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20179 "denoiser" ) CONFIG_COMMANDS="$CONFIG_COMMANDS denoiser" ;;
20180 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20181 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20182 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20183 { (exit 1); exit 1; }; };;
20184 esac
20185 done
20187 # If the user did not use the arguments to specify the items to instantiate,
20188 # then the envvar interface is used. Set only those that are not.
20189 # We use the long form for the default assignment because of an extremely
20190 # bizarre bug on SunOS 4.1.3.
20191 if $ac_need_defaults; then
20192 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20193 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20194 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20197 # Have a temporary directory for convenience. Make it in the build tree
20198 # simply because there is no reason to put it here, and in addition,
20199 # creating and moving files from /tmp can sometimes cause problems.
20200 # Create a temporary directory, and hook for its removal unless debugging.
20201 $debug ||
20203 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20204 trap '{ (exit 1); exit 1; }' 1 2 13 15
20207 # Create a (secure) tmp directory for tmp files.
20210 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20211 test -n "$tmp" && test -d "$tmp"
20212 } ||
20214 tmp=./confstat$$-$RANDOM
20215 (umask 077 && mkdir $tmp)
20216 } ||
20218 echo "$me: cannot create a temporary directory in ." >&2
20219 { (exit 1); exit 1; }
20222 _ACEOF
20224 cat >>$CONFIG_STATUS <<_ACEOF
20227 # CONFIG_FILES section.
20230 # No need to generate the scripts if there are no CONFIG_FILES.
20231 # This happens for instance when ./config.status config.h
20232 if test -n "\$CONFIG_FILES"; then
20233 # Protect against being on the right side of a sed subst in config.status.
20234 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20235 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20236 s,@GEOIP_CPPFLAGS@,$GEOIP_CPPFLAGS,;t t
20237 s,@GEOIP_LDFLAGS@,$GEOIP_LDFLAGS,;t t
20238 s,@GEOIP_LIBS@,$GEOIP_LIBS,;t t
20239 s,@SHELL@,$SHELL,;t t
20240 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20241 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20242 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20243 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20244 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20245 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20246 s,@exec_prefix@,$exec_prefix,;t t
20247 s,@prefix@,$prefix,;t t
20248 s,@program_transform_name@,$program_transform_name,;t t
20249 s,@bindir@,$bindir,;t t
20250 s,@sbindir@,$sbindir,;t t
20251 s,@libexecdir@,$libexecdir,;t t
20252 s,@datadir@,$datadir,;t t
20253 s,@sysconfdir@,$sysconfdir,;t t
20254 s,@sharedstatedir@,$sharedstatedir,;t t
20255 s,@localstatedir@,$localstatedir,;t t
20256 s,@libdir@,$libdir,;t t
20257 s,@includedir@,$includedir,;t t
20258 s,@oldincludedir@,$oldincludedir,;t t
20259 s,@infodir@,$infodir,;t t
20260 s,@mandir@,$mandir,;t t
20261 s,@build_alias@,$build_alias,;t t
20262 s,@host_alias@,$host_alias,;t t
20263 s,@target_alias@,$target_alias,;t t
20264 s,@DEFS@,$DEFS,;t t
20265 s,@ECHO_C@,$ECHO_C,;t t
20266 s,@ECHO_N@,$ECHO_N,;t t
20267 s,@ECHO_T@,$ECHO_T,;t t
20268 s,@LIBS@,$LIBS,;t t
20269 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20270 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20271 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20272 s,@CYGPATH_W@,$CYGPATH_W,;t t
20273 s,@PACKAGE@,$PACKAGE,;t t
20274 s,@VERSION@,$VERSION,;t t
20275 s,@ACLOCAL@,$ACLOCAL,;t t
20276 s,@AUTOCONF@,$AUTOCONF,;t t
20277 s,@AUTOMAKE@,$AUTOMAKE,;t t
20278 s,@AUTOHEADER@,$AUTOHEADER,;t t
20279 s,@MAKEINFO@,$MAKEINFO,;t t
20280 s,@install_sh@,$install_sh,;t t
20281 s,@STRIP@,$STRIP,;t t
20282 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20283 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20284 s,@mkdir_p@,$mkdir_p,;t t
20285 s,@AWK@,$AWK,;t t
20286 s,@SET_MAKE@,$SET_MAKE,;t t
20287 s,@am__leading_dot@,$am__leading_dot,;t t
20288 s,@AMTAR@,$AMTAR,;t t
20289 s,@am__tar@,$am__tar,;t t
20290 s,@am__untar@,$am__untar,;t t
20291 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20292 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20293 s,@MAINT@,$MAINT,;t t
20294 s,@build@,$build,;t t
20295 s,@build_cpu@,$build_cpu,;t t
20296 s,@build_vendor@,$build_vendor,;t t
20297 s,@build_os@,$build_os,;t t
20298 s,@host@,$host,;t t
20299 s,@host_cpu@,$host_cpu,;t t
20300 s,@host_vendor@,$host_vendor,;t t
20301 s,@host_os@,$host_os,;t t
20302 s,@RESOLV_LIB@,$RESOLV_LIB,;t t
20303 s,@X11LIBS@,$X11LIBS,;t t
20304 s,@MULECPPFLAGS@,$MULECPPFLAGS,;t t
20305 s,@MULECFLAGS@,$MULECFLAGS,;t t
20306 s,@MULECXXFLAGS@,$MULECXXFLAGS,;t t
20307 s,@MULELDFLAGS@,$MULELDFLAGS,;t t
20308 s,@MULERCFLAGS@,$MULERCFLAGS,;t t
20309 s,@CXX@,$CXX,;t t
20310 s,@CXXFLAGS@,$CXXFLAGS,;t t
20311 s,@LDFLAGS@,$LDFLAGS,;t t
20312 s,@CPPFLAGS@,$CPPFLAGS,;t t
20313 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20314 s,@EXEEXT@,$EXEEXT,;t t
20315 s,@OBJEXT@,$OBJEXT,;t t
20316 s,@DEPDIR@,$DEPDIR,;t t
20317 s,@am__include@,$am__include,;t t
20318 s,@am__quote@,$am__quote,;t t
20319 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20320 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20321 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20322 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20323 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20324 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20325 s,@CXXCPP@,$CXXCPP,;t t
20326 s,@CC@,$CC,;t t
20327 s,@CFLAGS@,$CFLAGS,;t t
20328 s,@ac_ct_CC@,$ac_ct_CC,;t t
20329 s,@CCDEPMODE@,$CCDEPMODE,;t t
20330 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20331 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20332 s,@CPP@,$CPP,;t t
20333 s,@BUILD_CC@,$BUILD_CC,;t t
20334 s,@ac_ct_BUILD_CC@,$ac_ct_BUILD_CC,;t t
20335 s,@EXEEXT@,$EXEEXT,;t t
20336 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
20337 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
20338 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
20339 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
20340 s,@EGREP@,$EGREP,;t t
20341 s,@LEX@,$LEX,;t t
20342 s,@LEXLIB@,$LEXLIB,;t t
20343 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
20344 s,@RANLIB@,$RANLIB,;t t
20345 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20346 s,@YACC@,$YACC,;t t
20347 s,@AR@,$AR,;t t
20348 s,@ac_ct_AR@,$ac_ct_AR,;t t
20349 s,@LD@,$LD,;t t
20350 s,@ac_ct_LD@,$ac_ct_LD,;t t
20351 s,@ZLIB_CPPFLAGS@,$ZLIB_CPPFLAGS,;t t
20352 s,@ZLIB_LDFLAGS@,$ZLIB_LDFLAGS,;t t
20353 s,@ZLIB_LIBS@,$ZLIB_LIBS,;t t
20354 s,@GDLIB_CONFIG_PATH@,$GDLIB_CONFIG_PATH,;t t
20355 s,@GDLIB_CFLAGS@,$GDLIB_CFLAGS,;t t
20356 s,@GDLIB_LDFLAGS@,$GDLIB_LDFLAGS,;t t
20357 s,@GDLIB_LIBS@,$GDLIB_LIBS,;t t
20358 s,@CAS_DEFS@,$CAS_DEFS,;t t
20359 s,@REGEX_LIBS@,$REGEX_LIBS,;t t
20360 s,@LIBPNG_CONFIG_PATH@,$LIBPNG_CONFIG_PATH,;t t
20361 s,@LIBPNG_CFLAGS@,$LIBPNG_CFLAGS,;t t
20362 s,@LIBPNG_LDFLAGS@,$LIBPNG_LDFLAGS,;t t
20363 s,@LIBPNG_LIBS@,$LIBPNG_LIBS,;t t
20364 s,@AMULEWEB_DEFS@,$AMULEWEB_DEFS,;t t
20365 s,@WX_CONFIG_PATH@,$WX_CONFIG_PATH,;t t
20366 s,@WX_CPPFLAGS@,$WX_CPPFLAGS,;t t
20367 s,@WX_CFLAGS@,$WX_CFLAGS,;t t
20368 s,@WX_CXXFLAGS@,$WX_CXXFLAGS,;t t
20369 s,@WX_CFLAGS_ONLY@,$WX_CFLAGS_ONLY,;t t
20370 s,@WX_CXXFLAGS_ONLY@,$WX_CXXFLAGS_ONLY,;t t
20371 s,@WX_LIBS@,$WX_LIBS,;t t
20372 s,@WX_LIBS_STATIC@,$WX_LIBS_STATIC,;t t
20373 s,@WX_VERSION_FULL@,$WX_VERSION_FULL,;t t
20374 s,@WX_RESCOMP@,$WX_RESCOMP,;t t
20375 s,@WX_VERSION_MAJOR@,$WX_VERSION_MAJOR,;t t
20376 s,@WX_VERSION_MINOR@,$WX_VERSION_MINOR,;t t
20377 s,@WX_UNICODE@,$WX_UNICODE,;t t
20378 s,@WX_DEBUG@,$WX_DEBUG,;t t
20379 s,@WX_SHARED@,$WX_SHARED,;t t
20380 s,@WX_PORT@,$WX_PORT,;t t
20381 s,@WXBASE_LIBS@,$WXBASE_LIBS,;t t
20382 s,@WXBASE_CPPFLAGS@,$WXBASE_CPPFLAGS,;t t
20383 s,@RC@,$RC,;t t
20384 s,@RCFLAGS@,$RCFLAGS,;t t
20385 s,@ac_ct_RC@,$ac_ct_RC,;t t
20386 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20387 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
20388 s,@LIBUPNP_CPPFLAGS@,$LIBUPNP_CPPFLAGS,;t t
20389 s,@LIBUPNP_CFLAGS@,$LIBUPNP_CFLAGS,;t t
20390 s,@LIBUPNP_LDFLAGS@,$LIBUPNP_LDFLAGS,;t t
20391 s,@LIBUPNP_LIBS@,$LIBUPNP_LIBS,;t t
20392 s,@CRYPTOPP_CPPFLAGS@,$CRYPTOPP_CPPFLAGS,;t t
20393 s,@CRYPTOPP_LDFLAGS@,$CRYPTOPP_LDFLAGS,;t t
20394 s,@CRYPTOPP_LIBS@,$CRYPTOPP_LIBS,;t t
20395 s,@BFD_CPPFLAGS@,$BFD_CPPFLAGS,;t t
20396 s,@BFD_LIBS@,$BFD_LIBS,;t t
20397 s,@ALLOCA@,$ALLOCA,;t t
20398 s,@LIBOBJS@,$LIBOBJS,;t t
20399 s,@POW_LIB@,$POW_LIB,;t t
20400 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20401 s,@MSGFMT@,$MSGFMT,;t t
20402 s,@GMSGFMT@,$GMSGFMT,;t t
20403 s,@XGETTEXT@,$XGETTEXT,;t t
20404 s,@MSGMERGE@,$MSGMERGE,;t t
20405 s,@GLIBC21@,$GLIBC21,;t t
20406 s,@LIBICONV@,$LIBICONV,;t t
20407 s,@LTLIBICONV@,$LTLIBICONV,;t t
20408 s,@INTLBISON@,$INTLBISON,;t t
20409 s,@USE_NLS@,$USE_NLS,;t t
20410 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
20411 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
20412 s,@CATOBJEXT@,$CATOBJEXT,;t t
20413 s,@INTLOBJS@,$INTLOBJS,;t t
20414 s,@DATADIRNAME@,$DATADIRNAME,;t t
20415 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20416 s,@GENCAT@,$GENCAT,;t t
20417 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
20418 s,@INTLLIBS@,$INTLLIBS,;t t
20419 s,@LIBINTL@,$LIBINTL,;t t
20420 s,@LTLIBINTL@,$LTLIBINTL,;t t
20421 s,@POSUB@,$POSUB,;t t
20422 s,@AMULE_DAEMON_MANPAGES@,$AMULE_DAEMON_MANPAGES,;t t
20423 s,@AMULECMD_MANPAGES@,$AMULECMD_MANPAGES,;t t
20424 s,@WEB_MANPAGES@,$WEB_MANPAGES,;t t
20425 s,@AMULE_GUI_MANPAGES@,$AMULE_GUI_MANPAGES,;t t
20426 s,@CAS_MANPAGES@,$CAS_MANPAGES,;t t
20427 s,@WXCAS_MANPAGES@,$WXCAS_MANPAGES,;t t
20428 s,@ED2K_MANPAGES@,$ED2K_MANPAGES,;t t
20429 s,@ALC_MANPAGES@,$ALC_MANPAGES,;t t
20430 s,@ALCC_MANPAGES@,$ALCC_MANPAGES,;t t
20431 s,@MONOLITHIC_MANPAGES@,$MONOLITHIC_MANPAGES,;t t
20432 s,@INCINTL@,$INCINTL,;t t
20433 s,@docdir@,$docdir,;t t
20434 s,@SVNDATE@,$SVNDATE,;t t
20435 s,@WEB_TRUE@,$WEB_TRUE,;t t
20436 s,@WEB_FALSE@,$WEB_FALSE,;t t
20437 s,@ED2K_TRUE@,$ED2K_TRUE,;t t
20438 s,@ED2K_FALSE@,$ED2K_FALSE,;t t
20439 s,@CAS_TRUE@,$CAS_TRUE,;t t
20440 s,@CAS_FALSE@,$CAS_FALSE,;t t
20441 s,@WXCAS_TRUE@,$WXCAS_TRUE,;t t
20442 s,@WXCAS_FALSE@,$WXCAS_FALSE,;t t
20443 s,@ALC_TRUE@,$ALC_TRUE,;t t
20444 s,@ALC_FALSE@,$ALC_FALSE,;t t
20445 s,@ALCC_TRUE@,$ALCC_TRUE,;t t
20446 s,@ALCC_FALSE@,$ALCC_FALSE,;t t
20447 s,@AMULE_GUI_TRUE@,$AMULE_GUI_TRUE,;t t
20448 s,@AMULE_GUI_FALSE@,$AMULE_GUI_FALSE,;t t
20449 s,@AMULE_DAEMON_TRUE@,$AMULE_DAEMON_TRUE,;t t
20450 s,@AMULE_DAEMON_FALSE@,$AMULE_DAEMON_FALSE,;t t
20451 s,@COMPILE_CMD_TRUE@,$COMPILE_CMD_TRUE,;t t
20452 s,@COMPILE_CMD_FALSE@,$COMPILE_CMD_FALSE,;t t
20453 s,@MONOLITHIC_TRUE@,$MONOLITHIC_TRUE,;t t
20454 s,@MONOLITHIC_FALSE@,$MONOLITHIC_FALSE,;t t
20455 s,@XAS_TRUE@,$XAS_TRUE,;t t
20456 s,@XAS_FALSE@,$XAS_FALSE,;t t
20457 s,@ENABLE_UPNP_TRUE@,$ENABLE_UPNP_TRUE,;t t
20458 s,@ENABLE_UPNP_FALSE@,$ENABLE_UPNP_FALSE,;t t
20459 s,@ENABLE_IP2COUNTRY_TRUE@,$ENABLE_IP2COUNTRY_TRUE,;t t
20460 s,@ENABLE_IP2COUNTRY_FALSE@,$ENABLE_IP2COUNTRY_FALSE,;t t
20461 s,@SYS_WIN32_TRUE@,$SYS_WIN32_TRUE,;t t
20462 s,@SYS_WIN32_FALSE@,$SYS_WIN32_FALSE,;t t
20463 s,@NEED_RC_TRUE@,$NEED_RC_TRUE,;t t
20464 s,@NEED_RC_FALSE@,$NEED_RC_FALSE,;t t
20465 s,@NEED_CORESERVICES_TRUE@,$NEED_CORESERVICES_TRUE,;t t
20466 s,@NEED_CORESERVICES_FALSE@,$NEED_CORESERVICES_FALSE,;t t
20467 s,@COMPILE_NLS_TRUE@,$COMPILE_NLS_TRUE,;t t
20468 s,@COMPILE_NLS_FALSE@,$COMPILE_NLS_FALSE,;t t
20469 s,@GENERATE_FLEX_HEADER_TRUE@,$GENERATE_FLEX_HEADER_TRUE,;t t
20470 s,@GENERATE_FLEX_HEADER_FALSE@,$GENERATE_FLEX_HEADER_FALSE,;t t
20471 s,@INSTALL_SKINS_TRUE@,$INSTALL_SKINS_TRUE,;t t
20472 s,@INSTALL_SKINS_FALSE@,$INSTALL_SKINS_FALSE,;t t
20473 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
20474 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20475 CEOF
20477 _ACEOF
20479 cat >>$CONFIG_STATUS <<\_ACEOF
20480 # Split the substitutions into bite-sized pieces for seds with
20481 # small command number limits, like on Digital OSF/1 and HP-UX.
20482 ac_max_sed_lines=48
20483 ac_sed_frag=1 # Number of current file.
20484 ac_beg=1 # First line for current file.
20485 ac_end=$ac_max_sed_lines # Line after last line for current file.
20486 ac_more_lines=:
20487 ac_sed_cmds=
20488 while $ac_more_lines; do
20489 if test $ac_beg -gt 1; then
20490 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20491 else
20492 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20494 if test ! -s $tmp/subs.frag; then
20495 ac_more_lines=false
20496 else
20497 # The purpose of the label and of the branching condition is to
20498 # speed up the sed processing (if there are no `@' at all, there
20499 # is no need to browse any of the substitutions).
20500 # These are the two extra sed commands mentioned above.
20501 (echo ':t
20502 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20503 if test -z "$ac_sed_cmds"; then
20504 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20505 else
20506 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20508 ac_sed_frag=`expr $ac_sed_frag + 1`
20509 ac_beg=$ac_end
20510 ac_end=`expr $ac_end + $ac_max_sed_lines`
20512 done
20513 if test -z "$ac_sed_cmds"; then
20514 ac_sed_cmds=cat
20516 fi # test -n "$CONFIG_FILES"
20518 _ACEOF
20519 cat >>$CONFIG_STATUS <<\_ACEOF
20520 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20521 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20522 case $ac_file in
20523 - | *:- | *:-:* ) # input from stdin
20524 cat >$tmp/stdin
20525 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20526 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20527 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20528 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20529 * ) ac_file_in=$ac_file.in ;;
20530 esac
20532 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20533 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20534 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20535 X"$ac_file" : 'X\(//\)[^/]' \| \
20536 X"$ac_file" : 'X\(//\)$' \| \
20537 X"$ac_file" : 'X\(/\)' \| \
20538 . : '\(.\)' 2>/dev/null ||
20539 echo X"$ac_file" |
20540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20541 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20542 /^X\(\/\/\)$/{ s//\1/; q; }
20543 /^X\(\/\).*/{ s//\1/; q; }
20544 s/.*/./; q'`
20545 { if $as_mkdir_p; then
20546 mkdir -p "$ac_dir"
20547 else
20548 as_dir="$ac_dir"
20549 as_dirs=
20550 while test ! -d "$as_dir"; do
20551 as_dirs="$as_dir $as_dirs"
20552 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20553 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20554 X"$as_dir" : 'X\(//\)[^/]' \| \
20555 X"$as_dir" : 'X\(//\)$' \| \
20556 X"$as_dir" : 'X\(/\)' \| \
20557 . : '\(.\)' 2>/dev/null ||
20558 echo X"$as_dir" |
20559 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20560 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20561 /^X\(\/\/\)$/{ s//\1/; q; }
20562 /^X\(\/\).*/{ s//\1/; q; }
20563 s/.*/./; q'`
20564 done
20565 test ! -n "$as_dirs" || mkdir $as_dirs
20566 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20567 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20568 { (exit 1); exit 1; }; }; }
20570 ac_builddir=.
20572 if test "$ac_dir" != .; then
20573 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20574 # A "../" for each directory in $ac_dir_suffix.
20575 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20576 else
20577 ac_dir_suffix= ac_top_builddir=
20580 case $srcdir in
20581 .) # No --srcdir option. We are building in place.
20582 ac_srcdir=.
20583 if test -z "$ac_top_builddir"; then
20584 ac_top_srcdir=.
20585 else
20586 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20587 fi ;;
20588 [\\/]* | ?:[\\/]* ) # Absolute path.
20589 ac_srcdir=$srcdir$ac_dir_suffix;
20590 ac_top_srcdir=$srcdir ;;
20591 *) # Relative path.
20592 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20593 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20594 esac
20596 # Do not use `cd foo && pwd` to compute absolute paths, because
20597 # the directories may not exist.
20598 case `pwd` in
20599 .) ac_abs_builddir="$ac_dir";;
20601 case "$ac_dir" in
20602 .) ac_abs_builddir=`pwd`;;
20603 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20604 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20605 esac;;
20606 esac
20607 case $ac_abs_builddir in
20608 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20610 case ${ac_top_builddir}. in
20611 .) ac_abs_top_builddir=$ac_abs_builddir;;
20612 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20613 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20614 esac;;
20615 esac
20616 case $ac_abs_builddir in
20617 .) ac_abs_srcdir=$ac_srcdir;;
20619 case $ac_srcdir in
20620 .) ac_abs_srcdir=$ac_abs_builddir;;
20621 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20622 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20623 esac;;
20624 esac
20625 case $ac_abs_builddir in
20626 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20628 case $ac_top_srcdir in
20629 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20630 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20631 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20632 esac;;
20633 esac
20636 case $INSTALL in
20637 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20638 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20639 esac
20641 if test x"$ac_file" != x-; then
20642 { echo "$as_me:$LINENO: creating $ac_file" >&5
20643 echo "$as_me: creating $ac_file" >&6;}
20644 rm -f "$ac_file"
20646 # Let's still pretend it is `configure' which instantiates (i.e., don't
20647 # use $as_me), people would be surprised to read:
20648 # /* config.h. Generated by config.status. */
20649 if test x"$ac_file" = x-; then
20650 configure_input=
20651 else
20652 configure_input="$ac_file. "
20654 configure_input=$configure_input"Generated from `echo $ac_file_in |
20655 sed 's,.*/,,'` by configure."
20657 # First look for the input files in the build tree, otherwise in the
20658 # src tree.
20659 ac_file_inputs=`IFS=:
20660 for f in $ac_file_in; do
20661 case $f in
20662 -) echo $tmp/stdin ;;
20663 [\\/$]*)
20664 # Absolute (can't be DOS-style, as IFS=:)
20665 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20666 echo "$as_me: error: cannot find input file: $f" >&2;}
20667 { (exit 1); exit 1; }; }
20668 echo "$f";;
20669 *) # Relative
20670 if test -f "$f"; then
20671 # Build tree
20672 echo "$f"
20673 elif test -f "$srcdir/$f"; then
20674 # Source tree
20675 echo "$srcdir/$f"
20676 else
20677 # /dev/null tree
20678 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20679 echo "$as_me: error: cannot find input file: $f" >&2;}
20680 { (exit 1); exit 1; }; }
20681 fi;;
20682 esac
20683 done` || { (exit 1); exit 1; }
20684 _ACEOF
20685 cat >>$CONFIG_STATUS <<_ACEOF
20686 sed "$ac_vpsub
20687 $extrasub
20688 _ACEOF
20689 cat >>$CONFIG_STATUS <<\_ACEOF
20691 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20692 s,@configure_input@,$configure_input,;t t
20693 s,@srcdir@,$ac_srcdir,;t t
20694 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20695 s,@top_srcdir@,$ac_top_srcdir,;t t
20696 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20697 s,@builddir@,$ac_builddir,;t t
20698 s,@abs_builddir@,$ac_abs_builddir,;t t
20699 s,@top_builddir@,$ac_top_builddir,;t t
20700 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20701 s,@INSTALL@,$ac_INSTALL,;t t
20702 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20703 rm -f $tmp/stdin
20704 if test x"$ac_file" != x-; then
20705 mv $tmp/out $ac_file
20706 else
20707 cat $tmp/out
20708 rm -f $tmp/out
20711 done
20712 _ACEOF
20713 cat >>$CONFIG_STATUS <<\_ACEOF
20716 # CONFIG_HEADER section.
20719 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20720 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20722 # ac_d sets the value in "#define NAME VALUE" lines.
20723 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20724 ac_dB='[ ].*$,\1#\2'
20725 ac_dC=' '
20726 ac_dD=',;t'
20727 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20728 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20729 ac_uB='$,\1#\2define\3'
20730 ac_uC=' '
20731 ac_uD=',;t'
20733 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20734 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20735 case $ac_file in
20736 - | *:- | *:-:* ) # input from stdin
20737 cat >$tmp/stdin
20738 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20739 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20740 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20741 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20742 * ) ac_file_in=$ac_file.in ;;
20743 esac
20745 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20746 echo "$as_me: creating $ac_file" >&6;}
20748 # First look for the input files in the build tree, otherwise in the
20749 # src tree.
20750 ac_file_inputs=`IFS=:
20751 for f in $ac_file_in; do
20752 case $f in
20753 -) echo $tmp/stdin ;;
20754 [\\/$]*)
20755 # Absolute (can't be DOS-style, as IFS=:)
20756 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20757 echo "$as_me: error: cannot find input file: $f" >&2;}
20758 { (exit 1); exit 1; }; }
20759 # Do quote $f, to prevent DOS paths from being IFS'd.
20760 echo "$f";;
20761 *) # Relative
20762 if test -f "$f"; then
20763 # Build tree
20764 echo "$f"
20765 elif test -f "$srcdir/$f"; then
20766 # Source tree
20767 echo "$srcdir/$f"
20768 else
20769 # /dev/null tree
20770 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20771 echo "$as_me: error: cannot find input file: $f" >&2;}
20772 { (exit 1); exit 1; }; }
20773 fi;;
20774 esac
20775 done` || { (exit 1); exit 1; }
20776 # Remove the trailing spaces.
20777 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20779 _ACEOF
20781 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20782 # `conftest.undefs', that substitutes the proper values into
20783 # config.h.in to produce config.h. The first handles `#define'
20784 # templates, and the second `#undef' templates.
20785 # And first: Protect against being on the right side of a sed subst in
20786 # config.status. Protect against being in an unquoted here document
20787 # in config.status.
20788 rm -f conftest.defines conftest.undefs
20789 # Using a here document instead of a string reduces the quoting nightmare.
20790 # Putting comments in sed scripts is not portable.
20792 # `end' is used to avoid that the second main sed command (meant for
20793 # 0-ary CPP macros) applies to n-ary macro definitions.
20794 # See the Autoconf documentation for `clear'.
20795 cat >confdef2sed.sed <<\_ACEOF
20796 s/[\\&,]/\\&/g
20797 s,[\\$`],\\&,g
20798 t clear
20799 : clear
20800 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20801 t end
20802 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20803 : end
20804 _ACEOF
20805 # If some macros were called several times there might be several times
20806 # the same #defines, which is useless. Nevertheless, we may not want to
20807 # sort them, since we want the *last* AC-DEFINE to be honored.
20808 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20809 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20810 rm -f confdef2sed.sed
20812 # This sed command replaces #undef with comments. This is necessary, for
20813 # example, in the case of _POSIX_SOURCE, which is predefined and required
20814 # on some systems where configure will not decide to define it.
20815 cat >>conftest.undefs <<\_ACEOF
20816 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20817 _ACEOF
20819 # Break up conftest.defines because some shells have a limit on the size
20820 # of here documents, and old seds have small limits too (100 cmds).
20821 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20822 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20823 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20824 echo ' :' >>$CONFIG_STATUS
20825 rm -f conftest.tail
20826 while grep . conftest.defines >/dev/null
20828 # Write a limited-size here document to $tmp/defines.sed.
20829 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20830 # Speed up: don't consider the non `#define' lines.
20831 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20832 # Work around the forget-to-reset-the-flag bug.
20833 echo 't clr' >>$CONFIG_STATUS
20834 echo ': clr' >>$CONFIG_STATUS
20835 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20836 echo 'CEOF
20837 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20838 rm -f $tmp/in
20839 mv $tmp/out $tmp/in
20840 ' >>$CONFIG_STATUS
20841 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20842 rm -f conftest.defines
20843 mv conftest.tail conftest.defines
20844 done
20845 rm -f conftest.defines
20846 echo ' fi # grep' >>$CONFIG_STATUS
20847 echo >>$CONFIG_STATUS
20849 # Break up conftest.undefs because some shells have a limit on the size
20850 # of here documents, and old seds have small limits too (100 cmds).
20851 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20852 rm -f conftest.tail
20853 while grep . conftest.undefs >/dev/null
20855 # Write a limited-size here document to $tmp/undefs.sed.
20856 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20857 # Speed up: don't consider the non `#undef'
20858 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20859 # Work around the forget-to-reset-the-flag bug.
20860 echo 't clr' >>$CONFIG_STATUS
20861 echo ': clr' >>$CONFIG_STATUS
20862 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20863 echo 'CEOF
20864 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20865 rm -f $tmp/in
20866 mv $tmp/out $tmp/in
20867 ' >>$CONFIG_STATUS
20868 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20869 rm -f conftest.undefs
20870 mv conftest.tail conftest.undefs
20871 done
20872 rm -f conftest.undefs
20874 cat >>$CONFIG_STATUS <<\_ACEOF
20875 # Let's still pretend it is `configure' which instantiates (i.e., don't
20876 # use $as_me), people would be surprised to read:
20877 # /* config.h. Generated by config.status. */
20878 if test x"$ac_file" = x-; then
20879 echo "/* Generated by configure. */" >$tmp/config.h
20880 else
20881 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20883 cat $tmp/in >>$tmp/config.h
20884 rm -f $tmp/in
20885 if test x"$ac_file" != x-; then
20886 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20887 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20888 echo "$as_me: $ac_file is unchanged" >&6;}
20889 else
20890 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20891 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20892 X"$ac_file" : 'X\(//\)[^/]' \| \
20893 X"$ac_file" : 'X\(//\)$' \| \
20894 X"$ac_file" : 'X\(/\)' \| \
20895 . : '\(.\)' 2>/dev/null ||
20896 echo X"$ac_file" |
20897 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20898 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20899 /^X\(\/\/\)$/{ s//\1/; q; }
20900 /^X\(\/\).*/{ s//\1/; q; }
20901 s/.*/./; q'`
20902 { if $as_mkdir_p; then
20903 mkdir -p "$ac_dir"
20904 else
20905 as_dir="$ac_dir"
20906 as_dirs=
20907 while test ! -d "$as_dir"; do
20908 as_dirs="$as_dir $as_dirs"
20909 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20910 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20911 X"$as_dir" : 'X\(//\)[^/]' \| \
20912 X"$as_dir" : 'X\(//\)$' \| \
20913 X"$as_dir" : 'X\(/\)' \| \
20914 . : '\(.\)' 2>/dev/null ||
20915 echo X"$as_dir" |
20916 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20917 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20918 /^X\(\/\/\)$/{ s//\1/; q; }
20919 /^X\(\/\).*/{ s//\1/; q; }
20920 s/.*/./; q'`
20921 done
20922 test ! -n "$as_dirs" || mkdir $as_dirs
20923 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20924 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20925 { (exit 1); exit 1; }; }; }
20927 rm -f $ac_file
20928 mv $tmp/config.h $ac_file
20930 else
20931 cat $tmp/config.h
20932 rm -f $tmp/config.h
20934 # Compute $ac_file's index in $config_headers.
20935 _am_stamp_count=1
20936 for _am_header in $config_headers :; do
20937 case $_am_header in
20938 $ac_file | $ac_file:* )
20939 break ;;
20941 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20942 esac
20943 done
20944 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20945 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20946 X$ac_file : 'X\(//\)[^/]' \| \
20947 X$ac_file : 'X\(//\)$' \| \
20948 X$ac_file : 'X\(/\)' \| \
20949 . : '\(.\)' 2>/dev/null ||
20950 echo X$ac_file |
20951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20952 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20953 /^X\(\/\/\)$/{ s//\1/; q; }
20954 /^X\(\/\).*/{ s//\1/; q; }
20955 s/.*/./; q'`/stamp-h$_am_stamp_count
20956 done
20957 _ACEOF
20958 cat >>$CONFIG_STATUS <<\_ACEOF
20961 # CONFIG_COMMANDS section.
20963 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20964 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20965 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20966 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20967 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20968 X"$ac_dest" : 'X\(//\)[^/]' \| \
20969 X"$ac_dest" : 'X\(//\)$' \| \
20970 X"$ac_dest" : 'X\(/\)' \| \
20971 . : '\(.\)' 2>/dev/null ||
20972 echo X"$ac_dest" |
20973 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20974 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20975 /^X\(\/\/\)$/{ s//\1/; q; }
20976 /^X\(\/\).*/{ s//\1/; q; }
20977 s/.*/./; q'`
20978 { if $as_mkdir_p; then
20979 mkdir -p "$ac_dir"
20980 else
20981 as_dir="$ac_dir"
20982 as_dirs=
20983 while test ! -d "$as_dir"; do
20984 as_dirs="$as_dir $as_dirs"
20985 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20986 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20987 X"$as_dir" : 'X\(//\)[^/]' \| \
20988 X"$as_dir" : 'X\(//\)$' \| \
20989 X"$as_dir" : 'X\(/\)' \| \
20990 . : '\(.\)' 2>/dev/null ||
20991 echo X"$as_dir" |
20992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20993 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20994 /^X\(\/\/\)$/{ s//\1/; q; }
20995 /^X\(\/\).*/{ s//\1/; q; }
20996 s/.*/./; q'`
20997 done
20998 test ! -n "$as_dirs" || mkdir $as_dirs
20999 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21000 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21001 { (exit 1); exit 1; }; }; }
21003 ac_builddir=.
21005 if test "$ac_dir" != .; then
21006 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21007 # A "../" for each directory in $ac_dir_suffix.
21008 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21009 else
21010 ac_dir_suffix= ac_top_builddir=
21013 case $srcdir in
21014 .) # No --srcdir option. We are building in place.
21015 ac_srcdir=.
21016 if test -z "$ac_top_builddir"; then
21017 ac_top_srcdir=.
21018 else
21019 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21020 fi ;;
21021 [\\/]* | ?:[\\/]* ) # Absolute path.
21022 ac_srcdir=$srcdir$ac_dir_suffix;
21023 ac_top_srcdir=$srcdir ;;
21024 *) # Relative path.
21025 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21026 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21027 esac
21029 # Do not use `cd foo && pwd` to compute absolute paths, because
21030 # the directories may not exist.
21031 case `pwd` in
21032 .) ac_abs_builddir="$ac_dir";;
21034 case "$ac_dir" in
21035 .) ac_abs_builddir=`pwd`;;
21036 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21037 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21038 esac;;
21039 esac
21040 case $ac_abs_builddir in
21041 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21043 case ${ac_top_builddir}. in
21044 .) ac_abs_top_builddir=$ac_abs_builddir;;
21045 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21046 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21047 esac;;
21048 esac
21049 case $ac_abs_builddir in
21050 .) ac_abs_srcdir=$ac_srcdir;;
21052 case $ac_srcdir in
21053 .) ac_abs_srcdir=$ac_abs_builddir;;
21054 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21055 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21056 esac;;
21057 esac
21058 case $ac_abs_builddir in
21059 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21061 case $ac_top_srcdir in
21062 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21063 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21064 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21065 esac;;
21066 esac
21069 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21070 echo "$as_me: executing $ac_dest commands" >&6;}
21071 case $ac_dest in
21072 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21073 # Strip MF so we end up with the name of the file.
21074 mf=`echo "$mf" | sed -e 's/:.*$//'`
21075 # Check whether this is an Automake generated Makefile or not.
21076 # We used to match only the files named `Makefile.in', but
21077 # some people rename them; so instead we look at the file content.
21078 # Grep'ing the first line is not enough: some people post-process
21079 # each Makefile.in and add a new line on top of each file to say so.
21080 # So let's grep whole file.
21081 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21082 dirpart=`(dirname "$mf") 2>/dev/null ||
21083 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21084 X"$mf" : 'X\(//\)[^/]' \| \
21085 X"$mf" : 'X\(//\)$' \| \
21086 X"$mf" : 'X\(/\)' \| \
21087 . : '\(.\)' 2>/dev/null ||
21088 echo X"$mf" |
21089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21090 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21091 /^X\(\/\/\)$/{ s//\1/; q; }
21092 /^X\(\/\).*/{ s//\1/; q; }
21093 s/.*/./; q'`
21094 else
21095 continue
21097 # Extract the definition of DEPDIR, am__include, and am__quote
21098 # from the Makefile without running `make'.
21099 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21100 test -z "$DEPDIR" && continue
21101 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21102 test -z "am__include" && continue
21103 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21104 # When using ansi2knr, U may be empty or an underscore; expand it
21105 U=`sed -n 's/^U = //p' < "$mf"`
21106 # Find all dependency output files, they are included files with
21107 # $(DEPDIR) in their names. We invoke sed twice because it is the
21108 # simplest approach to changing $(DEPDIR) to its actual value in the
21109 # expansion.
21110 for file in `sed -n "
21111 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21112 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21113 # Make sure the directory exists.
21114 test -f "$dirpart/$file" && continue
21115 fdir=`(dirname "$file") 2>/dev/null ||
21116 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21117 X"$file" : 'X\(//\)[^/]' \| \
21118 X"$file" : 'X\(//\)$' \| \
21119 X"$file" : 'X\(/\)' \| \
21120 . : '\(.\)' 2>/dev/null ||
21121 echo X"$file" |
21122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21123 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21124 /^X\(\/\/\)$/{ s//\1/; q; }
21125 /^X\(\/\).*/{ s//\1/; q; }
21126 s/.*/./; q'`
21127 { if $as_mkdir_p; then
21128 mkdir -p $dirpart/$fdir
21129 else
21130 as_dir=$dirpart/$fdir
21131 as_dirs=
21132 while test ! -d "$as_dir"; do
21133 as_dirs="$as_dir $as_dirs"
21134 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21135 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21136 X"$as_dir" : 'X\(//\)[^/]' \| \
21137 X"$as_dir" : 'X\(//\)$' \| \
21138 X"$as_dir" : 'X\(/\)' \| \
21139 . : '\(.\)' 2>/dev/null ||
21140 echo X"$as_dir" |
21141 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21142 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21143 /^X\(\/\/\)$/{ s//\1/; q; }
21144 /^X\(\/\).*/{ s//\1/; q; }
21145 s/.*/./; q'`
21146 done
21147 test ! -n "$as_dirs" || mkdir $as_dirs
21148 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21149 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21150 { (exit 1); exit 1; }; }; }
21152 # echo "creating $dirpart/$file"
21153 echo '# dummy' > "$dirpart/$file"
21154 done
21155 done
21157 default-1 )
21158 for ac_file in $CONFIG_FILES; do
21159 # Support "outfile[:infile[:infile...]]"
21160 case "$ac_file" in
21161 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21162 esac
21163 # PO directories have a Makefile.in generated from Makefile.in.in.
21164 case "$ac_file" in */Makefile.in)
21165 # Adjust a relative srcdir.
21166 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
21167 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
21168 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
21169 # In autoconf-2.13 it is called $ac_given_srcdir.
21170 # In autoconf-2.50 it is called $srcdir.
21171 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
21172 case "$ac_given_srcdir" in
21173 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
21174 /*) top_srcdir="$ac_given_srcdir" ;;
21175 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
21176 esac
21177 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
21178 rm -f "$ac_dir/POTFILES"
21179 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
21180 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
21181 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
21182 # on $ac_dir but don't depend on user-specified configuration
21183 # parameters.
21184 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
21185 # The LINGUAS file contains the set of available languages.
21186 if test -n "$ALL_LINGUAS"; then
21187 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
21189 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
21190 # Hide the ALL_LINGUAS assigment from automake.
21191 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
21193 case "$ac_given_srcdir" in
21194 .) srcdirpre= ;;
21195 *) srcdirpre='$(srcdir)/' ;;
21196 esac
21197 POFILES=
21198 GMOFILES=
21199 UPDATEPOFILES=
21200 DUMMYPOFILES=
21201 for lang in $ALL_LINGUAS; do
21202 POFILES="$POFILES $srcdirpre$lang.po"
21203 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
21204 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
21205 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
21206 done
21207 # CATALOGS depends on both $ac_dir and the user's LINGUAS
21208 # environment variable.
21209 INST_LINGUAS=
21210 if test -n "$ALL_LINGUAS"; then
21211 for presentlang in $ALL_LINGUAS; do
21212 useit=no
21213 if test "%UNSET%" != "$LINGUAS"; then
21214 desiredlanguages="$LINGUAS"
21215 else
21216 desiredlanguages="$ALL_LINGUAS"
21218 for desiredlang in $desiredlanguages; do
21219 # Use the presentlang catalog if desiredlang is
21220 # a. equal to presentlang, or
21221 # b. a variant of presentlang (because in this case,
21222 # presentlang can be used as a fallback for messages
21223 # which are not translated in the desiredlang catalog).
21224 case "$desiredlang" in
21225 "$presentlang"*) useit=yes;;
21226 esac
21227 done
21228 if test $useit = yes; then
21229 INST_LINGUAS="$INST_LINGUAS $presentlang"
21231 done
21233 CATALOGS=
21234 if test -n "$INST_LINGUAS"; then
21235 for lang in $INST_LINGUAS; do
21236 CATALOGS="$CATALOGS $lang.gmo"
21237 done
21239 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
21240 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"
21241 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
21242 if test -f "$f"; then
21243 case "$f" in
21244 *.orig | *.bak | *~) ;;
21245 *) cat "$f" >> "$ac_dir/Makefile" ;;
21246 esac
21248 done
21251 esac
21252 done ;;
21253 denoiser ) if test $denoiserlevel -gt 0; then
21254 if test ! -d src/utils/scripts; then mkdir -p src/utils/scripts; fi
21255 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" \
21256 $srcdir/src/utils/scripts/denoiser.rules > src/utils/scripts/denoiser.sed
21257 for i in `find . -name 'Makefile' -print`; do
21258 if test -n "`head -n 1 $i | grep '^#'`"; then
21259 sed -f src/utils/scripts/denoiser.sed $i > $i.tmp && mv $i.tmp $i
21261 done
21262 fi ;;
21263 esac
21264 done
21265 _ACEOF
21267 cat >>$CONFIG_STATUS <<\_ACEOF
21269 { (exit 0); exit 0; }
21270 _ACEOF
21271 chmod +x $CONFIG_STATUS
21272 ac_clean_files=$ac_clean_files_save
21275 # configure is writing to config.log, and then calls config.status.
21276 # config.status does its own redirection, appending to config.log.
21277 # Unfortunately, on DOS this fails, as config.log is still kept open
21278 # by configure, so config.status won't be able to write to it; its
21279 # output is simply discarded. So we exec the FD to /dev/null,
21280 # effectively closing config.log, so it can be properly (re)opened and
21281 # appended to by config.status. When coming back to configure, we
21282 # need to make the FD available again.
21283 if test "$no_create" != yes; then
21284 ac_cs_success=:
21285 ac_config_status_args=
21286 test "$silent" = yes &&
21287 ac_config_status_args="$ac_config_status_args --quiet"
21288 exec 5>/dev/null
21289 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21290 exec 5>>config.log
21291 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21292 # would make configure fail if this is the last instruction.
21293 $ac_cs_success || { (exit 1); exit 1; }
21297 echo
21298 echo
21299 echo " Configure script has finished system check."
21300 echo
21301 echo " Configured aMule ${PACKAGE_VERSION} for '${host}'."
21302 echo
21303 echo " aMule enabled options:"
21304 echo
21305 echo " **** aMule Core ****"
21306 echo " Prefix where aMule should be installed? ${prefix:-none}"
21307 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
21308 echo " Should aMule be compiled in debug mode? ${USE_DEBUG:-no}"
21309 echo " Should aMule be compiled with profiling? ${USE_PROFILE:-no}"
21310 echo " Should aMule be compiled with optimizations? ${USE_OPTIMIZE:-no}"
21311 echo " Should aMule be compiled with UPnP support? ${ENABLE_UPNP:-yes}"
21312 echo " Should aMule be compiled with IP2country support? ${ENABLE_IP2COUNTRY:-no}"
21313 echo " Should aMule monolithic application be built? ${MONOLITHIC:-yes}"
21314 echo " Should aMule daemon version be built? ${AMULE_DAEMON:-no}"
21315 echo " Should aMule remote gui be built? (EXPERIMENTAL) ${AMULE_GUI:-no}"
21316 echo " Crypto++ library/headers style? ${CRYPTOPP_STYLE:-not found}"
21318 echo
21319 echo " **** aMule TextClient ****"
21320 echo " Should aMule Command Line Client be built? ${AMULECMD:-no}"
21321 echo
21322 echo " **** aMule WebServer ****"
21323 echo " Should aMule WebServer be built? ${WEB:-no}"
21324 echo
21325 echo " **** aMule ED2K Links Handler ****"
21326 echo " Should aMule ED2K Links Handler be built? ${ED2K:-yes}"
21327 echo
21328 echo " **** aMuleLinkCreator ****"
21329 echo " Should aMuleLinkCreator GUI version (alc) be built? ${ALC:-no}"
21330 echo " Should aMuleLinkCreator for console (alcc) be built? ${ALCC:-no}"
21331 echo
21332 echo " **** aMule Statistics ****"
21333 echo " Should C aMule Statistics (CAS) be built? ${CAS:-no}"
21334 echo " Should aMule GUI Statistics (wxCas) be built? ${WXCAS:-no}"
21335 echo " Should xas XChat2 plugin be installed? ${XAS:-yes}"
21337 echo
21338 echo " **** General Libraries and Tools ****"
21339 echo " Should ccache support be enabled? ${enable_ccache:-no}"
21340 echo " Libraries aMule will use to build:"
21341 wxinfo="$WX_PORT"
21342 if test $WX_DEBUG -eq 1; then
21343 wxinfo="$wxinfo,debug"
21346 if test $WX_SHARED -eq 1; then
21347 wxinfo="$wxinfo,shared"
21348 else
21349 wxinfo="$wxinfo,static"
21352 echo " wxWidgets ${WX_VERSION_FULL} ($wxinfo)"
21353 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (${CRYPTOPP_STYLE}, in ${CRYPTOPP_PREFIX})"
21354 if test -n "$with_libupnp_prefix"; then
21355 libupnp_place=" (in $with_libupnp_prefix)"
21358 if test x${ENABLE_UPNP} = xyes; then
21359 echo " libupnp ${LIBUPNP_VERSION:-Not detected}${libupnp_place:-}"
21362 if test x${WEB:-no} != xno; then
21363 if test $regex_found = no; then
21364 regex_found="Not detected"
21365 else
21366 if test -z "$REGEX_LIB"; then
21367 regex_found=system
21368 else
21369 regex_found="standalone (in $REGEX_LIB)"
21374 echo " regex $regex_found"
21376 if test ${enable_nls:-yes} = yes; then
21377 if test x$USE_NLS = xno; then
21378 libintl_found="Not detected"
21379 else
21380 if test x$USE_INCLUDED_LIBINTL = xyes; then
21381 libintl_found="included"
21382 else
21383 libintl_found="system"
21388 echo " libintl $libintl_found"
21390 if test -z "${with_geoip_headers:-}${with_geoip_lib:-}"; then
21391 geoip_style=system
21392 else
21393 geoip_style=user
21396 if test ${ENABLE_IP2COUNTRY:-no} = yes; then
21397 echo " libGeoIP ${geoip_style}"
21400 if test x$LIBPNG_VERSION != xnot_needed; then
21401 echo " libpng ${LIBPNG_VERSION:-Not detected}"
21403 if test x$GDLIB_VERSION != xnot_needed; then
21404 echo " libgd ${GDLIB_VERSION:-Not detected}"
21406 echo " zlib ${ZLIB_VERSION:-Not detected}"
21407 if test ${_mule_has_warnings:-no} = yes; then
21408 echo ""
21409 echo ""
21410 echo " *** Warnings during configuration ***"
21412 if test ${_mule_warning_0:-no} = yes; then
21413 cat <<_MULEEOT
21415 * gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
21416 Please check that gdlib-config is in your default path, check out
21417 LD_LIBRARY_PATH or equivalent variable.
21418 Or this might also be that your gdlib-config has other name.
21419 Please try again with --with-gdlib-config=/usr/bin/gdlib-config (replace
21420 /usr/bin/gdlib-config with a valid path to your gdlib-config).
21421 If you use compiled packages check if you have devel pack installed.
21422 To download the latest version check http://www.boutell.com/gd for sources.
21423 _MULEEOT
21425 if test ${_mule_warning_1:-no} = yes; then
21426 cat <<_MULEEOT
21428 * amuleweb has been disabled because configure could not find a POSIX
21429 compliant regex library.
21430 _MULEEOT
21432 if test ${_mule_warning_2:-no} = yes; then
21433 cat <<_MULEEOT
21435 * libpng >= 1.2.0 not found.
21436 amuleweb will be compiled but file download progress bar images will NOT be
21437 generated.
21438 _MULEEOT
21440 if test ${_mule_warning_3:-no} = yes; then
21441 cat <<_MULEEOT
21443 * Cannot link GeoIP statically, because your linker ($LD) does not support it.
21444 _MULEEOT
21446 if test ${_mule_warning_4:-no} = yes; then
21447 cat <<_MULEEOT
21449 * GeoIP support has been disabled because the GeoIP libraries were not found
21450 _MULEEOT
21452 if test ${_mule_warning_5:-no} = yes; then
21453 cat <<_MULEEOT
21455 * GeoIP support has been disabled because the GeoIP header files were not
21456 found
21457 _MULEEOT
21459 if test ${_mule_warning_6:-no} = yes; then
21460 cat <<_MULEEOT
21462 * UPnP code has been disabled because ${libupnp_error}.
21463 _MULEEOT
21465 if test ${_mule_warning_7:-no} = yes; then
21466 cat <<_MULEEOT
21468 * Cross-compilation detected, so exception handling cannot be tested.
21469 Note that broken exception handling in your compiler may lead to unexpected
21470 crashes.
21471 _MULEEOT
21473 if test ${_mule_warning_8:-no} = yes; then
21474 cat <<_MULEEOT
21476 * bfd.h not found or unusable, please install binutils development package if
21477 you are a developer or want to help testing aMule
21478 _MULEEOT
21480 if test ${_mule_warning_9:-no} = yes; then
21481 cat <<_MULEEOT
21483 * configure cannot check whether malloc() and realloc() are GNU libc
21484 compatible. You have to be ABSOLUTELY sure that they are, otherwise run
21485 configure with the --without-gnu-malloc switch.
21486 _MULEEOT
21488 if test ${_mule_warning_10:-no} = yes; then
21489 cat <<_MULEEOT
21491 * You need to install GNU gettext/gettext-tools to compile aMule with i18n
21492 support.
21493 _MULEEOT