Upstream tarball 9861
[amule.git] / configure
blob5102bb490cfe0b2738fbcd533e0ea07e9ee3bfec
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for aMule SVN.
5 # Report bugs to <admin@amule.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
51 done
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
98 rm -f conf$$.sh
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
156 esac
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
240 IFS=" $as_nl"
242 # CDPATH.
243 $as_unset CDPATH
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251 exec 6>&1
254 # Initializations.
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME='aMule'
271 PACKAGE_TARNAME='amule'
272 PACKAGE_VERSION='SVN'
273 PACKAGE_STRING='aMule SVN'
274 PACKAGE_BUGREPORT='admin@amule.org'
276 ac_unique_file="src/amule.cpp"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 # include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 # include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 # include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
314 ac_subst_vars='GEOIP_CPPFLAGS GEOIP_LDFLAGS GEOIP_LIBS SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os RESOLV_LIB X11LIBS MULECPPFLAGS MULECFLAGS MULECXXFLAGS MULELDFLAGS MULERCFLAGS CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP BUILD_CC ac_ct_BUILD_CC EXEEXT BUILD_EXEEXT BUILD_CPPFLAGS BUILD_CFLAGS BUILD_LDFLAGS EGREP LEX LEXLIB LEX_OUTPUT_ROOT RANLIB ac_ct_RANLIB YACC AR ac_ct_AR LD ac_ct_LD ZLIB_CPPFLAGS ZLIB_LDFLAGS ZLIB_LIBS GDLIB_CONFIG_PATH GDLIB_CFLAGS GDLIB_LDFLAGS GDLIB_LIBS CAS_DEFS LIBPNG_CONFIG_PATH LIBPNG_CFLAGS LIBPNG_LDFLAGS LIBPNG_LIBS AMULEWEB_DEFS WX_CONFIG_PATH WX_CPPFLAGS WX_CFLAGS WX_CXXFLAGS WX_CFLAGS_ONLY WX_CXXFLAGS_ONLY WX_LIBS WX_LIBS_STATIC WX_VERSION_FULL WX_RESCOMP WX_VERSION_MAJOR WX_VERSION_MINOR WX_UNICODE WX_DEBUG WX_SHARED WX_PORT WXBASE_LIBS WXBASE_CPPFLAGS RC RCFLAGS ac_ct_RC PKG_CONFIG ac_pt_PKG_CONFIG LIBUPNP_CPPFLAGS LIBUPNP_CFLAGS LIBUPNP_LDFLAGS LIBUPNP_LIBS CRYPTOPP_CPPFLAGS CRYPTOPP_LDFLAGS CRYPTOPP_LIBS ALLOCA LIBOBJS POW_LIB MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE GLIBC21 LIBICONV LTLIBICONV INTLBISON USE_NLS BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT INTLOBJS DATADIRNAME INSTOBJEXT GENCAT INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB AMULE_DAEMON_MANPAGES AMULECMD_MANPAGES WEB_MANPAGES AMULE_GUI_MANPAGES CAS_MANPAGES WXCAS_MANPAGES ED2K_MANPAGES ALC_MANPAGES ALCC_MANPAGES MONOLITHIC_MANPAGES INCINTL BFD_CPPFLAGS BFD_LIBS docdir SVNDATE WEB_TRUE WEB_FALSE ED2K_TRUE ED2K_FALSE CAS_TRUE CAS_FALSE WXCAS_TRUE WXCAS_FALSE ALC_TRUE ALC_FALSE ALCC_TRUE ALCC_FALSE AMULE_GUI_TRUE AMULE_GUI_FALSE AMULE_DAEMON_TRUE AMULE_DAEMON_FALSE COMPILE_CMD_TRUE COMPILE_CMD_FALSE MONOLITHIC_TRUE MONOLITHIC_FALSE XAS_TRUE XAS_FALSE FILEVIEW_TRUE FILEVIEW_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-fileview compile aMule file viewer for console (EXPERIMENTAL)
901 --enable-geoip compile with GeoIP IP2Country library
902 --enable-mmap enable using mapped memory if supported
903 --disable-rpath do not hardcode runtime library paths
904 --disable-nls do not use Native Language Support
905 --disable-debug disable additional debugging output
906 --enable-optimize enable code optimization
907 --enable-profile enable code profiling
908 --enable-static produce a statically linked executable
909 --enable-ccache enable ccache support for fast recompilation
911 Optional Packages:
912 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
913 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
914 --without-gnu-malloc Don't assume that we use GNU libc compatible
915 malloc/realloc when cross-compiling
916 --with-zlib=PREFIX use zlib in PREFIX
917 --with-gdlib-prefix=PREFIX
918 prefix where gdlib is installed (optional)
919 --with-gdlib-config=CONFIG
920 gdlib-config script to use (optional)
921 --with-libpng-prefix=PREFIX
922 prefix where libpng is installed (optional)
923 --with-libpng-config=CONFIG
924 libpng-config script to use (optional)
925 --with-geoip-headers=DIR
926 GeoIP include files location
927 --with-geoip-lib=DIR GeoIP library location
928 --with-geoip-static Explicitly link GeoIP statically (default=no)
929 --with-wxdir=PATH Use uninstalled version of wxWidgets in PATH
930 --with-wx-config=CONFIG wx-config script to use (optional)
931 --with-wx-prefix=PREFIX Prefix where wxWidgets is installed (optional)
932 --with-wx-exec-prefix=PREFIX
933 Exec prefix where wxWidgets is installed (optional)
934 --with-toolkit Build against a specific wxWidgets toolkit (default
935 is auto)
936 --with-wxshared Force building against a shared build of wxWidgets,
937 even if --disable-shared is given (default is auto)
938 --with-wxdebug Force building against a debug build of wxWidgets,
939 even if --disable-debug is given (default is auto)
940 --with-wxversion Build against a specific version of wxWidgets
941 (default is auto)
942 --with-libupnp-prefix=PREFIX
943 UPnP library location
944 --with-crypto-prefix=PREFIX
945 prefix where crypto++ is installed
946 --with-x use the X Window System
947 --with-language=<langs> Specify a comma-separated list of languages you want
948 to have installed. See po/LINGUAS for available
949 languages
950 --with-gnu-ld assume the C compiler uses GNU ld default=no
951 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
952 --without-libiconv-prefix don't search for libiconv in includedir and libdir
953 --with-included-gettext use the GNU gettext library included here
954 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
955 --without-libintl-prefix don't search for libintl in includedir and libdir
956 --with-denoise-level=<level>
957 Specifies denoising level (0-4):
958 0 - Do nothing
959 4 - Suppress all normal output
960 (for more information see
961 src/utils/scripts/denoiser.rules)
963 --with-ccache-prefix=PREFIX
964 prefix where ccache is installed
966 Some influential environment variables:
967 CXX C++ compiler command
968 CXXFLAGS C++ compiler flags
969 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
970 nonstandard directory <lib dir>
971 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
972 headers in a nonstandard directory <include dir>
973 CXXCPP C++ preprocessor
974 CC C compiler command
975 CFLAGS C compiler flags
976 CPP C preprocessor
977 RC Resource Compiler
978 RCFLAGS Resource Compiler Flags
979 PKG_CONFIG path to pkg-config utility
981 Use these variables to override the choices made by `configure' or to help
982 it to find libraries and programs with nonstandard names/locations.
984 Report bugs to <admin@amule.org>.
985 _ACEOF
988 if test "$ac_init_help" = "recursive"; then
989 # If there are subdirs, report their specific --help.
990 ac_popdir=`pwd`
991 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
992 test -d $ac_dir || continue
993 ac_builddir=.
995 if test "$ac_dir" != .; then
996 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
997 # A "../" for each directory in $ac_dir_suffix.
998 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
999 else
1000 ac_dir_suffix= ac_top_builddir=
1003 case $srcdir in
1004 .) # No --srcdir option. We are building in place.
1005 ac_srcdir=.
1006 if test -z "$ac_top_builddir"; then
1007 ac_top_srcdir=.
1008 else
1009 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1010 fi ;;
1011 [\\/]* | ?:[\\/]* ) # Absolute path.
1012 ac_srcdir=$srcdir$ac_dir_suffix;
1013 ac_top_srcdir=$srcdir ;;
1014 *) # Relative path.
1015 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1016 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1017 esac
1019 # Do not use `cd foo && pwd` to compute absolute paths, because
1020 # the directories may not exist.
1021 case `pwd` in
1022 .) ac_abs_builddir="$ac_dir";;
1024 case "$ac_dir" in
1025 .) ac_abs_builddir=`pwd`;;
1026 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1027 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1028 esac;;
1029 esac
1030 case $ac_abs_builddir in
1031 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1033 case ${ac_top_builddir}. in
1034 .) ac_abs_top_builddir=$ac_abs_builddir;;
1035 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1036 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1037 esac;;
1038 esac
1039 case $ac_abs_builddir in
1040 .) ac_abs_srcdir=$ac_srcdir;;
1042 case $ac_srcdir in
1043 .) ac_abs_srcdir=$ac_abs_builddir;;
1044 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1045 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1046 esac;;
1047 esac
1048 case $ac_abs_builddir in
1049 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1051 case $ac_top_srcdir in
1052 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1053 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1054 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1055 esac;;
1056 esac
1058 cd $ac_dir
1059 # Check for guested configure; otherwise get Cygnus style configure.
1060 if test -f $ac_srcdir/configure.gnu; then
1061 echo
1062 $SHELL $ac_srcdir/configure.gnu --help=recursive
1063 elif test -f $ac_srcdir/configure; then
1064 echo
1065 $SHELL $ac_srcdir/configure --help=recursive
1066 elif test -f $ac_srcdir/configure.ac ||
1067 test -f $ac_srcdir/configure.in; then
1068 echo
1069 $ac_configure --help
1070 else
1071 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1073 cd $ac_popdir
1074 done
1077 test -n "$ac_init_help" && exit 0
1078 if $ac_init_version; then
1079 cat <<\_ACEOF
1080 aMule configure SVN
1081 generated by GNU Autoconf 2.59
1083 Copyright (C) 2003 Free Software Foundation, Inc.
1084 This configure script is free software; the Free Software Foundation
1085 gives unlimited permission to copy, distribute and modify it.
1086 _ACEOF
1087 exit 0
1089 exec 5>config.log
1090 cat >&5 <<_ACEOF
1091 This file contains any messages produced by compilers while
1092 running configure, to aid debugging if configure makes a mistake.
1094 It was created by aMule $as_me SVN, which was
1095 generated by GNU Autoconf 2.59. Invocation command line was
1097 $ $0 $@
1099 _ACEOF
1101 cat <<_ASUNAME
1102 ## --------- ##
1103 ## Platform. ##
1104 ## --------- ##
1106 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1107 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1108 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1109 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1110 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1112 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1113 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1115 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1116 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1117 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1118 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1119 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1120 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1121 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1123 _ASUNAME
1125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1126 for as_dir in $PATH
1128 IFS=$as_save_IFS
1129 test -z "$as_dir" && as_dir=.
1130 echo "PATH: $as_dir"
1131 done
1133 } >&5
1135 cat >&5 <<_ACEOF
1138 ## ----------- ##
1139 ## Core tests. ##
1140 ## ----------- ##
1142 _ACEOF
1145 # Keep a trace of the command line.
1146 # Strip out --no-create and --no-recursion so they do not pile up.
1147 # Strip out --silent because we don't want to record it for future runs.
1148 # Also quote any args containing shell meta-characters.
1149 # Make two passes to allow for proper duplicate-argument suppression.
1150 ac_configure_args=
1151 ac_configure_args0=
1152 ac_configure_args1=
1153 ac_sep=
1154 ac_must_keep_next=false
1155 for ac_pass in 1 2
1157 for ac_arg
1159 case $ac_arg in
1160 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1161 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1162 | -silent | --silent | --silen | --sile | --sil)
1163 continue ;;
1164 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1165 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1166 esac
1167 case $ac_pass in
1168 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1170 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1171 if test $ac_must_keep_next = true; then
1172 ac_must_keep_next=false # Got value, back to normal.
1173 else
1174 case $ac_arg in
1175 *=* | --config-cache | -C | -disable-* | --disable-* \
1176 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1177 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1178 | -with-* | --with-* | -without-* | --without-* | --x)
1179 case "$ac_configure_args0 " in
1180 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1181 esac
1183 -* ) ac_must_keep_next=true ;;
1184 esac
1186 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1187 # Get rid of the leading space.
1188 ac_sep=" "
1190 esac
1191 done
1192 done
1193 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1194 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1196 # When interrupted or exit'd, cleanup temporary files, and complete
1197 # config.log. We remove comments because anyway the quotes in there
1198 # would cause problems or look ugly.
1199 # WARNING: Be sure not to use single quotes in there, as some shells,
1200 # such as our DU 5.0 friend, will then `close' the trap.
1201 trap 'exit_status=$?
1202 # Save into config.log some information that might help in debugging.
1204 echo
1206 cat <<\_ASBOX
1207 ## ---------------- ##
1208 ## Cache variables. ##
1209 ## ---------------- ##
1210 _ASBOX
1211 echo
1212 # The following way of writing the cache mishandles newlines in values,
1214 (set) 2>&1 |
1215 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1216 *ac_space=\ *)
1217 sed -n \
1218 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1219 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1222 sed -n \
1223 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1225 esac;
1227 echo
1229 cat <<\_ASBOX
1230 ## ----------------- ##
1231 ## Output variables. ##
1232 ## ----------------- ##
1233 _ASBOX
1234 echo
1235 for ac_var in $ac_subst_vars
1237 eval ac_val=$`echo $ac_var`
1238 echo "$ac_var='"'"'$ac_val'"'"'"
1239 done | sort
1240 echo
1242 if test -n "$ac_subst_files"; then
1243 cat <<\_ASBOX
1244 ## ------------- ##
1245 ## Output files. ##
1246 ## ------------- ##
1247 _ASBOX
1248 echo
1249 for ac_var in $ac_subst_files
1251 eval ac_val=$`echo $ac_var`
1252 echo "$ac_var='"'"'$ac_val'"'"'"
1253 done | sort
1254 echo
1257 if test -s confdefs.h; then
1258 cat <<\_ASBOX
1259 ## ----------- ##
1260 ## confdefs.h. ##
1261 ## ----------- ##
1262 _ASBOX
1263 echo
1264 sed "/^$/d" confdefs.h | sort
1265 echo
1267 test "$ac_signal" != 0 &&
1268 echo "$as_me: caught signal $ac_signal"
1269 echo "$as_me: exit $exit_status"
1270 } >&5
1271 rm -f core *.core &&
1272 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1273 exit $exit_status
1275 for ac_signal in 1 2 13 15; do
1276 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1277 done
1278 ac_signal=0
1280 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1281 rm -rf conftest* confdefs.h
1282 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1283 echo >confdefs.h
1285 # Predefined preprocessor variables.
1287 cat >>confdefs.h <<_ACEOF
1288 #define PACKAGE_NAME "$PACKAGE_NAME"
1289 _ACEOF
1292 cat >>confdefs.h <<_ACEOF
1293 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1294 _ACEOF
1297 cat >>confdefs.h <<_ACEOF
1298 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1299 _ACEOF
1302 cat >>confdefs.h <<_ACEOF
1303 #define PACKAGE_STRING "$PACKAGE_STRING"
1304 _ACEOF
1307 cat >>confdefs.h <<_ACEOF
1308 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1309 _ACEOF
1312 # Let the site file select an alternate cache file if it wants to.
1313 # Prefer explicitly selected file to automatically selected ones.
1314 if test -z "$CONFIG_SITE"; then
1315 if test "x$prefix" != xNONE; then
1316 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1317 else
1318 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1321 for ac_site_file in $CONFIG_SITE; do
1322 if test -r "$ac_site_file"; then
1323 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1324 echo "$as_me: loading site script $ac_site_file" >&6;}
1325 sed 's/^/| /' "$ac_site_file" >&5
1326 . "$ac_site_file"
1328 done
1330 if test -r "$cache_file"; then
1331 # Some versions of bash will fail to source /dev/null (special
1332 # files actually), so we avoid doing that.
1333 if test -f "$cache_file"; then
1334 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1335 echo "$as_me: loading cache $cache_file" >&6;}
1336 case $cache_file in
1337 [\\/]* | ?:[\\/]* ) . $cache_file;;
1338 *) . ./$cache_file;;
1339 esac
1341 else
1342 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1343 echo "$as_me: creating cache $cache_file" >&6;}
1344 >$cache_file
1347 # Check that the precious variables saved in the cache have kept the same
1348 # value.
1349 ac_cache_corrupted=false
1350 for ac_var in `(set) 2>&1 |
1351 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1352 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1353 eval ac_new_set=\$ac_env_${ac_var}_set
1354 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1355 eval ac_new_val="\$ac_env_${ac_var}_value"
1356 case $ac_old_set,$ac_new_set in
1357 set,)
1358 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1359 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1360 ac_cache_corrupted=: ;;
1361 ,set)
1362 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1363 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1364 ac_cache_corrupted=: ;;
1365 ,);;
1367 if test "x$ac_old_val" != "x$ac_new_val"; then
1368 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1369 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1370 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1371 echo "$as_me: former value: $ac_old_val" >&2;}
1372 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1373 echo "$as_me: current value: $ac_new_val" >&2;}
1374 ac_cache_corrupted=:
1375 fi;;
1376 esac
1377 # Pass precious variables to config.status.
1378 if test "$ac_new_set" = set; then
1379 case $ac_new_val in
1380 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1381 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1382 *) ac_arg=$ac_var=$ac_new_val ;;
1383 esac
1384 case " $ac_configure_args " in
1385 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1386 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1387 esac
1389 done
1390 if $ac_cache_corrupted; then
1391 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1392 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1393 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1394 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1395 { (exit 1); exit 1; }; }
1398 ac_ext=c
1399 ac_cpp='$CPP $CPPFLAGS'
1400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1430 am__api_version="1.9"
1431 ac_aux_dir=
1432 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1433 if test -f $ac_dir/install-sh; then
1434 ac_aux_dir=$ac_dir
1435 ac_install_sh="$ac_aux_dir/install-sh -c"
1436 break
1437 elif test -f $ac_dir/install.sh; then
1438 ac_aux_dir=$ac_dir
1439 ac_install_sh="$ac_aux_dir/install.sh -c"
1440 break
1441 elif test -f $ac_dir/shtool; then
1442 ac_aux_dir=$ac_dir
1443 ac_install_sh="$ac_aux_dir/shtool install -c"
1444 break
1446 done
1447 if test -z "$ac_aux_dir"; then
1448 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1449 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1450 { (exit 1); exit 1; }; }
1452 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1453 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1454 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1456 # Find a good install program. We prefer a C program (faster),
1457 # so one script is as good as another. But avoid the broken or
1458 # incompatible versions:
1459 # SysV /etc/install, /usr/sbin/install
1460 # SunOS /usr/etc/install
1461 # IRIX /sbin/install
1462 # AIX /bin/install
1463 # AmigaOS /C/install, which installs bootblocks on floppy discs
1464 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1465 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1466 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1467 # OS/2's system install, which has a completely different semantic
1468 # ./install, which can be erroneously created by make from ./install.sh.
1469 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1470 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1471 if test -z "$INSTALL"; then
1472 if test "${ac_cv_path_install+set}" = set; then
1473 echo $ECHO_N "(cached) $ECHO_C" >&6
1474 else
1475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1476 for as_dir in $PATH
1478 IFS=$as_save_IFS
1479 test -z "$as_dir" && as_dir=.
1480 # Account for people who put trailing slashes in PATH elements.
1481 case $as_dir/ in
1482 ./ | .// | /cC/* | \
1483 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1484 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1485 /usr/ucb/* ) ;;
1487 # OSF1 and SCO ODT 3.0 have their own names for install.
1488 # Don't use installbsd from OSF since it installs stuff as root
1489 # by default.
1490 for ac_prog in ginstall scoinst install; do
1491 for ac_exec_ext in '' $ac_executable_extensions; do
1492 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1493 if test $ac_prog = install &&
1494 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1495 # AIX install. It has an incompatible calling convention.
1497 elif test $ac_prog = install &&
1498 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1499 # program-specific install script used by HP pwplus--don't use.
1501 else
1502 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1503 break 3
1506 done
1507 done
1509 esac
1510 done
1514 if test "${ac_cv_path_install+set}" = set; then
1515 INSTALL=$ac_cv_path_install
1516 else
1517 # As a last resort, use the slow shell script. We don't cache a
1518 # path for INSTALL within a source directory, because that will
1519 # break other packages using the cache if that directory is
1520 # removed, or if the path is relative.
1521 INSTALL=$ac_install_sh
1524 echo "$as_me:$LINENO: result: $INSTALL" >&5
1525 echo "${ECHO_T}$INSTALL" >&6
1527 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1528 # It thinks the first close brace ends the variable substitution.
1529 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1531 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1533 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1535 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1536 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1537 # Just in case
1538 sleep 1
1539 echo timestamp > conftest.file
1540 # Do `set' in a subshell so we don't clobber the current shell's
1541 # arguments. Must try -L first in case configure is actually a
1542 # symlink; some systems play weird games with the mod time of symlinks
1543 # (eg FreeBSD returns the mod time of the symlink's containing
1544 # directory).
1545 if (
1546 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1547 if test "$*" = "X"; then
1548 # -L didn't work.
1549 set X `ls -t $srcdir/configure conftest.file`
1551 rm -f conftest.file
1552 if test "$*" != "X $srcdir/configure conftest.file" \
1553 && test "$*" != "X conftest.file $srcdir/configure"; then
1555 # If neither matched, then we have a broken ls. This can happen
1556 # if, for instance, CONFIG_SHELL is bash and it inherits a
1557 # broken ls alias from the environment. This has actually
1558 # happened. Such a system could not be considered "sane".
1559 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1560 alias in your environment" >&5
1561 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1562 alias in your environment" >&2;}
1563 { (exit 1); exit 1; }; }
1566 test "$2" = conftest.file
1568 then
1569 # Ok.
1571 else
1572 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1573 Check your system clock" >&5
1574 echo "$as_me: error: newly created file is older than distributed files!
1575 Check your system clock" >&2;}
1576 { (exit 1); exit 1; }; }
1578 echo "$as_me:$LINENO: result: yes" >&5
1579 echo "${ECHO_T}yes" >&6
1580 test "$program_prefix" != NONE &&
1581 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1582 # Use a double $ so make ignores it.
1583 test "$program_suffix" != NONE &&
1584 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1585 # Double any \ or $. echo might interpret backslashes.
1586 # By default was `s,x,x', remove it if useless.
1587 cat <<\_ACEOF >conftest.sed
1588 s/[\\$]/&&/g;s/;s,x,x,$//
1589 _ACEOF
1590 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1591 rm conftest.sed
1593 # expand $ac_aux_dir to an absolute path
1594 am_aux_dir=`cd $ac_aux_dir && pwd`
1596 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1597 # Use eval to expand $SHELL
1598 if eval "$MISSING --run true"; then
1599 am_missing_run="$MISSING --run "
1600 else
1601 am_missing_run=
1602 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1603 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1606 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1607 # We used to keeping the `.' as first argument, in order to
1608 # allow $(mkdir_p) to be used without argument. As in
1609 # $(mkdir_p) $(somedir)
1610 # where $(somedir) is conditionally defined. However this is wrong
1611 # for two reasons:
1612 # 1. if the package is installed by a user who cannot write `.'
1613 # make install will fail,
1614 # 2. the above comment should most certainly read
1615 # $(mkdir_p) $(DESTDIR)$(somedir)
1616 # so it does not work when $(somedir) is undefined and
1617 # $(DESTDIR) is not.
1618 # To support the latter case, we have to write
1619 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1620 # so the `.' trick is pointless.
1621 mkdir_p='mkdir -p --'
1622 else
1623 # On NextStep and OpenStep, the `mkdir' command does not
1624 # recognize any option. It will interpret all options as
1625 # directories to create, and then abort because `.' already
1626 # exists.
1627 for d in ./-p ./--version;
1629 test -d $d && rmdir $d
1630 done
1631 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1632 if test -f "$ac_aux_dir/mkinstalldirs"; then
1633 mkdir_p='$(mkinstalldirs)'
1634 else
1635 mkdir_p='$(install_sh) -d'
1639 for ac_prog in gawk mawk nawk awk
1641 # Extract the first word of "$ac_prog", so it can be a program name with args.
1642 set dummy $ac_prog; ac_word=$2
1643 echo "$as_me:$LINENO: checking for $ac_word" >&5
1644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1645 if test "${ac_cv_prog_AWK+set}" = set; then
1646 echo $ECHO_N "(cached) $ECHO_C" >&6
1647 else
1648 if test -n "$AWK"; then
1649 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1650 else
1651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1652 for as_dir in $PATH
1654 IFS=$as_save_IFS
1655 test -z "$as_dir" && as_dir=.
1656 for ac_exec_ext in '' $ac_executable_extensions; do
1657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1658 ac_cv_prog_AWK="$ac_prog"
1659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1660 break 2
1662 done
1663 done
1667 AWK=$ac_cv_prog_AWK
1668 if test -n "$AWK"; then
1669 echo "$as_me:$LINENO: result: $AWK" >&5
1670 echo "${ECHO_T}$AWK" >&6
1671 else
1672 echo "$as_me:$LINENO: result: no" >&5
1673 echo "${ECHO_T}no" >&6
1676 test -n "$AWK" && break
1677 done
1679 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1680 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1681 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1682 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1683 echo $ECHO_N "(cached) $ECHO_C" >&6
1684 else
1685 cat >conftest.make <<\_ACEOF
1686 all:
1687 @echo 'ac_maketemp="$(MAKE)"'
1688 _ACEOF
1689 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1690 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1691 if test -n "$ac_maketemp"; then
1692 eval ac_cv_prog_make_${ac_make}_set=yes
1693 else
1694 eval ac_cv_prog_make_${ac_make}_set=no
1696 rm -f conftest.make
1698 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1699 echo "$as_me:$LINENO: result: yes" >&5
1700 echo "${ECHO_T}yes" >&6
1701 SET_MAKE=
1702 else
1703 echo "$as_me:$LINENO: result: no" >&5
1704 echo "${ECHO_T}no" >&6
1705 SET_MAKE="MAKE=${MAKE-make}"
1708 rm -rf .tst 2>/dev/null
1709 mkdir .tst 2>/dev/null
1710 if test -d .tst; then
1711 am__leading_dot=.
1712 else
1713 am__leading_dot=_
1715 rmdir .tst 2>/dev/null
1717 # test to see if srcdir already configured
1718 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1719 test -f $srcdir/config.status; then
1720 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1721 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1722 { (exit 1); exit 1; }; }
1725 # test whether we have cygpath
1726 if test -z "$CYGPATH_W"; then
1727 if (cygpath --version) >/dev/null 2>/dev/null; then
1728 CYGPATH_W='cygpath -w'
1729 else
1730 CYGPATH_W=echo
1735 # Define the identity of the package.
1736 PACKAGE='amule'
1737 VERSION='SVN'
1740 cat >>confdefs.h <<_ACEOF
1741 #define PACKAGE "$PACKAGE"
1742 _ACEOF
1745 cat >>confdefs.h <<_ACEOF
1746 #define VERSION "$VERSION"
1747 _ACEOF
1749 # Some tools Automake needs.
1751 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1754 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1757 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1760 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1763 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1765 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1767 # Installed binaries are usually stripped using `strip' when the user
1768 # run `make install-strip'. However `strip' might not be the right
1769 # tool to use in cross-compilation environments, therefore Automake
1770 # will honor the `STRIP' environment variable to overrule this program.
1771 if test "$cross_compiling" != no; then
1772 if test -n "$ac_tool_prefix"; then
1773 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1774 set dummy ${ac_tool_prefix}strip; ac_word=$2
1775 echo "$as_me:$LINENO: checking for $ac_word" >&5
1776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1777 if test "${ac_cv_prog_STRIP+set}" = set; then
1778 echo $ECHO_N "(cached) $ECHO_C" >&6
1779 else
1780 if test -n "$STRIP"; then
1781 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1782 else
1783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1784 for as_dir in $PATH
1786 IFS=$as_save_IFS
1787 test -z "$as_dir" && as_dir=.
1788 for ac_exec_ext in '' $ac_executable_extensions; do
1789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1790 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1792 break 2
1794 done
1795 done
1799 STRIP=$ac_cv_prog_STRIP
1800 if test -n "$STRIP"; then
1801 echo "$as_me:$LINENO: result: $STRIP" >&5
1802 echo "${ECHO_T}$STRIP" >&6
1803 else
1804 echo "$as_me:$LINENO: result: no" >&5
1805 echo "${ECHO_T}no" >&6
1809 if test -z "$ac_cv_prog_STRIP"; then
1810 ac_ct_STRIP=$STRIP
1811 # Extract the first word of "strip", so it can be a program name with args.
1812 set dummy strip; ac_word=$2
1813 echo "$as_me:$LINENO: checking for $ac_word" >&5
1814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1815 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1816 echo $ECHO_N "(cached) $ECHO_C" >&6
1817 else
1818 if test -n "$ac_ct_STRIP"; then
1819 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1820 else
1821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1822 for as_dir in $PATH
1824 IFS=$as_save_IFS
1825 test -z "$as_dir" && as_dir=.
1826 for ac_exec_ext in '' $ac_executable_extensions; do
1827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1828 ac_cv_prog_ac_ct_STRIP="strip"
1829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1830 break 2
1832 done
1833 done
1835 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1838 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1839 if test -n "$ac_ct_STRIP"; then
1840 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1841 echo "${ECHO_T}$ac_ct_STRIP" >&6
1842 else
1843 echo "$as_me:$LINENO: result: no" >&5
1844 echo "${ECHO_T}no" >&6
1847 STRIP=$ac_ct_STRIP
1848 else
1849 STRIP="$ac_cv_prog_STRIP"
1853 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1855 # We need awk for the "check" target. The system "awk" is bad on
1856 # some platforms.
1857 # Always define AMTAR for backward compatibility.
1859 AMTAR=${AMTAR-"${am_missing_run}tar"}
1861 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1869 ac_config_headers="$ac_config_headers config.h"
1871 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1872 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1873 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1874 if test "${enable_maintainer_mode+set}" = set; then
1875 enableval="$enable_maintainer_mode"
1876 USE_MAINTAINER_MODE=$enableval
1877 else
1878 USE_MAINTAINER_MODE=no
1880 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1881 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1884 if test $USE_MAINTAINER_MODE = yes; then
1885 MAINTAINER_MODE_TRUE=
1886 MAINTAINER_MODE_FALSE='#'
1887 else
1888 MAINTAINER_MODE_TRUE='#'
1889 MAINTAINER_MODE_FALSE=
1892 MAINT=$MAINTAINER_MODE_TRUE
1896 # Make sure we can run config.sub.
1897 $ac_config_sub sun4 >/dev/null 2>&1 ||
1898 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1899 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1900 { (exit 1); exit 1; }; }
1902 echo "$as_me:$LINENO: checking build system type" >&5
1903 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1904 if test "${ac_cv_build+set}" = set; then
1905 echo $ECHO_N "(cached) $ECHO_C" >&6
1906 else
1907 ac_cv_build_alias=$build_alias
1908 test -z "$ac_cv_build_alias" &&
1909 ac_cv_build_alias=`$ac_config_guess`
1910 test -z "$ac_cv_build_alias" &&
1911 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1912 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1913 { (exit 1); exit 1; }; }
1914 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1915 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1916 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1917 { (exit 1); exit 1; }; }
1920 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1921 echo "${ECHO_T}$ac_cv_build" >&6
1922 build=$ac_cv_build
1923 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1924 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1925 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1928 echo "$as_me:$LINENO: checking host system type" >&5
1929 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1930 if test "${ac_cv_host+set}" = set; then
1931 echo $ECHO_N "(cached) $ECHO_C" >&6
1932 else
1933 ac_cv_host_alias=$host_alias
1934 test -z "$ac_cv_host_alias" &&
1935 ac_cv_host_alias=$ac_cv_build_alias
1936 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1937 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1938 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1939 { (exit 1); exit 1; }; }
1942 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1943 echo "${ECHO_T}$ac_cv_host" >&6
1944 host=$ac_cv_host
1945 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1946 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1947 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1951 case "${host_os}" in
1952 darwin*)
1953 SYS=darwin
1954 MULECPPFLAGS="-no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH";
1955 MULELDFLAGS="-bind_at_load"
1956 touch src/Scanner.cpp
1958 openbsd*)
1959 SYS=openbsd
1960 LIBS="$LIBS -L/usr/local/lib"
1961 X11LIBS="-lX11 -L/usr/X11R6/lib"
1962 MULECPPFLAGS="-D__OPENBSD__"
1964 *cygwin* | *mingw32*)
1965 SYS=win32
1966 MULECPPFLAGS="-DNOMINMAX"
1968 solaris*)
1969 SYS=solaris
1970 RESOLV_LIB="-lresolv -lnsl"
1971 X11LIBS="-lX11"
1972 LIBS="$LIBS -lrt"
1974 *netbsd*)
1975 SYS=netbsd
1976 # Now this is against autoconf recommendation that configure should not modify CPPFLAGS and LDFLAGS
1977 # However, these values in NetBSD are required even to run the tests, and this is the easiest way to do it.
1978 # Still, we prepend them, instead of adding, so the user may override them.
1979 CPPFLAGS="-I/usr/pkg/include $CPPFLAGS"
1980 LDFLAGS="-R/usr/pkg/lib -L/usr/pkg/lib $LDFLAGS"
1982 *irix*)
1983 SYS=irix
1984 MULECPPFLAGS="-D__IRIX__"
1987 SYS=unknown
1989 esac
1991 # -lpthread is needed by Debian but FreeBSD < 5 doesn't support it
1992 if test ${SYS:-unknown} != win32; then
1994 echo "$as_me:$LINENO: checking if this is a FreeBSD 4 or earlier system" >&5
1995 echo $ECHO_N "checking if this is a FreeBSD 4 or earlier system... $ECHO_C" >&6
1996 if test x"`uname -s`" = xFreeBSD && test 0`uname -r | cut -c 1` -lt 5; then
1998 MULELDFLAGS="$MULELDFLAGS -pthread"
1999 echo "$as_me:$LINENO: result: yes" >&5
2000 echo "${ECHO_T}yes" >&6
2002 else
2004 MULELDFLAGS="$MULELDFLAGS -lpthread"
2005 echo "$as_me:$LINENO: result: no" >&5
2006 echo "${ECHO_T}no" >&6
2016 mule_backup_CFLAGS="$CFLAGS"
2017 mule_backup_CXXFLAGS="$CXXFLAGS"
2018 mule_backup_BUILD_CFLAGS="$BUILD_CFLAGS"
2019 ac_ext=cc
2020 ac_cpp='$CXXCPP $CPPFLAGS'
2021 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2022 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2023 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2024 if test -n "$ac_tool_prefix"; then
2025 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2027 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2028 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2029 echo "$as_me:$LINENO: checking for $ac_word" >&5
2030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2031 if test "${ac_cv_prog_CXX+set}" = set; then
2032 echo $ECHO_N "(cached) $ECHO_C" >&6
2033 else
2034 if test -n "$CXX"; then
2035 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2036 else
2037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2038 for as_dir in $PATH
2040 IFS=$as_save_IFS
2041 test -z "$as_dir" && as_dir=.
2042 for ac_exec_ext in '' $ac_executable_extensions; do
2043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2044 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2046 break 2
2048 done
2049 done
2053 CXX=$ac_cv_prog_CXX
2054 if test -n "$CXX"; then
2055 echo "$as_me:$LINENO: result: $CXX" >&5
2056 echo "${ECHO_T}$CXX" >&6
2057 else
2058 echo "$as_me:$LINENO: result: no" >&5
2059 echo "${ECHO_T}no" >&6
2062 test -n "$CXX" && break
2063 done
2065 if test -z "$CXX"; then
2066 ac_ct_CXX=$CXX
2067 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2069 # Extract the first word of "$ac_prog", so it can be a program name with args.
2070 set dummy $ac_prog; ac_word=$2
2071 echo "$as_me:$LINENO: checking for $ac_word" >&5
2072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2073 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2074 echo $ECHO_N "(cached) $ECHO_C" >&6
2075 else
2076 if test -n "$ac_ct_CXX"; then
2077 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2078 else
2079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2080 for as_dir in $PATH
2082 IFS=$as_save_IFS
2083 test -z "$as_dir" && as_dir=.
2084 for ac_exec_ext in '' $ac_executable_extensions; do
2085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2086 ac_cv_prog_ac_ct_CXX="$ac_prog"
2087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2088 break 2
2090 done
2091 done
2095 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2096 if test -n "$ac_ct_CXX"; then
2097 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2098 echo "${ECHO_T}$ac_ct_CXX" >&6
2099 else
2100 echo "$as_me:$LINENO: result: no" >&5
2101 echo "${ECHO_T}no" >&6
2104 test -n "$ac_ct_CXX" && break
2105 done
2106 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2108 CXX=$ac_ct_CXX
2112 # Provide some information about the compiler.
2113 echo "$as_me:$LINENO:" \
2114 "checking for C++ compiler version" >&5
2115 ac_compiler=`set X $ac_compile; echo $2`
2116 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2117 (eval $ac_compiler --version </dev/null >&5) 2>&5
2118 ac_status=$?
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }
2121 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2122 (eval $ac_compiler -v </dev/null >&5) 2>&5
2123 ac_status=$?
2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 (exit $ac_status); }
2126 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2127 (eval $ac_compiler -V </dev/null >&5) 2>&5
2128 ac_status=$?
2129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130 (exit $ac_status); }
2132 cat >conftest.$ac_ext <<_ACEOF
2133 /* confdefs.h. */
2134 _ACEOF
2135 cat confdefs.h >>conftest.$ac_ext
2136 cat >>conftest.$ac_ext <<_ACEOF
2137 /* end confdefs.h. */
2140 main ()
2144 return 0;
2146 _ACEOF
2147 ac_clean_files_save=$ac_clean_files
2148 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2149 # Try to create an executable without -o first, disregard a.out.
2150 # It will help us diagnose broken compilers, and finding out an intuition
2151 # of exeext.
2152 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2153 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2154 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2155 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2156 (eval $ac_link_default) 2>&5
2157 ac_status=$?
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); }; then
2160 # Find the output, starting from the most likely. This scheme is
2161 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2162 # resort.
2164 # Be careful to initialize this variable, since it used to be cached.
2165 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2166 ac_cv_exeext=
2167 # b.out is created by i960 compilers.
2168 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2170 test -f "$ac_file" || continue
2171 case $ac_file in
2172 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2174 conftest.$ac_ext )
2175 # This is the source file.
2177 [ab].out )
2178 # We found the default executable, but exeext='' is most
2179 # certainly right.
2180 break;;
2181 *.* )
2182 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2183 # FIXME: I believe we export ac_cv_exeext for Libtool,
2184 # but it would be cool to find out if it's true. Does anybody
2185 # maintain Libtool? --akim.
2186 export ac_cv_exeext
2187 break;;
2189 break;;
2190 esac
2191 done
2192 else
2193 echo "$as_me: failed program was:" >&5
2194 sed 's/^/| /' conftest.$ac_ext >&5
2196 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2197 See \`config.log' for more details." >&5
2198 echo "$as_me: error: C++ compiler cannot create executables
2199 See \`config.log' for more details." >&2;}
2200 { (exit 77); exit 77; }; }
2203 ac_exeext=$ac_cv_exeext
2204 echo "$as_me:$LINENO: result: $ac_file" >&5
2205 echo "${ECHO_T}$ac_file" >&6
2207 # Check the compiler produces executables we can run. If not, either
2208 # the compiler is broken, or we cross compile.
2209 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2210 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2211 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2212 # If not cross compiling, check that we can run a simple program.
2213 if test "$cross_compiling" != yes; then
2214 if { ac_try='./$ac_file'
2215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2216 (eval $ac_try) 2>&5
2217 ac_status=$?
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; }; then
2220 cross_compiling=no
2221 else
2222 if test "$cross_compiling" = maybe; then
2223 cross_compiling=yes
2224 else
2225 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2226 If you meant to cross compile, use \`--host'.
2227 See \`config.log' for more details." >&5
2228 echo "$as_me: error: cannot run C++ compiled programs.
2229 If you meant to cross compile, use \`--host'.
2230 See \`config.log' for more details." >&2;}
2231 { (exit 1); exit 1; }; }
2235 echo "$as_me:$LINENO: result: yes" >&5
2236 echo "${ECHO_T}yes" >&6
2238 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2239 ac_clean_files=$ac_clean_files_save
2240 # Check the compiler produces executables we can run. If not, either
2241 # the compiler is broken, or we cross compile.
2242 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2243 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2244 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2245 echo "${ECHO_T}$cross_compiling" >&6
2247 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2248 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2250 (eval $ac_link) 2>&5
2251 ac_status=$?
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); }; then
2254 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2255 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2256 # work properly (i.e., refer to `conftest.exe'), while it won't with
2257 # `rm'.
2258 for ac_file in conftest.exe conftest conftest.*; do
2259 test -f "$ac_file" || continue
2260 case $ac_file in
2261 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2262 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2263 export ac_cv_exeext
2264 break;;
2265 * ) break;;
2266 esac
2267 done
2268 else
2269 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2270 See \`config.log' for more details." >&5
2271 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2272 See \`config.log' for more details." >&2;}
2273 { (exit 1); exit 1; }; }
2276 rm -f conftest$ac_cv_exeext
2277 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2278 echo "${ECHO_T}$ac_cv_exeext" >&6
2280 rm -f conftest.$ac_ext
2281 EXEEXT=$ac_cv_exeext
2282 ac_exeext=$EXEEXT
2283 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2284 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2285 if test "${ac_cv_objext+set}" = set; then
2286 echo $ECHO_N "(cached) $ECHO_C" >&6
2287 else
2288 cat >conftest.$ac_ext <<_ACEOF
2289 /* confdefs.h. */
2290 _ACEOF
2291 cat confdefs.h >>conftest.$ac_ext
2292 cat >>conftest.$ac_ext <<_ACEOF
2293 /* end confdefs.h. */
2296 main ()
2300 return 0;
2302 _ACEOF
2303 rm -f conftest.o conftest.obj
2304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2305 (eval $ac_compile) 2>&5
2306 ac_status=$?
2307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308 (exit $ac_status); }; then
2309 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2310 case $ac_file in
2311 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2312 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2313 break;;
2314 esac
2315 done
2316 else
2317 echo "$as_me: failed program was:" >&5
2318 sed 's/^/| /' conftest.$ac_ext >&5
2320 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2321 See \`config.log' for more details." >&5
2322 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2323 See \`config.log' for more details." >&2;}
2324 { (exit 1); exit 1; }; }
2327 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2329 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2330 echo "${ECHO_T}$ac_cv_objext" >&6
2331 OBJEXT=$ac_cv_objext
2332 ac_objext=$OBJEXT
2333 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2334 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2335 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2336 echo $ECHO_N "(cached) $ECHO_C" >&6
2337 else
2338 cat >conftest.$ac_ext <<_ACEOF
2339 /* confdefs.h. */
2340 _ACEOF
2341 cat confdefs.h >>conftest.$ac_ext
2342 cat >>conftest.$ac_ext <<_ACEOF
2343 /* end confdefs.h. */
2346 main ()
2348 #ifndef __GNUC__
2349 choke me
2350 #endif
2353 return 0;
2355 _ACEOF
2356 rm -f conftest.$ac_objext
2357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2358 (eval $ac_compile) 2>conftest.er1
2359 ac_status=$?
2360 grep -v '^ *+' conftest.er1 >conftest.err
2361 rm -f conftest.er1
2362 cat conftest.err >&5
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); } &&
2365 { ac_try='test -z "$ac_cxx_werror_flag"
2366 || test ! -s conftest.err'
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); }; } &&
2372 { ac_try='test -s conftest.$ac_objext'
2373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2374 (eval $ac_try) 2>&5
2375 ac_status=$?
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); }; }; then
2378 ac_compiler_gnu=yes
2379 else
2380 echo "$as_me: failed program was:" >&5
2381 sed 's/^/| /' conftest.$ac_ext >&5
2383 ac_compiler_gnu=no
2385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2386 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2389 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2390 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2391 GXX=`test $ac_compiler_gnu = yes && echo yes`
2392 ac_test_CXXFLAGS=${CXXFLAGS+set}
2393 ac_save_CXXFLAGS=$CXXFLAGS
2394 CXXFLAGS="-g"
2395 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2396 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2397 if test "${ac_cv_prog_cxx_g+set}" = set; then
2398 echo $ECHO_N "(cached) $ECHO_C" >&6
2399 else
2400 cat >conftest.$ac_ext <<_ACEOF
2401 /* confdefs.h. */
2402 _ACEOF
2403 cat confdefs.h >>conftest.$ac_ext
2404 cat >>conftest.$ac_ext <<_ACEOF
2405 /* end confdefs.h. */
2408 main ()
2412 return 0;
2414 _ACEOF
2415 rm -f conftest.$ac_objext
2416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2417 (eval $ac_compile) 2>conftest.er1
2418 ac_status=$?
2419 grep -v '^ *+' conftest.er1 >conftest.err
2420 rm -f conftest.er1
2421 cat conftest.err >&5
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); } &&
2424 { ac_try='test -z "$ac_cxx_werror_flag"
2425 || test ! -s conftest.err'
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); }; } &&
2431 { ac_try='test -s conftest.$ac_objext'
2432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433 (eval $ac_try) 2>&5
2434 ac_status=$?
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); }; }; then
2437 ac_cv_prog_cxx_g=yes
2438 else
2439 echo "$as_me: failed program was:" >&5
2440 sed 's/^/| /' conftest.$ac_ext >&5
2442 ac_cv_prog_cxx_g=no
2444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2446 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2447 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2448 if test "$ac_test_CXXFLAGS" = set; then
2449 CXXFLAGS=$ac_save_CXXFLAGS
2450 elif test $ac_cv_prog_cxx_g = yes; then
2451 if test "$GXX" = yes; then
2452 CXXFLAGS="-g -O2"
2453 else
2454 CXXFLAGS="-g"
2456 else
2457 if test "$GXX" = yes; then
2458 CXXFLAGS="-O2"
2459 else
2460 CXXFLAGS=
2463 for ac_declaration in \
2464 '' \
2465 'extern "C" void std::exit (int) throw (); using std::exit;' \
2466 'extern "C" void std::exit (int); using std::exit;' \
2467 'extern "C" void exit (int) throw ();' \
2468 'extern "C" void exit (int);' \
2469 'void exit (int);'
2471 cat >conftest.$ac_ext <<_ACEOF
2472 /* confdefs.h. */
2473 _ACEOF
2474 cat confdefs.h >>conftest.$ac_ext
2475 cat >>conftest.$ac_ext <<_ACEOF
2476 /* end confdefs.h. */
2477 $ac_declaration
2478 #include <stdlib.h>
2480 main ()
2482 exit (42);
2484 return 0;
2486 _ACEOF
2487 rm -f conftest.$ac_objext
2488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2489 (eval $ac_compile) 2>conftest.er1
2490 ac_status=$?
2491 grep -v '^ *+' conftest.er1 >conftest.err
2492 rm -f conftest.er1
2493 cat conftest.err >&5
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); } &&
2496 { ac_try='test -z "$ac_cxx_werror_flag"
2497 || test ! -s conftest.err'
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); }; } &&
2503 { ac_try='test -s conftest.$ac_objext'
2504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2505 (eval $ac_try) 2>&5
2506 ac_status=$?
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }; }; then
2510 else
2511 echo "$as_me: failed program was:" >&5
2512 sed 's/^/| /' conftest.$ac_ext >&5
2514 continue
2516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2517 cat >conftest.$ac_ext <<_ACEOF
2518 /* confdefs.h. */
2519 _ACEOF
2520 cat confdefs.h >>conftest.$ac_ext
2521 cat >>conftest.$ac_ext <<_ACEOF
2522 /* end confdefs.h. */
2523 $ac_declaration
2525 main ()
2527 exit (42);
2529 return 0;
2531 _ACEOF
2532 rm -f conftest.$ac_objext
2533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2534 (eval $ac_compile) 2>conftest.er1
2535 ac_status=$?
2536 grep -v '^ *+' conftest.er1 >conftest.err
2537 rm -f conftest.er1
2538 cat conftest.err >&5
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); } &&
2541 { ac_try='test -z "$ac_cxx_werror_flag"
2542 || test ! -s conftest.err'
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); }; } &&
2548 { ac_try='test -s conftest.$ac_objext'
2549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2550 (eval $ac_try) 2>&5
2551 ac_status=$?
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); }; }; then
2554 break
2555 else
2556 echo "$as_me: failed program was:" >&5
2557 sed 's/^/| /' conftest.$ac_ext >&5
2560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2561 done
2562 rm -f conftest*
2563 if test -n "$ac_declaration"; then
2564 echo '#ifdef __cplusplus' >>confdefs.h
2565 echo $ac_declaration >>confdefs.h
2566 echo '#endif' >>confdefs.h
2569 ac_ext=c
2570 ac_cpp='$CPP $CPPFLAGS'
2571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2574 DEPDIR="${am__leading_dot}deps"
2576 ac_config_commands="$ac_config_commands depfiles"
2579 am_make=${MAKE-make}
2580 cat > confinc << 'END'
2581 am__doit:
2582 @echo done
2583 .PHONY: am__doit
2585 # If we don't find an include directive, just comment out the code.
2586 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2587 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2588 am__include="#"
2589 am__quote=
2590 _am_result=none
2591 # First try GNU make style include.
2592 echo "include confinc" > confmf
2593 # We grep out `Entering directory' and `Leaving directory'
2594 # messages which can occur if `w' ends up in MAKEFLAGS.
2595 # In particular we don't look at `^make:' because GNU make might
2596 # be invoked under some other name (usually "gmake"), in which
2597 # case it prints its new name instead of `make'.
2598 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2599 am__include=include
2600 am__quote=
2601 _am_result=GNU
2603 # Now try BSD make style include.
2604 if test "$am__include" = "#"; then
2605 echo '.include "confinc"' > confmf
2606 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2607 am__include=.include
2608 am__quote="\""
2609 _am_result=BSD
2614 echo "$as_me:$LINENO: result: $_am_result" >&5
2615 echo "${ECHO_T}$_am_result" >&6
2616 rm -f confinc confmf
2618 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2619 if test "${enable_dependency_tracking+set}" = set; then
2620 enableval="$enable_dependency_tracking"
2623 if test "x$enable_dependency_tracking" != xno; then
2624 am_depcomp="$ac_aux_dir/depcomp"
2625 AMDEPBACKSLASH='\'
2629 if test "x$enable_dependency_tracking" != xno; then
2630 AMDEP_TRUE=
2631 AMDEP_FALSE='#'
2632 else
2633 AMDEP_TRUE='#'
2634 AMDEP_FALSE=
2640 depcc="$CXX" am_compiler_list=
2642 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2643 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2644 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2645 echo $ECHO_N "(cached) $ECHO_C" >&6
2646 else
2647 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2648 # We make a subdir and do the tests there. Otherwise we can end up
2649 # making bogus files that we don't know about and never remove. For
2650 # instance it was reported that on HP-UX the gcc test will end up
2651 # making a dummy file named `D' -- because `-MD' means `put the output
2652 # in D'.
2653 mkdir conftest.dir
2654 # Copy depcomp to subdir because otherwise we won't find it if we're
2655 # using a relative directory.
2656 cp "$am_depcomp" conftest.dir
2657 cd conftest.dir
2658 # We will build objects and dependencies in a subdirectory because
2659 # it helps to detect inapplicable dependency modes. For instance
2660 # both Tru64's cc and ICC support -MD to output dependencies as a
2661 # side effect of compilation, but ICC will put the dependencies in
2662 # the current directory while Tru64 will put them in the object
2663 # directory.
2664 mkdir sub
2666 am_cv_CXX_dependencies_compiler_type=none
2667 if test "$am_compiler_list" = ""; then
2668 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2670 for depmode in $am_compiler_list; do
2671 # Setup a source with many dependencies, because some compilers
2672 # like to wrap large dependency lists on column 80 (with \), and
2673 # we should not choose a depcomp mode which is confused by this.
2675 # We need to recreate these files for each test, as the compiler may
2676 # overwrite some of them when testing with obscure command lines.
2677 # This happens at least with the AIX C compiler.
2678 : > sub/conftest.c
2679 for i in 1 2 3 4 5 6; do
2680 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2681 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2682 # Solaris 8's {/usr,}/bin/sh.
2683 touch sub/conftst$i.h
2684 done
2685 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2687 case $depmode in
2688 nosideeffect)
2689 # after this tag, mechanisms are not by side-effect, so they'll
2690 # only be used when explicitly requested
2691 if test "x$enable_dependency_tracking" = xyes; then
2692 continue
2693 else
2694 break
2697 none) break ;;
2698 esac
2699 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2700 # mode. It turns out that the SunPro C++ compiler does not properly
2701 # handle `-M -o', and we need to detect this.
2702 if depmode=$depmode \
2703 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2704 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2705 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2706 >/dev/null 2>conftest.err &&
2707 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2708 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2709 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2710 # icc doesn't choke on unknown options, it will just issue warnings
2711 # or remarks (even with -Werror). So we grep stderr for any message
2712 # that says an option was ignored or not supported.
2713 # When given -MP, icc 7.0 and 7.1 complain thusly:
2714 # icc: Command line warning: ignoring option '-M'; no argument required
2715 # The diagnosis changed in icc 8.0:
2716 # icc: Command line remark: option '-MP' not supported
2717 if (grep 'ignoring option' conftest.err ||
2718 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2719 am_cv_CXX_dependencies_compiler_type=$depmode
2720 break
2723 done
2725 cd ..
2726 rm -rf conftest.dir
2727 else
2728 am_cv_CXX_dependencies_compiler_type=none
2732 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2733 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2734 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2739 test "x$enable_dependency_tracking" != xno \
2740 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2741 am__fastdepCXX_TRUE=
2742 am__fastdepCXX_FALSE='#'
2743 else
2744 am__fastdepCXX_TRUE='#'
2745 am__fastdepCXX_FALSE=
2749 ac_ext=cc
2750 ac_cpp='$CXXCPP $CPPFLAGS'
2751 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2752 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2753 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2754 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2755 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2756 if test -z "$CXXCPP"; then
2757 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2758 echo $ECHO_N "(cached) $ECHO_C" >&6
2759 else
2760 # Double quotes because CXXCPP needs to be expanded
2761 for CXXCPP in "$CXX -E" "/lib/cpp"
2763 ac_preproc_ok=false
2764 for ac_cxx_preproc_warn_flag in '' yes
2766 # Use a header file that comes with gcc, so configuring glibc
2767 # with a fresh cross-compiler works.
2768 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2769 # <limits.h> exists even on freestanding compilers.
2770 # On the NeXT, cc -E runs the code through the compiler's parser,
2771 # not just through cpp. "Syntax error" is here to catch this case.
2772 cat >conftest.$ac_ext <<_ACEOF
2773 /* confdefs.h. */
2774 _ACEOF
2775 cat confdefs.h >>conftest.$ac_ext
2776 cat >>conftest.$ac_ext <<_ACEOF
2777 /* end confdefs.h. */
2778 #ifdef __STDC__
2779 # include <limits.h>
2780 #else
2781 # include <assert.h>
2782 #endif
2783 Syntax error
2784 _ACEOF
2785 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2786 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2787 ac_status=$?
2788 grep -v '^ *+' conftest.er1 >conftest.err
2789 rm -f conftest.er1
2790 cat conftest.err >&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); } >/dev/null; then
2793 if test -s conftest.err; then
2794 ac_cpp_err=$ac_cxx_preproc_warn_flag
2795 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2796 else
2797 ac_cpp_err=
2799 else
2800 ac_cpp_err=yes
2802 if test -z "$ac_cpp_err"; then
2804 else
2805 echo "$as_me: failed program was:" >&5
2806 sed 's/^/| /' conftest.$ac_ext >&5
2808 # Broken: fails on valid input.
2809 continue
2811 rm -f conftest.err conftest.$ac_ext
2813 # OK, works on sane cases. Now check whether non-existent headers
2814 # can be detected and how.
2815 cat >conftest.$ac_ext <<_ACEOF
2816 /* confdefs.h. */
2817 _ACEOF
2818 cat confdefs.h >>conftest.$ac_ext
2819 cat >>conftest.$ac_ext <<_ACEOF
2820 /* end confdefs.h. */
2821 #include <ac_nonexistent.h>
2822 _ACEOF
2823 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2824 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2825 ac_status=$?
2826 grep -v '^ *+' conftest.er1 >conftest.err
2827 rm -f conftest.er1
2828 cat conftest.err >&5
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); } >/dev/null; then
2831 if test -s conftest.err; then
2832 ac_cpp_err=$ac_cxx_preproc_warn_flag
2833 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2834 else
2835 ac_cpp_err=
2837 else
2838 ac_cpp_err=yes
2840 if test -z "$ac_cpp_err"; then
2841 # Broken: success on invalid input.
2842 continue
2843 else
2844 echo "$as_me: failed program was:" >&5
2845 sed 's/^/| /' conftest.$ac_ext >&5
2847 # Passes both tests.
2848 ac_preproc_ok=:
2849 break
2851 rm -f conftest.err conftest.$ac_ext
2853 done
2854 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2855 rm -f conftest.err conftest.$ac_ext
2856 if $ac_preproc_ok; then
2857 break
2860 done
2861 ac_cv_prog_CXXCPP=$CXXCPP
2864 CXXCPP=$ac_cv_prog_CXXCPP
2865 else
2866 ac_cv_prog_CXXCPP=$CXXCPP
2868 echo "$as_me:$LINENO: result: $CXXCPP" >&5
2869 echo "${ECHO_T}$CXXCPP" >&6
2870 ac_preproc_ok=false
2871 for ac_cxx_preproc_warn_flag in '' yes
2873 # Use a header file that comes with gcc, so configuring glibc
2874 # with a fresh cross-compiler works.
2875 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2876 # <limits.h> exists even on freestanding compilers.
2877 # On the NeXT, cc -E runs the code through the compiler's parser,
2878 # not just through cpp. "Syntax error" is here to catch this case.
2879 cat >conftest.$ac_ext <<_ACEOF
2880 /* confdefs.h. */
2881 _ACEOF
2882 cat confdefs.h >>conftest.$ac_ext
2883 cat >>conftest.$ac_ext <<_ACEOF
2884 /* end confdefs.h. */
2885 #ifdef __STDC__
2886 # include <limits.h>
2887 #else
2888 # include <assert.h>
2889 #endif
2890 Syntax error
2891 _ACEOF
2892 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2893 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2894 ac_status=$?
2895 grep -v '^ *+' conftest.er1 >conftest.err
2896 rm -f conftest.er1
2897 cat conftest.err >&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); } >/dev/null; then
2900 if test -s conftest.err; then
2901 ac_cpp_err=$ac_cxx_preproc_warn_flag
2902 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2903 else
2904 ac_cpp_err=
2906 else
2907 ac_cpp_err=yes
2909 if test -z "$ac_cpp_err"; then
2911 else
2912 echo "$as_me: failed program was:" >&5
2913 sed 's/^/| /' conftest.$ac_ext >&5
2915 # Broken: fails on valid input.
2916 continue
2918 rm -f conftest.err conftest.$ac_ext
2920 # OK, works on sane cases. Now check whether non-existent headers
2921 # can be detected and how.
2922 cat >conftest.$ac_ext <<_ACEOF
2923 /* confdefs.h. */
2924 _ACEOF
2925 cat confdefs.h >>conftest.$ac_ext
2926 cat >>conftest.$ac_ext <<_ACEOF
2927 /* end confdefs.h. */
2928 #include <ac_nonexistent.h>
2929 _ACEOF
2930 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2931 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2932 ac_status=$?
2933 grep -v '^ *+' conftest.er1 >conftest.err
2934 rm -f conftest.er1
2935 cat conftest.err >&5
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); } >/dev/null; then
2938 if test -s conftest.err; then
2939 ac_cpp_err=$ac_cxx_preproc_warn_flag
2940 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2941 else
2942 ac_cpp_err=
2944 else
2945 ac_cpp_err=yes
2947 if test -z "$ac_cpp_err"; then
2948 # Broken: success on invalid input.
2949 continue
2950 else
2951 echo "$as_me: failed program was:" >&5
2952 sed 's/^/| /' conftest.$ac_ext >&5
2954 # Passes both tests.
2955 ac_preproc_ok=:
2956 break
2958 rm -f conftest.err conftest.$ac_ext
2960 done
2961 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2962 rm -f conftest.err conftest.$ac_ext
2963 if $ac_preproc_ok; then
2965 else
2966 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2967 See \`config.log' for more details." >&5
2968 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2969 See \`config.log' for more details." >&2;}
2970 { (exit 1); exit 1; }; }
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
2979 ac_ext=c
2980 ac_cpp='$CPP $CPPFLAGS'
2981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2984 if test -n "$ac_tool_prefix"; then
2985 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2986 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2987 echo "$as_me:$LINENO: checking for $ac_word" >&5
2988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2989 if test "${ac_cv_prog_CC+set}" = set; then
2990 echo $ECHO_N "(cached) $ECHO_C" >&6
2991 else
2992 if test -n "$CC"; then
2993 ac_cv_prog_CC="$CC" # Let the user override the test.
2994 else
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 for as_dir in $PATH
2998 IFS=$as_save_IFS
2999 test -z "$as_dir" && as_dir=.
3000 for ac_exec_ext in '' $ac_executable_extensions; do
3001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3002 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3004 break 2
3006 done
3007 done
3011 CC=$ac_cv_prog_CC
3012 if test -n "$CC"; then
3013 echo "$as_me:$LINENO: result: $CC" >&5
3014 echo "${ECHO_T}$CC" >&6
3015 else
3016 echo "$as_me:$LINENO: result: no" >&5
3017 echo "${ECHO_T}no" >&6
3021 if test -z "$ac_cv_prog_CC"; then
3022 ac_ct_CC=$CC
3023 # Extract the first word of "gcc", so it can be a program name with args.
3024 set dummy gcc; ac_word=$2
3025 echo "$as_me:$LINENO: checking for $ac_word" >&5
3026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3027 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3028 echo $ECHO_N "(cached) $ECHO_C" >&6
3029 else
3030 if test -n "$ac_ct_CC"; then
3031 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3032 else
3033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 for as_dir in $PATH
3036 IFS=$as_save_IFS
3037 test -z "$as_dir" && as_dir=.
3038 for ac_exec_ext in '' $ac_executable_extensions; do
3039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3040 ac_cv_prog_ac_ct_CC="gcc"
3041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3042 break 2
3044 done
3045 done
3049 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3050 if test -n "$ac_ct_CC"; then
3051 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3052 echo "${ECHO_T}$ac_ct_CC" >&6
3053 else
3054 echo "$as_me:$LINENO: result: no" >&5
3055 echo "${ECHO_T}no" >&6
3058 CC=$ac_ct_CC
3059 else
3060 CC="$ac_cv_prog_CC"
3063 if test -z "$CC"; then
3064 if test -n "$ac_tool_prefix"; then
3065 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3066 set dummy ${ac_tool_prefix}cc; ac_word=$2
3067 echo "$as_me:$LINENO: checking for $ac_word" >&5
3068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3069 if test "${ac_cv_prog_CC+set}" = set; then
3070 echo $ECHO_N "(cached) $ECHO_C" >&6
3071 else
3072 if test -n "$CC"; then
3073 ac_cv_prog_CC="$CC" # Let the user override the test.
3074 else
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 for as_dir in $PATH
3078 IFS=$as_save_IFS
3079 test -z "$as_dir" && as_dir=.
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3082 ac_cv_prog_CC="${ac_tool_prefix}cc"
3083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3084 break 2
3086 done
3087 done
3091 CC=$ac_cv_prog_CC
3092 if test -n "$CC"; then
3093 echo "$as_me:$LINENO: result: $CC" >&5
3094 echo "${ECHO_T}$CC" >&6
3095 else
3096 echo "$as_me:$LINENO: result: no" >&5
3097 echo "${ECHO_T}no" >&6
3101 if test -z "$ac_cv_prog_CC"; then
3102 ac_ct_CC=$CC
3103 # Extract the first word of "cc", so it can be a program name with args.
3104 set dummy cc; ac_word=$2
3105 echo "$as_me:$LINENO: checking for $ac_word" >&5
3106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3107 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3108 echo $ECHO_N "(cached) $ECHO_C" >&6
3109 else
3110 if test -n "$ac_ct_CC"; then
3111 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3112 else
3113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114 for as_dir in $PATH
3116 IFS=$as_save_IFS
3117 test -z "$as_dir" && as_dir=.
3118 for ac_exec_ext in '' $ac_executable_extensions; do
3119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3120 ac_cv_prog_ac_ct_CC="cc"
3121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3122 break 2
3124 done
3125 done
3129 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3130 if test -n "$ac_ct_CC"; then
3131 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3132 echo "${ECHO_T}$ac_ct_CC" >&6
3133 else
3134 echo "$as_me:$LINENO: result: no" >&5
3135 echo "${ECHO_T}no" >&6
3138 CC=$ac_ct_CC
3139 else
3140 CC="$ac_cv_prog_CC"
3144 if test -z "$CC"; then
3145 # Extract the first word of "cc", so it can be a program name with args.
3146 set dummy cc; ac_word=$2
3147 echo "$as_me:$LINENO: checking for $ac_word" >&5
3148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3149 if test "${ac_cv_prog_CC+set}" = set; then
3150 echo $ECHO_N "(cached) $ECHO_C" >&6
3151 else
3152 if test -n "$CC"; then
3153 ac_cv_prog_CC="$CC" # Let the user override the test.
3154 else
3155 ac_prog_rejected=no
3156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3157 for as_dir in $PATH
3159 IFS=$as_save_IFS
3160 test -z "$as_dir" && as_dir=.
3161 for ac_exec_ext in '' $ac_executable_extensions; do
3162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3163 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3164 ac_prog_rejected=yes
3165 continue
3167 ac_cv_prog_CC="cc"
3168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3169 break 2
3171 done
3172 done
3174 if test $ac_prog_rejected = yes; then
3175 # We found a bogon in the path, so make sure we never use it.
3176 set dummy $ac_cv_prog_CC
3177 shift
3178 if test $# != 0; then
3179 # We chose a different compiler from the bogus one.
3180 # However, it has the same basename, so the bogon will be chosen
3181 # first if we set CC to just the basename; use the full file name.
3182 shift
3183 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3188 CC=$ac_cv_prog_CC
3189 if test -n "$CC"; then
3190 echo "$as_me:$LINENO: result: $CC" >&5
3191 echo "${ECHO_T}$CC" >&6
3192 else
3193 echo "$as_me:$LINENO: result: no" >&5
3194 echo "${ECHO_T}no" >&6
3198 if test -z "$CC"; then
3199 if test -n "$ac_tool_prefix"; then
3200 for ac_prog in cl
3202 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3203 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3204 echo "$as_me:$LINENO: checking for $ac_word" >&5
3205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3206 if test "${ac_cv_prog_CC+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3208 else
3209 if test -n "$CC"; then
3210 ac_cv_prog_CC="$CC" # Let the user override the test.
3211 else
3212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213 for as_dir in $PATH
3215 IFS=$as_save_IFS
3216 test -z "$as_dir" && as_dir=.
3217 for ac_exec_ext in '' $ac_executable_extensions; do
3218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3219 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3221 break 2
3223 done
3224 done
3228 CC=$ac_cv_prog_CC
3229 if test -n "$CC"; then
3230 echo "$as_me:$LINENO: result: $CC" >&5
3231 echo "${ECHO_T}$CC" >&6
3232 else
3233 echo "$as_me:$LINENO: result: no" >&5
3234 echo "${ECHO_T}no" >&6
3237 test -n "$CC" && break
3238 done
3240 if test -z "$CC"; then
3241 ac_ct_CC=$CC
3242 for ac_prog in cl
3244 # Extract the first word of "$ac_prog", so it can be a program name with args.
3245 set dummy $ac_prog; ac_word=$2
3246 echo "$as_me:$LINENO: checking for $ac_word" >&5
3247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3248 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3250 else
3251 if test -n "$ac_ct_CC"; then
3252 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3253 else
3254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255 for as_dir in $PATH
3257 IFS=$as_save_IFS
3258 test -z "$as_dir" && as_dir=.
3259 for ac_exec_ext in '' $ac_executable_extensions; do
3260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3261 ac_cv_prog_ac_ct_CC="$ac_prog"
3262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3263 break 2
3265 done
3266 done
3270 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3271 if test -n "$ac_ct_CC"; then
3272 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3273 echo "${ECHO_T}$ac_ct_CC" >&6
3274 else
3275 echo "$as_me:$LINENO: result: no" >&5
3276 echo "${ECHO_T}no" >&6
3279 test -n "$ac_ct_CC" && break
3280 done
3282 CC=$ac_ct_CC
3288 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3289 See \`config.log' for more details." >&5
3290 echo "$as_me: error: no acceptable C compiler found in \$PATH
3291 See \`config.log' for more details." >&2;}
3292 { (exit 1); exit 1; }; }
3294 # Provide some information about the compiler.
3295 echo "$as_me:$LINENO:" \
3296 "checking for C compiler version" >&5
3297 ac_compiler=`set X $ac_compile; echo $2`
3298 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3299 (eval $ac_compiler --version </dev/null >&5) 2>&5
3300 ac_status=$?
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); }
3303 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3304 (eval $ac_compiler -v </dev/null >&5) 2>&5
3305 ac_status=$?
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); }
3308 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3309 (eval $ac_compiler -V </dev/null >&5) 2>&5
3310 ac_status=$?
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); }
3314 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3315 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3316 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3318 else
3319 cat >conftest.$ac_ext <<_ACEOF
3320 /* confdefs.h. */
3321 _ACEOF
3322 cat confdefs.h >>conftest.$ac_ext
3323 cat >>conftest.$ac_ext <<_ACEOF
3324 /* end confdefs.h. */
3327 main ()
3329 #ifndef __GNUC__
3330 choke me
3331 #endif
3334 return 0;
3336 _ACEOF
3337 rm -f conftest.$ac_objext
3338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3339 (eval $ac_compile) 2>conftest.er1
3340 ac_status=$?
3341 grep -v '^ *+' conftest.er1 >conftest.err
3342 rm -f conftest.er1
3343 cat conftest.err >&5
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); } &&
3346 { ac_try='test -z "$ac_c_werror_flag"
3347 || test ! -s conftest.err'
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); }; } &&
3353 { ac_try='test -s conftest.$ac_objext'
3354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3355 (eval $ac_try) 2>&5
3356 ac_status=$?
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); }; }; then
3359 ac_compiler_gnu=yes
3360 else
3361 echo "$as_me: failed program was:" >&5
3362 sed 's/^/| /' conftest.$ac_ext >&5
3364 ac_compiler_gnu=no
3366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3367 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3370 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3371 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3372 GCC=`test $ac_compiler_gnu = yes && echo yes`
3373 ac_test_CFLAGS=${CFLAGS+set}
3374 ac_save_CFLAGS=$CFLAGS
3375 CFLAGS="-g"
3376 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3377 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3378 if test "${ac_cv_prog_cc_g+set}" = set; then
3379 echo $ECHO_N "(cached) $ECHO_C" >&6
3380 else
3381 cat >conftest.$ac_ext <<_ACEOF
3382 /* confdefs.h. */
3383 _ACEOF
3384 cat confdefs.h >>conftest.$ac_ext
3385 cat >>conftest.$ac_ext <<_ACEOF
3386 /* end confdefs.h. */
3389 main ()
3393 return 0;
3395 _ACEOF
3396 rm -f conftest.$ac_objext
3397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3398 (eval $ac_compile) 2>conftest.er1
3399 ac_status=$?
3400 grep -v '^ *+' conftest.er1 >conftest.err
3401 rm -f conftest.er1
3402 cat conftest.err >&5
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); } &&
3405 { ac_try='test -z "$ac_c_werror_flag"
3406 || test ! -s conftest.err'
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); }; } &&
3412 { ac_try='test -s conftest.$ac_objext'
3413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3414 (eval $ac_try) 2>&5
3415 ac_status=$?
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); }; }; then
3418 ac_cv_prog_cc_g=yes
3419 else
3420 echo "$as_me: failed program was:" >&5
3421 sed 's/^/| /' conftest.$ac_ext >&5
3423 ac_cv_prog_cc_g=no
3425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3427 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3428 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3429 if test "$ac_test_CFLAGS" = set; then
3430 CFLAGS=$ac_save_CFLAGS
3431 elif test $ac_cv_prog_cc_g = yes; then
3432 if test "$GCC" = yes; then
3433 CFLAGS="-g -O2"
3434 else
3435 CFLAGS="-g"
3437 else
3438 if test "$GCC" = yes; then
3439 CFLAGS="-O2"
3440 else
3441 CFLAGS=
3444 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3445 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3446 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3447 echo $ECHO_N "(cached) $ECHO_C" >&6
3448 else
3449 ac_cv_prog_cc_stdc=no
3450 ac_save_CC=$CC
3451 cat >conftest.$ac_ext <<_ACEOF
3452 /* confdefs.h. */
3453 _ACEOF
3454 cat confdefs.h >>conftest.$ac_ext
3455 cat >>conftest.$ac_ext <<_ACEOF
3456 /* end confdefs.h. */
3457 #include <stdarg.h>
3458 #include <stdio.h>
3459 #include <sys/types.h>
3460 #include <sys/stat.h>
3461 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3462 struct buf { int x; };
3463 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3464 static char *e (p, i)
3465 char **p;
3466 int i;
3468 return p[i];
3470 static char *f (char * (*g) (char **, int), char **p, ...)
3472 char *s;
3473 va_list v;
3474 va_start (v,p);
3475 s = g (p, va_arg (v,int));
3476 va_end (v);
3477 return s;
3480 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3481 function prototypes and stuff, but not '\xHH' hex character constants.
3482 These don't provoke an error unfortunately, instead are silently treated
3483 as 'x'. The following induces an error, until -std1 is added to get
3484 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3485 array size at least. It's necessary to write '\x00'==0 to get something
3486 that's true only with -std1. */
3487 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3489 int test (int i, double x);
3490 struct s1 {int (*f) (int a);};
3491 struct s2 {int (*f) (double a);};
3492 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3493 int argc;
3494 char **argv;
3496 main ()
3498 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3500 return 0;
3502 _ACEOF
3503 # Don't try gcc -ansi; that turns off useful extensions and
3504 # breaks some systems' header files.
3505 # AIX -qlanglvl=ansi
3506 # Ultrix and OSF/1 -std1
3507 # HP-UX 10.20 and later -Ae
3508 # HP-UX older versions -Aa -D_HPUX_SOURCE
3509 # SVR4 -Xc -D__EXTENSIONS__
3510 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3512 CC="$ac_save_CC $ac_arg"
3513 rm -f conftest.$ac_objext
3514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3515 (eval $ac_compile) 2>conftest.er1
3516 ac_status=$?
3517 grep -v '^ *+' conftest.er1 >conftest.err
3518 rm -f conftest.er1
3519 cat conftest.err >&5
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); } &&
3522 { ac_try='test -z "$ac_c_werror_flag"
3523 || test ! -s conftest.err'
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); }; } &&
3529 { ac_try='test -s conftest.$ac_objext'
3530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3531 (eval $ac_try) 2>&5
3532 ac_status=$?
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); }; }; then
3535 ac_cv_prog_cc_stdc=$ac_arg
3536 break
3537 else
3538 echo "$as_me: failed program was:" >&5
3539 sed 's/^/| /' conftest.$ac_ext >&5
3542 rm -f conftest.err conftest.$ac_objext
3543 done
3544 rm -f conftest.$ac_ext conftest.$ac_objext
3545 CC=$ac_save_CC
3549 case "x$ac_cv_prog_cc_stdc" in
3550 x|xno)
3551 echo "$as_me:$LINENO: result: none needed" >&5
3552 echo "${ECHO_T}none needed" >&6 ;;
3554 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3555 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3556 CC="$CC $ac_cv_prog_cc_stdc" ;;
3557 esac
3559 # Some people use a C++ compiler to compile C. Since we use `exit',
3560 # in C++ we need to declare it. In case someone uses the same compiler
3561 # for both compiling C and C++ we need to have the C++ compiler decide
3562 # the declaration of exit, since it's the most demanding environment.
3563 cat >conftest.$ac_ext <<_ACEOF
3564 #ifndef __cplusplus
3565 choke me
3566 #endif
3567 _ACEOF
3568 rm -f conftest.$ac_objext
3569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3570 (eval $ac_compile) 2>conftest.er1
3571 ac_status=$?
3572 grep -v '^ *+' conftest.er1 >conftest.err
3573 rm -f conftest.er1
3574 cat conftest.err >&5
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); } &&
3577 { ac_try='test -z "$ac_c_werror_flag"
3578 || test ! -s conftest.err'
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); }; } &&
3584 { ac_try='test -s conftest.$ac_objext'
3585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3586 (eval $ac_try) 2>&5
3587 ac_status=$?
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); }; }; then
3590 for ac_declaration in \
3591 '' \
3592 'extern "C" void std::exit (int) throw (); using std::exit;' \
3593 'extern "C" void std::exit (int); using std::exit;' \
3594 'extern "C" void exit (int) throw ();' \
3595 'extern "C" void exit (int);' \
3596 'void exit (int);'
3598 cat >conftest.$ac_ext <<_ACEOF
3599 /* confdefs.h. */
3600 _ACEOF
3601 cat confdefs.h >>conftest.$ac_ext
3602 cat >>conftest.$ac_ext <<_ACEOF
3603 /* end confdefs.h. */
3604 $ac_declaration
3605 #include <stdlib.h>
3607 main ()
3609 exit (42);
3611 return 0;
3613 _ACEOF
3614 rm -f conftest.$ac_objext
3615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3616 (eval $ac_compile) 2>conftest.er1
3617 ac_status=$?
3618 grep -v '^ *+' conftest.er1 >conftest.err
3619 rm -f conftest.er1
3620 cat conftest.err >&5
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); } &&
3623 { ac_try='test -z "$ac_c_werror_flag"
3624 || test ! -s conftest.err'
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); }; } &&
3630 { ac_try='test -s conftest.$ac_objext'
3631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3632 (eval $ac_try) 2>&5
3633 ac_status=$?
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); }; }; then
3637 else
3638 echo "$as_me: failed program was:" >&5
3639 sed 's/^/| /' conftest.$ac_ext >&5
3641 continue
3643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3644 cat >conftest.$ac_ext <<_ACEOF
3645 /* confdefs.h. */
3646 _ACEOF
3647 cat confdefs.h >>conftest.$ac_ext
3648 cat >>conftest.$ac_ext <<_ACEOF
3649 /* end confdefs.h. */
3650 $ac_declaration
3652 main ()
3654 exit (42);
3656 return 0;
3658 _ACEOF
3659 rm -f conftest.$ac_objext
3660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3661 (eval $ac_compile) 2>conftest.er1
3662 ac_status=$?
3663 grep -v '^ *+' conftest.er1 >conftest.err
3664 rm -f conftest.er1
3665 cat conftest.err >&5
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); } &&
3668 { ac_try='test -z "$ac_c_werror_flag"
3669 || test ! -s conftest.err'
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); }; } &&
3675 { ac_try='test -s conftest.$ac_objext'
3676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3677 (eval $ac_try) 2>&5
3678 ac_status=$?
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); }; }; then
3681 break
3682 else
3683 echo "$as_me: failed program was:" >&5
3684 sed 's/^/| /' conftest.$ac_ext >&5
3687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3688 done
3689 rm -f conftest*
3690 if test -n "$ac_declaration"; then
3691 echo '#ifdef __cplusplus' >>confdefs.h
3692 echo $ac_declaration >>confdefs.h
3693 echo '#endif' >>confdefs.h
3696 else
3697 echo "$as_me: failed program was:" >&5
3698 sed 's/^/| /' conftest.$ac_ext >&5
3701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3702 ac_ext=c
3703 ac_cpp='$CPP $CPPFLAGS'
3704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3708 depcc="$CC" am_compiler_list=
3710 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3711 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3712 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3713 echo $ECHO_N "(cached) $ECHO_C" >&6
3714 else
3715 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3716 # We make a subdir and do the tests there. Otherwise we can end up
3717 # making bogus files that we don't know about and never remove. For
3718 # instance it was reported that on HP-UX the gcc test will end up
3719 # making a dummy file named `D' -- because `-MD' means `put the output
3720 # in D'.
3721 mkdir conftest.dir
3722 # Copy depcomp to subdir because otherwise we won't find it if we're
3723 # using a relative directory.
3724 cp "$am_depcomp" conftest.dir
3725 cd conftest.dir
3726 # We will build objects and dependencies in a subdirectory because
3727 # it helps to detect inapplicable dependency modes. For instance
3728 # both Tru64's cc and ICC support -MD to output dependencies as a
3729 # side effect of compilation, but ICC will put the dependencies in
3730 # the current directory while Tru64 will put them in the object
3731 # directory.
3732 mkdir sub
3734 am_cv_CC_dependencies_compiler_type=none
3735 if test "$am_compiler_list" = ""; then
3736 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3738 for depmode in $am_compiler_list; do
3739 # Setup a source with many dependencies, because some compilers
3740 # like to wrap large dependency lists on column 80 (with \), and
3741 # we should not choose a depcomp mode which is confused by this.
3743 # We need to recreate these files for each test, as the compiler may
3744 # overwrite some of them when testing with obscure command lines.
3745 # This happens at least with the AIX C compiler.
3746 : > sub/conftest.c
3747 for i in 1 2 3 4 5 6; do
3748 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3749 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3750 # Solaris 8's {/usr,}/bin/sh.
3751 touch sub/conftst$i.h
3752 done
3753 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3755 case $depmode in
3756 nosideeffect)
3757 # after this tag, mechanisms are not by side-effect, so they'll
3758 # only be used when explicitly requested
3759 if test "x$enable_dependency_tracking" = xyes; then
3760 continue
3761 else
3762 break
3765 none) break ;;
3766 esac
3767 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3768 # mode. It turns out that the SunPro C++ compiler does not properly
3769 # handle `-M -o', and we need to detect this.
3770 if depmode=$depmode \
3771 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3772 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3773 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3774 >/dev/null 2>conftest.err &&
3775 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3776 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3777 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3778 # icc doesn't choke on unknown options, it will just issue warnings
3779 # or remarks (even with -Werror). So we grep stderr for any message
3780 # that says an option was ignored or not supported.
3781 # When given -MP, icc 7.0 and 7.1 complain thusly:
3782 # icc: Command line warning: ignoring option '-M'; no argument required
3783 # The diagnosis changed in icc 8.0:
3784 # icc: Command line remark: option '-MP' not supported
3785 if (grep 'ignoring option' conftest.err ||
3786 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3787 am_cv_CC_dependencies_compiler_type=$depmode
3788 break
3791 done
3793 cd ..
3794 rm -rf conftest.dir
3795 else
3796 am_cv_CC_dependencies_compiler_type=none
3800 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3801 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3802 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3807 test "x$enable_dependency_tracking" != xno \
3808 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3809 am__fastdepCC_TRUE=
3810 am__fastdepCC_FALSE='#'
3811 else
3812 am__fastdepCC_TRUE='#'
3813 am__fastdepCC_FALSE=
3817 ac_ext=c
3818 ac_cpp='$CPP $CPPFLAGS'
3819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3822 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3823 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3824 # On Suns, sometimes $CPP names a directory.
3825 if test -n "$CPP" && test -d "$CPP"; then
3826 CPP=
3828 if test -z "$CPP"; then
3829 if test "${ac_cv_prog_CPP+set}" = set; then
3830 echo $ECHO_N "(cached) $ECHO_C" >&6
3831 else
3832 # Double quotes because CPP needs to be expanded
3833 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3835 ac_preproc_ok=false
3836 for ac_c_preproc_warn_flag in '' yes
3838 # Use a header file that comes with gcc, so configuring glibc
3839 # with a fresh cross-compiler works.
3840 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3841 # <limits.h> exists even on freestanding compilers.
3842 # On the NeXT, cc -E runs the code through the compiler's parser,
3843 # not just through cpp. "Syntax error" is here to catch this case.
3844 cat >conftest.$ac_ext <<_ACEOF
3845 /* confdefs.h. */
3846 _ACEOF
3847 cat confdefs.h >>conftest.$ac_ext
3848 cat >>conftest.$ac_ext <<_ACEOF
3849 /* end confdefs.h. */
3850 #ifdef __STDC__
3851 # include <limits.h>
3852 #else
3853 # include <assert.h>
3854 #endif
3855 Syntax error
3856 _ACEOF
3857 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3858 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3859 ac_status=$?
3860 grep -v '^ *+' conftest.er1 >conftest.err
3861 rm -f conftest.er1
3862 cat conftest.err >&5
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); } >/dev/null; then
3865 if test -s conftest.err; then
3866 ac_cpp_err=$ac_c_preproc_warn_flag
3867 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3868 else
3869 ac_cpp_err=
3871 else
3872 ac_cpp_err=yes
3874 if test -z "$ac_cpp_err"; then
3876 else
3877 echo "$as_me: failed program was:" >&5
3878 sed 's/^/| /' conftest.$ac_ext >&5
3880 # Broken: fails on valid input.
3881 continue
3883 rm -f conftest.err conftest.$ac_ext
3885 # OK, works on sane cases. Now check whether non-existent headers
3886 # can be detected and how.
3887 cat >conftest.$ac_ext <<_ACEOF
3888 /* confdefs.h. */
3889 _ACEOF
3890 cat confdefs.h >>conftest.$ac_ext
3891 cat >>conftest.$ac_ext <<_ACEOF
3892 /* end confdefs.h. */
3893 #include <ac_nonexistent.h>
3894 _ACEOF
3895 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3896 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3897 ac_status=$?
3898 grep -v '^ *+' conftest.er1 >conftest.err
3899 rm -f conftest.er1
3900 cat conftest.err >&5
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); } >/dev/null; then
3903 if test -s conftest.err; then
3904 ac_cpp_err=$ac_c_preproc_warn_flag
3905 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3906 else
3907 ac_cpp_err=
3909 else
3910 ac_cpp_err=yes
3912 if test -z "$ac_cpp_err"; then
3913 # Broken: success on invalid input.
3914 continue
3915 else
3916 echo "$as_me: failed program was:" >&5
3917 sed 's/^/| /' conftest.$ac_ext >&5
3919 # Passes both tests.
3920 ac_preproc_ok=:
3921 break
3923 rm -f conftest.err conftest.$ac_ext
3925 done
3926 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3927 rm -f conftest.err conftest.$ac_ext
3928 if $ac_preproc_ok; then
3929 break
3932 done
3933 ac_cv_prog_CPP=$CPP
3936 CPP=$ac_cv_prog_CPP
3937 else
3938 ac_cv_prog_CPP=$CPP
3940 echo "$as_me:$LINENO: result: $CPP" >&5
3941 echo "${ECHO_T}$CPP" >&6
3942 ac_preproc_ok=false
3943 for ac_c_preproc_warn_flag in '' yes
3945 # Use a header file that comes with gcc, so configuring glibc
3946 # with a fresh cross-compiler works.
3947 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3948 # <limits.h> exists even on freestanding compilers.
3949 # On the NeXT, cc -E runs the code through the compiler's parser,
3950 # not just through cpp. "Syntax error" is here to catch this case.
3951 cat >conftest.$ac_ext <<_ACEOF
3952 /* confdefs.h. */
3953 _ACEOF
3954 cat confdefs.h >>conftest.$ac_ext
3955 cat >>conftest.$ac_ext <<_ACEOF
3956 /* end confdefs.h. */
3957 #ifdef __STDC__
3958 # include <limits.h>
3959 #else
3960 # include <assert.h>
3961 #endif
3962 Syntax error
3963 _ACEOF
3964 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3965 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3966 ac_status=$?
3967 grep -v '^ *+' conftest.er1 >conftest.err
3968 rm -f conftest.er1
3969 cat conftest.err >&5
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); } >/dev/null; then
3972 if test -s conftest.err; then
3973 ac_cpp_err=$ac_c_preproc_warn_flag
3974 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3975 else
3976 ac_cpp_err=
3978 else
3979 ac_cpp_err=yes
3981 if test -z "$ac_cpp_err"; then
3983 else
3984 echo "$as_me: failed program was:" >&5
3985 sed 's/^/| /' conftest.$ac_ext >&5
3987 # Broken: fails on valid input.
3988 continue
3990 rm -f conftest.err conftest.$ac_ext
3992 # OK, works on sane cases. Now check whether non-existent headers
3993 # can be detected and how.
3994 cat >conftest.$ac_ext <<_ACEOF
3995 /* confdefs.h. */
3996 _ACEOF
3997 cat confdefs.h >>conftest.$ac_ext
3998 cat >>conftest.$ac_ext <<_ACEOF
3999 /* end confdefs.h. */
4000 #include <ac_nonexistent.h>
4001 _ACEOF
4002 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4003 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4004 ac_status=$?
4005 grep -v '^ *+' conftest.er1 >conftest.err
4006 rm -f conftest.er1
4007 cat conftest.err >&5
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); } >/dev/null; then
4010 if test -s conftest.err; then
4011 ac_cpp_err=$ac_c_preproc_warn_flag
4012 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4013 else
4014 ac_cpp_err=
4016 else
4017 ac_cpp_err=yes
4019 if test -z "$ac_cpp_err"; then
4020 # Broken: success on invalid input.
4021 continue
4022 else
4023 echo "$as_me: failed program was:" >&5
4024 sed 's/^/| /' conftest.$ac_ext >&5
4026 # Passes both tests.
4027 ac_preproc_ok=:
4028 break
4030 rm -f conftest.err conftest.$ac_ext
4032 done
4033 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4034 rm -f conftest.err conftest.$ac_ext
4035 if $ac_preproc_ok; then
4037 else
4038 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4039 See \`config.log' for more details." >&5
4040 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4041 See \`config.log' for more details." >&2;}
4042 { (exit 1); exit 1; }; }
4045 ac_ext=c
4046 ac_cpp='$CPP $CPPFLAGS'
4047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4051 if test "$cross_compiling" = yes; then
4052 ac_build_prefix=
4053 test -n "$build_alias" && ac_build_prefix=$build_alias-
4056 # Even if we're cross-compiling, we want a compiler here
4057 # that is not a cross-compiler.
4058 saved_cross=$cross_compiling
4059 cross_compiling=no
4061 ac_ext=c
4062 ac_cpp='$CPP $BUILD_CPPFLAGS'
4063 ac_compile='$BUILD_CC -c $BUILD_CFLAGS $BUILD_CPPFLAGS conftest.$ac_ext >&5'
4064 ac_link='$BUILD_CC -o conftest$ac_build_exeext $BUILD_CFLAGS $BUILD_CPPFLAGS $BUILD_LDFLAGS conftest.$ac_ext $BUILD_LIBS >&5'
4065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4066 if test -n "$ac_build_prefix"; then
4067 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4068 set dummy ${ac_build_prefix}gcc; ac_word=$2
4069 echo "$as_me:$LINENO: checking for $ac_word" >&5
4070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4071 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4073 else
4074 if test -n "$BUILD_CC"; then
4075 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4076 else
4077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4078 for as_dir in $PATH
4080 IFS=$as_save_IFS
4081 test -z "$as_dir" && as_dir=.
4082 for ac_exec_ext in '' $ac_executable_extensions; do
4083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4084 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4086 break 2
4088 done
4089 done
4093 BUILD_CC=$ac_cv_prog_BUILD_CC
4094 if test -n "$BUILD_CC"; then
4095 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4096 echo "${ECHO_T}$BUILD_CC" >&6
4097 else
4098 echo "$as_me:$LINENO: result: no" >&5
4099 echo "${ECHO_T}no" >&6
4103 if test -z "$ac_cv_prog_BUILD_CC"; then
4104 ac_ct_BUILD_CC=$BUILD_CC
4105 # Extract the first word of "gcc", so it can be a program name with args.
4106 set dummy gcc; ac_word=$2
4107 echo "$as_me:$LINENO: checking for $ac_word" >&5
4108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4109 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4110 echo $ECHO_N "(cached) $ECHO_C" >&6
4111 else
4112 if test -n "$ac_ct_BUILD_CC"; then
4113 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
4114 else
4115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4116 for as_dir in $PATH
4118 IFS=$as_save_IFS
4119 test -z "$as_dir" && as_dir=.
4120 for ac_exec_ext in '' $ac_executable_extensions; do
4121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4122 ac_cv_prog_ac_ct_BUILD_CC="gcc"
4123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4124 break 2
4126 done
4127 done
4131 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
4132 if test -n "$ac_ct_BUILD_CC"; then
4133 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4134 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4135 else
4136 echo "$as_me:$LINENO: result: no" >&5
4137 echo "${ECHO_T}no" >&6
4140 BUILD_CC=$ac_ct_BUILD_CC
4141 else
4142 BUILD_CC="$ac_cv_prog_BUILD_CC"
4145 if test -z "$BUILD_CC"; then
4146 if test -n "$ac_build_prefix"; then
4147 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4148 set dummy ${ac_build_prefix}cc; ac_word=$2
4149 echo "$as_me:$LINENO: checking for $ac_word" >&5
4150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4151 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
4153 else
4154 if test -n "$BUILD_CC"; then
4155 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4156 else
4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158 for as_dir in $PATH
4160 IFS=$as_save_IFS
4161 test -z "$as_dir" && as_dir=.
4162 for ac_exec_ext in '' $ac_executable_extensions; do
4163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4164 ac_cv_prog_BUILD_CC="${ac_build_prefix}cc"
4165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4166 break 2
4168 done
4169 done
4173 BUILD_CC=$ac_cv_prog_BUILD_CC
4174 if test -n "$BUILD_CC"; then
4175 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4176 echo "${ECHO_T}$BUILD_CC" >&6
4177 else
4178 echo "$as_me:$LINENO: result: no" >&5
4179 echo "${ECHO_T}no" >&6
4183 if test -z "$ac_cv_prog_BUILD_CC"; then
4184 ac_ct_BUILD_CC=$BUILD_CC
4185 # Extract the first word of "cc", so it can be a program name with args.
4186 set dummy cc; ac_word=$2
4187 echo "$as_me:$LINENO: checking for $ac_word" >&5
4188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4189 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4190 echo $ECHO_N "(cached) $ECHO_C" >&6
4191 else
4192 if test -n "$ac_ct_BUILD_CC"; then
4193 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
4194 else
4195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4196 for as_dir in $PATH
4198 IFS=$as_save_IFS
4199 test -z "$as_dir" && as_dir=.
4200 for ac_exec_ext in '' $ac_executable_extensions; do
4201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4202 ac_cv_prog_ac_ct_BUILD_CC="cc"
4203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4204 break 2
4206 done
4207 done
4211 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
4212 if test -n "$ac_ct_BUILD_CC"; then
4213 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4214 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4215 else
4216 echo "$as_me:$LINENO: result: no" >&5
4217 echo "${ECHO_T}no" >&6
4220 BUILD_CC=$ac_ct_BUILD_CC
4221 else
4222 BUILD_CC="$ac_cv_prog_BUILD_CC"
4226 if test -z "$BUILD_CC"; then
4227 # Extract the first word of "cc", so it can be a program name with args.
4228 set dummy cc; ac_word=$2
4229 echo "$as_me:$LINENO: checking for $ac_word" >&5
4230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4231 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4232 echo $ECHO_N "(cached) $ECHO_C" >&6
4233 else
4234 if test -n "$BUILD_CC"; then
4235 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4236 else
4237 ac_prog_rejected=no
4238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239 for as_dir in $PATH
4241 IFS=$as_save_IFS
4242 test -z "$as_dir" && as_dir=.
4243 for ac_exec_ext in '' $ac_executable_extensions; do
4244 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4245 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4246 ac_prog_rejected=yes
4247 continue
4249 ac_cv_prog_BUILD_CC="cc"
4250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4251 break 2
4253 done
4254 done
4256 if test $ac_prog_rejected = yes; then
4257 # We found a bogon in the path, so make sure we never use it.
4258 set dummy $ac_cv_prog_BUILD_CC
4259 shift
4260 if test $# != 0; then
4261 # We chose a different compiler from the bogus one.
4262 # However, it has the same basename, so the bogon will be chosen
4263 # first if we set BUILD_CC to just the basename; use the full file name.
4264 shift
4265 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4270 BUILD_CC=$ac_cv_prog_BUILD_CC
4271 if test -n "$BUILD_CC"; then
4272 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4273 echo "${ECHO_T}$BUILD_CC" >&6
4274 else
4275 echo "$as_me:$LINENO: result: no" >&5
4276 echo "${ECHO_T}no" >&6
4280 if test -z "$BUILD_CC"; then
4281 if test -n "$ac_build_prefix"; then
4282 for ac_prog in cl
4284 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4285 set dummy $ac_build_prefix$ac_prog; ac_word=$2
4286 echo "$as_me:$LINENO: checking for $ac_word" >&5
4287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4288 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4289 echo $ECHO_N "(cached) $ECHO_C" >&6
4290 else
4291 if test -n "$BUILD_CC"; then
4292 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4293 else
4294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295 for as_dir in $PATH
4297 IFS=$as_save_IFS
4298 test -z "$as_dir" && as_dir=.
4299 for ac_exec_ext in '' $ac_executable_extensions; do
4300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4301 ac_cv_prog_BUILD_CC="$ac_build_prefix$ac_prog"
4302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4303 break 2
4305 done
4306 done
4310 BUILD_CC=$ac_cv_prog_BUILD_CC
4311 if test -n "$BUILD_CC"; then
4312 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4313 echo "${ECHO_T}$BUILD_CC" >&6
4314 else
4315 echo "$as_me:$LINENO: result: no" >&5
4316 echo "${ECHO_T}no" >&6
4319 test -n "$BUILD_CC" && break
4320 done
4322 if test -z "$BUILD_CC"; then
4323 ac_ct_BUILD_CC=$BUILD_CC
4324 for ac_prog in cl
4326 # Extract the first word of "$ac_prog", so it can be a program name with args.
4327 set dummy $ac_prog; ac_word=$2
4328 echo "$as_me:$LINENO: checking for $ac_word" >&5
4329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4330 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4331 echo $ECHO_N "(cached) $ECHO_C" >&6
4332 else
4333 if test -n "$ac_ct_BUILD_CC"; then
4334 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
4335 else
4336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4337 for as_dir in $PATH
4339 IFS=$as_save_IFS
4340 test -z "$as_dir" && as_dir=.
4341 for ac_exec_ext in '' $ac_executable_extensions; do
4342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4343 ac_cv_prog_ac_ct_BUILD_CC="$ac_prog"
4344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4345 break 2
4347 done
4348 done
4352 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
4353 if test -n "$ac_ct_BUILD_CC"; then
4354 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4355 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4356 else
4357 echo "$as_me:$LINENO: result: no" >&5
4358 echo "${ECHO_T}no" >&6
4361 test -n "$ac_ct_BUILD_CC" && break
4362 done
4364 BUILD_CC=$ac_ct_BUILD_CC
4370 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4371 See \`config.log' for more details." >&5
4372 echo "$as_me: error: no acceptable C compiler found in \$PATH
4373 See \`config.log' for more details." >&2;}
4374 { (exit 1); exit 1; }; }
4376 # Provide some information about the compiler.
4377 echo "$as_me:$LINENO:" \
4378 "checking for C compiler version" >&5
4379 ac_compiler=`set X $ac_compile; echo $2`
4380 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4381 (eval $ac_compiler --version </dev/null >&5) 2>&5
4382 ac_status=$?
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); }
4385 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4386 (eval $ac_compiler -v </dev/null >&5) 2>&5
4387 ac_status=$?
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); }
4390 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4391 (eval $ac_compiler -V </dev/null >&5) 2>&5
4392 ac_status=$?
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); }
4396 cat >conftest.$ac_ext <<_ACEOF
4397 /* confdefs.h. */
4398 _ACEOF
4399 cat confdefs.h >>conftest.$ac_ext
4400 cat >>conftest.$ac_ext <<_ACEOF
4401 /* end confdefs.h. */
4404 main ()
4408 return 0;
4410 _ACEOF
4411 ac_clean_files_save=$ac_clean_files
4412 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4413 # Try to create an executable without -o first, disregard a.out.
4414 # It will help us diagnose broken compilers, and finding out an intuition
4415 # of exeext.
4416 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4417 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4418 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4419 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4420 (eval $ac_link_default) 2>&5
4421 ac_status=$?
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); }; then
4424 # Find the output, starting from the most likely. This scheme is
4425 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4426 # resort.
4428 # Be careful to initialize this variable, since it used to be cached.
4429 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4430 ac_cv_build_exeext=
4431 # b.out is created by i960 compilers.
4432 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4434 test -f "$ac_file" || continue
4435 case $ac_file in
4436 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4438 conftest.$ac_ext )
4439 # This is the source file.
4441 [ab].out )
4442 # We found the default executable, but exeext='' is most
4443 # certainly right.
4444 break;;
4445 *.* )
4446 ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4447 # FIXME: I believe we export ac_cv_exeext for Libtool,
4448 # but it would be cool to find out if it's true. Does anybody
4449 # maintain Libtool? --akim.
4450 export ac_cv_build_exeext
4451 break;;
4453 break;;
4454 esac
4455 done
4456 else
4457 echo "$as_me: failed program was:" >&5
4458 sed 's/^/| /' conftest.$ac_ext >&5
4460 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4461 See \`config.log' for more details." >&5
4462 echo "$as_me: error: C compiler cannot create executables
4463 See \`config.log' for more details." >&2;}
4464 { (exit 77); exit 77; }; }
4467 ac_build_exeext=$ac_cv_build_exeext
4468 echo "$as_me:$LINENO: result: $ac_file" >&5
4469 echo "${ECHO_T}$ac_file" >&6
4471 # Check the compiler produces executables we can run. If not, either
4472 # the compiler is broken, or we cross compile.
4473 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4474 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4475 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4476 # If not cross compiling, check that we can run a simple program.
4477 if test "$cross_compiling" != yes; then
4478 if { ac_try='./$ac_file'
4479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480 (eval $ac_try) 2>&5
4481 ac_status=$?
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }; }; then
4484 cross_compiling=no
4485 else
4486 if test "$cross_compiling" = maybe; then
4487 cross_compiling=yes
4488 else
4489 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4490 If you meant to cross compile, use \`--host'.
4491 See \`config.log' for more details." >&5
4492 echo "$as_me: error: cannot run C compiled programs.
4493 If you meant to cross compile, use \`--host'.
4494 See \`config.log' for more details." >&2;}
4495 { (exit 1); exit 1; }; }
4499 echo "$as_me:$LINENO: result: yes" >&5
4500 echo "${ECHO_T}yes" >&6
4502 rm -f a.out a.exe conftest$ac_cv_build_exeext b.out
4503 ac_clean_files=$ac_clean_files_save
4504 # Check the compiler produces executables we can run. If not, either
4505 # the compiler is broken, or we cross compile.
4506 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4507 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4508 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4509 echo "${ECHO_T}$cross_compiling" >&6
4511 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4512 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4514 (eval $ac_link) 2>&5
4515 ac_status=$?
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); }; then
4518 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4519 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4520 # work properly (i.e., refer to `conftest.exe'), while it won't with
4521 # `rm'.
4522 for ac_file in conftest.exe conftest conftest.*; do
4523 test -f "$ac_file" || continue
4524 case $ac_file in
4525 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4526 *.* ) ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4527 export ac_cv_build_exeext
4528 break;;
4529 * ) break;;
4530 esac
4531 done
4532 else
4533 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4534 See \`config.log' for more details." >&5
4535 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4536 See \`config.log' for more details." >&2;}
4537 { (exit 1); exit 1; }; }
4540 rm -f conftest$ac_cv_build_exeext
4541 echo "$as_me:$LINENO: result: $ac_cv_build_exeext" >&5
4542 echo "${ECHO_T}$ac_cv_build_exeext" >&6
4544 rm -f conftest.$ac_ext
4545 BUILD_EXEEXT=$ac_cv_build_exeext
4546 ac_build_exeext=$BUILD_EXEEXT
4549 # Restore configuration environment
4550 cross_compiling=$saved_cross
4552 ac_ext=c
4553 ac_cpp='$CPP $CPPFLAGS'
4554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4558 else
4559 BUILD_CC="$CC" ; BUILD_EXEEXT=$EXEEXT
4562 CFLAGS="$mule_backup_CFLAGS"
4563 CXXFLAGS="$mule_backup_CXXFLAGS"
4564 BUILD_CFLAGS="$mule_backup_BUILD_CFLAGS"
4565 for ac_prog in gawk mawk nawk awk
4567 # Extract the first word of "$ac_prog", so it can be a program name with args.
4568 set dummy $ac_prog; ac_word=$2
4569 echo "$as_me:$LINENO: checking for $ac_word" >&5
4570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4571 if test "${ac_cv_prog_AWK+set}" = set; then
4572 echo $ECHO_N "(cached) $ECHO_C" >&6
4573 else
4574 if test -n "$AWK"; then
4575 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4576 else
4577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578 for as_dir in $PATH
4580 IFS=$as_save_IFS
4581 test -z "$as_dir" && as_dir=.
4582 for ac_exec_ext in '' $ac_executable_extensions; do
4583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4584 ac_cv_prog_AWK="$ac_prog"
4585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4586 break 2
4588 done
4589 done
4593 AWK=$ac_cv_prog_AWK
4594 if test -n "$AWK"; then
4595 echo "$as_me:$LINENO: result: $AWK" >&5
4596 echo "${ECHO_T}$AWK" >&6
4597 else
4598 echo "$as_me:$LINENO: result: no" >&5
4599 echo "${ECHO_T}no" >&6
4602 test -n "$AWK" && break
4603 done
4605 echo "$as_me:$LINENO: checking for egrep" >&5
4606 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4607 if test "${ac_cv_prog_egrep+set}" = set; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4609 else
4610 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4611 then ac_cv_prog_egrep='grep -E'
4612 else ac_cv_prog_egrep='egrep'
4615 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4616 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4617 EGREP=$ac_cv_prog_egrep
4620 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4621 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4622 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4623 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4625 else
4626 cat >conftest.make <<\_ACEOF
4627 all:
4628 @echo 'ac_maketemp="$(MAKE)"'
4629 _ACEOF
4630 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4631 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4632 if test -n "$ac_maketemp"; then
4633 eval ac_cv_prog_make_${ac_make}_set=yes
4634 else
4635 eval ac_cv_prog_make_${ac_make}_set=no
4637 rm -f conftest.make
4639 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4640 echo "$as_me:$LINENO: result: yes" >&5
4641 echo "${ECHO_T}yes" >&6
4642 SET_MAKE=
4643 else
4644 echo "$as_me:$LINENO: result: no" >&5
4645 echo "${ECHO_T}no" >&6
4646 SET_MAKE="MAKE=${MAKE-make}"
4650 for ac_prog in flex lex
4652 # Extract the first word of "$ac_prog", so it can be a program name with args.
4653 set dummy $ac_prog; ac_word=$2
4654 echo "$as_me:$LINENO: checking for $ac_word" >&5
4655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4656 if test "${ac_cv_prog_LEX+set}" = set; then
4657 echo $ECHO_N "(cached) $ECHO_C" >&6
4658 else
4659 if test -n "$LEX"; then
4660 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4661 else
4662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663 for as_dir in $PATH
4665 IFS=$as_save_IFS
4666 test -z "$as_dir" && as_dir=.
4667 for ac_exec_ext in '' $ac_executable_extensions; do
4668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4669 ac_cv_prog_LEX="$ac_prog"
4670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4671 break 2
4673 done
4674 done
4678 LEX=$ac_cv_prog_LEX
4679 if test -n "$LEX"; then
4680 echo "$as_me:$LINENO: result: $LEX" >&5
4681 echo "${ECHO_T}$LEX" >&6
4682 else
4683 echo "$as_me:$LINENO: result: no" >&5
4684 echo "${ECHO_T}no" >&6
4687 test -n "$LEX" && break
4688 done
4689 test -n "$LEX" || LEX=":"
4691 if test -z "$LEXLIB"
4692 then
4693 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4694 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4695 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4696 echo $ECHO_N "(cached) $ECHO_C" >&6
4697 else
4698 ac_check_lib_save_LIBS=$LIBS
4699 LIBS="-lfl $LIBS"
4700 cat >conftest.$ac_ext <<_ACEOF
4701 /* confdefs.h. */
4702 _ACEOF
4703 cat confdefs.h >>conftest.$ac_ext
4704 cat >>conftest.$ac_ext <<_ACEOF
4705 /* end confdefs.h. */
4707 /* Override any gcc2 internal prototype to avoid an error. */
4708 #ifdef __cplusplus
4709 extern "C"
4710 #endif
4711 /* We use char because int might match the return type of a gcc2
4712 builtin and then its argument prototype would still apply. */
4713 char yywrap ();
4715 main ()
4717 yywrap ();
4719 return 0;
4721 _ACEOF
4722 rm -f conftest.$ac_objext conftest$ac_exeext
4723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4724 (eval $ac_link) 2>conftest.er1
4725 ac_status=$?
4726 grep -v '^ *+' conftest.er1 >conftest.err
4727 rm -f conftest.er1
4728 cat conftest.err >&5
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); } &&
4731 { ac_try='test -z "$ac_c_werror_flag"
4732 || test ! -s conftest.err'
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); }; } &&
4738 { ac_try='test -s conftest$ac_exeext'
4739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4740 (eval $ac_try) 2>&5
4741 ac_status=$?
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); }; }; then
4744 ac_cv_lib_fl_yywrap=yes
4745 else
4746 echo "$as_me: failed program was:" >&5
4747 sed 's/^/| /' conftest.$ac_ext >&5
4749 ac_cv_lib_fl_yywrap=no
4751 rm -f conftest.err conftest.$ac_objext \
4752 conftest$ac_exeext conftest.$ac_ext
4753 LIBS=$ac_check_lib_save_LIBS
4755 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4756 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4757 if test $ac_cv_lib_fl_yywrap = yes; then
4758 LEXLIB="-lfl"
4759 else
4760 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4761 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4762 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4763 echo $ECHO_N "(cached) $ECHO_C" >&6
4764 else
4765 ac_check_lib_save_LIBS=$LIBS
4766 LIBS="-ll $LIBS"
4767 cat >conftest.$ac_ext <<_ACEOF
4768 /* confdefs.h. */
4769 _ACEOF
4770 cat confdefs.h >>conftest.$ac_ext
4771 cat >>conftest.$ac_ext <<_ACEOF
4772 /* end confdefs.h. */
4774 /* Override any gcc2 internal prototype to avoid an error. */
4775 #ifdef __cplusplus
4776 extern "C"
4777 #endif
4778 /* We use char because int might match the return type of a gcc2
4779 builtin and then its argument prototype would still apply. */
4780 char yywrap ();
4782 main ()
4784 yywrap ();
4786 return 0;
4788 _ACEOF
4789 rm -f conftest.$ac_objext conftest$ac_exeext
4790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4791 (eval $ac_link) 2>conftest.er1
4792 ac_status=$?
4793 grep -v '^ *+' conftest.er1 >conftest.err
4794 rm -f conftest.er1
4795 cat conftest.err >&5
4796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); } &&
4798 { ac_try='test -z "$ac_c_werror_flag"
4799 || test ! -s conftest.err'
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); }; } &&
4805 { ac_try='test -s conftest$ac_exeext'
4806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4807 (eval $ac_try) 2>&5
4808 ac_status=$?
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); }; }; then
4811 ac_cv_lib_l_yywrap=yes
4812 else
4813 echo "$as_me: failed program was:" >&5
4814 sed 's/^/| /' conftest.$ac_ext >&5
4816 ac_cv_lib_l_yywrap=no
4818 rm -f conftest.err conftest.$ac_objext \
4819 conftest$ac_exeext conftest.$ac_ext
4820 LIBS=$ac_check_lib_save_LIBS
4822 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4823 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4824 if test $ac_cv_lib_l_yywrap = yes; then
4825 LEXLIB="-ll"
4832 if test "x$LEX" != "x:"; then
4833 echo "$as_me:$LINENO: checking lex output file root" >&5
4834 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4835 if test "${ac_cv_prog_lex_root+set}" = set; then
4836 echo $ECHO_N "(cached) $ECHO_C" >&6
4837 else
4838 # The minimal lex program is just a single line: %%. But some broken lexes
4839 # (Solaris, I think it was) want two %% lines, so accommodate them.
4840 cat >conftest.l <<_ACEOF
4843 _ACEOF
4844 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4845 (eval $LEX conftest.l) 2>&5
4846 ac_status=$?
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); }
4849 if test -f lex.yy.c; then
4850 ac_cv_prog_lex_root=lex.yy
4851 elif test -f lexyy.c; then
4852 ac_cv_prog_lex_root=lexyy
4853 else
4854 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4855 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4856 { (exit 1); exit 1; }; }
4859 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4860 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4861 rm -f conftest.l
4862 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4864 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4865 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4866 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4867 echo $ECHO_N "(cached) $ECHO_C" >&6
4868 else
4869 # POSIX says lex can declare yytext either as a pointer or an array; the
4870 # default is implementation-dependent. Figure out which it is, since
4871 # not all implementations provide the %pointer and %array declarations.
4872 ac_cv_prog_lex_yytext_pointer=no
4873 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4874 ac_save_LIBS=$LIBS
4875 LIBS="$LIBS $LEXLIB"
4876 cat >conftest.$ac_ext <<_ACEOF
4877 `cat $LEX_OUTPUT_ROOT.c`
4878 _ACEOF
4879 rm -f conftest.$ac_objext conftest$ac_exeext
4880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4881 (eval $ac_link) 2>conftest.er1
4882 ac_status=$?
4883 grep -v '^ *+' conftest.er1 >conftest.err
4884 rm -f conftest.er1
4885 cat conftest.err >&5
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); } &&
4888 { ac_try='test -z "$ac_c_werror_flag"
4889 || test ! -s conftest.err'
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); }; } &&
4895 { ac_try='test -s conftest$ac_exeext'
4896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4897 (eval $ac_try) 2>&5
4898 ac_status=$?
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); }; }; then
4901 ac_cv_prog_lex_yytext_pointer=yes
4902 else
4903 echo "$as_me: failed program was:" >&5
4904 sed 's/^/| /' conftest.$ac_ext >&5
4907 rm -f conftest.err conftest.$ac_objext \
4908 conftest$ac_exeext conftest.$ac_ext
4909 LIBS=$ac_save_LIBS
4910 rm -f "${LEX_OUTPUT_ROOT}.c"
4913 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4914 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4915 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4917 cat >>confdefs.h <<\_ACEOF
4918 #define YYTEXT_POINTER 1
4919 _ACEOF
4924 # Find a good install program. We prefer a C program (faster),
4925 # so one script is as good as another. But avoid the broken or
4926 # incompatible versions:
4927 # SysV /etc/install, /usr/sbin/install
4928 # SunOS /usr/etc/install
4929 # IRIX /sbin/install
4930 # AIX /bin/install
4931 # AmigaOS /C/install, which installs bootblocks on floppy discs
4932 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4933 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4934 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4935 # OS/2's system install, which has a completely different semantic
4936 # ./install, which can be erroneously created by make from ./install.sh.
4937 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4938 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4939 if test -z "$INSTALL"; then
4940 if test "${ac_cv_path_install+set}" = set; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4942 else
4943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 for as_dir in $PATH
4946 IFS=$as_save_IFS
4947 test -z "$as_dir" && as_dir=.
4948 # Account for people who put trailing slashes in PATH elements.
4949 case $as_dir/ in
4950 ./ | .// | /cC/* | \
4951 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4952 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4953 /usr/ucb/* ) ;;
4955 # OSF1 and SCO ODT 3.0 have their own names for install.
4956 # Don't use installbsd from OSF since it installs stuff as root
4957 # by default.
4958 for ac_prog in ginstall scoinst install; do
4959 for ac_exec_ext in '' $ac_executable_extensions; do
4960 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4961 if test $ac_prog = install &&
4962 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4963 # AIX install. It has an incompatible calling convention.
4965 elif test $ac_prog = install &&
4966 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4967 # program-specific install script used by HP pwplus--don't use.
4969 else
4970 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4971 break 3
4974 done
4975 done
4977 esac
4978 done
4982 if test "${ac_cv_path_install+set}" = set; then
4983 INSTALL=$ac_cv_path_install
4984 else
4985 # As a last resort, use the slow shell script. We don't cache a
4986 # path for INSTALL within a source directory, because that will
4987 # break other packages using the cache if that directory is
4988 # removed, or if the path is relative.
4989 INSTALL=$ac_install_sh
4992 echo "$as_me:$LINENO: result: $INSTALL" >&5
4993 echo "${ECHO_T}$INSTALL" >&6
4995 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4996 # It thinks the first close brace ends the variable substitution.
4997 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4999 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5001 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5003 if test -n "$ac_tool_prefix"; then
5004 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5005 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5006 echo "$as_me:$LINENO: checking for $ac_word" >&5
5007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5008 if test "${ac_cv_prog_RANLIB+set}" = set; then
5009 echo $ECHO_N "(cached) $ECHO_C" >&6
5010 else
5011 if test -n "$RANLIB"; then
5012 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5013 else
5014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015 for as_dir in $PATH
5017 IFS=$as_save_IFS
5018 test -z "$as_dir" && as_dir=.
5019 for ac_exec_ext in '' $ac_executable_extensions; do
5020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5021 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5023 break 2
5025 done
5026 done
5030 RANLIB=$ac_cv_prog_RANLIB
5031 if test -n "$RANLIB"; then
5032 echo "$as_me:$LINENO: result: $RANLIB" >&5
5033 echo "${ECHO_T}$RANLIB" >&6
5034 else
5035 echo "$as_me:$LINENO: result: no" >&5
5036 echo "${ECHO_T}no" >&6
5040 if test -z "$ac_cv_prog_RANLIB"; then
5041 ac_ct_RANLIB=$RANLIB
5042 # Extract the first word of "ranlib", so it can be a program name with args.
5043 set dummy ranlib; ac_word=$2
5044 echo "$as_me:$LINENO: checking for $ac_word" >&5
5045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5046 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5047 echo $ECHO_N "(cached) $ECHO_C" >&6
5048 else
5049 if test -n "$ac_ct_RANLIB"; then
5050 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5051 else
5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 for as_dir in $PATH
5055 IFS=$as_save_IFS
5056 test -z "$as_dir" && as_dir=.
5057 for ac_exec_ext in '' $ac_executable_extensions; do
5058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5059 ac_cv_prog_ac_ct_RANLIB="ranlib"
5060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5061 break 2
5063 done
5064 done
5066 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5069 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5070 if test -n "$ac_ct_RANLIB"; then
5071 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5072 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5073 else
5074 echo "$as_me:$LINENO: result: no" >&5
5075 echo "${ECHO_T}no" >&6
5078 RANLIB=$ac_ct_RANLIB
5079 else
5080 RANLIB="$ac_cv_prog_RANLIB"
5083 for ac_prog in 'bison -y' byacc
5085 # Extract the first word of "$ac_prog", so it can be a program name with args.
5086 set dummy $ac_prog; ac_word=$2
5087 echo "$as_me:$LINENO: checking for $ac_word" >&5
5088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5089 if test "${ac_cv_prog_YACC+set}" = set; then
5090 echo $ECHO_N "(cached) $ECHO_C" >&6
5091 else
5092 if test -n "$YACC"; then
5093 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5094 else
5095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096 for as_dir in $PATH
5098 IFS=$as_save_IFS
5099 test -z "$as_dir" && as_dir=.
5100 for ac_exec_ext in '' $ac_executable_extensions; do
5101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5102 ac_cv_prog_YACC="$ac_prog"
5103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5104 break 2
5106 done
5107 done
5111 YACC=$ac_cv_prog_YACC
5112 if test -n "$YACC"; then
5113 echo "$as_me:$LINENO: result: $YACC" >&5
5114 echo "${ECHO_T}$YACC" >&6
5115 else
5116 echo "$as_me:$LINENO: result: no" >&5
5117 echo "${ECHO_T}no" >&6
5120 test -n "$YACC" && break
5121 done
5122 test -n "$YACC" || YACC="yacc"
5125 if test -n "$ac_tool_prefix"; then
5126 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5127 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5128 echo "$as_me:$LINENO: checking for $ac_word" >&5
5129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5130 if test "${ac_cv_prog_RANLIB+set}" = set; then
5131 echo $ECHO_N "(cached) $ECHO_C" >&6
5132 else
5133 if test -n "$RANLIB"; then
5134 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5135 else
5136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137 for as_dir in $PATH
5139 IFS=$as_save_IFS
5140 test -z "$as_dir" && as_dir=.
5141 for ac_exec_ext in '' $ac_executable_extensions; do
5142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5143 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5145 break 2
5147 done
5148 done
5152 RANLIB=$ac_cv_prog_RANLIB
5153 if test -n "$RANLIB"; then
5154 echo "$as_me:$LINENO: result: $RANLIB" >&5
5155 echo "${ECHO_T}$RANLIB" >&6
5156 else
5157 echo "$as_me:$LINENO: result: no" >&5
5158 echo "${ECHO_T}no" >&6
5162 if test -z "$ac_cv_prog_RANLIB"; then
5163 ac_ct_RANLIB=$RANLIB
5164 # Extract the first word of "ranlib", so it can be a program name with args.
5165 set dummy ranlib; ac_word=$2
5166 echo "$as_me:$LINENO: checking for $ac_word" >&5
5167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5168 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5169 echo $ECHO_N "(cached) $ECHO_C" >&6
5170 else
5171 if test -n "$ac_ct_RANLIB"; then
5172 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5173 else
5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175 for as_dir in $PATH
5177 IFS=$as_save_IFS
5178 test -z "$as_dir" && as_dir=.
5179 for ac_exec_ext in '' $ac_executable_extensions; do
5180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5181 ac_cv_prog_ac_ct_RANLIB="ranlib"
5182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5183 break 2
5185 done
5186 done
5190 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5191 if test -n "$ac_ct_RANLIB"; then
5192 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5193 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5194 else
5195 echo "$as_me:$LINENO: result: no" >&5
5196 echo "${ECHO_T}no" >&6
5199 RANLIB=$ac_ct_RANLIB
5200 else
5201 RANLIB="$ac_cv_prog_RANLIB"
5204 if test -n "$ac_tool_prefix"; then
5205 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5206 set dummy ${ac_tool_prefix}strip; ac_word=$2
5207 echo "$as_me:$LINENO: checking for $ac_word" >&5
5208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5209 if test "${ac_cv_prog_STRIP+set}" = set; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5211 else
5212 if test -n "$STRIP"; then
5213 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5214 else
5215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216 for as_dir in $PATH
5218 IFS=$as_save_IFS
5219 test -z "$as_dir" && as_dir=.
5220 for ac_exec_ext in '' $ac_executable_extensions; do
5221 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5222 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5224 break 2
5226 done
5227 done
5231 STRIP=$ac_cv_prog_STRIP
5232 if test -n "$STRIP"; then
5233 echo "$as_me:$LINENO: result: $STRIP" >&5
5234 echo "${ECHO_T}$STRIP" >&6
5235 else
5236 echo "$as_me:$LINENO: result: no" >&5
5237 echo "${ECHO_T}no" >&6
5241 if test -z "$ac_cv_prog_STRIP"; then
5242 ac_ct_STRIP=$STRIP
5243 # Extract the first word of "strip", so it can be a program name with args.
5244 set dummy strip; ac_word=$2
5245 echo "$as_me:$LINENO: checking for $ac_word" >&5
5246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5247 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5248 echo $ECHO_N "(cached) $ECHO_C" >&6
5249 else
5250 if test -n "$ac_ct_STRIP"; then
5251 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5252 else
5253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254 for as_dir in $PATH
5256 IFS=$as_save_IFS
5257 test -z "$as_dir" && as_dir=.
5258 for ac_exec_ext in '' $ac_executable_extensions; do
5259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5260 ac_cv_prog_ac_ct_STRIP="strip"
5261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5262 break 2
5264 done
5265 done
5269 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5270 if test -n "$ac_ct_STRIP"; then
5271 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5272 echo "${ECHO_T}$ac_ct_STRIP" >&6
5273 else
5274 echo "$as_me:$LINENO: result: no" >&5
5275 echo "${ECHO_T}no" >&6
5278 STRIP=$ac_ct_STRIP
5279 else
5280 STRIP="$ac_cv_prog_STRIP"
5283 if test -n "$ac_tool_prefix"; then
5284 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5285 set dummy ${ac_tool_prefix}ar; ac_word=$2
5286 echo "$as_me:$LINENO: checking for $ac_word" >&5
5287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5288 if test "${ac_cv_prog_AR+set}" = set; then
5289 echo $ECHO_N "(cached) $ECHO_C" >&6
5290 else
5291 if test -n "$AR"; then
5292 ac_cv_prog_AR="$AR" # Let the user override the test.
5293 else
5294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295 for as_dir in $PATH
5297 IFS=$as_save_IFS
5298 test -z "$as_dir" && as_dir=.
5299 for ac_exec_ext in '' $ac_executable_extensions; do
5300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5301 ac_cv_prog_AR="${ac_tool_prefix}ar"
5302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5303 break 2
5305 done
5306 done
5310 AR=$ac_cv_prog_AR
5311 if test -n "$AR"; then
5312 echo "$as_me:$LINENO: result: $AR" >&5
5313 echo "${ECHO_T}$AR" >&6
5314 else
5315 echo "$as_me:$LINENO: result: no" >&5
5316 echo "${ECHO_T}no" >&6
5320 if test -z "$ac_cv_prog_AR"; then
5321 ac_ct_AR=$AR
5322 # Extract the first word of "ar", so it can be a program name with args.
5323 set dummy ar; ac_word=$2
5324 echo "$as_me:$LINENO: checking for $ac_word" >&5
5325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5326 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5327 echo $ECHO_N "(cached) $ECHO_C" >&6
5328 else
5329 if test -n "$ac_ct_AR"; then
5330 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5331 else
5332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5333 for as_dir in $PATH
5335 IFS=$as_save_IFS
5336 test -z "$as_dir" && as_dir=.
5337 for ac_exec_ext in '' $ac_executable_extensions; do
5338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5339 ac_cv_prog_ac_ct_AR="ar"
5340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5341 break 2
5343 done
5344 done
5348 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5349 if test -n "$ac_ct_AR"; then
5350 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5351 echo "${ECHO_T}$ac_ct_AR" >&6
5352 else
5353 echo "$as_me:$LINENO: result: no" >&5
5354 echo "${ECHO_T}no" >&6
5357 AR=$ac_ct_AR
5358 else
5359 AR="$ac_cv_prog_AR"
5362 if test -n "$ac_tool_prefix"; then
5363 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5364 set dummy ${ac_tool_prefix}ld; ac_word=$2
5365 echo "$as_me:$LINENO: checking for $ac_word" >&5
5366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5367 if test "${ac_cv_prog_LD+set}" = set; then
5368 echo $ECHO_N "(cached) $ECHO_C" >&6
5369 else
5370 if test -n "$LD"; then
5371 ac_cv_prog_LD="$LD" # Let the user override the test.
5372 else
5373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5374 for as_dir in $PATH
5376 IFS=$as_save_IFS
5377 test -z "$as_dir" && as_dir=.
5378 for ac_exec_ext in '' $ac_executable_extensions; do
5379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5380 ac_cv_prog_LD="${ac_tool_prefix}ld"
5381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5382 break 2
5384 done
5385 done
5389 LD=$ac_cv_prog_LD
5390 if test -n "$LD"; then
5391 echo "$as_me:$LINENO: result: $LD" >&5
5392 echo "${ECHO_T}$LD" >&6
5393 else
5394 echo "$as_me:$LINENO: result: no" >&5
5395 echo "${ECHO_T}no" >&6
5399 if test -z "$ac_cv_prog_LD"; then
5400 ac_ct_LD=$LD
5401 # Extract the first word of "ld", so it can be a program name with args.
5402 set dummy ld; ac_word=$2
5403 echo "$as_me:$LINENO: checking for $ac_word" >&5
5404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5405 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5406 echo $ECHO_N "(cached) $ECHO_C" >&6
5407 else
5408 if test -n "$ac_ct_LD"; then
5409 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5410 else
5411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412 for as_dir in $PATH
5414 IFS=$as_save_IFS
5415 test -z "$as_dir" && as_dir=.
5416 for ac_exec_ext in '' $ac_executable_extensions; do
5417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5418 ac_cv_prog_ac_ct_LD="ld"
5419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5420 break 2
5422 done
5423 done
5427 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5428 if test -n "$ac_ct_LD"; then
5429 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5430 echo "${ECHO_T}$ac_ct_LD" >&6
5431 else
5432 echo "$as_me:$LINENO: result: no" >&5
5433 echo "${ECHO_T}no" >&6
5436 LD=$ac_ct_LD
5437 else
5438 LD="$ac_cv_prog_LD"
5442 # Check whether --enable-monolithic or --disable-monolithic was given.
5443 if test "${enable_monolithic+set}" = set; then
5444 enableval="$enable_monolithic"
5445 MONOLITHIC=$enableval
5446 else
5447 MONOLITHIC=yes
5450 # Check whether --enable-amule-daemon or --disable-amule-daemon was given.
5451 if test "${enable_amule_daemon+set}" = set; then
5452 enableval="$enable_amule_daemon"
5453 AMULE_DAEMON=$enableval
5454 else
5455 AMULE_DAEMON=no
5458 # Check whether --enable-amulecmd or --disable-amulecmd was given.
5459 if test "${enable_amulecmd+set}" = set; then
5460 enableval="$enable_amulecmd"
5461 AMULECMD=$enableval
5462 else
5463 AMULECMD=no
5466 # Check whether --enable-webserver or --disable-webserver was given.
5467 if test "${enable_webserver+set}" = set; then
5468 enableval="$enable_webserver"
5469 WEB=$enableval
5470 else
5471 WEB=no
5474 # Check whether --enable-amule-gui or --disable-amule-gui was given.
5475 if test "${enable_amule_gui+set}" = set; then
5476 enableval="$enable_amule_gui"
5477 AMULE_GUI=$enableval
5478 else
5479 AMULE_GUI=no
5482 # Check whether --enable-cas or --disable-cas was given.
5483 if test "${enable_cas+set}" = set; then
5484 enableval="$enable_cas"
5485 CAS=$enableval
5486 else
5487 CAS=no
5490 # Check whether --enable-wxcas or --disable-wxcas was given.
5491 if test "${enable_wxcas+set}" = set; then
5492 enableval="$enable_wxcas"
5493 WXCAS=$enableval
5494 else
5495 WXCAS=no
5498 # Check whether --enable-ed2k or --disable-ed2k was given.
5499 if test "${enable_ed2k+set}" = set; then
5500 enableval="$enable_ed2k"
5501 ED2K=$enableval
5502 else
5503 ED2K=yes
5506 # Check whether --enable-alc or --disable-alc was given.
5507 if test "${enable_alc+set}" = set; then
5508 enableval="$enable_alc"
5509 ALC=$enableval
5510 else
5511 ALC=no
5514 # Check whether --enable-alcc or --disable-alcc was given.
5515 if test "${enable_alcc+set}" = set; then
5516 enableval="$enable_alcc"
5517 ALCC=$enableval
5518 else
5519 ALCC=no
5522 # Check whether --enable-monolithic or --disable-monolithic was given.
5523 if test "${enable_monolithic+set}" = set; then
5524 enableval="$enable_monolithic"
5525 MONOLITHIC=$enableval
5526 else
5527 MONOLITHIC=yes
5530 # Check whether --enable-upnp or --disable-upnp was given.
5531 if test "${enable_upnp+set}" = set; then
5532 enableval="$enable_upnp"
5533 ENABLE_UPNP=$enableval
5534 else
5535 ENABLE_UPNP=yes
5538 # Check whether --enable-xas or --disable-xas was given.
5539 if test "${enable_xas+set}" = set; then
5540 enableval="$enable_xas"
5541 XAS=$enableval
5542 else
5543 XAS=no
5546 # Check whether --enable-fileview or --disable-fileview was given.
5547 if test "${enable_fileview+set}" = set; then
5548 enableval="$enable_fileview"
5549 FILEVIEW=$enableval
5550 else
5551 FILEVIEW=no
5554 # Default is yes, because they're most likely compatible.
5555 # However, this is only used when cross-compiling.
5557 # Check whether --with-gnu-malloc or --without-gnu-malloc was given.
5558 if test "${with_gnu_malloc+set}" = set; then
5559 withval="$with_gnu_malloc"
5560 gnumalloc=$withval
5561 else
5562 gnumalloc=yes
5566 # Checking for libs before all other stuff to break
5567 # configure as soon as possible in case of a missing one
5568 # to avoid losing too much time
5570 # Check for zlib
5573 # Check whether --with-zlib or --without-zlib was given.
5574 if test "${with_zlib+set}" = set; then
5575 withval="$with_zlib"
5579 case "${with_zlib:-yes}" in
5581 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5582 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5583 { (exit 1); exit 1; }; }
5585 yes | sys)
5588 zlib_prefix="$with_zlib"
5589 esac
5591 mule_backup_CPPFLAGS="$CPPFLAGS"
5592 mule_backup_LDFLAGS="$LDFLAGS"
5593 mule_backup_LIBS="$LIBS"
5594 if test -n "$zlib_prefix"; then
5596 ZLIB_CPPFLAGS="-I$zlib_prefix/include"
5597 ZLIB_LDFLAGS="-L$zlib_prefix/lib"
5598 CPPFLAGS="$CPPFLAGS $ZLIB_CPPFLAGS"
5599 LDFLAGS="$LDFLAGS $ZLIB_LDFLAGS"
5601 else
5603 ZLIB_CPPFLAGS=
5604 ZLIB_LDFLAGS=
5608 ZLIB_LIBS="-lz"
5609 LIBS="$ZLIB_LIBS $LIBS"
5611 echo "$as_me:$LINENO: checking for zlib >= 1.1.4" >&5
5612 echo $ECHO_N "checking for zlib >= 1.1.4... $ECHO_C" >&6
5613 if test "$cross_compiling" = yes; then
5615 result=no
5616 z_version=
5617 cat >conftest.$ac_ext <<_ACEOF
5619 /* confdefs.h. */
5620 _ACEOF
5621 cat confdefs.h >>conftest.$ac_ext
5622 cat >>conftest.$ac_ext <<_ACEOF
5623 /* end confdefs.h. */
5625 #include <zlib.h>
5626 #include <stdio.h>
5629 main ()
5632 printf("\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n\n");
5633 zlibVersion();
5636 return 0;
5639 _ACEOF
5640 rm -f conftest.$ac_objext conftest$ac_exeext
5641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5642 (eval $ac_link) 2>conftest.er1
5643 ac_status=$?
5644 grep -v '^ *+' conftest.er1 >conftest.err
5645 rm -f conftest.er1
5646 cat conftest.err >&5
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); } &&
5649 { ac_try='test -z "$ac_c_werror_flag"
5650 || test ! -s conftest.err'
5651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5652 (eval $ac_try) 2>&5
5653 ac_status=$?
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); }; } &&
5656 { ac_try='test -s conftest$ac_exeext'
5657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5658 (eval $ac_try) 2>&5
5659 ac_status=$?
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); }; }; then
5663 ZLIB_VERSION=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest$ac_exeext | sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'`
5664 cross_zver_max="`echo $ZLIB_VERSION | cut -d. -f1`"
5665 cross_zver_mid="`echo $ZLIB_VERSION | cut -d. -f2`"
5666 cross_zver_min="`echo $ZLIB_VERSION | cut -d. -f3`"
5667 if test "$cross_zver_max" -gt "1"; then
5668 result=yes
5669 elif test "$cross_zver_max" -eq "1"; then
5671 if test "$cross_zver_mid" -gt "1"; then
5672 result=yes
5673 elif test "$cross_zver_mid" -eq "1"; then
5674 if test "$cross_zver_min" -ge "4"; then
5675 result=yes
5683 if test ${result:-no} = yes; then
5684 z_version=" (version $ZLIB_VERSION)"
5688 else
5689 echo "$as_me: failed program was:" >&5
5690 sed 's/^/| /' conftest.$ac_ext >&5
5693 rm -f conftest.err conftest.$ac_objext \
5694 conftest$ac_exeext conftest.$ac_ext
5695 echo "$as_me:$LINENO: result: $result$z_version" >&5
5696 echo "${ECHO_T}$result$z_version" >&6
5698 else
5699 cat >conftest.$ac_ext <<_ACEOF
5701 /* confdefs.h. */
5702 _ACEOF
5703 cat confdefs.h >>conftest.$ac_ext
5704 cat >>conftest.$ac_ext <<_ACEOF
5705 /* end confdefs.h. */
5707 #include <zlib.h>
5708 #include <stdio.h>
5711 main ()
5713 char *zver = zlibVersion();
5714 FILE *f=fopen("conftestval", "w");
5715 if (!f) return 1;
5716 fprintf(f, "%s",
5717 zver[0] > '1' ||
5718 (zver[0] == '1' &&
5719 (zver[2] > '1' ||
5720 (zver[2] == '1' &&
5721 zver[4] >= '4'))) ? "yes" : "no");
5722 fclose(f);
5723 f=fopen("conftestver", "w");
5724 if (f) {
5725 fprintf(f, "%s", ZLIB_VERSION);
5726 fclose(f);
5730 return 0;
5733 _ACEOF
5734 rm -f conftest$ac_exeext
5735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5736 (eval $ac_link) 2>&5
5737 ac_status=$?
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5741 (eval $ac_try) 2>&5
5742 ac_status=$?
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); }; }; then
5746 if test -f conftestval; then
5747 result=`cat conftestval`
5748 else
5749 result=no
5752 if test ${result:-no} = yes; then
5754 if test -f conftestver; then
5756 ZLIB_VERSION=`cat conftestver`
5757 z_version=" (version $ZLIB_VERSION)"
5759 else
5760 z_version=
5766 echo "$as_me:$LINENO: result: $result$z_version" >&5
5767 echo "${ECHO_T}$result$z_version" >&6
5769 else
5770 echo "$as_me: program exited with status $ac_status" >&5
5771 echo "$as_me: failed program was:" >&5
5772 sed 's/^/| /' conftest.$ac_ext >&5
5774 ( exit $ac_status )
5776 result=no
5777 echo "$as_me:$LINENO: result: $result" >&5
5778 echo "${ECHO_T}$result" >&6
5781 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5784 CPPFLAGS="$mule_backup_CPPFLAGS"
5785 LDFLAGS="$mule_backup_LDFLAGS"
5786 LIBS="$mule_backup_LIBS"
5788 if test ${result:-no} = no; then
5790 ZLIB_CPPFLAGS=
5791 ZLIB_LDFLAGS=
5792 ZLIB_LIBS=
5793 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5794 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5795 { (exit 1); exit 1; }; }
5802 if test x$CAS = xyes; then
5804 # Check for gd
5806 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5807 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5808 if test "${ac_cv_header_stdc+set}" = set; then
5809 echo $ECHO_N "(cached) $ECHO_C" >&6
5810 else
5811 cat >conftest.$ac_ext <<_ACEOF
5812 /* confdefs.h. */
5813 _ACEOF
5814 cat confdefs.h >>conftest.$ac_ext
5815 cat >>conftest.$ac_ext <<_ACEOF
5816 /* end confdefs.h. */
5817 #include <stdlib.h>
5818 #include <stdarg.h>
5819 #include <string.h>
5820 #include <float.h>
5823 main ()
5827 return 0;
5829 _ACEOF
5830 rm -f conftest.$ac_objext
5831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5832 (eval $ac_compile) 2>conftest.er1
5833 ac_status=$?
5834 grep -v '^ *+' conftest.er1 >conftest.err
5835 rm -f conftest.er1
5836 cat conftest.err >&5
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); } &&
5839 { ac_try='test -z "$ac_c_werror_flag"
5840 || test ! -s conftest.err'
5841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5842 (eval $ac_try) 2>&5
5843 ac_status=$?
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); }; } &&
5846 { ac_try='test -s conftest.$ac_objext'
5847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5848 (eval $ac_try) 2>&5
5849 ac_status=$?
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); }; }; then
5852 ac_cv_header_stdc=yes
5853 else
5854 echo "$as_me: failed program was:" >&5
5855 sed 's/^/| /' conftest.$ac_ext >&5
5857 ac_cv_header_stdc=no
5859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5861 if test $ac_cv_header_stdc = yes; then
5862 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5863 cat >conftest.$ac_ext <<_ACEOF
5864 /* confdefs.h. */
5865 _ACEOF
5866 cat confdefs.h >>conftest.$ac_ext
5867 cat >>conftest.$ac_ext <<_ACEOF
5868 /* end confdefs.h. */
5869 #include <string.h>
5871 _ACEOF
5872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5873 $EGREP "memchr" >/dev/null 2>&1; then
5875 else
5876 ac_cv_header_stdc=no
5878 rm -f conftest*
5882 if test $ac_cv_header_stdc = yes; then
5883 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5884 cat >conftest.$ac_ext <<_ACEOF
5885 /* confdefs.h. */
5886 _ACEOF
5887 cat confdefs.h >>conftest.$ac_ext
5888 cat >>conftest.$ac_ext <<_ACEOF
5889 /* end confdefs.h. */
5890 #include <stdlib.h>
5892 _ACEOF
5893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5894 $EGREP "free" >/dev/null 2>&1; then
5896 else
5897 ac_cv_header_stdc=no
5899 rm -f conftest*
5903 if test $ac_cv_header_stdc = yes; then
5904 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5905 if test "$cross_compiling" = yes; then
5907 else
5908 cat >conftest.$ac_ext <<_ACEOF
5909 /* confdefs.h. */
5910 _ACEOF
5911 cat confdefs.h >>conftest.$ac_ext
5912 cat >>conftest.$ac_ext <<_ACEOF
5913 /* end confdefs.h. */
5914 #include <ctype.h>
5915 #if ((' ' & 0x0FF) == 0x020)
5916 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5917 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5918 #else
5919 # define ISLOWER(c) \
5920 (('a' <= (c) && (c) <= 'i') \
5921 || ('j' <= (c) && (c) <= 'r') \
5922 || ('s' <= (c) && (c) <= 'z'))
5923 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5924 #endif
5926 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5928 main ()
5930 int i;
5931 for (i = 0; i < 256; i++)
5932 if (XOR (islower (i), ISLOWER (i))
5933 || toupper (i) != TOUPPER (i))
5934 exit(2);
5935 exit (0);
5937 _ACEOF
5938 rm -f conftest$ac_exeext
5939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5940 (eval $ac_link) 2>&5
5941 ac_status=$?
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5945 (eval $ac_try) 2>&5
5946 ac_status=$?
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); }; }; then
5950 else
5951 echo "$as_me: program exited with status $ac_status" >&5
5952 echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.$ac_ext >&5
5955 ( exit $ac_status )
5956 ac_cv_header_stdc=no
5958 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5962 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5963 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5964 if test $ac_cv_header_stdc = yes; then
5966 cat >>confdefs.h <<\_ACEOF
5967 #define STDC_HEADERS 1
5968 _ACEOF
5972 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5982 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5983 inttypes.h stdint.h unistd.h
5985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5986 echo "$as_me:$LINENO: checking for $ac_header" >&5
5987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5989 echo $ECHO_N "(cached) $ECHO_C" >&6
5990 else
5991 cat >conftest.$ac_ext <<_ACEOF
5992 /* confdefs.h. */
5993 _ACEOF
5994 cat confdefs.h >>conftest.$ac_ext
5995 cat >>conftest.$ac_ext <<_ACEOF
5996 /* end confdefs.h. */
5997 $ac_includes_default
5999 #include <$ac_header>
6000 _ACEOF
6001 rm -f conftest.$ac_objext
6002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6003 (eval $ac_compile) 2>conftest.er1
6004 ac_status=$?
6005 grep -v '^ *+' conftest.er1 >conftest.err
6006 rm -f conftest.er1
6007 cat conftest.err >&5
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); } &&
6010 { ac_try='test -z "$ac_c_werror_flag"
6011 || test ! -s conftest.err'
6012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6013 (eval $ac_try) 2>&5
6014 ac_status=$?
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); }; } &&
6017 { ac_try='test -s conftest.$ac_objext'
6018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6019 (eval $ac_try) 2>&5
6020 ac_status=$?
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); }; }; then
6023 eval "$as_ac_Header=yes"
6024 else
6025 echo "$as_me: failed program was:" >&5
6026 sed 's/^/| /' conftest.$ac_ext >&5
6028 eval "$as_ac_Header=no"
6030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6033 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6035 cat >>confdefs.h <<_ACEOF
6036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6037 _ACEOF
6041 done
6046 # Check whether --with-gdlib-prefix or --without-gdlib-prefix was given.
6047 if test "${with_gdlib_prefix+set}" = set; then
6048 withval="$with_gdlib_prefix"
6052 # Check whether --with-gdlib-config or --without-gdlib-config was given.
6053 if test "${with_gdlib_config+set}" = set; then
6054 withval="$with_gdlib_config"
6058 GDLIB_VERSION=
6060 # do we have gdlib-config name: it can be gdlib-config or gd-config or ...
6061 if test x${GDLIB_CONFIG_NAME+set} != xset; then
6062 GDLIB_CONFIG_NAME=gdlib-config
6065 if test -n "$with_gdlib_config"; then
6066 GDLIB_CONFIG_NAME="$with_gdlib_config"
6070 # deal with optional prefix
6071 if test -n "$with_gdlib_prefix"; then
6072 GDLIB_LOOKUP_PATH="$with_gdlib_prefix/bin"
6076 # don't search the PATH if GDLIB_CONFIG_NAME is absolute filename
6077 if test -x "$GDLIB_CONFIG_NAME"; then
6079 echo "$as_me:$LINENO: checking for gdlib-config" >&5
6080 echo $ECHO_N "checking for gdlib-config... $ECHO_C" >&6
6081 GDLIB_CONFIG_PATH="$GDLIB_CONFIG_NAME"
6082 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6083 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6085 else
6086 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args.
6087 set dummy $GDLIB_CONFIG_NAME; ac_word=$2
6088 echo "$as_me:$LINENO: checking for $ac_word" >&5
6089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6090 if test "${ac_cv_path_GDLIB_CONFIG_PATH+set}" = set; then
6091 echo $ECHO_N "(cached) $ECHO_C" >&6
6092 else
6093 case $GDLIB_CONFIG_PATH in
6094 [\\/]* | ?:[\\/]*)
6095 ac_cv_path_GDLIB_CONFIG_PATH="$GDLIB_CONFIG_PATH" # Let the user override the test with a path.
6098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6099 as_dummy="$GDLIB_LOOKUP_PATH:$PATH"
6100 for as_dir in $as_dummy
6102 IFS=$as_save_IFS
6103 test -z "$as_dir" && as_dir=.
6104 for ac_exec_ext in '' $ac_executable_extensions; do
6105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6106 ac_cv_path_GDLIB_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
6107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6108 break 2
6110 done
6111 done
6113 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH="no"
6115 esac
6117 GDLIB_CONFIG_PATH=$ac_cv_path_GDLIB_CONFIG_PATH
6119 if test -n "$GDLIB_CONFIG_PATH"; then
6120 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6121 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6122 else
6123 echo "$as_me:$LINENO: result: no" >&5
6124 echo "${ECHO_T}no" >&6
6130 if test ${GDLIB_CONFIG_PATH:-no} != no; then
6132 echo "$as_me:$LINENO: checking for gdlib version >= 2.0.0" >&5
6133 echo $ECHO_N "checking for gdlib version >= 2.0.0... $ECHO_C" >&6
6134 GDLIB_CONFIG_WITH_ARGS="$GDLIB_CONFIG_PATH $gdlib_config_args"
6136 GDLIB_VERSION=`$GDLIB_CONFIG_WITH_ARGS --version`
6137 gdlib_config_major_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6138 gdlib_config_minor_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6139 gdlib_config_micro_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6141 gdlib_ver_ok=
6142 if test $gdlib_config_major_version -gt 2; then
6143 gdlib_ver_ok=yes
6144 elif test $gdlib_config_major_version -eq 2; then
6146 if test $gdlib_config_minor_version -gt 0; then
6147 gdlib_ver_ok=yes
6148 elif test $gdlib_config_minor_version -eq 0; then
6149 if test $gdlib_config_micro_version -ge 0; then
6150 gdlib_ver_ok=yes
6159 if test -z "$gdlib_ver_ok"; then
6161 if test -z "$GDLIB_VERSION"; then
6162 echo "$as_me:$LINENO: result: no" >&5
6163 echo "${ECHO_T}no" >&6
6164 else
6166 echo "$as_me:$LINENO: result: no (version $GDLIB_VERSION is not new enough)" >&5
6167 echo "${ECHO_T}no (version $GDLIB_VERSION is not new enough)" >&6
6168 GDLIB_VERSION=
6173 else
6175 echo "$as_me:$LINENO: result: yes (version $GDLIB_VERSION)" >&5
6176 echo "${ECHO_T}yes (version $GDLIB_VERSION)" >&6
6177 GDLIB_CFLAGS="`$GDLIB_CONFIG_WITH_ARGS --cflags`"
6178 GDLIB_LDFLAGS="`$GDLIB_CONFIG_WITH_ARGS --ldflags`"
6179 GDLIB_LIBS="`$GDLIB_CONFIG_WITH_ARGS --libs`"
6180 mule_backup_CFLAGS="$CFLAGS"
6181 CFLAGS="$CFLAGS $GDLIB_CFLAGS"
6182 if test "${ac_cv_header_gd_h+set}" = set; then
6183 echo "$as_me:$LINENO: checking for gd.h" >&5
6184 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6185 if test "${ac_cv_header_gd_h+set}" = set; then
6186 echo $ECHO_N "(cached) $ECHO_C" >&6
6188 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6189 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6190 else
6191 # Is the header compilable?
6192 echo "$as_me:$LINENO: checking gd.h usability" >&5
6193 echo $ECHO_N "checking gd.h usability... $ECHO_C" >&6
6194 cat >conftest.$ac_ext <<_ACEOF
6195 /* confdefs.h. */
6196 _ACEOF
6197 cat confdefs.h >>conftest.$ac_ext
6198 cat >>conftest.$ac_ext <<_ACEOF
6199 /* end confdefs.h. */
6200 $ac_includes_default
6201 #include <gd.h>
6202 _ACEOF
6203 rm -f conftest.$ac_objext
6204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6205 (eval $ac_compile) 2>conftest.er1
6206 ac_status=$?
6207 grep -v '^ *+' conftest.er1 >conftest.err
6208 rm -f conftest.er1
6209 cat conftest.err >&5
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); } &&
6212 { ac_try='test -z "$ac_c_werror_flag"
6213 || test ! -s conftest.err'
6214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6215 (eval $ac_try) 2>&5
6216 ac_status=$?
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); }; } &&
6219 { ac_try='test -s conftest.$ac_objext'
6220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6221 (eval $ac_try) 2>&5
6222 ac_status=$?
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); }; }; then
6225 ac_header_compiler=yes
6226 else
6227 echo "$as_me: failed program was:" >&5
6228 sed 's/^/| /' conftest.$ac_ext >&5
6230 ac_header_compiler=no
6232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6233 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6234 echo "${ECHO_T}$ac_header_compiler" >&6
6236 # Is the header present?
6237 echo "$as_me:$LINENO: checking gd.h presence" >&5
6238 echo $ECHO_N "checking gd.h presence... $ECHO_C" >&6
6239 cat >conftest.$ac_ext <<_ACEOF
6240 /* confdefs.h. */
6241 _ACEOF
6242 cat confdefs.h >>conftest.$ac_ext
6243 cat >>conftest.$ac_ext <<_ACEOF
6244 /* end confdefs.h. */
6245 #include <gd.h>
6246 _ACEOF
6247 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6248 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6249 ac_status=$?
6250 grep -v '^ *+' conftest.er1 >conftest.err
6251 rm -f conftest.er1
6252 cat conftest.err >&5
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); } >/dev/null; then
6255 if test -s conftest.err; then
6256 ac_cpp_err=$ac_c_preproc_warn_flag
6257 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6258 else
6259 ac_cpp_err=
6261 else
6262 ac_cpp_err=yes
6264 if test -z "$ac_cpp_err"; then
6265 ac_header_preproc=yes
6266 else
6267 echo "$as_me: failed program was:" >&5
6268 sed 's/^/| /' conftest.$ac_ext >&5
6270 ac_header_preproc=no
6272 rm -f conftest.err conftest.$ac_ext
6273 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6274 echo "${ECHO_T}$ac_header_preproc" >&6
6276 # So? What about this header?
6277 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6278 yes:no: )
6279 { echo "$as_me:$LINENO: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&5
6280 echo "$as_me: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6281 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the compiler's result" >&5
6282 echo "$as_me: WARNING: gd.h: proceeding with the compiler's result" >&2;}
6283 ac_header_preproc=yes
6285 no:yes:* )
6286 { echo "$as_me:$LINENO: WARNING: gd.h: present but cannot be compiled" >&5
6287 echo "$as_me: WARNING: gd.h: present but cannot be compiled" >&2;}
6288 { echo "$as_me:$LINENO: WARNING: gd.h: check for missing prerequisite headers?" >&5
6289 echo "$as_me: WARNING: gd.h: check for missing prerequisite headers?" >&2;}
6290 { echo "$as_me:$LINENO: WARNING: gd.h: see the Autoconf documentation" >&5
6291 echo "$as_me: WARNING: gd.h: see the Autoconf documentation" >&2;}
6292 { echo "$as_me:$LINENO: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&5
6293 echo "$as_me: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&2;}
6294 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the preprocessor's result" >&5
6295 echo "$as_me: WARNING: gd.h: proceeding with the preprocessor's result" >&2;}
6296 { echo "$as_me:$LINENO: WARNING: gd.h: in the future, the compiler will take precedence" >&5
6297 echo "$as_me: WARNING: gd.h: in the future, the compiler will take precedence" >&2;}
6299 cat <<\_ASBOX
6300 ## ------------------------------ ##
6301 ## Report this to admin@amule.org ##
6302 ## ------------------------------ ##
6303 _ASBOX
6305 sed "s/^/$as_me: WARNING: /" >&2
6307 esac
6308 echo "$as_me:$LINENO: checking for gd.h" >&5
6309 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6310 if test "${ac_cv_header_gd_h+set}" = set; then
6311 echo $ECHO_N "(cached) $ECHO_C" >&6
6312 else
6313 ac_cv_header_gd_h=$ac_header_preproc
6315 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6316 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6319 if test $ac_cv_header_gd_h = yes; then
6321 else
6322 GDLIB_VERSION=
6326 CFLAGS="$mule_backup_CFLAGS"
6334 if test -n "$GDLIB_VERSION"; then
6336 CAS_DEFS="-D__GD__"
6337 GDLIB_LIBS="-lgd $GDLIB_LIBS"
6339 else
6340 CAS_DEFS=
6346 if test -z "$CAS_DEFS"; then
6347 { echo "$as_me:$LINENO: WARNING:
6348 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6349 Please check that gdlib-config is in your default path, check out
6350 LD_LIBRARY_PATH or equivalent variable.
6351 Or this might also be that your gdlib-config has other name.
6352 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6353 (replace /usr/bin/gdlib-config with a valid path to your
6354 gdlib-config).
6355 If you use compiled packages check if you have devel pack installed.
6356 To download the latest version check http://www.boutell.com/gd for
6357 sources." >&5
6358 echo "$as_me: WARNING:
6359 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6360 Please check that gdlib-config is in your default path, check out
6361 LD_LIBRARY_PATH or equivalent variable.
6362 Or this might also be that your gdlib-config has other name.
6363 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6364 (replace /usr/bin/gdlib-config with a valid path to your
6365 gdlib-config).
6366 If you use compiled packages check if you have devel pack installed.
6367 To download the latest version check http://www.boutell.com/gd for
6368 sources." >&2;}
6369 _mule_warning_0=yes
6370 _mule_has_warnings=yes
6375 else
6376 GDLIB_VERSION="not_needed"
6381 if test x$WEB = xyes; then
6384 # Check whether --with-libpng-prefix or --without-libpng-prefix was given.
6385 if test "${with_libpng_prefix+set}" = set; then
6386 withval="$with_libpng_prefix"
6390 # Check whether --with-libpng-config or --without-libpng-config was given.
6391 if test "${with_libpng_config+set}" = set; then
6392 withval="$with_libpng_config"
6396 LIBPNG_VERSION=
6398 # do we have libpng-config name: it can be libpng-config or libpng12-config or ...
6399 if test x${LIBPNG_CONFIG_NAME+set} != xset; then
6400 LIBPNG_CONFIG_NAME=libpng-config
6403 if test -n "$with_libpng_config"; then
6404 LIBPNG_CONFIG_NAME="$with_libpng_config"
6408 # deal with optional prefix
6409 if test -n "$with_libpng_prefix"; then
6410 LIBPNG_LOOKUP_PATH="$with_libpng_prefix/bin"
6414 # don't search the PATH if LIBPNG_CONFIG_NAME is absolute filename
6415 if test -x "$LIBPNG_CONFIG_NAME"; then
6417 echo "$as_me:$LINENO: checking for libpng-config" >&5
6418 echo $ECHO_N "checking for libpng-config... $ECHO_C" >&6
6419 LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_NAME"
6420 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6421 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6423 else
6424 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
6425 set dummy $LIBPNG_CONFIG_NAME; ac_word=$2
6426 echo "$as_me:$LINENO: checking for $ac_word" >&5
6427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6428 if test "${ac_cv_path_LIBPNG_CONFIG_PATH+set}" = set; then
6429 echo $ECHO_N "(cached) $ECHO_C" >&6
6430 else
6431 case $LIBPNG_CONFIG_PATH in
6432 [\\/]* | ?:[\\/]*)
6433 ac_cv_path_LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
6436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437 as_dummy="$LIBPNG_LOOKUP_PATH:$PATH"
6438 for as_dir in $as_dummy
6440 IFS=$as_save_IFS
6441 test -z "$as_dir" && as_dir=.
6442 for ac_exec_ext in '' $ac_executable_extensions; do
6443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6444 ac_cv_path_LIBPNG_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
6445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6446 break 2
6448 done
6449 done
6451 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH="no"
6453 esac
6455 LIBPNG_CONFIG_PATH=$ac_cv_path_LIBPNG_CONFIG_PATH
6457 if test -n "$LIBPNG_CONFIG_PATH"; then
6458 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6459 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6460 else
6461 echo "$as_me:$LINENO: result: no" >&5
6462 echo "${ECHO_T}no" >&6
6468 if test ${LIBPNG_CONFIG_PATH:-no} != no; then
6470 echo "$as_me:$LINENO: checking for libpng version >= 1.2.0" >&5
6471 echo $ECHO_N "checking for libpng version >= 1.2.0... $ECHO_C" >&6
6473 LIBPNG_CONFIG_WITH_ARGS="$LIBPNG_CONFIG_PATH $libpng_config_args"
6475 LIBPNG_VERSION=`$LIBPNG_CONFIG_WITH_ARGS --version`
6476 libpng_config_major_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6477 libpng_config_minor_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6478 libpng_config_micro_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6480 libpng_ver_ok=
6481 if test $libpng_config_major_version -gt 1; then
6482 libpng_ver_ok=yes
6483 elif test $libpng_config_major_version -eq 1; then
6485 if test $libpng_config_minor_version -gt 2; then
6486 libpng_ver_ok=yes
6487 elif test $libpng_config_minor_version -eq 2; then
6488 if test $libpng_config_micro_version -ge 0; then
6489 libpng_ver_ok=yes
6498 if test -z "$libpng_ver_ok"; then
6500 if test -z "$LIBPNG_VERSION"; then
6501 echo "$as_me:$LINENO: result: no" >&5
6502 echo "${ECHO_T}no" >&6
6503 else
6505 echo "$as_me:$LINENO: result: no (version $LIBPNG_VERSION is not new enough)" >&5
6506 echo "${ECHO_T}no (version $LIBPNG_VERSION is not new enough)" >&6
6507 LIBPNG_VERSION=
6512 else
6514 LIBPNG_LIBS=`$LIBPNG_CONFIG_WITH_ARGS --libs`
6515 LIBPNG_LDFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --ldflags | sed -e "s/ *${LIBPNG_LIBS}$//"`
6516 LIBPNG_CFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
6517 echo "$as_me:$LINENO: result: yes (version $LIBPNG_VERSION)" >&5
6518 echo "${ECHO_T}yes (version $LIBPNG_VERSION)" >&6
6526 if test -n "$LIBPNG_VERSION"; then
6527 AMULEWEB_DEFS="-DWITH_LIBPNG"
6528 else
6530 { echo "$as_me:$LINENO: WARNING:
6531 libpng >= 1.2.0 not found.
6532 amuleweb will be compiled but file download progress bar images will
6533 NOT be generated." >&5
6534 echo "$as_me: WARNING:
6535 libpng >= 1.2.0 not found.
6536 amuleweb will be compiled but file download progress bar images will
6537 NOT be generated." >&2;}
6538 _mule_warning_1=yes
6539 _mule_has_warnings=yes
6548 else
6549 LIBPNG_VERSION="not_needed"
6554 # Check for perl File::Copy
6555 echo "$as_me:$LINENO: checking for File::Copy" >&5
6556 echo $ECHO_N "checking for File::Copy... $ECHO_C" >&6
6557 if perl -e "require File::Copy" 2>/dev/null; then
6558 echo "$as_me:$LINENO: result: ok" >&5
6559 echo "${ECHO_T}ok" >&6
6560 else
6561 { { echo "$as_me:$LINENO: error: File::Copy perl module is required" >&5
6562 echo "$as_me: error: File::Copy perl module is required" >&2;}
6563 { (exit 1); exit 1; }; }
6568 # Check if we need the GUI
6569 echo "$as_me:$LINENO: checking whether we need the GUI" >&5
6570 echo $ECHO_N "checking whether we need the GUI... $ECHO_C" >&6
6571 if test x$MONOLITHIC = xyes; then
6572 need_gui=yes
6575 if test x$WXCAS = xyes; then
6576 need_gui=yes
6579 if test x$ALC = xyes; then
6580 need_gui=yes
6583 if test x$AMULE_GUI = xyes; then
6584 need_gui=yes
6587 if test x${need_gui:+set} != xset; then
6588 need_gui=no
6591 echo "$as_me:$LINENO: result: $need_gui" >&5
6592 echo "${ECHO_T}$need_gui" >&6
6594 # Check if we need to install skins
6595 if test x$MONOLITHIC = xyes; then
6596 INSTALL_SKINS=yes
6599 if test x$AMULE_GUI = xyes; then
6600 INSTALL_SKINS=yes
6603 if test x${INSTALL_SKINS:+set} != xset; then
6604 INSTALL_SKINS=no
6608 # Check for GeoIP (required for IP2Country capability)
6610 # Check whether --enable-geoip or --disable-geoip was given.
6611 if test "${enable_geoip+set}" = set; then
6612 enableval="$enable_geoip"
6613 ENABLE_IP2COUNTRY=$enableval
6614 else
6615 ENABLE_IP2COUNTRY=no
6618 if test ${ENABLE_IP2COUNTRY:-no} = yes; then
6621 # Check whether --with-geoip-headers or --without-geoip-headers was given.
6622 if test "${with_geoip_headers+set}" = set; then
6623 withval="$with_geoip_headers"
6624 GEOIP_CPPFLAGS="-I$withval"
6627 # Check whether --with-geoip-lib or --without-geoip-lib was given.
6628 if test "${with_geoip_lib+set}" = set; then
6629 withval="$with_geoip_lib"
6630 GEOIP_LDFLAGS="-L$withval"
6633 mule_backup_CPPFLAGS="$CPPFLAGS"
6634 CPPFLAGS="$CPPFLAGS $GEOIP_CPPFLAGS"
6635 mule_backup_LDFLAGS="$LDFLAGS"
6636 LDFLAGS="$LDFLAGS $GEOIP_LDFLAGS"
6638 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6639 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
6640 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
6641 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6642 echo $ECHO_N "(cached) $ECHO_C" >&6
6644 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
6645 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
6646 else
6647 # Is the header compilable?
6648 echo "$as_me:$LINENO: checking GeoIP.h usability" >&5
6649 echo $ECHO_N "checking GeoIP.h usability... $ECHO_C" >&6
6650 cat >conftest.$ac_ext <<_ACEOF
6651 /* confdefs.h. */
6652 _ACEOF
6653 cat confdefs.h >>conftest.$ac_ext
6654 cat >>conftest.$ac_ext <<_ACEOF
6655 /* end confdefs.h. */
6656 $ac_includes_default
6657 #include <GeoIP.h>
6658 _ACEOF
6659 rm -f conftest.$ac_objext
6660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6661 (eval $ac_compile) 2>conftest.er1
6662 ac_status=$?
6663 grep -v '^ *+' conftest.er1 >conftest.err
6664 rm -f conftest.er1
6665 cat conftest.err >&5
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); } &&
6668 { ac_try='test -z "$ac_c_werror_flag"
6669 || test ! -s conftest.err'
6670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6671 (eval $ac_try) 2>&5
6672 ac_status=$?
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); }; } &&
6675 { ac_try='test -s conftest.$ac_objext'
6676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6677 (eval $ac_try) 2>&5
6678 ac_status=$?
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); }; }; then
6681 ac_header_compiler=yes
6682 else
6683 echo "$as_me: failed program was:" >&5
6684 sed 's/^/| /' conftest.$ac_ext >&5
6686 ac_header_compiler=no
6688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6689 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6690 echo "${ECHO_T}$ac_header_compiler" >&6
6692 # Is the header present?
6693 echo "$as_me:$LINENO: checking GeoIP.h presence" >&5
6694 echo $ECHO_N "checking GeoIP.h presence... $ECHO_C" >&6
6695 cat >conftest.$ac_ext <<_ACEOF
6696 /* confdefs.h. */
6697 _ACEOF
6698 cat confdefs.h >>conftest.$ac_ext
6699 cat >>conftest.$ac_ext <<_ACEOF
6700 /* end confdefs.h. */
6701 #include <GeoIP.h>
6702 _ACEOF
6703 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6704 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6705 ac_status=$?
6706 grep -v '^ *+' conftest.er1 >conftest.err
6707 rm -f conftest.er1
6708 cat conftest.err >&5
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); } >/dev/null; then
6711 if test -s conftest.err; then
6712 ac_cpp_err=$ac_c_preproc_warn_flag
6713 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6714 else
6715 ac_cpp_err=
6717 else
6718 ac_cpp_err=yes
6720 if test -z "$ac_cpp_err"; then
6721 ac_header_preproc=yes
6722 else
6723 echo "$as_me: failed program was:" >&5
6724 sed 's/^/| /' conftest.$ac_ext >&5
6726 ac_header_preproc=no
6728 rm -f conftest.err conftest.$ac_ext
6729 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6730 echo "${ECHO_T}$ac_header_preproc" >&6
6732 # So? What about this header?
6733 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6734 yes:no: )
6735 { echo "$as_me:$LINENO: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&5
6736 echo "$as_me: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6737 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the compiler's result" >&5
6738 echo "$as_me: WARNING: GeoIP.h: proceeding with the compiler's result" >&2;}
6739 ac_header_preproc=yes
6741 no:yes:* )
6742 { echo "$as_me:$LINENO: WARNING: GeoIP.h: present but cannot be compiled" >&5
6743 echo "$as_me: WARNING: GeoIP.h: present but cannot be compiled" >&2;}
6744 { echo "$as_me:$LINENO: WARNING: GeoIP.h: check for missing prerequisite headers?" >&5
6745 echo "$as_me: WARNING: GeoIP.h: check for missing prerequisite headers?" >&2;}
6746 { echo "$as_me:$LINENO: WARNING: GeoIP.h: see the Autoconf documentation" >&5
6747 echo "$as_me: WARNING: GeoIP.h: see the Autoconf documentation" >&2;}
6748 { echo "$as_me:$LINENO: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&5
6749 echo "$as_me: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&2;}
6750 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&5
6751 echo "$as_me: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&2;}
6752 { echo "$as_me:$LINENO: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&5
6753 echo "$as_me: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&2;}
6755 cat <<\_ASBOX
6756 ## ------------------------------ ##
6757 ## Report this to admin@amule.org ##
6758 ## ------------------------------ ##
6759 _ASBOX
6761 sed "s/^/$as_me: WARNING: /" >&2
6763 esac
6764 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
6765 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
6766 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6767 echo $ECHO_N "(cached) $ECHO_C" >&6
6768 else
6769 ac_cv_header_GeoIP_h=$ac_header_preproc
6771 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
6772 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
6775 if test $ac_cv_header_GeoIP_h = yes; then
6777 if test x$SYS = xwin32; then
6779 echo "$as_me:$LINENO: checking for WinSock library needed by GeoIP" >&5
6780 echo $ECHO_N "checking for WinSock library needed by GeoIP... $ECHO_C" >&6
6781 # Actually, we might not need any if GeoIP is linked as a .dll
6782 # - but that's even harder to check for
6783 cat >conftest.$ac_ext <<_ACEOF
6785 /* confdefs.h. */
6786 _ACEOF
6787 cat confdefs.h >>conftest.$ac_ext
6788 cat >>conftest.$ac_ext <<_ACEOF
6789 /* end confdefs.h. */
6791 #include <GeoIP.h>
6792 #ifdef _WINSOCK2_H
6793 I do know it's not the best approach, but at least works with MinGW stock headers.
6794 (tested with w32api-3.12)
6795 #endif
6798 main ()
6802 return 0;
6805 _ACEOF
6806 rm -f conftest.$ac_objext
6807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6808 (eval $ac_compile) 2>conftest.er1
6809 ac_status=$?
6810 grep -v '^ *+' conftest.er1 >conftest.err
6811 rm -f conftest.er1
6812 cat conftest.err >&5
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); } &&
6815 { ac_try='test -z "$ac_c_werror_flag"
6816 || test ! -s conftest.err'
6817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6818 (eval $ac_try) 2>&5
6819 ac_status=$?
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); }; } &&
6822 { ac_try='test -s conftest.$ac_objext'
6823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6824 (eval $ac_try) 2>&5
6825 ac_status=$?
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); }; }; then
6829 GEOIP_WINSOCK_LIB="-lwsock32"
6831 else
6832 echo "$as_me: failed program was:" >&5
6833 sed 's/^/| /' conftest.$ac_ext >&5
6836 GEOIP_WINSOCK_LIB="-lws2_32"
6839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6840 echo "$as_me:$LINENO: result: $GEOIP_WINSOCK_LIB" >&5
6841 echo "${ECHO_T}$GEOIP_WINSOCK_LIB" >&6
6845 echo "$as_me:$LINENO: checking for GeoIP_open in -lGeoIP" >&5
6846 echo $ECHO_N "checking for GeoIP_open in -lGeoIP... $ECHO_C" >&6
6847 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then
6848 echo $ECHO_N "(cached) $ECHO_C" >&6
6849 else
6850 ac_check_lib_save_LIBS=$LIBS
6851 LIBS="-lGeoIP ${GEOIP_WINSOCK_LIB:-} $LIBS"
6852 cat >conftest.$ac_ext <<_ACEOF
6853 /* confdefs.h. */
6854 _ACEOF
6855 cat confdefs.h >>conftest.$ac_ext
6856 cat >>conftest.$ac_ext <<_ACEOF
6857 /* end confdefs.h. */
6859 /* Override any gcc2 internal prototype to avoid an error. */
6860 #ifdef __cplusplus
6861 extern "C"
6862 #endif
6863 /* We use char because int might match the return type of a gcc2
6864 builtin and then its argument prototype would still apply. */
6865 char GeoIP_open ();
6867 main ()
6869 GeoIP_open ();
6871 return 0;
6873 _ACEOF
6874 rm -f conftest.$ac_objext conftest$ac_exeext
6875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6876 (eval $ac_link) 2>conftest.er1
6877 ac_status=$?
6878 grep -v '^ *+' conftest.er1 >conftest.err
6879 rm -f conftest.er1
6880 cat conftest.err >&5
6881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882 (exit $ac_status); } &&
6883 { ac_try='test -z "$ac_c_werror_flag"
6884 || test ! -s conftest.err'
6885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6886 (eval $ac_try) 2>&5
6887 ac_status=$?
6888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); }; } &&
6890 { ac_try='test -s conftest$ac_exeext'
6891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6892 (eval $ac_try) 2>&5
6893 ac_status=$?
6894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); }; }; then
6896 ac_cv_lib_GeoIP_GeoIP_open=yes
6897 else
6898 echo "$as_me: failed program was:" >&5
6899 sed 's/^/| /' conftest.$ac_ext >&5
6901 ac_cv_lib_GeoIP_GeoIP_open=no
6903 rm -f conftest.err conftest.$ac_objext \
6904 conftest$ac_exeext conftest.$ac_ext
6905 LIBS=$ac_check_lib_save_LIBS
6907 echo "$as_me:$LINENO: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
6908 echo "${ECHO_T}$ac_cv_lib_GeoIP_GeoIP_open" >&6
6909 if test $ac_cv_lib_GeoIP_GeoIP_open = yes; then
6912 cat >>confdefs.h <<\_ACEOF
6913 #define SUPPORT_GEOIP 1
6914 _ACEOF
6916 GEOIP_LIBS="-lGeoIP"
6917 if test x$SYS = xwin32; then
6918 GEOIP_LIBS="$GEOIP_LIBS $GEOIP_WINSOCK_LIB"
6921 GEOIP_CPPFLAGS="$GEOIP_CPPFLAGS -DENABLE_IP2COUNTRY=1"
6923 # Check whether --with-geoip-static or --without-geoip-static was given.
6924 if test "${with_geoip_static+set}" = set; then
6925 withval="$with_geoip_static"
6927 if test "$withval" != "no" -a ${enable_static:-no} = no; then
6929 mule_backup_LIBS="$LIBS"
6930 LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic $LIBS"
6931 cat >conftest.$ac_ext <<_ACEOF
6933 /* confdefs.h. */
6934 _ACEOF
6935 cat confdefs.h >>conftest.$ac_ext
6936 cat >>conftest.$ac_ext <<_ACEOF
6937 /* end confdefs.h. */
6939 #include <GeoIP.h>
6942 main ()
6945 GeoIP *g = GeoIP_new(GEOIP_STANDARD);
6948 return 0;
6951 _ACEOF
6952 rm -f conftest.$ac_objext conftest$ac_exeext
6953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6954 (eval $ac_link) 2>conftest.er1
6955 ac_status=$?
6956 grep -v '^ *+' conftest.er1 >conftest.err
6957 rm -f conftest.er1
6958 cat conftest.err >&5
6959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); } &&
6961 { ac_try='test -z "$ac_c_werror_flag"
6962 || test ! -s conftest.err'
6963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6964 (eval $ac_try) 2>&5
6965 ac_status=$?
6966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967 (exit $ac_status); }; } &&
6968 { ac_try='test -s conftest$ac_exeext'
6969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6970 (eval $ac_try) 2>&5
6971 ac_status=$?
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); }; }; then
6975 GEOIP_LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic"
6977 else
6978 echo "$as_me: failed program was:" >&5
6979 sed 's/^/| /' conftest.$ac_ext >&5
6982 { echo "$as_me:$LINENO: WARNING:
6983 Cannot link GeoIP statically, because your linker ($LD) does not
6984 support it." >&5
6985 echo "$as_me: WARNING:
6986 Cannot link GeoIP statically, because your linker ($LD) does not
6987 support it." >&2;}
6988 _mule_warning_2=yes
6989 _mule_has_warnings=yes
6993 rm -f conftest.err conftest.$ac_objext \
6994 conftest$ac_exeext conftest.$ac_ext
6995 LIBS="$mule_backup_LIBS"
7002 else
7004 ENABLE_IP2COUNTRY=disabled
7005 { echo "$as_me:$LINENO: WARNING:
7006 GeoIP support has been disabled because the GeoIP libraries were not
7007 found" >&5
7008 echo "$as_me: WARNING:
7009 GeoIP support has been disabled because the GeoIP libraries were not
7010 found" >&2;}
7011 _mule_warning_3=yes
7012 _mule_has_warnings=yes
7018 else
7020 ENABLE_IP2COUNTRY=disabled
7021 { echo "$as_me:$LINENO: WARNING:
7022 GeoIP support has been disabled because the GeoIP header files were
7023 not found" >&5
7024 echo "$as_me: WARNING:
7025 GeoIP support has been disabled because the GeoIP header files were
7026 not found" >&2;}
7027 _mule_warning_4=yes
7028 _mule_has_warnings=yes
7035 CPPFLAGS="$mule_backup_CPPFLAGS"
7036 LDFLAGS="$mule_backup_LDFLAGS"
7042 # Check for wx
7045 # Check whether --with-wxdir or --without-wxdir was given.
7046 if test "${with_wxdir+set}" = set; then
7047 withval="$with_wxdir"
7048 wx_config_name="$withval/wx-config"
7049 wx_config_args="--inplace"
7052 # Check whether --with-wx-config or --without-wx-config was given.
7053 if test "${with_wx_config+set}" = set; then
7054 withval="$with_wx_config"
7055 wx_config_name="$withval"
7058 # Check whether --with-wx-prefix or --without-wx-prefix was given.
7059 if test "${with_wx_prefix+set}" = set; then
7060 withval="$with_wx_prefix"
7061 wx_config_prefix="$withval"
7062 else
7063 wx_config_prefix=""
7066 # Check whether --with-wx-exec-prefix or --without-wx-exec-prefix was given.
7067 if test "${with_wx_exec_prefix+set}" = set; then
7068 withval="$with_wx_exec_prefix"
7069 wx_config_exec_prefix="$withval"
7070 else
7071 wx_config_exec_prefix=""
7085 # Check whether --with-toolkit or --without-toolkit was given.
7086 if test "${with_toolkit+set}" = set; then
7087 withval="$with_toolkit"
7089 else
7090 withval="auto"
7093 echo "$as_me:$LINENO: checking for the --with-toolkit option" >&5
7094 echo $ECHO_N "checking for the --with-toolkit option... $ECHO_C" >&6
7095 if test "$withval" = "auto" ; then
7096 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7097 echo "${ECHO_T}will be automatically detected" >&6
7098 TOOLKIT="auto"
7099 else
7100 TOOLKIT="$withval"
7102 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a \
7103 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
7104 "$TOOLKIT" != "x11" -a "$TOOLKIT" != "mac" -a \
7105 "$TOOLKIT" != "mgl" -a "$TOOLKIT" != "dfb" -a \
7106 "$TOOLKIT" != "base" -a "$TOOLKIT" != "cocoa" -a \
7107 "$TOOLKIT" != "osx_cocoa"; then
7108 { { echo "$as_me:$LINENO: error:
7109 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa, osx_cocoa)
7110 " >&5
7111 echo "$as_me: error:
7112 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa, osx_cocoa)
7113 " >&2;}
7114 { (exit 1); exit 1; }; }
7117 echo "$as_me:$LINENO: result: $TOOLKIT" >&5
7118 echo "${ECHO_T}$TOOLKIT" >&6
7125 # Check whether --with-wxshared or --without-wxshared was given.
7126 if test "${with_wxshared+set}" = set; then
7127 withval="$with_wxshared"
7129 else
7130 withval="auto"
7133 echo "$as_me:$LINENO: checking for the --with-wxshared option" >&5
7134 echo $ECHO_N "checking for the --with-wxshared option... $ECHO_C" >&6
7135 if test "$withval" = "yes" ; then
7136 echo "$as_me:$LINENO: result: yes" >&5
7137 echo "${ECHO_T}yes" >&6
7138 WX_SHARED=1
7140 elif test "1" = "1" -a "$withval" = "no" ; then
7141 echo "$as_me:$LINENO: result: no" >&5
7142 echo "${ECHO_T}no" >&6
7143 WX_SHARED=0
7144 elif test "$withval" = "auto" ; then
7145 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7146 echo "${ECHO_T}will be automatically detected" >&6
7147 WX_SHARED="auto"
7148 else
7149 { { echo "$as_me:$LINENO: error:
7150 Unrecognized option value (allowed values: yes, auto)
7151 " >&5
7152 echo "$as_me: error:
7153 Unrecognized option value (allowed values: yes, auto)
7154 " >&2;}
7155 { (exit 1); exit 1; }; }
7162 # Check whether --with-wxdebug or --without-wxdebug was given.
7163 if test "${with_wxdebug+set}" = set; then
7164 withval="$with_wxdebug"
7166 else
7167 withval="auto"
7170 echo "$as_me:$LINENO: checking for the --with-wxdebug option" >&5
7171 echo $ECHO_N "checking for the --with-wxdebug option... $ECHO_C" >&6
7172 if test "$withval" = "yes" ; then
7173 echo "$as_me:$LINENO: result: yes" >&5
7174 echo "${ECHO_T}yes" >&6
7175 WX_DEBUG=1
7177 elif test "1" = "1" -a "$withval" = "no" ; then
7178 echo "$as_me:$LINENO: result: no" >&5
7179 echo "${ECHO_T}no" >&6
7180 WX_DEBUG=0
7181 elif test "$withval" = "auto" ; then
7182 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7183 echo "${ECHO_T}will be automatically detected" >&6
7184 WX_DEBUG="auto"
7185 else
7186 { { echo "$as_me:$LINENO: error:
7187 Unrecognized option value (allowed values: yes, auto)
7188 " >&5
7189 echo "$as_me: error:
7190 Unrecognized option value (allowed values: yes, auto)
7191 " >&2;}
7192 { (exit 1); exit 1; }; }
7199 # Check whether --with-wxversion or --without-wxversion was given.
7200 if test "${with_wxversion+set}" = set; then
7201 withval="$with_wxversion"
7203 else
7204 withval="auto"
7207 echo "$as_me:$LINENO: checking for the --with-wxversion option" >&5
7208 echo $ECHO_N "checking for the --with-wxversion option... $ECHO_C" >&6
7209 if test "$withval" = "auto" ; then
7210 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7211 echo "${ECHO_T}will be automatically detected" >&6
7212 WX_VERSION="auto"
7213 else
7215 wx_requested_major_version=`echo $withval | \
7216 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
7217 wx_requested_minor_version=`echo $withval | \
7218 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
7220 if test "${#wx_requested_major_version}" != "1" -o \
7221 "${#wx_requested_minor_version}" != "1" ; then
7222 { { echo "$as_me:$LINENO: error:
7223 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7224 " >&5
7225 echo "$as_me: error:
7226 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7227 " >&2;}
7228 { (exit 1); exit 1; }; }
7231 WX_VERSION="$wx_requested_major_version"".""$wx_requested_minor_version"
7232 echo "$as_me:$LINENO: result: $WX_VERSION" >&5
7233 echo "${ECHO_T}$WX_VERSION" >&6
7237 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7238 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
7239 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
7240 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
7241 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
7242 echo "[dbg] VERSION: $VERSION, WX_VERSION: $WX_VERSION"
7245 # Force using a static wxWidgets library if the executable is to be linked statically.
7246 if test ${enable_static:-no} = yes; then
7247 WX_SHARED=0
7250 # Force using a unicode build of the library
7251 WX_UNICODE=1
7252 DEBUG=$WX_DEBUG
7254 if test "$WX_SHARED" = "1" ; then
7255 WXCONFIG_FLAGS="--static=no "
7256 elif test "$WX_SHARED" = "0" ; then
7257 WXCONFIG_FLAGS="--static=yes "
7260 if test "$WX_DEBUG" = "1" ; then
7261 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=yes "
7262 elif test "$WX_DEBUG" = "0" ; then
7263 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=no "
7266 if test "$WX_UNICODE" = "1" ; then
7267 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=yes "
7268 elif test "$WX_UNICODE" = "0" ; then
7269 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=no "
7272 if test "$TOOLKIT" != "auto" ; then
7273 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
7276 if test "$WX_VERSION" != "auto" ; then
7277 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--version=$WX_VERSION "
7280 WXCONFIG_FLAGS=${WXCONFIG_FLAGS% }
7282 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7283 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
7287 if test x${WX_CONFIG_NAME+set} != xset ; then
7288 WX_CONFIG_NAME=wx-config
7291 if test "x$wx_config_name" != x ; then
7292 WX_CONFIG_NAME="$wx_config_name"
7295 if test x$wx_config_exec_prefix != x ; then
7296 wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
7297 WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
7299 if test x$wx_config_prefix != x ; then
7300 wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
7301 WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
7303 if test "$cross_compiling" = "yes"; then
7304 wx_config_args="$wx_config_args --host=$host_alias"
7307 if test -x "$WX_CONFIG_NAME" ; then
7308 echo "$as_me:$LINENO: checking for wx-config" >&5
7309 echo $ECHO_N "checking for wx-config... $ECHO_C" >&6
7310 WX_CONFIG_PATH="$WX_CONFIG_NAME"
7311 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7312 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7313 else
7314 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
7315 set dummy $WX_CONFIG_NAME; ac_word=$2
7316 echo "$as_me:$LINENO: checking for $ac_word" >&5
7317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7318 if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then
7319 echo $ECHO_N "(cached) $ECHO_C" >&6
7320 else
7321 case $WX_CONFIG_PATH in
7322 [\\/]* | ?:[\\/]*)
7323 ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path.
7326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7327 as_dummy=""$WX_LOOKUP_PATH:$PATH""
7328 for as_dir in $as_dummy
7330 IFS=$as_save_IFS
7331 test -z "$as_dir" && as_dir=.
7332 for ac_exec_ext in '' $ac_executable_extensions; do
7333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7334 ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7336 break 2
7338 done
7339 done
7341 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no"
7343 esac
7345 WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH
7347 if test -n "$WX_CONFIG_PATH"; then
7348 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7349 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7350 else
7351 echo "$as_me:$LINENO: result: no" >&5
7352 echo "${ECHO_T}no" >&6
7357 if test "$WX_CONFIG_PATH" != "no" ; then
7358 WX_VERSION_FULL=""
7360 min_wx_version=2.8.8
7361 if test -z "$WXCONFIG_FLAGS" ; then
7362 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version" >&5
7363 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version... $ECHO_C" >&6
7364 else
7365 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
7366 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... $ECHO_C" >&6
7369 WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS "
7371 WX_VERSION_FULL=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
7372 wx_config_major_version=`echo $WX_VERSION_FULL | \
7373 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7374 wx_config_minor_version=`echo $WX_VERSION_FULL | \
7375 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7376 wx_config_micro_version=`echo $WX_VERSION_FULL | \
7377 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7379 wx_requested_major_version=`echo $min_wx_version | \
7380 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7381 wx_requested_minor_version=`echo $min_wx_version | \
7382 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7383 wx_requested_micro_version=`echo $min_wx_version | \
7384 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7387 wx_ver_ok=""
7388 if test "x$WX_VERSION_FULL" != x ; then
7389 if test $wx_config_major_version -gt $wx_requested_major_version; then
7390 wx_ver_ok=yes
7391 else
7392 if test $wx_config_major_version -eq $wx_requested_major_version; then
7393 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
7394 wx_ver_ok=yes
7395 else
7396 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
7397 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
7398 wx_ver_ok=yes
7407 if test -n "$wx_ver_ok"; then
7409 echo "$as_me:$LINENO: result: yes (version $WX_VERSION_FULL)" >&5
7410 echo "${ECHO_T}yes (version $WX_VERSION_FULL)" >&6
7411 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs`
7413 echo "$as_me:$LINENO: checking for wxWidgets static library" >&5
7414 echo $ECHO_N "checking for wxWidgets static library... $ECHO_C" >&6
7415 WX_LIBS_STATIC=`$WX_CONFIG_WITH_ARGS --static --libs 2>/dev/null`
7416 if test "x$WX_LIBS_STATIC" = "x"; then
7417 echo "$as_me:$LINENO: result: no" >&5
7418 echo "${ECHO_T}no" >&6
7419 else
7420 echo "$as_me:$LINENO: result: yes" >&5
7421 echo "${ECHO_T}yes" >&6
7424 wx_has_cppflags=""
7425 if test $wx_config_major_version -gt 2; then
7426 wx_has_cppflags=yes
7427 else
7428 if test $wx_config_major_version -eq 2; then
7429 if test $wx_config_minor_version -gt 2; then
7430 wx_has_cppflags=yes
7431 else
7432 if test $wx_config_minor_version -eq 2; then
7433 if test $wx_config_micro_version -ge 6; then
7434 wx_has_cppflags=yes
7441 wx_has_rescomp=""
7442 if test $wx_config_major_version -gt 2; then
7443 wx_has_rescomp=yes
7444 else
7445 if test $wx_config_major_version -eq 2; then
7446 if test $wx_config_minor_version -ge 7; then
7447 wx_has_rescomp=yes
7451 if test "x$wx_has_rescomp" = x ; then
7452 WX_RESCOMP=
7453 else
7454 WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
7457 if test "x$wx_has_cppflags" = x ; then
7458 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
7459 WX_CPPFLAGS=$WX_CFLAGS
7460 WX_CXXFLAGS=$WX_CFLAGS
7462 WX_CFLAGS_ONLY=$WX_CFLAGS
7463 WX_CXXFLAGS_ONLY=$WX_CFLAGS
7464 else
7465 WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags`
7466 WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags`
7467 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
7469 WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
7470 WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
7473 wxWin=1
7475 else
7477 if test "x$WX_VERSION_FULL" = x; then
7478 echo "$as_me:$LINENO: result: no" >&5
7479 echo "${ECHO_T}no" >&6
7480 else
7481 echo "$as_me:$LINENO: result: no (version $WX_VERSION_FULL is not new enough)" >&5
7482 echo "${ECHO_T}no (version $WX_VERSION_FULL is not new enough)" >&6
7485 WX_CFLAGS=""
7486 WX_CPPFLAGS=""
7487 WX_CXXFLAGS=""
7488 WX_LIBS=""
7489 WX_LIBS_STATIC=""
7490 WX_RESCOMP=""
7492 if test ! -z "$WXCONFIG_FLAGS"; then
7494 wx_error_message="
7495 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
7496 build with the following settings:
7497 $WXCONFIG_FLAGS
7498 but such build is not available.
7500 To see the wxWidgets builds available on this system, please use
7501 'wx-config --list' command. To use the default build, returned by
7502 'wx-config --selected-config', use the options with their 'auto'
7503 default values."
7507 wx_error_message="
7508 The requested wxWidgets build couldn't be found.
7509 $wx_error_message
7511 If you still get this error, then check that 'wx-config' is
7512 in path, the directory where wxWidgets libraries are installed
7513 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
7514 or equivalent variable and wxWidgets version is 2.8.8 or above."
7516 { { echo "$as_me:$LINENO: error: $wx_error_message" >&5
7517 echo "$as_me: error: $wx_error_message" >&2;}
7518 { (exit 1); exit 1; }; }
7521 else
7523 WX_CFLAGS=""
7524 WX_CPPFLAGS=""
7525 WX_CXXFLAGS=""
7526 WX_LIBS=""
7527 WX_LIBS_STATIC=""
7528 WX_RESCOMP=""
7544 WX_VERSION_MAJOR="$wx_config_major_version"
7545 WX_VERSION_MINOR="$wx_config_minor_version"
7549 if test "$wxWin" != 1; then
7550 { { echo "$as_me:$LINENO: error:
7551 wxWidgets must be installed on your system but wx-config
7552 script couldn't be found. Please check that wx-config is
7553 in path or specified by --with-wx-config=path flag, the
7554 directory where wxWidgets libraries are installed (returned
7555 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7556 equivalent variable and wxWidgets version is 2.8.8 or above.
7557 " >&5
7558 echo "$as_me: error:
7559 wxWidgets must be installed on your system but wx-config
7560 script couldn't be found. Please check that wx-config is
7561 in path or specified by --with-wx-config=path flag, the
7562 directory where wxWidgets libraries are installed (returned
7563 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7564 equivalent variable and wxWidgets version is 2.8.8 or above.
7565 " >&2;}
7566 { (exit 1); exit 1; }; }
7569 WX_VERSION="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
7570 if test $WX_VERSION -lt 26 ; then
7572 { { echo "$as_me:$LINENO: error:
7573 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7574 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7575 version of wxWidgets.
7576 " >&5
7577 echo "$as_me: error:
7578 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7579 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7580 version of wxWidgets.
7581 " >&2;}
7582 { (exit 1); exit 1; }; }
7585 WX_SELECTEDCONFIG=$($WX_CONFIG_WITH_ARGS --selected_config)
7587 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7588 echo "[dbg] Using wx-config --selected-config"
7589 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
7593 if test $WX_SHARED = "1"; then
7594 STATIC=0
7595 elif test $WX_SHARED = "0"; then
7596 STATIC=1
7597 elif test $WX_SHARED = "auto"; then
7598 STATIC="auto"
7602 if test "$UNICODE" = "auto" ; then
7604 echo "$as_me:$LINENO: checking if wxWidgets was built with UNICODE enabled" >&5
7605 echo $ECHO_N "checking if wxWidgets was built with UNICODE enabled... $ECHO_C" >&6
7607 WX_UNICODE=$(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
7609 if test "$WX_UNICODE" != "0"; then
7610 WX_UNICODE=1
7611 echo "$as_me:$LINENO: result: yes" >&5
7612 echo "${ECHO_T}yes" >&6
7614 else
7615 WX_UNICODE=0
7616 echo "$as_me:$LINENO: result: no" >&5
7617 echo "${ECHO_T}no" >&6
7620 else
7622 WX_UNICODE=$UNICODE
7626 if test "$DEBUG" = "auto" ; then
7628 echo "$as_me:$LINENO: checking if wxWidgets was built in DEBUG mode" >&5
7629 echo $ECHO_N "checking if wxWidgets was built in DEBUG mode... $ECHO_C" >&6
7631 WX_DEBUG=$(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
7633 if test "$WX_DEBUG" != "0"; then
7634 WX_DEBUG=1
7635 echo "$as_me:$LINENO: result: yes" >&5
7636 echo "${ECHO_T}yes" >&6
7638 else
7639 WX_DEBUG=0
7640 echo "$as_me:$LINENO: result: no" >&5
7641 echo "${ECHO_T}no" >&6
7644 else
7646 WX_DEBUG=$DEBUG
7650 if test "$STATIC" = "auto" ; then
7652 echo "$as_me:$LINENO: checking if wxWidgets was built in STATIC mode" >&5
7653 echo $ECHO_N "checking if wxWidgets was built in STATIC mode... $ECHO_C" >&6
7655 WX_STATIC=$(expr "$WX_SELECTEDCONFIG" : ".*static.*")
7657 if test "$WX_STATIC" != "0"; then
7658 WX_STATIC=1
7659 echo "$as_me:$LINENO: result: yes" >&5
7660 echo "${ECHO_T}yes" >&6
7662 else
7663 WX_STATIC=0
7664 echo "$as_me:$LINENO: result: no" >&5
7665 echo "${ECHO_T}no" >&6
7668 else
7670 WX_STATIC=$STATIC
7674 if test "$WX_STATIC" != "0"; then
7675 WX_SHARED=0
7676 else
7677 WX_SHARED=1
7684 if test "$TOOLKIT" = "auto" ; then
7686 echo "$as_me:$LINENO: checking which wxWidgets toolkit was selected" >&5
7687 echo $ECHO_N "checking which wxWidgets toolkit was selected... $ECHO_C" >&6
7689 WX_GTKPORT1=$(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
7690 WX_GTKPORT2=$(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
7691 WX_MSWPORT=$(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
7692 WX_MOTIFPORT=$(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
7693 WX_MACPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
7694 WX_X11PORT=$(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
7695 WX_MGLPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mgl.*")
7696 WX_DFBPORT=$(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
7697 WX_BASEPORT=$(expr "$WX_SELECTEDCONFIG" : ".*base.*")
7698 WX_COCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*cocoa.*")
7699 WX_OSXCOCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*osx_cocoa.*")
7701 WX_PORT="unknown"
7702 if test "$WX_GTKPORT1" != "0"; then WX_PORT="gtk1"; fi
7703 if test "$WX_GTKPORT2" != "0"; then WX_PORT="gtk2"; fi
7704 if test "$WX_MSWPORT" != "0"; then WX_PORT="msw"; fi
7705 if test "$WX_MOTIFPORT" != "0"; then WX_PORT="motif"; fi
7706 if test "$WX_MACPORT" != "0"; then WX_PORT="mac"; fi
7707 if test "$WX_X11PORT" != "0"; then WX_PORT="x11"; fi
7708 if test "$WX_MGLPORT" != "0"; then WX_PORT="mgl"; fi
7709 if test "$WX_DFBPORT" != "0"; then WX_PORT="dfb"; fi
7710 if test "$WX_BASEPORT" != "0"; then WX_PORT="base"; fi
7711 if test "$WX_COCOAPORT" != "0"; then WX_PORT="cocoa"; fi
7712 if test "$WX_OSXCOCOAPORT" != "0"; then WX_PORT="osx_cocoa"; fi
7715 if test "$WX_PORT" = "unknown" ; then
7716 { { echo "$as_me:$LINENO: error:
7717 Cannot detect the currently installed wxWidgets port !
7718 Please check your 'wx-config --cxxflags'...
7719 " >&5
7720 echo "$as_me: error:
7721 Cannot detect the currently installed wxWidgets port !
7722 Please check your 'wx-config --cxxflags'...
7723 " >&2;}
7724 { (exit 1); exit 1; }; }
7727 echo "$as_me:$LINENO: result: $WX_PORT" >&5
7728 echo "${ECHO_T}$WX_PORT" >&6
7729 else
7731 if test -n "$TOOLKIT" ; then
7732 WX_PORT=$TOOLKIT
7733 else
7734 WX_PORT=$PORT
7740 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7741 echo "[dbg] Values of all WX_* options after final detection:"
7742 echo "[dbg] WX_DEBUG: $WX_DEBUG"
7743 echo "[dbg] WX_UNICODE: $WX_UNICODE"
7744 echo "[dbg] WX_SHARED: $WX_SHARED"
7745 echo "[dbg] WX_VERSION: $WX_VERSION"
7746 echo "[dbg] WX_PORT: $WX_PORT"
7749 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
7750 { { echo "$as_me:$LINENO: error:
7751 Cannot build shared library against a static build of wxWidgets !
7752 This error happens because the wxWidgets build which was selected
7753 has been detected as static while you asked to build $PACKAGE_NAME
7754 as shared library and this is not possible.
7755 Use the '--disable-shared' option to build $PACKAGE_NAME
7756 as static library or '--with-wxshared' to use wxWidgets as shared library.
7757 " >&5
7758 echo "$as_me: error:
7759 Cannot build shared library against a static build of wxWidgets !
7760 This error happens because the wxWidgets build which was selected
7761 has been detected as static while you asked to build $PACKAGE_NAME
7762 as shared library and this is not possible.
7763 Use the '--disable-shared' option to build $PACKAGE_NAME
7764 as static library or '--with-wxshared' to use wxWidgets as shared library.
7765 " >&2;}
7766 { (exit 1); exit 1; }; }
7769 if test "$DEBUG" = "auto"; then
7770 DEBUG=$WX_DEBUG
7772 if test "$DEBUG" = "1"; then
7773 BUILD="debug"
7774 elif test "$DEBUG" = ""; then
7775 BUILD="release"
7778 if test "$UNICODE" = "auto"; then
7779 UNICODE=$WX_UNICODE
7781 if test "$SHARED" = "auto"; then
7782 SHARED=$WX_SHARED
7784 if test "$TOOLKIT" = "auto"; then
7785 TOOLKIT=$WX_PORT
7790 # We also need wxBase
7791 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs adv,core,net`
7792 WXBASE_LIBS=`$WX_CONFIG_WITH_ARGS --libs net`
7793 WXBASE_CPPFLAGS="$WX_CPPFLAGS -DwxUSE_GUI=0"
7797 if test ${need_gui} = yes -a "${WX_PORT}" = base; then
7798 { { echo "$as_me:$LINENO: error:
7799 The selected components need a wxWidgets library with GUI,
7800 but your installation is base-only. Please install a GUI
7801 enabled version of wxWidgets and then retry.
7802 " >&5
7803 echo "$as_me: error:
7804 The selected components need a wxWidgets library with GUI,
7805 but your installation is base-only. Please install a GUI
7806 enabled version of wxWidgets and then retry.
7807 " >&2;}
7808 { (exit 1); exit 1; }; }
7813 if test ${SYS:-unknown} = win32; then
7815 if test -n "$ac_tool_prefix"; then
7816 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7817 set dummy ${ac_tool_prefix}windres; ac_word=$2
7818 echo "$as_me:$LINENO: checking for $ac_word" >&5
7819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7820 if test "${ac_cv_prog_RC+set}" = set; then
7821 echo $ECHO_N "(cached) $ECHO_C" >&6
7822 else
7823 if test -n "$RC"; then
7824 ac_cv_prog_RC="$RC" # Let the user override the test.
7825 else
7826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7827 for as_dir in $PATH
7829 IFS=$as_save_IFS
7830 test -z "$as_dir" && as_dir=.
7831 for ac_exec_ext in '' $ac_executable_extensions; do
7832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7833 ac_cv_prog_RC="${ac_tool_prefix}windres"
7834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7835 break 2
7837 done
7838 done
7842 RC=$ac_cv_prog_RC
7843 if test -n "$RC"; then
7844 echo "$as_me:$LINENO: result: $RC" >&5
7845 echo "${ECHO_T}$RC" >&6
7846 else
7847 echo "$as_me:$LINENO: result: no" >&5
7848 echo "${ECHO_T}no" >&6
7852 if test -z "$ac_cv_prog_RC"; then
7853 ac_ct_RC=$RC
7854 # Extract the first word of "windres", so it can be a program name with args.
7855 set dummy windres; ac_word=$2
7856 echo "$as_me:$LINENO: checking for $ac_word" >&5
7857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7858 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then
7859 echo $ECHO_N "(cached) $ECHO_C" >&6
7860 else
7861 if test -n "$ac_ct_RC"; then
7862 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
7863 else
7864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7865 for as_dir in $PATH
7867 IFS=$as_save_IFS
7868 test -z "$as_dir" && as_dir=.
7869 for ac_exec_ext in '' $ac_executable_extensions; do
7870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7871 ac_cv_prog_ac_ct_RC="windres"
7872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7873 break 2
7875 done
7876 done
7878 test -z "$ac_cv_prog_ac_ct_RC" && ac_cv_prog_ac_ct_RC=":"
7881 ac_ct_RC=$ac_cv_prog_ac_ct_RC
7882 if test -n "$ac_ct_RC"; then
7883 echo "$as_me:$LINENO: result: $ac_ct_RC" >&5
7884 echo "${ECHO_T}$ac_ct_RC" >&6
7885 else
7886 echo "$as_me:$LINENO: result: no" >&5
7887 echo "${ECHO_T}no" >&6
7890 RC=$ac_ct_RC
7891 else
7892 RC="$ac_cv_prog_RC"
7895 MULERCFLAGS=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
7901 # Check for libupnp
7902 if test "${ENABLE_UPNP:-yes}" = yes; then
7906 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7907 if test -n "$ac_tool_prefix"; then
7908 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7909 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7910 echo "$as_me:$LINENO: checking for $ac_word" >&5
7911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7912 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7913 echo $ECHO_N "(cached) $ECHO_C" >&6
7914 else
7915 case $PKG_CONFIG in
7916 [\\/]* | ?:[\\/]*)
7917 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7921 for as_dir in $PATH
7923 IFS=$as_save_IFS
7924 test -z "$as_dir" && as_dir=.
7925 for ac_exec_ext in '' $ac_executable_extensions; do
7926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7927 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7929 break 2
7931 done
7932 done
7935 esac
7937 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7939 if test -n "$PKG_CONFIG"; then
7940 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7941 echo "${ECHO_T}$PKG_CONFIG" >&6
7942 else
7943 echo "$as_me:$LINENO: result: no" >&5
7944 echo "${ECHO_T}no" >&6
7948 if test -z "$ac_cv_path_PKG_CONFIG"; then
7949 ac_pt_PKG_CONFIG=$PKG_CONFIG
7950 # Extract the first word of "pkg-config", so it can be a program name with args.
7951 set dummy pkg-config; ac_word=$2
7952 echo "$as_me:$LINENO: checking for $ac_word" >&5
7953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7954 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
7955 echo $ECHO_N "(cached) $ECHO_C" >&6
7956 else
7957 case $ac_pt_PKG_CONFIG in
7958 [\\/]* | ?:[\\/]*)
7959 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7963 for as_dir in $PATH
7965 IFS=$as_save_IFS
7966 test -z "$as_dir" && as_dir=.
7967 for ac_exec_ext in '' $ac_executable_extensions; do
7968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7969 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7971 break 2
7973 done
7974 done
7977 esac
7979 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7981 if test -n "$ac_pt_PKG_CONFIG"; then
7982 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
7983 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
7984 else
7985 echo "$as_me:$LINENO: result: no" >&5
7986 echo "${ECHO_T}no" >&6
7989 PKG_CONFIG=$ac_pt_PKG_CONFIG
7990 else
7991 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7995 if test -n "$PKG_CONFIG"; then
7996 _pkg_min_version=0.9.0
7997 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
7998 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
7999 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8000 echo "$as_me:$LINENO: result: yes" >&5
8001 echo "${ECHO_T}yes" >&6
8002 else
8003 echo "$as_me:$LINENO: result: no" >&5
8004 echo "${ECHO_T}no" >&6
8005 PKG_CONFIG=""
8011 # Check whether --with-libupnp-prefix or --without-libupnp-prefix was given.
8012 if test "${with_libupnp_prefix+set}" = set; then
8013 withval="$with_libupnp_prefix"
8014 export PKG_CONFIG_PATH=$withval/lib/pkgconfig
8017 if test $cross_compiling = no; then
8019 echo "$as_me:$LINENO: checking for libupnp version >= 1.6.6" >&5
8020 echo $ECHO_N "checking for libupnp version >= 1.6.6... $ECHO_C" >&6
8021 if test -n "$PKG_CONFIG"; then
8023 if $PKG_CONFIG libupnp --exists; then
8025 LIBUPNP_VERSION=`$PKG_CONFIG libupnp --modversion`
8026 if $PKG_CONFIG libupnp --atleast-version=1.6.6; then
8028 result=yes
8029 resultstr=" (version $LIBUPNP_VERSION)"
8030 LIBUPNP_CPPFLAGS=`$PKG_CONFIG libupnp --cflags-only-I`
8031 LIBUPNP_CFLAGS=`$PKG_CONFIG libupnp --cflags-only-other`
8032 LIBUPNP_LDFLAGS=`$PKG_CONFIG libupnp --libs-only-L`
8033 LIBUPNP_LIBS=`$PKG_CONFIG libupnp --libs-only-other`
8034 LIBUPNP_LIBS="$LIBUPNP_LIBS `$PKG_CONFIG libupnp --libs-only-l`"
8036 else
8038 result=no
8039 resultstr=" (version $LIBUPNP_VERSION is not new enough)"
8044 else
8046 result=no
8047 resultstr=" (try to use --with-libupnp-prefix=PREFIX)"
8052 else
8054 result=no
8055 resultstr=" (pkg-config not found)"
8059 echo "$as_me:$LINENO: result: $result$resultstr" >&5
8060 echo "${ECHO_T}$result$resultstr" >&6
8061 libupnp_error="libupnp >= 1.6.6 not found$resultstr"
8063 else
8065 result=no
8066 libupnp_error="cross compiling"
8071 if test ${result:-no} = yes; then
8072 LIBUPNP_CPPFLAGS="$LIBUPNP_CPPFLAGS -DENABLE_UPNP=1"
8073 else
8074 ENABLE_UPNP=disabled
8075 { echo "$as_me:$LINENO: WARNING:
8076 UPnP code has been disabled because ${libupnp_error}." >&5
8077 echo "$as_me: WARNING:
8078 UPnP code has been disabled because ${libupnp_error}." >&2;}
8079 _mule_warning_5=yes
8080 _mule_has_warnings=yes
8091 # Check for Crypto++
8094 # Check whether --with-crypto-prefix or --without-crypto-prefix was given.
8095 if test "${with_crypto_prefix+set}" = set; then
8096 withval="$with_crypto_prefix"
8100 echo "$as_me:$LINENO: checking for crypto++ version >= 5.1" >&5
8101 echo $ECHO_N "checking for crypto++ version >= 5.1... $ECHO_C" >&6
8103 cryptopp_file_with_version="cryptlib.h"
8105 CRYPTOPP_STYLE="unknown"
8106 CRYPTOPP_LIB_NAME="unknown"
8107 cryptopp_includedir="unknown"
8108 CRYPTOPP_INCLUDE_PREFIX="unknown"
8109 cryptopp_libdir="unknown"
8111 if test -n "$with_crypto_prefix"; then
8113 CRYPTOPP_PREFIX="$with_crypto_prefix"
8114 # Find the Cryptopp header in the user-provided location
8115 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8117 CRYPTOPP_STYLE="sources"
8118 CRYPTOPP_LIB_NAME="cryptopp"
8119 cryptopp_includedir=
8120 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
8121 cryptopp_libdir=
8123 elif test -f $CRYPTOPP_PREFIX/include/cryptopp/$cryptopp_file_with_version; then
8125 CRYPTOPP_STYLE="installed"
8126 CRYPTOPP_LIB_NAME="cryptopp"
8127 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8128 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8129 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8131 elif test -f $CRYPTOPP_PREFIX/include/crypto++/$cryptopp_file_with_version; then
8133 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8134 CRYPTOPP_STYLE="gentoo_debian"
8135 CRYPTOPP_LIB_NAME="crypto++"
8136 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8137 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8138 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8143 else
8145 for CRYPTOPP_PREFIX in /usr /usr/local /opt /opt/local /usr/pkg /mingw ; do
8146 # Find the Cryptopp header in system locations
8147 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8149 CRYPTOPP_STYLE="sources"
8150 CRYPTOPP_LIB_NAME="cryptopp"
8151 cryptopp_includedir=
8152 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
8153 cryptopp_libdir=
8154 break
8156 elif test -f $CRYPTOPP_PREFIX/include/cryptopp/$cryptopp_file_with_version; then
8158 CRYPTOPP_STYLE="installed"
8159 CRYPTOPP_LIB_NAME="cryptopp"
8160 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8161 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8162 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8163 break
8165 elif test -f $CRYPTOPP_PREFIX/include/crypto++/$cryptopp_file_with_version; then
8167 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8168 CRYPTOPP_STYLE="gentoo_debian"
8169 CRYPTOPP_LIB_NAME="crypto++"
8170 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8171 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8172 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8173 break
8177 done
8182 if test $CRYPTOPP_STYLE = "unknown"; then
8183 result=no; resultstr=""
8184 else
8186 # Find out the crypto++ version and check against the minimum required
8187 cryptopp_header_path="${cryptopp_includedir+$cryptopp_includedir/}$CRYPTOPP_INCLUDE_PREFIX/$cryptopp_file_with_version"
8188 CRYPTOPP_VERSION_STRING=`$EGREP "Reference Manual|API Reference" $cryptopp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
8189 CRYPTOPP_VERSION_NUMBER=`echo $CRYPTOPP_VERSION_STRING | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8190 minvers=`echo 5.1 | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8192 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then
8194 result=yes
8195 resultstr=" (version $CRYPTOPP_VERSION_STRING, $CRYPTOPP_STYLE)"
8196 if test -n "$cryptopp_includedir"; then
8197 CRYPTOPP_CPPFLAGS="-I$cryptopp_includedir"
8198 else
8199 CRYPTOPP_CPPFLAGS=
8202 if test -n "$cryptopp_libdir"; then
8204 CRYPTOPP_LDFLAGS="-L$cryptopp_libdir"
8205 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME"
8207 else
8209 CRYPTOPP_LDFLAGS=
8210 CRYPTOPP_LIBS="${CRYPTOPP_INCLUDE_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a"
8216 cat >>confdefs.h <<_ACEOF
8217 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX
8218 _ACEOF
8221 else
8223 result=no
8224 resultstr=" (version $CRYPTOPP_VERSION_STRING is not new enough)"
8232 echo "$as_me:$LINENO: result: $result$resultstr" >&5
8233 echo "${ECHO_T}$result$resultstr" >&6
8235 if test ${result:-no} = yes; then
8237 # Check for CryptoPP >= 5.5
8238 if test $CRYPTOPP_VERSION_NUMBER -ge "5005000"; then
8239 CRYPTOPP_CPPFLAGS="$CRYPTOPP_CPPFLAGS -D__WEAK_CRYPTO__"
8243 else
8245 { { echo "$as_me:$LINENO: error:
8246 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8247 Please try again with --with-crypto-prefix=/my_crypto_prefix
8248 (replace /my_crypto_prefix with a valid path to your crypto++
8249 installation directory)." >&5
8250 echo "$as_me: error:
8251 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8252 Please try again with --with-crypto-prefix=/my_crypto_prefix
8253 (replace /my_crypto_prefix with a valid path to your crypto++
8254 installation directory)." >&2;}
8255 { (exit 1); exit 1; }; }
8262 ac_ext=cc
8263 ac_cpp='$CXXCPP $CPPFLAGS'
8264 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8265 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8266 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8271 echo "$as_me:$LINENO: checking if we're using the GNU C++ library" >&5
8272 echo $ECHO_N "checking if we're using the GNU C++ library... $ECHO_C" >&6
8273 cat >conftest.$ac_ext <<_ACEOF
8275 /* confdefs.h. */
8276 _ACEOF
8277 cat confdefs.h >>conftest.$ac_ext
8278 cat >>conftest.$ac_ext <<_ACEOF
8279 /* end confdefs.h. */
8281 #include <string>
8282 #ifndef __GLIBCXX__
8283 #error Non-GNU C++ library found.
8284 #endif
8287 _ACEOF
8288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8289 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8290 ac_status=$?
8291 grep -v '^ *+' conftest.er1 >conftest.err
8292 rm -f conftest.er1
8293 cat conftest.err >&5
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); } >/dev/null; then
8296 if test -s conftest.err; then
8297 ac_cpp_err=$ac_cxx_preproc_warn_flag
8298 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8299 else
8300 ac_cpp_err=
8302 else
8303 ac_cpp_err=yes
8305 if test -z "$ac_cpp_err"; then
8306 GLIBCXX=yes
8307 else
8308 echo "$as_me: failed program was:" >&5
8309 sed 's/^/| /' conftest.$ac_ext >&5
8311 GLIBCXX=no
8313 rm -f conftest.err conftest.$ac_ext
8314 echo "$as_me:$LINENO: result: $GLIBCXX" >&5
8315 echo "${ECHO_T}$GLIBCXX" >&6
8318 mule_backup_CPPFLAGS="$CPPFLAGS"
8319 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
8321 echo "$as_me:$LINENO: checking that wxWidgets has support for large files" >&5
8322 echo $ECHO_N "checking that wxWidgets has support for large files... $ECHO_C" >&6
8323 cat >conftest.$ac_ext <<_ACEOF
8325 /* confdefs.h. */
8326 _ACEOF
8327 cat confdefs.h >>conftest.$ac_ext
8328 cat >>conftest.$ac_ext <<_ACEOF
8329 /* end confdefs.h. */
8331 #include <wx/wx.h>
8332 #include <wx/filefn.h>
8333 #ifndef wxHAS_LARGE_FILES
8334 #error No LargeFile support!
8335 #endif
8338 _ACEOF
8339 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8340 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8341 ac_status=$?
8342 grep -v '^ *+' conftest.er1 >conftest.err
8343 rm -f conftest.er1
8344 cat conftest.err >&5
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); } >/dev/null; then
8347 if test -s conftest.err; then
8348 ac_cpp_err=$ac_cxx_preproc_warn_flag
8349 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8350 else
8351 ac_cpp_err=
8353 else
8354 ac_cpp_err=yes
8356 if test -z "$ac_cpp_err"; then
8358 echo "$as_me:$LINENO: result: yes" >&5
8359 echo "${ECHO_T}yes" >&6
8361 else
8362 echo "$as_me: failed program was:" >&5
8363 sed 's/^/| /' conftest.$ac_ext >&5
8366 echo "$as_me:$LINENO: result: no" >&5
8367 echo "${ECHO_T}no" >&6
8368 { { echo "$as_me:$LINENO: error:
8369 Support for large files in wxWidgets is required by aMule.
8370 To continue you must recompile wxWidgets with support for
8371 large files enabled." >&5
8372 echo "$as_me: error:
8373 Support for large files in wxWidgets is required by aMule.
8374 To continue you must recompile wxWidgets with support for
8375 large files enabled." >&2;}
8376 { (exit 1); exit 1; }; }
8379 rm -f conftest.err conftest.$ac_ext
8381 CPPFLAGS="$mule_backup_CPPFLAGS"
8384 # Check if the compiler is broken, wrt. exceptions.
8386 echo "$as_me:$LINENO: checking for exception-handling" >&5
8387 echo $ECHO_N "checking for exception-handling... $ECHO_C" >&6
8388 if test "$cross_compiling" = yes; then
8390 echo "$as_me:$LINENO: result: undeterminable" >&5
8391 echo "${ECHO_T}undeterminable" >&6
8392 { echo "$as_me:$LINENO: WARNING:
8393 Cross-compilation detected, so exception handling cannot be tested.
8394 Note that broken exception handling in your compiler may lead to
8395 unexpected crashes." >&5
8396 echo "$as_me: WARNING:
8397 Cross-compilation detected, so exception handling cannot be tested.
8398 Note that broken exception handling in your compiler may lead to
8399 unexpected crashes." >&2;}
8400 _mule_warning_6=yes
8401 _mule_has_warnings=yes
8404 else
8405 cat >conftest.$ac_ext <<_ACEOF
8407 /* confdefs.h. */
8408 _ACEOF
8409 cat confdefs.h >>conftest.$ac_ext
8410 cat >>conftest.$ac_ext <<_ACEOF
8411 /* end confdefs.h. */
8414 main ()
8417 try {
8418 throw 1;
8419 } catch (int) {
8420 return 0;
8422 return 1;
8425 return 0;
8428 _ACEOF
8429 rm -f conftest$ac_exeext
8430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8431 (eval $ac_link) 2>&5
8432 ac_status=$?
8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8436 (eval $ac_try) 2>&5
8437 ac_status=$?
8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439 (exit $ac_status); }; }; then
8441 echo "$as_me:$LINENO: result: yes" >&5
8442 echo "${ECHO_T}yes" >&6
8444 else
8445 echo "$as_me: program exited with status $ac_status" >&5
8446 echo "$as_me: failed program was:" >&5
8447 sed 's/^/| /' conftest.$ac_ext >&5
8449 ( exit $ac_status )
8451 echo "$as_me:$LINENO: result: no" >&5
8452 echo "${ECHO_T}no" >&6
8453 { { echo "$as_me:$LINENO: error: Exception handling does not work. Broken compiler?" >&5
8454 echo "$as_me: error: Exception handling does not work. Broken compiler?" >&2;}
8455 { (exit 1); exit 1; }; }
8458 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8463 echo "$as_me:$LINENO: checking for <cxxabi.h> and __cxa_demangle()" >&5
8464 echo $ECHO_N "checking for <cxxabi.h> and __cxa_demangle()... $ECHO_C" >&6
8465 cat >conftest.$ac_ext <<_ACEOF
8467 /* confdefs.h. */
8468 _ACEOF
8469 cat confdefs.h >>conftest.$ac_ext
8470 cat >>conftest.$ac_ext <<_ACEOF
8471 /* end confdefs.h. */
8473 #include <cxxabi.h>
8476 main ()
8479 int status;
8480 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
8481 std::type_info *ti = abi::__cxa_current_exception_type();
8484 return 0;
8487 _ACEOF
8488 rm -f conftest.$ac_objext conftest$ac_exeext
8489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8490 (eval $ac_link) 2>conftest.er1
8491 ac_status=$?
8492 grep -v '^ *+' conftest.er1 >conftest.err
8493 rm -f conftest.er1
8494 cat conftest.err >&5
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); } &&
8497 { ac_try='test -z "$ac_cxx_werror_flag"
8498 || test ! -s conftest.err'
8499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8500 (eval $ac_try) 2>&5
8501 ac_status=$?
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); }; } &&
8504 { ac_try='test -s conftest$ac_exeext'
8505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8506 (eval $ac_try) 2>&5
8507 ac_status=$?
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); }; }; then
8513 cat >>confdefs.h <<\_ACEOF
8514 #define HAVE_CXXABI 1
8515 _ACEOF
8517 echo "$as_me:$LINENO: result: yes" >&5
8518 echo "${ECHO_T}yes" >&6
8520 else
8521 echo "$as_me: failed program was:" >&5
8522 sed 's/^/| /' conftest.$ac_ext >&5
8525 echo "$as_me:$LINENO: result: no" >&5
8526 echo "${ECHO_T}no" >&6
8529 rm -f conftest.err conftest.$ac_objext \
8530 conftest$ac_exeext conftest.$ac_ext
8532 ac_ext=c
8533 ac_cpp='$CPP $CPPFLAGS'
8534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8539 # Ok, we have all needed libs, now checking for other stuff
8540 if test "$LEX" = "flex"; then
8542 echo "$as_me:$LINENO: checking for extended flex capabilities" >&5
8543 echo $ECHO_N "checking for extended flex capabilities... $ECHO_C" >&6
8545 extended_flex=`flex --help | grep header-file`
8546 if test -n "$extended_flex"; then
8547 HAVE_FLEX_EXTENDED=yes
8548 else
8549 HAVE_FLEX_EXTENDED=no
8552 echo "$as_me:$LINENO: result: $HAVE_FLEX_EXTENDED" >&5
8553 echo "${ECHO_T}$HAVE_FLEX_EXTENDED" >&6
8555 if test $HAVE_FLEX_EXTENDED = no; then
8556 { echo "$as_me:$LINENO: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&5
8557 echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&6;}
8561 else
8562 HAVE_FLEX_EXTENDED=no
8566 # Flush standard test results for speeding cache
8567 cat >confcache <<\_ACEOF
8568 # This file is a shell script that caches the results of configure
8569 # tests run on this system so they can be shared between configure
8570 # scripts and configure runs, see configure's option --config-cache.
8571 # It is not useful on other systems. If it contains results you don't
8572 # want to keep, you may remove or edit it.
8574 # config.status only pays attention to the cache file if you give it
8575 # the --recheck option to rerun configure.
8577 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8578 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8579 # following values.
8581 _ACEOF
8583 # The following way of writing the cache mishandles newlines in values,
8584 # but we know of no workaround that is simple, portable, and efficient.
8585 # So, don't put newlines in cache variables' values.
8586 # Ultrix sh set writes to stderr and can't be redirected directly,
8587 # and sets the high bit in the cache file unless we assign to the vars.
8589 (set) 2>&1 |
8590 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8591 *ac_space=\ *)
8592 # `set' does not quote correctly, so add quotes (double-quote
8593 # substitution turns \\\\ into \\, and sed turns \\ into \).
8594 sed -n \
8595 "s/'/'\\\\''/g;
8596 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8599 # `set' quotes correctly as required by POSIX, so do not add quotes.
8600 sed -n \
8601 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8603 esac;
8605 sed '
8606 t clear
8607 : clear
8608 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8609 t end
8610 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8611 : end' >>confcache
8612 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8613 if test -w $cache_file; then
8614 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8615 cat confcache >$cache_file
8616 else
8617 echo "not updating unwritable cache $cache_file"
8620 rm -f confcache
8622 # Checks for header files.
8623 echo "$as_me:$LINENO: checking for X" >&5
8624 echo $ECHO_N "checking for X... $ECHO_C" >&6
8627 # Check whether --with-x or --without-x was given.
8628 if test "${with_x+set}" = set; then
8629 withval="$with_x"
8632 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8633 if test "x$with_x" = xno; then
8634 # The user explicitly disabled X.
8635 have_x=disabled
8636 else
8637 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8638 # Both variables are already set.
8639 have_x=yes
8640 else
8641 if test "${ac_cv_have_x+set}" = set; then
8642 echo $ECHO_N "(cached) $ECHO_C" >&6
8643 else
8644 # One or both of the vars are not set, and there is no cached value.
8645 ac_x_includes=no ac_x_libraries=no
8646 rm -fr conftest.dir
8647 if mkdir conftest.dir; then
8648 cd conftest.dir
8649 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8650 cat >Imakefile <<'_ACEOF'
8651 acfindx:
8652 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8653 _ACEOF
8654 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8655 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8656 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8657 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8658 for ac_extension in a so sl; do
8659 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8660 test -f $ac_im_libdir/libX11.$ac_extension; then
8661 ac_im_usrlibdir=$ac_im_libdir; break
8663 done
8664 # Screen out bogus values from the imake configuration. They are
8665 # bogus both because they are the default anyway, and because
8666 # using them would break gcc on systems where it needs fixed includes.
8667 case $ac_im_incroot in
8668 /usr/include) ;;
8669 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8670 esac
8671 case $ac_im_usrlibdir in
8672 /usr/lib | /lib) ;;
8673 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8674 esac
8676 cd ..
8677 rm -fr conftest.dir
8680 # Standard set of common directories for X headers.
8681 # Check X11 before X11Rn because it is often a symlink to the current release.
8682 ac_x_header_dirs='
8683 /usr/X11/include
8684 /usr/X11R6/include
8685 /usr/X11R5/include
8686 /usr/X11R4/include
8688 /usr/include/X11
8689 /usr/include/X11R6
8690 /usr/include/X11R5
8691 /usr/include/X11R4
8693 /usr/local/X11/include
8694 /usr/local/X11R6/include
8695 /usr/local/X11R5/include
8696 /usr/local/X11R4/include
8698 /usr/local/include/X11
8699 /usr/local/include/X11R6
8700 /usr/local/include/X11R5
8701 /usr/local/include/X11R4
8703 /usr/X386/include
8704 /usr/x386/include
8705 /usr/XFree86/include/X11
8707 /usr/include
8708 /usr/local/include
8709 /usr/unsupported/include
8710 /usr/athena/include
8711 /usr/local/x11r5/include
8712 /usr/lpp/Xamples/include
8714 /usr/openwin/include
8715 /usr/openwin/share/include'
8717 if test "$ac_x_includes" = no; then
8718 # Guess where to find include files, by looking for Intrinsic.h.
8719 # First, try using that file with no special directory specified.
8720 cat >conftest.$ac_ext <<_ACEOF
8721 /* confdefs.h. */
8722 _ACEOF
8723 cat confdefs.h >>conftest.$ac_ext
8724 cat >>conftest.$ac_ext <<_ACEOF
8725 /* end confdefs.h. */
8726 #include <X11/Intrinsic.h>
8727 _ACEOF
8728 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8729 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8730 ac_status=$?
8731 grep -v '^ *+' conftest.er1 >conftest.err
8732 rm -f conftest.er1
8733 cat conftest.err >&5
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); } >/dev/null; then
8736 if test -s conftest.err; then
8737 ac_cpp_err=$ac_c_preproc_warn_flag
8738 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8739 else
8740 ac_cpp_err=
8742 else
8743 ac_cpp_err=yes
8745 if test -z "$ac_cpp_err"; then
8746 # We can compile using X headers with no special include directory.
8747 ac_x_includes=
8748 else
8749 echo "$as_me: failed program was:" >&5
8750 sed 's/^/| /' conftest.$ac_ext >&5
8752 for ac_dir in $ac_x_header_dirs; do
8753 if test -r "$ac_dir/X11/Intrinsic.h"; then
8754 ac_x_includes=$ac_dir
8755 break
8757 done
8759 rm -f conftest.err conftest.$ac_ext
8760 fi # $ac_x_includes = no
8762 if test "$ac_x_libraries" = no; then
8763 # Check for the libraries.
8764 # See if we find them without any special options.
8765 # Don't add to $LIBS permanently.
8766 ac_save_LIBS=$LIBS
8767 LIBS="-lXt $LIBS"
8768 cat >conftest.$ac_ext <<_ACEOF
8769 /* confdefs.h. */
8770 _ACEOF
8771 cat confdefs.h >>conftest.$ac_ext
8772 cat >>conftest.$ac_ext <<_ACEOF
8773 /* end confdefs.h. */
8774 #include <X11/Intrinsic.h>
8776 main ()
8778 XtMalloc (0)
8780 return 0;
8782 _ACEOF
8783 rm -f conftest.$ac_objext conftest$ac_exeext
8784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8785 (eval $ac_link) 2>conftest.er1
8786 ac_status=$?
8787 grep -v '^ *+' conftest.er1 >conftest.err
8788 rm -f conftest.er1
8789 cat conftest.err >&5
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 (exit $ac_status); } &&
8792 { ac_try='test -z "$ac_c_werror_flag"
8793 || test ! -s conftest.err'
8794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8795 (eval $ac_try) 2>&5
8796 ac_status=$?
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798 (exit $ac_status); }; } &&
8799 { ac_try='test -s conftest$ac_exeext'
8800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8801 (eval $ac_try) 2>&5
8802 ac_status=$?
8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804 (exit $ac_status); }; }; then
8805 LIBS=$ac_save_LIBS
8806 # We can link X programs with no special library path.
8807 ac_x_libraries=
8808 else
8809 echo "$as_me: failed program was:" >&5
8810 sed 's/^/| /' conftest.$ac_ext >&5
8812 LIBS=$ac_save_LIBS
8813 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8815 # Don't even attempt the hair of trying to link an X program!
8816 for ac_extension in a so sl; do
8817 if test -r $ac_dir/libXt.$ac_extension; then
8818 ac_x_libraries=$ac_dir
8819 break 2
8821 done
8822 done
8824 rm -f conftest.err conftest.$ac_objext \
8825 conftest$ac_exeext conftest.$ac_ext
8826 fi # $ac_x_libraries = no
8828 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8829 # Didn't find X anywhere. Cache the known absence of X.
8830 ac_cv_have_x="have_x=no"
8831 else
8832 # Record where we found X for the cache.
8833 ac_cv_have_x="have_x=yes \
8834 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8839 eval "$ac_cv_have_x"
8840 fi # $with_x != no
8842 if test "$have_x" != yes; then
8843 echo "$as_me:$LINENO: result: $have_x" >&5
8844 echo "${ECHO_T}$have_x" >&6
8845 no_x=yes
8846 else
8847 # If each of the values was on the command line, it overrides each guess.
8848 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8849 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8850 # Update the cache value to reflect the command line values.
8851 ac_cv_have_x="have_x=yes \
8852 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8853 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8854 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8857 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8858 # for constant arguments. Useless!
8859 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8860 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8861 if test "${ac_cv_working_alloca_h+set}" = set; then
8862 echo $ECHO_N "(cached) $ECHO_C" >&6
8863 else
8864 cat >conftest.$ac_ext <<_ACEOF
8865 /* confdefs.h. */
8866 _ACEOF
8867 cat confdefs.h >>conftest.$ac_ext
8868 cat >>conftest.$ac_ext <<_ACEOF
8869 /* end confdefs.h. */
8870 #include <alloca.h>
8872 main ()
8874 char *p = (char *) alloca (2 * sizeof (int));
8876 return 0;
8878 _ACEOF
8879 rm -f conftest.$ac_objext conftest$ac_exeext
8880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8881 (eval $ac_link) 2>conftest.er1
8882 ac_status=$?
8883 grep -v '^ *+' conftest.er1 >conftest.err
8884 rm -f conftest.er1
8885 cat conftest.err >&5
8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 (exit $ac_status); } &&
8888 { ac_try='test -z "$ac_c_werror_flag"
8889 || test ! -s conftest.err'
8890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8891 (eval $ac_try) 2>&5
8892 ac_status=$?
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); }; } &&
8895 { ac_try='test -s conftest$ac_exeext'
8896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8897 (eval $ac_try) 2>&5
8898 ac_status=$?
8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); }; }; then
8901 ac_cv_working_alloca_h=yes
8902 else
8903 echo "$as_me: failed program was:" >&5
8904 sed 's/^/| /' conftest.$ac_ext >&5
8906 ac_cv_working_alloca_h=no
8908 rm -f conftest.err conftest.$ac_objext \
8909 conftest$ac_exeext conftest.$ac_ext
8911 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8912 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8913 if test $ac_cv_working_alloca_h = yes; then
8915 cat >>confdefs.h <<\_ACEOF
8916 #define HAVE_ALLOCA_H 1
8917 _ACEOF
8921 echo "$as_me:$LINENO: checking for alloca" >&5
8922 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8923 if test "${ac_cv_func_alloca_works+set}" = set; then
8924 echo $ECHO_N "(cached) $ECHO_C" >&6
8925 else
8926 cat >conftest.$ac_ext <<_ACEOF
8927 /* confdefs.h. */
8928 _ACEOF
8929 cat confdefs.h >>conftest.$ac_ext
8930 cat >>conftest.$ac_ext <<_ACEOF
8931 /* end confdefs.h. */
8932 #ifdef __GNUC__
8933 # define alloca __builtin_alloca
8934 #else
8935 # ifdef _MSC_VER
8936 # include <malloc.h>
8937 # define alloca _alloca
8938 # else
8939 # if HAVE_ALLOCA_H
8940 # include <alloca.h>
8941 # else
8942 # ifdef _AIX
8943 #pragma alloca
8944 # else
8945 # ifndef alloca /* predefined by HP cc +Olibcalls */
8946 char *alloca ();
8947 # endif
8948 # endif
8949 # endif
8950 # endif
8951 #endif
8954 main ()
8956 char *p = (char *) alloca (1);
8958 return 0;
8960 _ACEOF
8961 rm -f conftest.$ac_objext conftest$ac_exeext
8962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8963 (eval $ac_link) 2>conftest.er1
8964 ac_status=$?
8965 grep -v '^ *+' conftest.er1 >conftest.err
8966 rm -f conftest.er1
8967 cat conftest.err >&5
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); } &&
8970 { ac_try='test -z "$ac_c_werror_flag"
8971 || test ! -s conftest.err'
8972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8973 (eval $ac_try) 2>&5
8974 ac_status=$?
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); }; } &&
8977 { ac_try='test -s conftest$ac_exeext'
8978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8979 (eval $ac_try) 2>&5
8980 ac_status=$?
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); }; }; then
8983 ac_cv_func_alloca_works=yes
8984 else
8985 echo "$as_me: failed program was:" >&5
8986 sed 's/^/| /' conftest.$ac_ext >&5
8988 ac_cv_func_alloca_works=no
8990 rm -f conftest.err conftest.$ac_objext \
8991 conftest$ac_exeext conftest.$ac_ext
8993 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8994 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8996 if test $ac_cv_func_alloca_works = yes; then
8998 cat >>confdefs.h <<\_ACEOF
8999 #define HAVE_ALLOCA 1
9000 _ACEOF
9002 else
9003 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9004 # that cause trouble. Some versions do not even contain alloca or
9005 # contain a buggy version. If you still want to use their alloca,
9006 # use ar to extract alloca.o from them instead of compiling alloca.c.
9008 ALLOCA=alloca.$ac_objext
9010 cat >>confdefs.h <<\_ACEOF
9011 #define C_ALLOCA 1
9012 _ACEOF
9015 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9016 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9017 if test "${ac_cv_os_cray+set}" = set; then
9018 echo $ECHO_N "(cached) $ECHO_C" >&6
9019 else
9020 cat >conftest.$ac_ext <<_ACEOF
9021 /* confdefs.h. */
9022 _ACEOF
9023 cat confdefs.h >>conftest.$ac_ext
9024 cat >>conftest.$ac_ext <<_ACEOF
9025 /* end confdefs.h. */
9026 #if defined(CRAY) && ! defined(CRAY2)
9027 webecray
9028 #else
9029 wenotbecray
9030 #endif
9032 _ACEOF
9033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9034 $EGREP "webecray" >/dev/null 2>&1; then
9035 ac_cv_os_cray=yes
9036 else
9037 ac_cv_os_cray=no
9039 rm -f conftest*
9042 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9043 echo "${ECHO_T}$ac_cv_os_cray" >&6
9044 if test $ac_cv_os_cray = yes; then
9045 for ac_func in _getb67 GETB67 getb67; do
9046 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9047 echo "$as_me:$LINENO: checking for $ac_func" >&5
9048 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9049 if eval "test \"\${$as_ac_var+set}\" = set"; then
9050 echo $ECHO_N "(cached) $ECHO_C" >&6
9051 else
9052 cat >conftest.$ac_ext <<_ACEOF
9053 /* confdefs.h. */
9054 _ACEOF
9055 cat confdefs.h >>conftest.$ac_ext
9056 cat >>conftest.$ac_ext <<_ACEOF
9057 /* end confdefs.h. */
9058 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9060 #define $ac_func innocuous_$ac_func
9062 /* System header to define __stub macros and hopefully few prototypes,
9063 which can conflict with char $ac_func (); below.
9064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9065 <limits.h> exists even on freestanding compilers. */
9067 #ifdef __STDC__
9068 # include <limits.h>
9069 #else
9070 # include <assert.h>
9071 #endif
9073 #undef $ac_func
9075 /* Override any gcc2 internal prototype to avoid an error. */
9076 #ifdef __cplusplus
9077 extern "C"
9079 #endif
9080 /* We use char because int might match the return type of a gcc2
9081 builtin and then its argument prototype would still apply. */
9082 char $ac_func ();
9083 /* The GNU C library defines this for functions which it implements
9084 to always fail with ENOSYS. Some functions are actually named
9085 something starting with __ and the normal name is an alias. */
9086 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9087 choke me
9088 #else
9089 char (*f) () = $ac_func;
9090 #endif
9091 #ifdef __cplusplus
9093 #endif
9096 main ()
9098 return f != $ac_func;
9100 return 0;
9102 _ACEOF
9103 rm -f conftest.$ac_objext conftest$ac_exeext
9104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9105 (eval $ac_link) 2>conftest.er1
9106 ac_status=$?
9107 grep -v '^ *+' conftest.er1 >conftest.err
9108 rm -f conftest.er1
9109 cat conftest.err >&5
9110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111 (exit $ac_status); } &&
9112 { ac_try='test -z "$ac_c_werror_flag"
9113 || test ! -s conftest.err'
9114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9115 (eval $ac_try) 2>&5
9116 ac_status=$?
9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118 (exit $ac_status); }; } &&
9119 { ac_try='test -s conftest$ac_exeext'
9120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9121 (eval $ac_try) 2>&5
9122 ac_status=$?
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); }; }; then
9125 eval "$as_ac_var=yes"
9126 else
9127 echo "$as_me: failed program was:" >&5
9128 sed 's/^/| /' conftest.$ac_ext >&5
9130 eval "$as_ac_var=no"
9132 rm -f conftest.err conftest.$ac_objext \
9133 conftest$ac_exeext conftest.$ac_ext
9135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9136 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9137 if test `eval echo '${'$as_ac_var'}'` = yes; then
9139 cat >>confdefs.h <<_ACEOF
9140 #define CRAY_STACKSEG_END $ac_func
9141 _ACEOF
9143 break
9146 done
9149 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9150 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9151 if test "${ac_cv_c_stack_direction+set}" = set; then
9152 echo $ECHO_N "(cached) $ECHO_C" >&6
9153 else
9154 if test "$cross_compiling" = yes; then
9155 ac_cv_c_stack_direction=0
9156 else
9157 cat >conftest.$ac_ext <<_ACEOF
9158 /* confdefs.h. */
9159 _ACEOF
9160 cat confdefs.h >>conftest.$ac_ext
9161 cat >>conftest.$ac_ext <<_ACEOF
9162 /* end confdefs.h. */
9164 find_stack_direction ()
9166 static char *addr = 0;
9167 auto char dummy;
9168 if (addr == 0)
9170 addr = &dummy;
9171 return find_stack_direction ();
9173 else
9174 return (&dummy > addr) ? 1 : -1;
9178 main ()
9180 exit (find_stack_direction () < 0);
9182 _ACEOF
9183 rm -f conftest$ac_exeext
9184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9185 (eval $ac_link) 2>&5
9186 ac_status=$?
9187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9190 (eval $ac_try) 2>&5
9191 ac_status=$?
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); }; }; then
9194 ac_cv_c_stack_direction=1
9195 else
9196 echo "$as_me: program exited with status $ac_status" >&5
9197 echo "$as_me: failed program was:" >&5
9198 sed 's/^/| /' conftest.$ac_ext >&5
9200 ( exit $ac_status )
9201 ac_cv_c_stack_direction=-1
9203 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9206 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9207 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9209 cat >>confdefs.h <<_ACEOF
9210 #define STACK_DIRECTION $ac_cv_c_stack_direction
9211 _ACEOF
9221 ac_header_dirent=no
9222 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9223 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9224 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9225 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9227 echo $ECHO_N "(cached) $ECHO_C" >&6
9228 else
9229 cat >conftest.$ac_ext <<_ACEOF
9230 /* confdefs.h. */
9231 _ACEOF
9232 cat confdefs.h >>conftest.$ac_ext
9233 cat >>conftest.$ac_ext <<_ACEOF
9234 /* end confdefs.h. */
9235 #include <sys/types.h>
9236 #include <$ac_hdr>
9239 main ()
9241 if ((DIR *) 0)
9242 return 0;
9244 return 0;
9246 _ACEOF
9247 rm -f conftest.$ac_objext
9248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9249 (eval $ac_compile) 2>conftest.er1
9250 ac_status=$?
9251 grep -v '^ *+' conftest.er1 >conftest.err
9252 rm -f conftest.er1
9253 cat conftest.err >&5
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); } &&
9256 { ac_try='test -z "$ac_c_werror_flag"
9257 || test ! -s conftest.err'
9258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9259 (eval $ac_try) 2>&5
9260 ac_status=$?
9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262 (exit $ac_status); }; } &&
9263 { ac_try='test -s conftest.$ac_objext'
9264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9265 (eval $ac_try) 2>&5
9266 ac_status=$?
9267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268 (exit $ac_status); }; }; then
9269 eval "$as_ac_Header=yes"
9270 else
9271 echo "$as_me: failed program was:" >&5
9272 sed 's/^/| /' conftest.$ac_ext >&5
9274 eval "$as_ac_Header=no"
9276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9279 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9280 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9281 cat >>confdefs.h <<_ACEOF
9282 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9283 _ACEOF
9285 ac_header_dirent=$ac_hdr; break
9288 done
9289 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9290 if test $ac_header_dirent = dirent.h; then
9291 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9292 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9293 if test "${ac_cv_search_opendir+set}" = set; then
9294 echo $ECHO_N "(cached) $ECHO_C" >&6
9295 else
9296 ac_func_search_save_LIBS=$LIBS
9297 ac_cv_search_opendir=no
9298 cat >conftest.$ac_ext <<_ACEOF
9299 /* confdefs.h. */
9300 _ACEOF
9301 cat confdefs.h >>conftest.$ac_ext
9302 cat >>conftest.$ac_ext <<_ACEOF
9303 /* end confdefs.h. */
9305 /* Override any gcc2 internal prototype to avoid an error. */
9306 #ifdef __cplusplus
9307 extern "C"
9308 #endif
9309 /* We use char because int might match the return type of a gcc2
9310 builtin and then its argument prototype would still apply. */
9311 char opendir ();
9313 main ()
9315 opendir ();
9317 return 0;
9319 _ACEOF
9320 rm -f conftest.$ac_objext conftest$ac_exeext
9321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9322 (eval $ac_link) 2>conftest.er1
9323 ac_status=$?
9324 grep -v '^ *+' conftest.er1 >conftest.err
9325 rm -f conftest.er1
9326 cat conftest.err >&5
9327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328 (exit $ac_status); } &&
9329 { ac_try='test -z "$ac_c_werror_flag"
9330 || test ! -s conftest.err'
9331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9332 (eval $ac_try) 2>&5
9333 ac_status=$?
9334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335 (exit $ac_status); }; } &&
9336 { ac_try='test -s conftest$ac_exeext'
9337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9338 (eval $ac_try) 2>&5
9339 ac_status=$?
9340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341 (exit $ac_status); }; }; then
9342 ac_cv_search_opendir="none required"
9343 else
9344 echo "$as_me: failed program was:" >&5
9345 sed 's/^/| /' conftest.$ac_ext >&5
9348 rm -f conftest.err conftest.$ac_objext \
9349 conftest$ac_exeext conftest.$ac_ext
9350 if test "$ac_cv_search_opendir" = no; then
9351 for ac_lib in dir; do
9352 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9353 cat >conftest.$ac_ext <<_ACEOF
9354 /* confdefs.h. */
9355 _ACEOF
9356 cat confdefs.h >>conftest.$ac_ext
9357 cat >>conftest.$ac_ext <<_ACEOF
9358 /* end confdefs.h. */
9360 /* Override any gcc2 internal prototype to avoid an error. */
9361 #ifdef __cplusplus
9362 extern "C"
9363 #endif
9364 /* We use char because int might match the return type of a gcc2
9365 builtin and then its argument prototype would still apply. */
9366 char opendir ();
9368 main ()
9370 opendir ();
9372 return 0;
9374 _ACEOF
9375 rm -f conftest.$ac_objext conftest$ac_exeext
9376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9377 (eval $ac_link) 2>conftest.er1
9378 ac_status=$?
9379 grep -v '^ *+' conftest.er1 >conftest.err
9380 rm -f conftest.er1
9381 cat conftest.err >&5
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 (exit $ac_status); } &&
9384 { ac_try='test -z "$ac_c_werror_flag"
9385 || test ! -s conftest.err'
9386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9387 (eval $ac_try) 2>&5
9388 ac_status=$?
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); }; } &&
9391 { ac_try='test -s conftest$ac_exeext'
9392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9393 (eval $ac_try) 2>&5
9394 ac_status=$?
9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); }; }; then
9397 ac_cv_search_opendir="-l$ac_lib"
9398 break
9399 else
9400 echo "$as_me: failed program was:" >&5
9401 sed 's/^/| /' conftest.$ac_ext >&5
9404 rm -f conftest.err conftest.$ac_objext \
9405 conftest$ac_exeext conftest.$ac_ext
9406 done
9408 LIBS=$ac_func_search_save_LIBS
9410 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9411 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9412 if test "$ac_cv_search_opendir" != no; then
9413 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9417 else
9418 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9419 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9420 if test "${ac_cv_search_opendir+set}" = set; then
9421 echo $ECHO_N "(cached) $ECHO_C" >&6
9422 else
9423 ac_func_search_save_LIBS=$LIBS
9424 ac_cv_search_opendir=no
9425 cat >conftest.$ac_ext <<_ACEOF
9426 /* confdefs.h. */
9427 _ACEOF
9428 cat confdefs.h >>conftest.$ac_ext
9429 cat >>conftest.$ac_ext <<_ACEOF
9430 /* end confdefs.h. */
9432 /* Override any gcc2 internal prototype to avoid an error. */
9433 #ifdef __cplusplus
9434 extern "C"
9435 #endif
9436 /* We use char because int might match the return type of a gcc2
9437 builtin and then its argument prototype would still apply. */
9438 char opendir ();
9440 main ()
9442 opendir ();
9444 return 0;
9446 _ACEOF
9447 rm -f conftest.$ac_objext conftest$ac_exeext
9448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9449 (eval $ac_link) 2>conftest.er1
9450 ac_status=$?
9451 grep -v '^ *+' conftest.er1 >conftest.err
9452 rm -f conftest.er1
9453 cat conftest.err >&5
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); } &&
9456 { ac_try='test -z "$ac_c_werror_flag"
9457 || test ! -s conftest.err'
9458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9459 (eval $ac_try) 2>&5
9460 ac_status=$?
9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462 (exit $ac_status); }; } &&
9463 { ac_try='test -s conftest$ac_exeext'
9464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9465 (eval $ac_try) 2>&5
9466 ac_status=$?
9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468 (exit $ac_status); }; }; then
9469 ac_cv_search_opendir="none required"
9470 else
9471 echo "$as_me: failed program was:" >&5
9472 sed 's/^/| /' conftest.$ac_ext >&5
9475 rm -f conftest.err conftest.$ac_objext \
9476 conftest$ac_exeext conftest.$ac_ext
9477 if test "$ac_cv_search_opendir" = no; then
9478 for ac_lib in x; do
9479 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9480 cat >conftest.$ac_ext <<_ACEOF
9481 /* confdefs.h. */
9482 _ACEOF
9483 cat confdefs.h >>conftest.$ac_ext
9484 cat >>conftest.$ac_ext <<_ACEOF
9485 /* end confdefs.h. */
9487 /* Override any gcc2 internal prototype to avoid an error. */
9488 #ifdef __cplusplus
9489 extern "C"
9490 #endif
9491 /* We use char because int might match the return type of a gcc2
9492 builtin and then its argument prototype would still apply. */
9493 char opendir ();
9495 main ()
9497 opendir ();
9499 return 0;
9501 _ACEOF
9502 rm -f conftest.$ac_objext conftest$ac_exeext
9503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9504 (eval $ac_link) 2>conftest.er1
9505 ac_status=$?
9506 grep -v '^ *+' conftest.er1 >conftest.err
9507 rm -f conftest.er1
9508 cat conftest.err >&5
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); } &&
9511 { ac_try='test -z "$ac_c_werror_flag"
9512 || test ! -s conftest.err'
9513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9514 (eval $ac_try) 2>&5
9515 ac_status=$?
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); }; } &&
9518 { ac_try='test -s conftest$ac_exeext'
9519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9520 (eval $ac_try) 2>&5
9521 ac_status=$?
9522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); }; }; then
9524 ac_cv_search_opendir="-l$ac_lib"
9525 break
9526 else
9527 echo "$as_me: failed program was:" >&5
9528 sed 's/^/| /' conftest.$ac_ext >&5
9531 rm -f conftest.err conftest.$ac_objext \
9532 conftest$ac_exeext conftest.$ac_ext
9533 done
9535 LIBS=$ac_func_search_save_LIBS
9537 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9538 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9539 if test "$ac_cv_search_opendir" != no; then
9540 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9546 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9547 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9548 if test "${ac_cv_header_stdc+set}" = set; then
9549 echo $ECHO_N "(cached) $ECHO_C" >&6
9550 else
9551 cat >conftest.$ac_ext <<_ACEOF
9552 /* confdefs.h. */
9553 _ACEOF
9554 cat confdefs.h >>conftest.$ac_ext
9555 cat >>conftest.$ac_ext <<_ACEOF
9556 /* end confdefs.h. */
9557 #include <stdlib.h>
9558 #include <stdarg.h>
9559 #include <string.h>
9560 #include <float.h>
9563 main ()
9567 return 0;
9569 _ACEOF
9570 rm -f conftest.$ac_objext
9571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9572 (eval $ac_compile) 2>conftest.er1
9573 ac_status=$?
9574 grep -v '^ *+' conftest.er1 >conftest.err
9575 rm -f conftest.er1
9576 cat conftest.err >&5
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); } &&
9579 { ac_try='test -z "$ac_c_werror_flag"
9580 || test ! -s conftest.err'
9581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9582 (eval $ac_try) 2>&5
9583 ac_status=$?
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); }; } &&
9586 { ac_try='test -s conftest.$ac_objext'
9587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9588 (eval $ac_try) 2>&5
9589 ac_status=$?
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); }; }; then
9592 ac_cv_header_stdc=yes
9593 else
9594 echo "$as_me: failed program was:" >&5
9595 sed 's/^/| /' conftest.$ac_ext >&5
9597 ac_cv_header_stdc=no
9599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9601 if test $ac_cv_header_stdc = yes; then
9602 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9603 cat >conftest.$ac_ext <<_ACEOF
9604 /* confdefs.h. */
9605 _ACEOF
9606 cat confdefs.h >>conftest.$ac_ext
9607 cat >>conftest.$ac_ext <<_ACEOF
9608 /* end confdefs.h. */
9609 #include <string.h>
9611 _ACEOF
9612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9613 $EGREP "memchr" >/dev/null 2>&1; then
9615 else
9616 ac_cv_header_stdc=no
9618 rm -f conftest*
9622 if test $ac_cv_header_stdc = yes; then
9623 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9624 cat >conftest.$ac_ext <<_ACEOF
9625 /* confdefs.h. */
9626 _ACEOF
9627 cat confdefs.h >>conftest.$ac_ext
9628 cat >>conftest.$ac_ext <<_ACEOF
9629 /* end confdefs.h. */
9630 #include <stdlib.h>
9632 _ACEOF
9633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9634 $EGREP "free" >/dev/null 2>&1; then
9636 else
9637 ac_cv_header_stdc=no
9639 rm -f conftest*
9643 if test $ac_cv_header_stdc = yes; then
9644 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9645 if test "$cross_compiling" = yes; then
9647 else
9648 cat >conftest.$ac_ext <<_ACEOF
9649 /* confdefs.h. */
9650 _ACEOF
9651 cat confdefs.h >>conftest.$ac_ext
9652 cat >>conftest.$ac_ext <<_ACEOF
9653 /* end confdefs.h. */
9654 #include <ctype.h>
9655 #if ((' ' & 0x0FF) == 0x020)
9656 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9657 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9658 #else
9659 # define ISLOWER(c) \
9660 (('a' <= (c) && (c) <= 'i') \
9661 || ('j' <= (c) && (c) <= 'r') \
9662 || ('s' <= (c) && (c) <= 'z'))
9663 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9664 #endif
9666 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9668 main ()
9670 int i;
9671 for (i = 0; i < 256; i++)
9672 if (XOR (islower (i), ISLOWER (i))
9673 || toupper (i) != TOUPPER (i))
9674 exit(2);
9675 exit (0);
9677 _ACEOF
9678 rm -f conftest$ac_exeext
9679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9680 (eval $ac_link) 2>&5
9681 ac_status=$?
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9685 (eval $ac_try) 2>&5
9686 ac_status=$?
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); }; }; then
9690 else
9691 echo "$as_me: program exited with status $ac_status" >&5
9692 echo "$as_me: failed program was:" >&5
9693 sed 's/^/| /' conftest.$ac_ext >&5
9695 ( exit $ac_status )
9696 ac_cv_header_stdc=no
9698 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9702 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9703 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9704 if test $ac_cv_header_stdc = yes; then
9706 cat >>confdefs.h <<\_ACEOF
9707 #define STDC_HEADERS 1
9708 _ACEOF
9746 for ac_header in argz.h arpa/inet.h fcntl.h inttypes.h langinfo.h libintl.h limits.h locale.h malloc.h mntent.h netdb.h netinet/in.h stddef.h nl_types.h stdint.h stdio_ext.h stdlib.h string.h strings.h sys/ioctl.h sys/mntent.h sys/mnttab.h sys/mount.h sys/param.h sys/resource.h sys/select.h sys/socket.h sys/statvfs.h sys/time.h sys/timeb.h sys/types.h unistd.h errno.h signal.h
9748 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9750 echo "$as_me:$LINENO: checking for $ac_header" >&5
9751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9753 echo $ECHO_N "(cached) $ECHO_C" >&6
9755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9756 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9757 else
9758 # Is the header compilable?
9759 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9760 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9761 cat >conftest.$ac_ext <<_ACEOF
9762 /* confdefs.h. */
9763 _ACEOF
9764 cat confdefs.h >>conftest.$ac_ext
9765 cat >>conftest.$ac_ext <<_ACEOF
9766 /* end confdefs.h. */
9767 $ac_includes_default
9768 #include <$ac_header>
9769 _ACEOF
9770 rm -f conftest.$ac_objext
9771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9772 (eval $ac_compile) 2>conftest.er1
9773 ac_status=$?
9774 grep -v '^ *+' conftest.er1 >conftest.err
9775 rm -f conftest.er1
9776 cat conftest.err >&5
9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); } &&
9779 { ac_try='test -z "$ac_c_werror_flag"
9780 || test ! -s conftest.err'
9781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9782 (eval $ac_try) 2>&5
9783 ac_status=$?
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); }; } &&
9786 { ac_try='test -s conftest.$ac_objext'
9787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9788 (eval $ac_try) 2>&5
9789 ac_status=$?
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); }; }; then
9792 ac_header_compiler=yes
9793 else
9794 echo "$as_me: failed program was:" >&5
9795 sed 's/^/| /' conftest.$ac_ext >&5
9797 ac_header_compiler=no
9799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9800 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9801 echo "${ECHO_T}$ac_header_compiler" >&6
9803 # Is the header present?
9804 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9805 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9806 cat >conftest.$ac_ext <<_ACEOF
9807 /* confdefs.h. */
9808 _ACEOF
9809 cat confdefs.h >>conftest.$ac_ext
9810 cat >>conftest.$ac_ext <<_ACEOF
9811 /* end confdefs.h. */
9812 #include <$ac_header>
9813 _ACEOF
9814 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9815 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9816 ac_status=$?
9817 grep -v '^ *+' conftest.er1 >conftest.err
9818 rm -f conftest.er1
9819 cat conftest.err >&5
9820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); } >/dev/null; then
9822 if test -s conftest.err; then
9823 ac_cpp_err=$ac_c_preproc_warn_flag
9824 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9825 else
9826 ac_cpp_err=
9828 else
9829 ac_cpp_err=yes
9831 if test -z "$ac_cpp_err"; then
9832 ac_header_preproc=yes
9833 else
9834 echo "$as_me: failed program was:" >&5
9835 sed 's/^/| /' conftest.$ac_ext >&5
9837 ac_header_preproc=no
9839 rm -f conftest.err conftest.$ac_ext
9840 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9841 echo "${ECHO_T}$ac_header_preproc" >&6
9843 # So? What about this header?
9844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9845 yes:no: )
9846 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9847 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9849 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9850 ac_header_preproc=yes
9852 no:yes:* )
9853 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9854 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9855 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9856 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9857 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9858 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9859 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9860 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9862 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9863 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9864 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9866 cat <<\_ASBOX
9867 ## ------------------------------ ##
9868 ## Report this to admin@amule.org ##
9869 ## ------------------------------ ##
9870 _ASBOX
9872 sed "s/^/$as_me: WARNING: /" >&2
9874 esac
9875 echo "$as_me:$LINENO: checking for $ac_header" >&5
9876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9878 echo $ECHO_N "(cached) $ECHO_C" >&6
9879 else
9880 eval "$as_ac_Header=\$ac_header_preproc"
9882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9883 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9887 cat >>confdefs.h <<_ACEOF
9888 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9889 _ACEOF
9893 done
9895 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9896 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9897 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9898 echo $ECHO_N "(cached) $ECHO_C" >&6
9899 else
9900 cat >conftest.$ac_ext <<_ACEOF
9901 /* confdefs.h. */
9902 _ACEOF
9903 cat confdefs.h >>conftest.$ac_ext
9904 cat >>conftest.$ac_ext <<_ACEOF
9905 /* end confdefs.h. */
9906 #include <sys/types.h>
9907 #include <sys/wait.h>
9908 #ifndef WEXITSTATUS
9909 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9910 #endif
9911 #ifndef WIFEXITED
9912 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9913 #endif
9916 main ()
9918 int s;
9919 wait (&s);
9920 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9922 return 0;
9924 _ACEOF
9925 rm -f conftest.$ac_objext
9926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9927 (eval $ac_compile) 2>conftest.er1
9928 ac_status=$?
9929 grep -v '^ *+' conftest.er1 >conftest.err
9930 rm -f conftest.er1
9931 cat conftest.err >&5
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); } &&
9934 { ac_try='test -z "$ac_c_werror_flag"
9935 || test ! -s conftest.err'
9936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9937 (eval $ac_try) 2>&5
9938 ac_status=$?
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); }; } &&
9941 { ac_try='test -s conftest.$ac_objext'
9942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9943 (eval $ac_try) 2>&5
9944 ac_status=$?
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); }; }; then
9947 ac_cv_header_sys_wait_h=yes
9948 else
9949 echo "$as_me: failed program was:" >&5
9950 sed 's/^/| /' conftest.$ac_ext >&5
9952 ac_cv_header_sys_wait_h=no
9954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9956 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9957 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9958 if test $ac_cv_header_sys_wait_h = yes; then
9960 cat >>confdefs.h <<\_ACEOF
9961 #define HAVE_SYS_WAIT_H 1
9962 _ACEOF
9967 # Checks for typedefs, structures, and compiler characteristics.
9968 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
9969 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
9970 if test "${ac_cv_header_stdbool_h+set}" = set; then
9971 echo $ECHO_N "(cached) $ECHO_C" >&6
9972 else
9973 cat >conftest.$ac_ext <<_ACEOF
9974 /* confdefs.h. */
9975 _ACEOF
9976 cat confdefs.h >>conftest.$ac_ext
9977 cat >>conftest.$ac_ext <<_ACEOF
9978 /* end confdefs.h. */
9980 #include <stdbool.h>
9981 #ifndef bool
9982 # error bool is not defined
9983 #endif
9984 #ifndef false
9985 # error false is not defined
9986 #endif
9987 #if false
9988 # error false is not 0
9989 #endif
9990 #ifndef true
9991 # error true is not defined
9992 #endif
9993 #if true != 1
9994 # error true is not 1
9995 #endif
9996 #ifndef __bool_true_false_are_defined
9997 # error __bool_true_false_are_defined is not defined
9998 #endif
10000 struct s { _Bool s: 1; _Bool t; } s;
10002 char a[true == 1 ? 1 : -1];
10003 char b[false == 0 ? 1 : -1];
10004 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10005 char d[(bool) -0.5 == true ? 1 : -1];
10006 bool e = &s;
10007 char f[(_Bool) -0.0 == false ? 1 : -1];
10008 char g[true];
10009 char h[sizeof (_Bool)];
10010 char i[sizeof s.t];
10013 main ()
10015 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
10017 return 0;
10019 _ACEOF
10020 rm -f conftest.$ac_objext
10021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10022 (eval $ac_compile) 2>conftest.er1
10023 ac_status=$?
10024 grep -v '^ *+' conftest.er1 >conftest.err
10025 rm -f conftest.er1
10026 cat conftest.err >&5
10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); } &&
10029 { ac_try='test -z "$ac_c_werror_flag"
10030 || test ! -s conftest.err'
10031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032 (eval $ac_try) 2>&5
10033 ac_status=$?
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; } &&
10036 { ac_try='test -s conftest.$ac_objext'
10037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10038 (eval $ac_try) 2>&5
10039 ac_status=$?
10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); }; }; then
10042 ac_cv_header_stdbool_h=yes
10043 else
10044 echo "$as_me: failed program was:" >&5
10045 sed 's/^/| /' conftest.$ac_ext >&5
10047 ac_cv_header_stdbool_h=no
10049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10051 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
10052 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
10053 echo "$as_me:$LINENO: checking for _Bool" >&5
10054 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
10055 if test "${ac_cv_type__Bool+set}" = set; then
10056 echo $ECHO_N "(cached) $ECHO_C" >&6
10057 else
10058 cat >conftest.$ac_ext <<_ACEOF
10059 /* confdefs.h. */
10060 _ACEOF
10061 cat confdefs.h >>conftest.$ac_ext
10062 cat >>conftest.$ac_ext <<_ACEOF
10063 /* end confdefs.h. */
10064 $ac_includes_default
10066 main ()
10068 if ((_Bool *) 0)
10069 return 0;
10070 if (sizeof (_Bool))
10071 return 0;
10073 return 0;
10075 _ACEOF
10076 rm -f conftest.$ac_objext
10077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10078 (eval $ac_compile) 2>conftest.er1
10079 ac_status=$?
10080 grep -v '^ *+' conftest.er1 >conftest.err
10081 rm -f conftest.er1
10082 cat conftest.err >&5
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); } &&
10085 { ac_try='test -z "$ac_c_werror_flag"
10086 || test ! -s conftest.err'
10087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10088 (eval $ac_try) 2>&5
10089 ac_status=$?
10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 (exit $ac_status); }; } &&
10092 { ac_try='test -s conftest.$ac_objext'
10093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10094 (eval $ac_try) 2>&5
10095 ac_status=$?
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); }; }; then
10098 ac_cv_type__Bool=yes
10099 else
10100 echo "$as_me: failed program was:" >&5
10101 sed 's/^/| /' conftest.$ac_ext >&5
10103 ac_cv_type__Bool=no
10105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10107 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10108 echo "${ECHO_T}$ac_cv_type__Bool" >&6
10109 if test $ac_cv_type__Bool = yes; then
10111 cat >>confdefs.h <<_ACEOF
10112 #define HAVE__BOOL 1
10113 _ACEOF
10118 if test $ac_cv_header_stdbool_h = yes; then
10120 cat >>confdefs.h <<\_ACEOF
10121 #define HAVE_STDBOOL_H 1
10122 _ACEOF
10126 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10127 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10128 if test "${ac_cv_c_const+set}" = set; then
10129 echo $ECHO_N "(cached) $ECHO_C" >&6
10130 else
10131 cat >conftest.$ac_ext <<_ACEOF
10132 /* confdefs.h. */
10133 _ACEOF
10134 cat confdefs.h >>conftest.$ac_ext
10135 cat >>conftest.$ac_ext <<_ACEOF
10136 /* end confdefs.h. */
10139 main ()
10141 /* FIXME: Include the comments suggested by Paul. */
10142 #ifndef __cplusplus
10143 /* Ultrix mips cc rejects this. */
10144 typedef int charset[2];
10145 const charset x;
10146 /* SunOS 4.1.1 cc rejects this. */
10147 char const *const *ccp;
10148 char **p;
10149 /* NEC SVR4.0.2 mips cc rejects this. */
10150 struct point {int x, y;};
10151 static struct point const zero = {0,0};
10152 /* AIX XL C 1.02.0.0 rejects this.
10153 It does not let you subtract one const X* pointer from another in
10154 an arm of an if-expression whose if-part is not a constant
10155 expression */
10156 const char *g = "string";
10157 ccp = &g + (g ? g-g : 0);
10158 /* HPUX 7.0 cc rejects these. */
10159 ++ccp;
10160 p = (char**) ccp;
10161 ccp = (char const *const *) p;
10162 { /* SCO 3.2v4 cc rejects this. */
10163 char *t;
10164 char const *s = 0 ? (char *) 0 : (char const *) 0;
10166 *t++ = 0;
10168 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10169 int x[] = {25, 17};
10170 const int *foo = &x[0];
10171 ++foo;
10173 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10174 typedef const int *iptr;
10175 iptr p = 0;
10176 ++p;
10178 { /* AIX XL C 1.02.0.0 rejects this saying
10179 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10180 struct s { int j; const int *ap[3]; };
10181 struct s *b; b->j = 5;
10183 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10184 const int foo = 10;
10186 #endif
10189 return 0;
10191 _ACEOF
10192 rm -f conftest.$ac_objext
10193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10194 (eval $ac_compile) 2>conftest.er1
10195 ac_status=$?
10196 grep -v '^ *+' conftest.er1 >conftest.err
10197 rm -f conftest.er1
10198 cat conftest.err >&5
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); } &&
10201 { ac_try='test -z "$ac_c_werror_flag"
10202 || test ! -s conftest.err'
10203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10204 (eval $ac_try) 2>&5
10205 ac_status=$?
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); }; } &&
10208 { ac_try='test -s conftest.$ac_objext'
10209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10210 (eval $ac_try) 2>&5
10211 ac_status=$?
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); }; }; then
10214 ac_cv_c_const=yes
10215 else
10216 echo "$as_me: failed program was:" >&5
10217 sed 's/^/| /' conftest.$ac_ext >&5
10219 ac_cv_c_const=no
10221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10223 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10224 echo "${ECHO_T}$ac_cv_c_const" >&6
10225 if test $ac_cv_c_const = no; then
10227 cat >>confdefs.h <<\_ACEOF
10228 #define const
10229 _ACEOF
10233 echo "$as_me:$LINENO: checking for inline" >&5
10234 echo $ECHO_N "checking for inline... $ECHO_C" >&6
10235 if test "${ac_cv_c_inline+set}" = set; then
10236 echo $ECHO_N "(cached) $ECHO_C" >&6
10237 else
10238 ac_cv_c_inline=no
10239 for ac_kw in inline __inline__ __inline; do
10240 cat >conftest.$ac_ext <<_ACEOF
10241 /* confdefs.h. */
10242 _ACEOF
10243 cat confdefs.h >>conftest.$ac_ext
10244 cat >>conftest.$ac_ext <<_ACEOF
10245 /* end confdefs.h. */
10246 #ifndef __cplusplus
10247 typedef int foo_t;
10248 static $ac_kw foo_t static_foo () {return 0; }
10249 $ac_kw foo_t foo () {return 0; }
10250 #endif
10252 _ACEOF
10253 rm -f conftest.$ac_objext
10254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10255 (eval $ac_compile) 2>conftest.er1
10256 ac_status=$?
10257 grep -v '^ *+' conftest.er1 >conftest.err
10258 rm -f conftest.er1
10259 cat conftest.err >&5
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); } &&
10262 { ac_try='test -z "$ac_c_werror_flag"
10263 || test ! -s conftest.err'
10264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10265 (eval $ac_try) 2>&5
10266 ac_status=$?
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); }; } &&
10269 { ac_try='test -s conftest.$ac_objext'
10270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10271 (eval $ac_try) 2>&5
10272 ac_status=$?
10273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274 (exit $ac_status); }; }; then
10275 ac_cv_c_inline=$ac_kw; break
10276 else
10277 echo "$as_me: failed program was:" >&5
10278 sed 's/^/| /' conftest.$ac_ext >&5
10281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10282 done
10285 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10286 echo "${ECHO_T}$ac_cv_c_inline" >&6
10289 case $ac_cv_c_inline in
10290 inline | yes) ;;
10292 case $ac_cv_c_inline in
10293 no) ac_val=;;
10294 *) ac_val=$ac_cv_c_inline;;
10295 esac
10296 cat >>confdefs.h <<_ACEOF
10297 #ifndef __cplusplus
10298 #define inline $ac_val
10299 #endif
10300 _ACEOF
10302 esac
10304 echo "$as_me:$LINENO: checking for mode_t" >&5
10305 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10306 if test "${ac_cv_type_mode_t+set}" = set; then
10307 echo $ECHO_N "(cached) $ECHO_C" >&6
10308 else
10309 cat >conftest.$ac_ext <<_ACEOF
10310 /* confdefs.h. */
10311 _ACEOF
10312 cat confdefs.h >>conftest.$ac_ext
10313 cat >>conftest.$ac_ext <<_ACEOF
10314 /* end confdefs.h. */
10315 $ac_includes_default
10317 main ()
10319 if ((mode_t *) 0)
10320 return 0;
10321 if (sizeof (mode_t))
10322 return 0;
10324 return 0;
10326 _ACEOF
10327 rm -f conftest.$ac_objext
10328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10329 (eval $ac_compile) 2>conftest.er1
10330 ac_status=$?
10331 grep -v '^ *+' conftest.er1 >conftest.err
10332 rm -f conftest.er1
10333 cat conftest.err >&5
10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 (exit $ac_status); } &&
10336 { ac_try='test -z "$ac_c_werror_flag"
10337 || test ! -s conftest.err'
10338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10339 (eval $ac_try) 2>&5
10340 ac_status=$?
10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342 (exit $ac_status); }; } &&
10343 { ac_try='test -s conftest.$ac_objext'
10344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10345 (eval $ac_try) 2>&5
10346 ac_status=$?
10347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348 (exit $ac_status); }; }; then
10349 ac_cv_type_mode_t=yes
10350 else
10351 echo "$as_me: failed program was:" >&5
10352 sed 's/^/| /' conftest.$ac_ext >&5
10354 ac_cv_type_mode_t=no
10356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10358 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10359 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10360 if test $ac_cv_type_mode_t = yes; then
10362 else
10364 cat >>confdefs.h <<_ACEOF
10365 #define mode_t int
10366 _ACEOF
10370 echo "$as_me:$LINENO: checking for off_t" >&5
10371 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10372 if test "${ac_cv_type_off_t+set}" = set; then
10373 echo $ECHO_N "(cached) $ECHO_C" >&6
10374 else
10375 cat >conftest.$ac_ext <<_ACEOF
10376 /* confdefs.h. */
10377 _ACEOF
10378 cat confdefs.h >>conftest.$ac_ext
10379 cat >>conftest.$ac_ext <<_ACEOF
10380 /* end confdefs.h. */
10381 $ac_includes_default
10383 main ()
10385 if ((off_t *) 0)
10386 return 0;
10387 if (sizeof (off_t))
10388 return 0;
10390 return 0;
10392 _ACEOF
10393 rm -f conftest.$ac_objext
10394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10395 (eval $ac_compile) 2>conftest.er1
10396 ac_status=$?
10397 grep -v '^ *+' conftest.er1 >conftest.err
10398 rm -f conftest.er1
10399 cat conftest.err >&5
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 (exit $ac_status); } &&
10402 { ac_try='test -z "$ac_c_werror_flag"
10403 || test ! -s conftest.err'
10404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10405 (eval $ac_try) 2>&5
10406 ac_status=$?
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); }; } &&
10409 { ac_try='test -s conftest.$ac_objext'
10410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10411 (eval $ac_try) 2>&5
10412 ac_status=$?
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); }; }; then
10415 ac_cv_type_off_t=yes
10416 else
10417 echo "$as_me: failed program was:" >&5
10418 sed 's/^/| /' conftest.$ac_ext >&5
10420 ac_cv_type_off_t=no
10422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10424 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10425 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10426 if test $ac_cv_type_off_t = yes; then
10428 else
10430 cat >>confdefs.h <<_ACEOF
10431 #define off_t long
10432 _ACEOF
10436 echo "$as_me:$LINENO: checking for size_t" >&5
10437 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10438 if test "${ac_cv_type_size_t+set}" = set; then
10439 echo $ECHO_N "(cached) $ECHO_C" >&6
10440 else
10441 cat >conftest.$ac_ext <<_ACEOF
10442 /* confdefs.h. */
10443 _ACEOF
10444 cat confdefs.h >>conftest.$ac_ext
10445 cat >>conftest.$ac_ext <<_ACEOF
10446 /* end confdefs.h. */
10447 $ac_includes_default
10449 main ()
10451 if ((size_t *) 0)
10452 return 0;
10453 if (sizeof (size_t))
10454 return 0;
10456 return 0;
10458 _ACEOF
10459 rm -f conftest.$ac_objext
10460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10461 (eval $ac_compile) 2>conftest.er1
10462 ac_status=$?
10463 grep -v '^ *+' conftest.er1 >conftest.err
10464 rm -f conftest.er1
10465 cat conftest.err >&5
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); } &&
10468 { ac_try='test -z "$ac_c_werror_flag"
10469 || test ! -s conftest.err'
10470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10471 (eval $ac_try) 2>&5
10472 ac_status=$?
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); }; } &&
10475 { ac_try='test -s conftest.$ac_objext'
10476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10477 (eval $ac_try) 2>&5
10478 ac_status=$?
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); }; }; then
10481 ac_cv_type_size_t=yes
10482 else
10483 echo "$as_me: failed program was:" >&5
10484 sed 's/^/| /' conftest.$ac_ext >&5
10486 ac_cv_type_size_t=no
10488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10490 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10491 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10492 if test $ac_cv_type_size_t = yes; then
10494 else
10496 cat >>confdefs.h <<_ACEOF
10497 #define size_t unsigned
10498 _ACEOF
10502 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10503 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10504 if test "${ac_cv_header_time+set}" = set; then
10505 echo $ECHO_N "(cached) $ECHO_C" >&6
10506 else
10507 cat >conftest.$ac_ext <<_ACEOF
10508 /* confdefs.h. */
10509 _ACEOF
10510 cat confdefs.h >>conftest.$ac_ext
10511 cat >>conftest.$ac_ext <<_ACEOF
10512 /* end confdefs.h. */
10513 #include <sys/types.h>
10514 #include <sys/time.h>
10515 #include <time.h>
10518 main ()
10520 if ((struct tm *) 0)
10521 return 0;
10523 return 0;
10525 _ACEOF
10526 rm -f conftest.$ac_objext
10527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10528 (eval $ac_compile) 2>conftest.er1
10529 ac_status=$?
10530 grep -v '^ *+' conftest.er1 >conftest.err
10531 rm -f conftest.er1
10532 cat conftest.err >&5
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); } &&
10535 { ac_try='test -z "$ac_c_werror_flag"
10536 || test ! -s conftest.err'
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); }; } &&
10542 { ac_try='test -s conftest.$ac_objext'
10543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10544 (eval $ac_try) 2>&5
10545 ac_status=$?
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); }; }; then
10548 ac_cv_header_time=yes
10549 else
10550 echo "$as_me: failed program was:" >&5
10551 sed 's/^/| /' conftest.$ac_ext >&5
10553 ac_cv_header_time=no
10555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10557 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10558 echo "${ECHO_T}$ac_cv_header_time" >&6
10559 if test $ac_cv_header_time = yes; then
10561 cat >>confdefs.h <<\_ACEOF
10562 #define TIME_WITH_SYS_TIME 1
10563 _ACEOF
10567 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10568 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10569 if test "${ac_cv_struct_tm+set}" = set; then
10570 echo $ECHO_N "(cached) $ECHO_C" >&6
10571 else
10572 cat >conftest.$ac_ext <<_ACEOF
10573 /* confdefs.h. */
10574 _ACEOF
10575 cat confdefs.h >>conftest.$ac_ext
10576 cat >>conftest.$ac_ext <<_ACEOF
10577 /* end confdefs.h. */
10578 #include <sys/types.h>
10579 #include <time.h>
10582 main ()
10584 struct tm *tp; tp->tm_sec;
10586 return 0;
10588 _ACEOF
10589 rm -f conftest.$ac_objext
10590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10591 (eval $ac_compile) 2>conftest.er1
10592 ac_status=$?
10593 grep -v '^ *+' conftest.er1 >conftest.err
10594 rm -f conftest.er1
10595 cat conftest.err >&5
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); } &&
10598 { ac_try='test -z "$ac_c_werror_flag"
10599 || test ! -s conftest.err'
10600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10601 (eval $ac_try) 2>&5
10602 ac_status=$?
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); }; } &&
10605 { ac_try='test -s conftest.$ac_objext'
10606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10607 (eval $ac_try) 2>&5
10608 ac_status=$?
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); }; }; then
10611 ac_cv_struct_tm=time.h
10612 else
10613 echo "$as_me: failed program was:" >&5
10614 sed 's/^/| /' conftest.$ac_ext >&5
10616 ac_cv_struct_tm=sys/time.h
10618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10620 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10621 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10622 if test $ac_cv_struct_tm = sys/time.h; then
10624 cat >>confdefs.h <<\_ACEOF
10625 #define TM_IN_SYS_TIME 1
10626 _ACEOF
10630 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10631 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10632 if test "${ac_cv_type_uid_t+set}" = set; then
10633 echo $ECHO_N "(cached) $ECHO_C" >&6
10634 else
10635 cat >conftest.$ac_ext <<_ACEOF
10636 /* confdefs.h. */
10637 _ACEOF
10638 cat confdefs.h >>conftest.$ac_ext
10639 cat >>conftest.$ac_ext <<_ACEOF
10640 /* end confdefs.h. */
10641 #include <sys/types.h>
10643 _ACEOF
10644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10645 $EGREP "uid_t" >/dev/null 2>&1; then
10646 ac_cv_type_uid_t=yes
10647 else
10648 ac_cv_type_uid_t=no
10650 rm -f conftest*
10653 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10654 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10655 if test $ac_cv_type_uid_t = no; then
10657 cat >>confdefs.h <<\_ACEOF
10658 #define uid_t int
10659 _ACEOF
10662 cat >>confdefs.h <<\_ACEOF
10663 #define gid_t int
10664 _ACEOF
10668 echo "$as_me:$LINENO: checking for working volatile" >&5
10669 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
10670 if test "${ac_cv_c_volatile+set}" = set; then
10671 echo $ECHO_N "(cached) $ECHO_C" >&6
10672 else
10673 cat >conftest.$ac_ext <<_ACEOF
10674 /* confdefs.h. */
10675 _ACEOF
10676 cat confdefs.h >>conftest.$ac_ext
10677 cat >>conftest.$ac_ext <<_ACEOF
10678 /* end confdefs.h. */
10681 main ()
10684 volatile int x;
10685 int * volatile y;
10687 return 0;
10689 _ACEOF
10690 rm -f conftest.$ac_objext
10691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10692 (eval $ac_compile) 2>conftest.er1
10693 ac_status=$?
10694 grep -v '^ *+' conftest.er1 >conftest.err
10695 rm -f conftest.er1
10696 cat conftest.err >&5
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); } &&
10699 { ac_try='test -z "$ac_c_werror_flag"
10700 || test ! -s conftest.err'
10701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10702 (eval $ac_try) 2>&5
10703 ac_status=$?
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); }; } &&
10706 { ac_try='test -s conftest.$ac_objext'
10707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10708 (eval $ac_try) 2>&5
10709 ac_status=$?
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); }; }; then
10712 ac_cv_c_volatile=yes
10713 else
10714 echo "$as_me: failed program was:" >&5
10715 sed 's/^/| /' conftest.$ac_ext >&5
10717 ac_cv_c_volatile=no
10719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10721 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
10722 echo "${ECHO_T}$ac_cv_c_volatile" >&6
10723 if test $ac_cv_c_volatile = no; then
10725 cat >>confdefs.h <<\_ACEOF
10726 #define volatile
10727 _ACEOF
10731 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10732 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10733 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10734 echo $ECHO_N "(cached) $ECHO_C" >&6
10735 else
10736 cat >conftest.$ac_ext <<_ACEOF
10737 /* confdefs.h. */
10738 _ACEOF
10739 cat confdefs.h >>conftest.$ac_ext
10740 cat >>conftest.$ac_ext <<_ACEOF
10741 /* end confdefs.h. */
10742 $ac_includes_default
10744 main ()
10746 if ((ptrdiff_t *) 0)
10747 return 0;
10748 if (sizeof (ptrdiff_t))
10749 return 0;
10751 return 0;
10753 _ACEOF
10754 rm -f conftest.$ac_objext
10755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10756 (eval $ac_compile) 2>conftest.er1
10757 ac_status=$?
10758 grep -v '^ *+' conftest.er1 >conftest.err
10759 rm -f conftest.er1
10760 cat conftest.err >&5
10761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762 (exit $ac_status); } &&
10763 { ac_try='test -z "$ac_c_werror_flag"
10764 || test ! -s conftest.err'
10765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10766 (eval $ac_try) 2>&5
10767 ac_status=$?
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); }; } &&
10770 { ac_try='test -s conftest.$ac_objext'
10771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10772 (eval $ac_try) 2>&5
10773 ac_status=$?
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); }; }; then
10776 ac_cv_type_ptrdiff_t=yes
10777 else
10778 echo "$as_me: failed program was:" >&5
10779 sed 's/^/| /' conftest.$ac_ext >&5
10781 ac_cv_type_ptrdiff_t=no
10783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10785 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10786 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10787 if test $ac_cv_type_ptrdiff_t = yes; then
10789 cat >>confdefs.h <<_ACEOF
10790 #define HAVE_PTRDIFF_T 1
10791 _ACEOF
10797 # Checks for library functions.
10798 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
10799 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
10800 if test "${ac_cv_func_closedir_void+set}" = set; then
10801 echo $ECHO_N "(cached) $ECHO_C" >&6
10802 else
10803 if test "$cross_compiling" = yes; then
10804 ac_cv_func_closedir_void=yes
10805 else
10806 cat >conftest.$ac_ext <<_ACEOF
10807 /* confdefs.h. */
10808 _ACEOF
10809 cat confdefs.h >>conftest.$ac_ext
10810 cat >>conftest.$ac_ext <<_ACEOF
10811 /* end confdefs.h. */
10812 $ac_includes_default
10813 #include <$ac_header_dirent>
10814 #ifndef __cplusplus
10815 int closedir ();
10816 #endif
10819 main ()
10821 exit (closedir (opendir (".")) != 0);
10823 return 0;
10825 _ACEOF
10826 rm -f conftest$ac_exeext
10827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10828 (eval $ac_link) 2>&5
10829 ac_status=$?
10830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10833 (eval $ac_try) 2>&5
10834 ac_status=$?
10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); }; }; then
10837 ac_cv_func_closedir_void=no
10838 else
10839 echo "$as_me: program exited with status $ac_status" >&5
10840 echo "$as_me: failed program was:" >&5
10841 sed 's/^/| /' conftest.$ac_ext >&5
10843 ( exit $ac_status )
10844 ac_cv_func_closedir_void=yes
10846 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10849 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
10850 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
10851 if test $ac_cv_func_closedir_void = yes; then
10853 cat >>confdefs.h <<\_ACEOF
10854 #define CLOSEDIR_VOID 1
10855 _ACEOF
10859 if test $ac_cv_c_compiler_gnu = yes; then
10860 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10861 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10862 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10863 echo $ECHO_N "(cached) $ECHO_C" >&6
10864 else
10865 ac_pattern="Autoconf.*'x'"
10866 cat >conftest.$ac_ext <<_ACEOF
10867 /* confdefs.h. */
10868 _ACEOF
10869 cat confdefs.h >>conftest.$ac_ext
10870 cat >>conftest.$ac_ext <<_ACEOF
10871 /* end confdefs.h. */
10872 #include <sgtty.h>
10873 Autoconf TIOCGETP
10874 _ACEOF
10875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10876 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10877 ac_cv_prog_gcc_traditional=yes
10878 else
10879 ac_cv_prog_gcc_traditional=no
10881 rm -f conftest*
10884 if test $ac_cv_prog_gcc_traditional = no; then
10885 cat >conftest.$ac_ext <<_ACEOF
10886 /* confdefs.h. */
10887 _ACEOF
10888 cat confdefs.h >>conftest.$ac_ext
10889 cat >>conftest.$ac_ext <<_ACEOF
10890 /* end confdefs.h. */
10891 #include <termio.h>
10892 Autoconf TCGETA
10893 _ACEOF
10894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10895 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10896 ac_cv_prog_gcc_traditional=yes
10898 rm -f conftest*
10902 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10903 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10904 if test $ac_cv_prog_gcc_traditional = yes; then
10905 CC="$CC -traditional"
10909 echo "$as_me:$LINENO: checking for pid_t" >&5
10910 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10911 if test "${ac_cv_type_pid_t+set}" = set; then
10912 echo $ECHO_N "(cached) $ECHO_C" >&6
10913 else
10914 cat >conftest.$ac_ext <<_ACEOF
10915 /* confdefs.h. */
10916 _ACEOF
10917 cat confdefs.h >>conftest.$ac_ext
10918 cat >>conftest.$ac_ext <<_ACEOF
10919 /* end confdefs.h. */
10920 $ac_includes_default
10922 main ()
10924 if ((pid_t *) 0)
10925 return 0;
10926 if (sizeof (pid_t))
10927 return 0;
10929 return 0;
10931 _ACEOF
10932 rm -f conftest.$ac_objext
10933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10934 (eval $ac_compile) 2>conftest.er1
10935 ac_status=$?
10936 grep -v '^ *+' conftest.er1 >conftest.err
10937 rm -f conftest.er1
10938 cat conftest.err >&5
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); } &&
10941 { ac_try='test -z "$ac_c_werror_flag"
10942 || test ! -s conftest.err'
10943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10944 (eval $ac_try) 2>&5
10945 ac_status=$?
10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); }; } &&
10948 { ac_try='test -s conftest.$ac_objext'
10949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10950 (eval $ac_try) 2>&5
10951 ac_status=$?
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); }; }; then
10954 ac_cv_type_pid_t=yes
10955 else
10956 echo "$as_me: failed program was:" >&5
10957 sed 's/^/| /' conftest.$ac_ext >&5
10959 ac_cv_type_pid_t=no
10961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10963 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10964 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10965 if test $ac_cv_type_pid_t = yes; then
10967 else
10969 cat >>confdefs.h <<_ACEOF
10970 #define pid_t int
10971 _ACEOF
10977 for ac_header in unistd.h vfork.h
10979 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10981 echo "$as_me:$LINENO: checking for $ac_header" >&5
10982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10984 echo $ECHO_N "(cached) $ECHO_C" >&6
10986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10987 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10988 else
10989 # Is the header compilable?
10990 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10991 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10992 cat >conftest.$ac_ext <<_ACEOF
10993 /* confdefs.h. */
10994 _ACEOF
10995 cat confdefs.h >>conftest.$ac_ext
10996 cat >>conftest.$ac_ext <<_ACEOF
10997 /* end confdefs.h. */
10998 $ac_includes_default
10999 #include <$ac_header>
11000 _ACEOF
11001 rm -f conftest.$ac_objext
11002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11003 (eval $ac_compile) 2>conftest.er1
11004 ac_status=$?
11005 grep -v '^ *+' conftest.er1 >conftest.err
11006 rm -f conftest.er1
11007 cat conftest.err >&5
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); } &&
11010 { ac_try='test -z "$ac_c_werror_flag"
11011 || test ! -s conftest.err'
11012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11013 (eval $ac_try) 2>&5
11014 ac_status=$?
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); }; } &&
11017 { ac_try='test -s conftest.$ac_objext'
11018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11019 (eval $ac_try) 2>&5
11020 ac_status=$?
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); }; }; then
11023 ac_header_compiler=yes
11024 else
11025 echo "$as_me: failed program was:" >&5
11026 sed 's/^/| /' conftest.$ac_ext >&5
11028 ac_header_compiler=no
11030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11031 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11032 echo "${ECHO_T}$ac_header_compiler" >&6
11034 # Is the header present?
11035 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11036 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11037 cat >conftest.$ac_ext <<_ACEOF
11038 /* confdefs.h. */
11039 _ACEOF
11040 cat confdefs.h >>conftest.$ac_ext
11041 cat >>conftest.$ac_ext <<_ACEOF
11042 /* end confdefs.h. */
11043 #include <$ac_header>
11044 _ACEOF
11045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11046 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11047 ac_status=$?
11048 grep -v '^ *+' conftest.er1 >conftest.err
11049 rm -f conftest.er1
11050 cat conftest.err >&5
11051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 (exit $ac_status); } >/dev/null; then
11053 if test -s conftest.err; then
11054 ac_cpp_err=$ac_c_preproc_warn_flag
11055 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11056 else
11057 ac_cpp_err=
11059 else
11060 ac_cpp_err=yes
11062 if test -z "$ac_cpp_err"; then
11063 ac_header_preproc=yes
11064 else
11065 echo "$as_me: failed program was:" >&5
11066 sed 's/^/| /' conftest.$ac_ext >&5
11068 ac_header_preproc=no
11070 rm -f conftest.err conftest.$ac_ext
11071 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11072 echo "${ECHO_T}$ac_header_preproc" >&6
11074 # So? What about this header?
11075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11076 yes:no: )
11077 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11078 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11080 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11081 ac_header_preproc=yes
11083 no:yes:* )
11084 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11085 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11086 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11087 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11088 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11089 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11090 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11091 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11093 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11094 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11095 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11097 cat <<\_ASBOX
11098 ## ------------------------------ ##
11099 ## Report this to admin@amule.org ##
11100 ## ------------------------------ ##
11101 _ASBOX
11103 sed "s/^/$as_me: WARNING: /" >&2
11105 esac
11106 echo "$as_me:$LINENO: checking for $ac_header" >&5
11107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11109 echo $ECHO_N "(cached) $ECHO_C" >&6
11110 else
11111 eval "$as_ac_Header=\$ac_header_preproc"
11113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11114 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11117 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11118 cat >>confdefs.h <<_ACEOF
11119 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11120 _ACEOF
11124 done
11128 for ac_func in fork vfork
11130 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11131 echo "$as_me:$LINENO: checking for $ac_func" >&5
11132 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11133 if eval "test \"\${$as_ac_var+set}\" = set"; then
11134 echo $ECHO_N "(cached) $ECHO_C" >&6
11135 else
11136 cat >conftest.$ac_ext <<_ACEOF
11137 /* confdefs.h. */
11138 _ACEOF
11139 cat confdefs.h >>conftest.$ac_ext
11140 cat >>conftest.$ac_ext <<_ACEOF
11141 /* end confdefs.h. */
11142 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11144 #define $ac_func innocuous_$ac_func
11146 /* System header to define __stub macros and hopefully few prototypes,
11147 which can conflict with char $ac_func (); below.
11148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11149 <limits.h> exists even on freestanding compilers. */
11151 #ifdef __STDC__
11152 # include <limits.h>
11153 #else
11154 # include <assert.h>
11155 #endif
11157 #undef $ac_func
11159 /* Override any gcc2 internal prototype to avoid an error. */
11160 #ifdef __cplusplus
11161 extern "C"
11163 #endif
11164 /* We use char because int might match the return type of a gcc2
11165 builtin and then its argument prototype would still apply. */
11166 char $ac_func ();
11167 /* The GNU C library defines this for functions which it implements
11168 to always fail with ENOSYS. Some functions are actually named
11169 something starting with __ and the normal name is an alias. */
11170 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11171 choke me
11172 #else
11173 char (*f) () = $ac_func;
11174 #endif
11175 #ifdef __cplusplus
11177 #endif
11180 main ()
11182 return f != $ac_func;
11184 return 0;
11186 _ACEOF
11187 rm -f conftest.$ac_objext conftest$ac_exeext
11188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11189 (eval $ac_link) 2>conftest.er1
11190 ac_status=$?
11191 grep -v '^ *+' conftest.er1 >conftest.err
11192 rm -f conftest.er1
11193 cat conftest.err >&5
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); } &&
11196 { ac_try='test -z "$ac_c_werror_flag"
11197 || test ! -s conftest.err'
11198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11199 (eval $ac_try) 2>&5
11200 ac_status=$?
11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); }; } &&
11203 { ac_try='test -s conftest$ac_exeext'
11204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11205 (eval $ac_try) 2>&5
11206 ac_status=$?
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); }; }; then
11209 eval "$as_ac_var=yes"
11210 else
11211 echo "$as_me: failed program was:" >&5
11212 sed 's/^/| /' conftest.$ac_ext >&5
11214 eval "$as_ac_var=no"
11216 rm -f conftest.err conftest.$ac_objext \
11217 conftest$ac_exeext conftest.$ac_ext
11219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11220 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11221 if test `eval echo '${'$as_ac_var'}'` = yes; then
11222 cat >>confdefs.h <<_ACEOF
11223 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11224 _ACEOF
11227 done
11229 if test "x$ac_cv_func_fork" = xyes; then
11230 echo "$as_me:$LINENO: checking for working fork" >&5
11231 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
11232 if test "${ac_cv_func_fork_works+set}" = set; then
11233 echo $ECHO_N "(cached) $ECHO_C" >&6
11234 else
11235 if test "$cross_compiling" = yes; then
11236 ac_cv_func_fork_works=cross
11237 else
11238 cat >conftest.$ac_ext <<_ACEOF
11239 /* By Ruediger Kuhlmann. */
11240 #include <sys/types.h>
11241 #if HAVE_UNISTD_H
11242 # include <unistd.h>
11243 #endif
11244 /* Some systems only have a dummy stub for fork() */
11245 int main ()
11247 if (fork() < 0)
11248 exit (1);
11249 exit (0);
11251 _ACEOF
11252 rm -f conftest$ac_exeext
11253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11254 (eval $ac_link) 2>&5
11255 ac_status=$?
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11259 (eval $ac_try) 2>&5
11260 ac_status=$?
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); }; }; then
11263 ac_cv_func_fork_works=yes
11264 else
11265 echo "$as_me: program exited with status $ac_status" >&5
11266 echo "$as_me: failed program was:" >&5
11267 sed 's/^/| /' conftest.$ac_ext >&5
11269 ( exit $ac_status )
11270 ac_cv_func_fork_works=no
11272 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11275 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11276 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11278 else
11279 ac_cv_func_fork_works=$ac_cv_func_fork
11281 if test "x$ac_cv_func_fork_works" = xcross; then
11282 case $host in
11283 *-*-amigaos* | *-*-msdosdjgpp*)
11284 # Override, as these systems have only a dummy fork() stub
11285 ac_cv_func_fork_works=no
11288 ac_cv_func_fork_works=yes
11290 esac
11291 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11292 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11294 ac_cv_func_vfork_works=$ac_cv_func_vfork
11295 if test "x$ac_cv_func_vfork" = xyes; then
11296 echo "$as_me:$LINENO: checking for working vfork" >&5
11297 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11298 if test "${ac_cv_func_vfork_works+set}" = set; then
11299 echo $ECHO_N "(cached) $ECHO_C" >&6
11300 else
11301 if test "$cross_compiling" = yes; then
11302 ac_cv_func_vfork_works=cross
11303 else
11304 cat >conftest.$ac_ext <<_ACEOF
11305 /* confdefs.h. */
11306 _ACEOF
11307 cat confdefs.h >>conftest.$ac_ext
11308 cat >>conftest.$ac_ext <<_ACEOF
11309 /* end confdefs.h. */
11310 /* Thanks to Paul Eggert for this test. */
11311 #include <stdio.h>
11312 #include <stdlib.h>
11313 #include <sys/types.h>
11314 #include <sys/stat.h>
11315 #include <sys/wait.h>
11316 #if HAVE_UNISTD_H
11317 # include <unistd.h>
11318 #endif
11319 #if HAVE_VFORK_H
11320 # include <vfork.h>
11321 #endif
11322 /* On some sparc systems, changes by the child to local and incoming
11323 argument registers are propagated back to the parent. The compiler
11324 is told about this with #include <vfork.h>, but some compilers
11325 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11326 static variable whose address is put into a register that is
11327 clobbered by the vfork. */
11328 static void
11329 #ifdef __cplusplus
11330 sparc_address_test (int arg)
11331 # else
11332 sparc_address_test (arg) int arg;
11333 #endif
11335 static pid_t child;
11336 if (!child) {
11337 child = vfork ();
11338 if (child < 0) {
11339 perror ("vfork");
11340 _exit(2);
11342 if (!child) {
11343 arg = getpid();
11344 write(-1, "", 0);
11345 _exit (arg);
11351 main ()
11353 pid_t parent = getpid ();
11354 pid_t child;
11356 sparc_address_test (0);
11358 child = vfork ();
11360 if (child == 0) {
11361 /* Here is another test for sparc vfork register problems. This
11362 test uses lots of local variables, at least as many local
11363 variables as main has allocated so far including compiler
11364 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11365 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11366 reuse the register of parent for one of the local variables,
11367 since it will think that parent can't possibly be used any more
11368 in this routine. Assigning to the local variable will thus
11369 munge parent in the parent process. */
11370 pid_t
11371 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11372 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11373 /* Convince the compiler that p..p7 are live; otherwise, it might
11374 use the same hardware register for all 8 local variables. */
11375 if (p != p1 || p != p2 || p != p3 || p != p4
11376 || p != p5 || p != p6 || p != p7)
11377 _exit(1);
11379 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11380 from child file descriptors. If the child closes a descriptor
11381 before it execs or exits, this munges the parent's descriptor
11382 as well. Test for this by closing stdout in the child. */
11383 _exit(close(fileno(stdout)) != 0);
11384 } else {
11385 int status;
11386 struct stat st;
11388 while (wait(&status) != child)
11390 exit(
11391 /* Was there some problem with vforking? */
11392 child < 0
11394 /* Did the child fail? (This shouldn't happen.) */
11395 || status
11397 /* Did the vfork/compiler bug occur? */
11398 || parent != getpid()
11400 /* Did the file descriptor bug occur? */
11401 || fstat(fileno(stdout), &st) != 0
11405 _ACEOF
11406 rm -f conftest$ac_exeext
11407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11408 (eval $ac_link) 2>&5
11409 ac_status=$?
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11413 (eval $ac_try) 2>&5
11414 ac_status=$?
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); }; }; then
11417 ac_cv_func_vfork_works=yes
11418 else
11419 echo "$as_me: program exited with status $ac_status" >&5
11420 echo "$as_me: failed program was:" >&5
11421 sed 's/^/| /' conftest.$ac_ext >&5
11423 ( exit $ac_status )
11424 ac_cv_func_vfork_works=no
11426 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11429 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11430 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11433 if test "x$ac_cv_func_fork_works" = xcross; then
11434 ac_cv_func_vfork_works=$ac_cv_func_vfork
11435 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11436 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11439 if test "x$ac_cv_func_vfork_works" = xyes; then
11441 cat >>confdefs.h <<\_ACEOF
11442 #define HAVE_WORKING_VFORK 1
11443 _ACEOF
11445 else
11447 cat >>confdefs.h <<\_ACEOF
11448 #define vfork fork
11449 _ACEOF
11452 if test "x$ac_cv_func_fork_works" = xyes; then
11454 cat >>confdefs.h <<\_ACEOF
11455 #define HAVE_WORKING_FORK 1
11456 _ACEOF
11460 if test x$SYS != xwin32; then
11462 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
11463 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
11464 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
11465 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
11466 echo $ECHO_N "(cached) $ECHO_C" >&6
11467 else
11468 ac_check_lib_save_LIBS=$LIBS
11469 LIBS="-lsun $LIBS"
11470 cat >conftest.$ac_ext <<_ACEOF
11471 /* confdefs.h. */
11472 _ACEOF
11473 cat confdefs.h >>conftest.$ac_ext
11474 cat >>conftest.$ac_ext <<_ACEOF
11475 /* end confdefs.h. */
11477 /* Override any gcc2 internal prototype to avoid an error. */
11478 #ifdef __cplusplus
11479 extern "C"
11480 #endif
11481 /* We use char because int might match the return type of a gcc2
11482 builtin and then its argument prototype would still apply. */
11483 char getmntent ();
11485 main ()
11487 getmntent ();
11489 return 0;
11491 _ACEOF
11492 rm -f conftest.$ac_objext conftest$ac_exeext
11493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11494 (eval $ac_link) 2>conftest.er1
11495 ac_status=$?
11496 grep -v '^ *+' conftest.er1 >conftest.err
11497 rm -f conftest.er1
11498 cat conftest.err >&5
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); } &&
11501 { ac_try='test -z "$ac_c_werror_flag"
11502 || test ! -s conftest.err'
11503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11504 (eval $ac_try) 2>&5
11505 ac_status=$?
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); }; } &&
11508 { ac_try='test -s conftest$ac_exeext'
11509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11510 (eval $ac_try) 2>&5
11511 ac_status=$?
11512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513 (exit $ac_status); }; }; then
11514 ac_cv_lib_sun_getmntent=yes
11515 else
11516 echo "$as_me: failed program was:" >&5
11517 sed 's/^/| /' conftest.$ac_ext >&5
11519 ac_cv_lib_sun_getmntent=no
11521 rm -f conftest.err conftest.$ac_objext \
11522 conftest$ac_exeext conftest.$ac_ext
11523 LIBS=$ac_check_lib_save_LIBS
11525 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
11526 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
11527 if test $ac_cv_lib_sun_getmntent = yes; then
11528 LIBS="-lsun $LIBS"
11529 else
11530 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
11531 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
11532 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
11533 echo $ECHO_N "(cached) $ECHO_C" >&6
11534 else
11535 ac_check_lib_save_LIBS=$LIBS
11536 LIBS="-lseq $LIBS"
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. */
11544 /* Override any gcc2 internal prototype to avoid an error. */
11545 #ifdef __cplusplus
11546 extern "C"
11547 #endif
11548 /* We use char because int might match the return type of a gcc2
11549 builtin and then its argument prototype would still apply. */
11550 char getmntent ();
11552 main ()
11554 getmntent ();
11556 return 0;
11558 _ACEOF
11559 rm -f conftest.$ac_objext conftest$ac_exeext
11560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11561 (eval $ac_link) 2>conftest.er1
11562 ac_status=$?
11563 grep -v '^ *+' conftest.er1 >conftest.err
11564 rm -f conftest.er1
11565 cat conftest.err >&5
11566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 (exit $ac_status); } &&
11568 { ac_try='test -z "$ac_c_werror_flag"
11569 || test ! -s conftest.err'
11570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11571 (eval $ac_try) 2>&5
11572 ac_status=$?
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); }; } &&
11575 { ac_try='test -s conftest$ac_exeext'
11576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11577 (eval $ac_try) 2>&5
11578 ac_status=$?
11579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580 (exit $ac_status); }; }; then
11581 ac_cv_lib_seq_getmntent=yes
11582 else
11583 echo "$as_me: failed program was:" >&5
11584 sed 's/^/| /' conftest.$ac_ext >&5
11586 ac_cv_lib_seq_getmntent=no
11588 rm -f conftest.err conftest.$ac_objext \
11589 conftest$ac_exeext conftest.$ac_ext
11590 LIBS=$ac_check_lib_save_LIBS
11592 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
11593 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
11594 if test $ac_cv_lib_seq_getmntent = yes; then
11595 LIBS="-lseq $LIBS"
11596 else
11597 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
11598 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
11599 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
11600 echo $ECHO_N "(cached) $ECHO_C" >&6
11601 else
11602 ac_check_lib_save_LIBS=$LIBS
11603 LIBS="-lgen $LIBS"
11604 cat >conftest.$ac_ext <<_ACEOF
11605 /* confdefs.h. */
11606 _ACEOF
11607 cat confdefs.h >>conftest.$ac_ext
11608 cat >>conftest.$ac_ext <<_ACEOF
11609 /* end confdefs.h. */
11611 /* Override any gcc2 internal prototype to avoid an error. */
11612 #ifdef __cplusplus
11613 extern "C"
11614 #endif
11615 /* We use char because int might match the return type of a gcc2
11616 builtin and then its argument prototype would still apply. */
11617 char getmntent ();
11619 main ()
11621 getmntent ();
11623 return 0;
11625 _ACEOF
11626 rm -f conftest.$ac_objext conftest$ac_exeext
11627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11628 (eval $ac_link) 2>conftest.er1
11629 ac_status=$?
11630 grep -v '^ *+' conftest.er1 >conftest.err
11631 rm -f conftest.er1
11632 cat conftest.err >&5
11633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634 (exit $ac_status); } &&
11635 { ac_try='test -z "$ac_c_werror_flag"
11636 || test ! -s conftest.err'
11637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11638 (eval $ac_try) 2>&5
11639 ac_status=$?
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); }; } &&
11642 { ac_try='test -s conftest$ac_exeext'
11643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11644 (eval $ac_try) 2>&5
11645 ac_status=$?
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); }; }; then
11648 ac_cv_lib_gen_getmntent=yes
11649 else
11650 echo "$as_me: failed program was:" >&5
11651 sed 's/^/| /' conftest.$ac_ext >&5
11653 ac_cv_lib_gen_getmntent=no
11655 rm -f conftest.err conftest.$ac_objext \
11656 conftest$ac_exeext conftest.$ac_ext
11657 LIBS=$ac_check_lib_save_LIBS
11659 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
11660 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
11661 if test $ac_cv_lib_gen_getmntent = yes; then
11662 LIBS="-lgen $LIBS"
11670 for ac_func in getmntent
11672 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11673 echo "$as_me:$LINENO: checking for $ac_func" >&5
11674 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11675 if eval "test \"\${$as_ac_var+set}\" = set"; then
11676 echo $ECHO_N "(cached) $ECHO_C" >&6
11677 else
11678 cat >conftest.$ac_ext <<_ACEOF
11679 /* confdefs.h. */
11680 _ACEOF
11681 cat confdefs.h >>conftest.$ac_ext
11682 cat >>conftest.$ac_ext <<_ACEOF
11683 /* end confdefs.h. */
11684 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11686 #define $ac_func innocuous_$ac_func
11688 /* System header to define __stub macros and hopefully few prototypes,
11689 which can conflict with char $ac_func (); below.
11690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11691 <limits.h> exists even on freestanding compilers. */
11693 #ifdef __STDC__
11694 # include <limits.h>
11695 #else
11696 # include <assert.h>
11697 #endif
11699 #undef $ac_func
11701 /* Override any gcc2 internal prototype to avoid an error. */
11702 #ifdef __cplusplus
11703 extern "C"
11705 #endif
11706 /* We use char because int might match the return type of a gcc2
11707 builtin and then its argument prototype would still apply. */
11708 char $ac_func ();
11709 /* The GNU C library defines this for functions which it implements
11710 to always fail with ENOSYS. Some functions are actually named
11711 something starting with __ and the normal name is an alias. */
11712 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11713 choke me
11714 #else
11715 char (*f) () = $ac_func;
11716 #endif
11717 #ifdef __cplusplus
11719 #endif
11722 main ()
11724 return f != $ac_func;
11726 return 0;
11728 _ACEOF
11729 rm -f conftest.$ac_objext conftest$ac_exeext
11730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11731 (eval $ac_link) 2>conftest.er1
11732 ac_status=$?
11733 grep -v '^ *+' conftest.er1 >conftest.err
11734 rm -f conftest.er1
11735 cat conftest.err >&5
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); } &&
11738 { ac_try='test -z "$ac_c_werror_flag"
11739 || test ! -s conftest.err'
11740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11741 (eval $ac_try) 2>&5
11742 ac_status=$?
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); }; } &&
11745 { ac_try='test -s conftest$ac_exeext'
11746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11747 (eval $ac_try) 2>&5
11748 ac_status=$?
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); }; }; then
11751 eval "$as_ac_var=yes"
11752 else
11753 echo "$as_me: failed program was:" >&5
11754 sed 's/^/| /' conftest.$ac_ext >&5
11756 eval "$as_ac_var=no"
11758 rm -f conftest.err conftest.$ac_objext \
11759 conftest$ac_exeext conftest.$ac_ext
11761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11762 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11763 if test `eval echo '${'$as_ac_var'}'` = yes; then
11764 cat >>confdefs.h <<_ACEOF
11765 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11766 _ACEOF
11769 done
11772 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
11773 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
11774 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
11775 echo $ECHO_N "(cached) $ECHO_C" >&6
11776 else
11777 rm -f conftest.sym conftest.file
11778 echo >conftest.file
11779 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
11780 if test "$cross_compiling" = yes; then
11781 ac_cv_func_lstat_dereferences_slashed_symlink=no
11782 else
11783 cat >conftest.$ac_ext <<_ACEOF
11784 /* confdefs.h. */
11785 _ACEOF
11786 cat confdefs.h >>conftest.$ac_ext
11787 cat >>conftest.$ac_ext <<_ACEOF
11788 /* end confdefs.h. */
11789 $ac_includes_default
11791 main ()
11793 struct stat sbuf;
11794 /* Linux will dereference the symlink and fail.
11795 That is better in the sense that it means we will not
11796 have to compile and use the lstat wrapper. */
11797 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
11799 return 0;
11801 _ACEOF
11802 rm -f conftest$ac_exeext
11803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11804 (eval $ac_link) 2>&5
11805 ac_status=$?
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11809 (eval $ac_try) 2>&5
11810 ac_status=$?
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); }; }; then
11813 ac_cv_func_lstat_dereferences_slashed_symlink=yes
11814 else
11815 echo "$as_me: program exited with status $ac_status" >&5
11816 echo "$as_me: failed program was:" >&5
11817 sed 's/^/| /' conftest.$ac_ext >&5
11819 ( exit $ac_status )
11820 ac_cv_func_lstat_dereferences_slashed_symlink=no
11822 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11824 else
11825 # If the `ln -s' command failed, then we probably don't even
11826 # have an lstat function.
11827 ac_cv_func_lstat_dereferences_slashed_symlink=no
11829 rm -f conftest.sym conftest.file
11832 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11833 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
11835 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11837 cat >>confdefs.h <<_ACEOF
11838 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11839 _ACEOF
11842 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
11843 case $LIBOBJS in
11844 "lstat.$ac_objext" | \
11845 *" lstat.$ac_objext" | \
11846 "lstat.$ac_objext "* | \
11847 *" lstat.$ac_objext "* ) ;;
11848 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
11849 esac
11853 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
11854 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
11855 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
11856 echo $ECHO_N "(cached) $ECHO_C" >&6
11857 else
11858 if test "$cross_compiling" = yes; then
11859 ac_cv_func_lstat_empty_string_bug=yes
11860 else
11861 cat >conftest.$ac_ext <<_ACEOF
11862 /* confdefs.h. */
11863 _ACEOF
11864 cat confdefs.h >>conftest.$ac_ext
11865 cat >>conftest.$ac_ext <<_ACEOF
11866 /* end confdefs.h. */
11867 $ac_includes_default
11869 main ()
11871 struct stat sbuf;
11872 exit (lstat ("", &sbuf) ? 1 : 0);
11874 return 0;
11876 _ACEOF
11877 rm -f conftest$ac_exeext
11878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11879 (eval $ac_link) 2>&5
11880 ac_status=$?
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11884 (eval $ac_try) 2>&5
11885 ac_status=$?
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); }; }; then
11888 ac_cv_func_lstat_empty_string_bug=yes
11889 else
11890 echo "$as_me: program exited with status $ac_status" >&5
11891 echo "$as_me: failed program was:" >&5
11892 sed 's/^/| /' conftest.$ac_ext >&5
11894 ( exit $ac_status )
11895 ac_cv_func_lstat_empty_string_bug=no
11897 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11900 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
11901 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
11902 if test $ac_cv_func_lstat_empty_string_bug = yes; then
11903 case $LIBOBJS in
11904 "lstat.$ac_objext" | \
11905 *" lstat.$ac_objext" | \
11906 "lstat.$ac_objext "* | \
11907 *" lstat.$ac_objext "* ) ;;
11908 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
11909 esac
11912 cat >>confdefs.h <<_ACEOF
11913 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
11914 _ACEOF
11918 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
11919 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
11920 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
11921 echo $ECHO_N "(cached) $ECHO_C" >&6
11922 else
11923 rm -f conftest.sym conftest.file
11924 echo >conftest.file
11925 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
11926 if test "$cross_compiling" = yes; then
11927 ac_cv_func_lstat_dereferences_slashed_symlink=no
11928 else
11929 cat >conftest.$ac_ext <<_ACEOF
11930 /* confdefs.h. */
11931 _ACEOF
11932 cat confdefs.h >>conftest.$ac_ext
11933 cat >>conftest.$ac_ext <<_ACEOF
11934 /* end confdefs.h. */
11935 $ac_includes_default
11937 main ()
11939 struct stat sbuf;
11940 /* Linux will dereference the symlink and fail.
11941 That is better in the sense that it means we will not
11942 have to compile and use the lstat wrapper. */
11943 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
11945 return 0;
11947 _ACEOF
11948 rm -f conftest$ac_exeext
11949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11950 (eval $ac_link) 2>&5
11951 ac_status=$?
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11955 (eval $ac_try) 2>&5
11956 ac_status=$?
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); }; }; then
11959 ac_cv_func_lstat_dereferences_slashed_symlink=yes
11960 else
11961 echo "$as_me: program exited with status $ac_status" >&5
11962 echo "$as_me: failed program was:" >&5
11963 sed 's/^/| /' conftest.$ac_ext >&5
11965 ( exit $ac_status )
11966 ac_cv_func_lstat_dereferences_slashed_symlink=no
11968 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11970 else
11971 # If the `ln -s' command failed, then we probably don't even
11972 # have an lstat function.
11973 ac_cv_func_lstat_dereferences_slashed_symlink=no
11975 rm -f conftest.sym conftest.file
11978 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11979 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
11981 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11983 cat >>confdefs.h <<_ACEOF
11984 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11985 _ACEOF
11988 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
11989 case $LIBOBJS in
11990 "lstat.$ac_objext" | \
11991 *" lstat.$ac_objext" | \
11992 "lstat.$ac_objext "* | \
11993 *" lstat.$ac_objext "* ) ;;
11994 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
11995 esac
12002 echo "$as_me:$LINENO: checking for working memcmp" >&5
12003 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
12004 if test "${ac_cv_func_memcmp_working+set}" = set; then
12005 echo $ECHO_N "(cached) $ECHO_C" >&6
12006 else
12007 if test "$cross_compiling" = yes; then
12008 ac_cv_func_memcmp_working=no
12009 else
12010 cat >conftest.$ac_ext <<_ACEOF
12011 /* confdefs.h. */
12012 _ACEOF
12013 cat confdefs.h >>conftest.$ac_ext
12014 cat >>conftest.$ac_ext <<_ACEOF
12015 /* end confdefs.h. */
12016 $ac_includes_default
12018 main ()
12021 /* Some versions of memcmp are not 8-bit clean. */
12022 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
12023 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12024 exit (1);
12026 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12027 or more and with at least one buffer not starting on a 4-byte boundary.
12028 William Lewis provided this test program. */
12030 char foo[21];
12031 char bar[21];
12032 int i;
12033 for (i = 0; i < 4; i++)
12035 char *a = foo + i;
12036 char *b = bar + i;
12037 strcpy (a, "--------01111111");
12038 strcpy (b, "--------10000000");
12039 if (memcmp (a, b, 16) >= 0)
12040 exit (1);
12042 exit (0);
12046 return 0;
12048 _ACEOF
12049 rm -f conftest$ac_exeext
12050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12051 (eval $ac_link) 2>&5
12052 ac_status=$?
12053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12056 (eval $ac_try) 2>&5
12057 ac_status=$?
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); }; }; then
12060 ac_cv_func_memcmp_working=yes
12061 else
12062 echo "$as_me: program exited with status $ac_status" >&5
12063 echo "$as_me: failed program was:" >&5
12064 sed 's/^/| /' conftest.$ac_ext >&5
12066 ( exit $ac_status )
12067 ac_cv_func_memcmp_working=no
12069 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12072 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
12073 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
12074 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
12075 "memcmp.$ac_objext" | \
12076 *" memcmp.$ac_objext" | \
12077 "memcmp.$ac_objext "* | \
12078 *" memcmp.$ac_objext "* ) ;;
12079 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
12080 esac
12085 for ac_header in sys/select.h sys/socket.h
12087 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12089 echo "$as_me:$LINENO: checking for $ac_header" >&5
12090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12092 echo $ECHO_N "(cached) $ECHO_C" >&6
12094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12095 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12096 else
12097 # Is the header compilable?
12098 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12099 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12100 cat >conftest.$ac_ext <<_ACEOF
12101 /* confdefs.h. */
12102 _ACEOF
12103 cat confdefs.h >>conftest.$ac_ext
12104 cat >>conftest.$ac_ext <<_ACEOF
12105 /* end confdefs.h. */
12106 $ac_includes_default
12107 #include <$ac_header>
12108 _ACEOF
12109 rm -f conftest.$ac_objext
12110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12111 (eval $ac_compile) 2>conftest.er1
12112 ac_status=$?
12113 grep -v '^ *+' conftest.er1 >conftest.err
12114 rm -f conftest.er1
12115 cat conftest.err >&5
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); } &&
12118 { ac_try='test -z "$ac_c_werror_flag"
12119 || test ! -s conftest.err'
12120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12121 (eval $ac_try) 2>&5
12122 ac_status=$?
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); }; } &&
12125 { ac_try='test -s conftest.$ac_objext'
12126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12127 (eval $ac_try) 2>&5
12128 ac_status=$?
12129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 (exit $ac_status); }; }; then
12131 ac_header_compiler=yes
12132 else
12133 echo "$as_me: failed program was:" >&5
12134 sed 's/^/| /' conftest.$ac_ext >&5
12136 ac_header_compiler=no
12138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12139 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12140 echo "${ECHO_T}$ac_header_compiler" >&6
12142 # Is the header present?
12143 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12144 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12145 cat >conftest.$ac_ext <<_ACEOF
12146 /* confdefs.h. */
12147 _ACEOF
12148 cat confdefs.h >>conftest.$ac_ext
12149 cat >>conftest.$ac_ext <<_ACEOF
12150 /* end confdefs.h. */
12151 #include <$ac_header>
12152 _ACEOF
12153 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12154 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12155 ac_status=$?
12156 grep -v '^ *+' conftest.er1 >conftest.err
12157 rm -f conftest.er1
12158 cat conftest.err >&5
12159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160 (exit $ac_status); } >/dev/null; then
12161 if test -s conftest.err; then
12162 ac_cpp_err=$ac_c_preproc_warn_flag
12163 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12164 else
12165 ac_cpp_err=
12167 else
12168 ac_cpp_err=yes
12170 if test -z "$ac_cpp_err"; then
12171 ac_header_preproc=yes
12172 else
12173 echo "$as_me: failed program was:" >&5
12174 sed 's/^/| /' conftest.$ac_ext >&5
12176 ac_header_preproc=no
12178 rm -f conftest.err conftest.$ac_ext
12179 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12180 echo "${ECHO_T}$ac_header_preproc" >&6
12182 # So? What about this header?
12183 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12184 yes:no: )
12185 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12186 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12188 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12189 ac_header_preproc=yes
12191 no:yes:* )
12192 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12193 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12194 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12195 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12196 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12197 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12198 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12199 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12202 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12203 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12205 cat <<\_ASBOX
12206 ## ------------------------------ ##
12207 ## Report this to admin@amule.org ##
12208 ## ------------------------------ ##
12209 _ASBOX
12211 sed "s/^/$as_me: WARNING: /" >&2
12213 esac
12214 echo "$as_me:$LINENO: checking for $ac_header" >&5
12215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12217 echo $ECHO_N "(cached) $ECHO_C" >&6
12218 else
12219 eval "$as_ac_Header=\$ac_header_preproc"
12221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12222 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12225 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12226 cat >>confdefs.h <<_ACEOF
12227 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12228 _ACEOF
12232 done
12234 echo "$as_me:$LINENO: checking types of arguments for select" >&5
12235 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
12236 if test "${ac_cv_func_select_args+set}" = set; then
12237 echo $ECHO_N "(cached) $ECHO_C" >&6
12238 else
12239 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
12240 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
12241 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
12242 cat >conftest.$ac_ext <<_ACEOF
12243 /* confdefs.h. */
12244 _ACEOF
12245 cat confdefs.h >>conftest.$ac_ext
12246 cat >>conftest.$ac_ext <<_ACEOF
12247 /* end confdefs.h. */
12248 $ac_includes_default
12249 #if HAVE_SYS_SELECT_H
12250 # include <sys/select.h>
12251 #endif
12252 #if HAVE_SYS_SOCKET_H
12253 # include <sys/socket.h>
12254 #endif
12257 main ()
12259 extern int select ($ac_arg1,
12260 $ac_arg234, $ac_arg234, $ac_arg234,
12261 $ac_arg5);
12263 return 0;
12265 _ACEOF
12266 rm -f conftest.$ac_objext
12267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12268 (eval $ac_compile) 2>conftest.er1
12269 ac_status=$?
12270 grep -v '^ *+' conftest.er1 >conftest.err
12271 rm -f conftest.er1
12272 cat conftest.err >&5
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); } &&
12275 { ac_try='test -z "$ac_c_werror_flag"
12276 || test ! -s conftest.err'
12277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12278 (eval $ac_try) 2>&5
12279 ac_status=$?
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); }; } &&
12282 { ac_try='test -s conftest.$ac_objext'
12283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12284 (eval $ac_try) 2>&5
12285 ac_status=$?
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); }; }; then
12288 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12289 else
12290 echo "$as_me: failed program was:" >&5
12291 sed 's/^/| /' conftest.$ac_ext >&5
12294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12295 done
12296 done
12297 done
12298 # Provide a safe default value.
12299 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
12302 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
12303 echo "${ECHO_T}$ac_cv_func_select_args" >&6
12304 ac_save_IFS=$IFS; IFS=','
12305 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12306 IFS=$ac_save_IFS
12307 shift
12309 cat >>confdefs.h <<_ACEOF
12310 #define SELECT_TYPE_ARG1 $1
12311 _ACEOF
12314 cat >>confdefs.h <<_ACEOF
12315 #define SELECT_TYPE_ARG234 ($2)
12316 _ACEOF
12319 cat >>confdefs.h <<_ACEOF
12320 #define SELECT_TYPE_ARG5 ($3)
12321 _ACEOF
12323 rm -f conftest*
12325 echo "$as_me:$LINENO: checking for function prototypes" >&5
12326 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
12327 if test "$ac_cv_prog_cc_stdc" != no; then
12328 echo "$as_me:$LINENO: result: yes" >&5
12329 echo "${ECHO_T}yes" >&6
12331 cat >>confdefs.h <<\_ACEOF
12332 #define PROTOTYPES 1
12333 _ACEOF
12336 cat >>confdefs.h <<\_ACEOF
12337 #define __PROTOTYPES 1
12338 _ACEOF
12340 else
12341 echo "$as_me:$LINENO: result: no" >&5
12342 echo "${ECHO_T}no" >&6
12345 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
12346 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
12347 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
12348 echo $ECHO_N "(cached) $ECHO_C" >&6
12349 else
12350 ac_cv_func_setvbuf_reversed=no
12351 cat >conftest.$ac_ext <<_ACEOF
12352 /* confdefs.h. */
12353 _ACEOF
12354 cat confdefs.h >>conftest.$ac_ext
12355 cat >>conftest.$ac_ext <<_ACEOF
12356 /* end confdefs.h. */
12357 #include <stdio.h>
12358 # if PROTOTYPES
12359 int (setvbuf) (FILE *, int, char *, size_t);
12360 # endif
12362 main ()
12364 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
12366 return 0;
12368 _ACEOF
12369 rm -f conftest.$ac_objext conftest$ac_exeext
12370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12371 (eval $ac_link) 2>conftest.er1
12372 ac_status=$?
12373 grep -v '^ *+' conftest.er1 >conftest.err
12374 rm -f conftest.er1
12375 cat conftest.err >&5
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); } &&
12378 { ac_try='test -z "$ac_c_werror_flag"
12379 || test ! -s conftest.err'
12380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12381 (eval $ac_try) 2>&5
12382 ac_status=$?
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); }; } &&
12385 { ac_try='test -s conftest$ac_exeext'
12386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12387 (eval $ac_try) 2>&5
12388 ac_status=$?
12389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390 (exit $ac_status); }; }; then
12391 cat >conftest.$ac_ext <<_ACEOF
12392 /* confdefs.h. */
12393 _ACEOF
12394 cat confdefs.h >>conftest.$ac_ext
12395 cat >>conftest.$ac_ext <<_ACEOF
12396 /* end confdefs.h. */
12397 #include <stdio.h>
12398 # if PROTOTYPES
12399 int (setvbuf) (FILE *, int, char *, size_t);
12400 # endif
12402 main ()
12404 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
12406 return 0;
12408 _ACEOF
12409 rm -f conftest.$ac_objext conftest$ac_exeext
12410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12411 (eval $ac_link) 2>conftest.er1
12412 ac_status=$?
12413 grep -v '^ *+' conftest.er1 >conftest.err
12414 rm -f conftest.er1
12415 cat conftest.err >&5
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); } &&
12418 { ac_try='test -z "$ac_c_werror_flag"
12419 || test ! -s conftest.err'
12420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12421 (eval $ac_try) 2>&5
12422 ac_status=$?
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); }; } &&
12425 { ac_try='test -s conftest$ac_exeext'
12426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12427 (eval $ac_try) 2>&5
12428 ac_status=$?
12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 (exit $ac_status); }; }; then
12431 # It compiles and links either way, so it must not be declared
12432 # with a prototype and most likely this is a K&R C compiler.
12433 # Try running it.
12434 if test "$cross_compiling" = yes; then
12435 : # Assume setvbuf is not reversed when cross-compiling.
12436 else
12437 cat >conftest.$ac_ext <<_ACEOF
12438 /* confdefs.h. */
12439 _ACEOF
12440 cat confdefs.h >>conftest.$ac_ext
12441 cat >>conftest.$ac_ext <<_ACEOF
12442 /* end confdefs.h. */
12443 #include <stdio.h>
12445 main ()
12447 /* This call has the arguments reversed.
12448 A reversed system may check and see that the address of buf
12449 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
12450 char buf;
12451 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
12452 exit (1);
12453 putchar ('\r');
12454 exit (0); /* Non-reversed systems SEGV here. */
12456 return 0;
12458 _ACEOF
12459 rm -f conftest$ac_exeext
12460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12461 (eval $ac_link) 2>&5
12462 ac_status=$?
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12466 (eval $ac_try) 2>&5
12467 ac_status=$?
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); }; }; then
12470 ac_cv_func_setvbuf_reversed=yes
12471 else
12472 echo "$as_me: program exited with status $ac_status" >&5
12473 echo "$as_me: failed program was:" >&5
12474 sed 's/^/| /' conftest.$ac_ext >&5
12476 ( exit $ac_status )
12477 rm -f core *.core
12479 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12481 ac_cv_func_setvbuf_reversed=yes
12482 else
12483 echo "$as_me: failed program was:" >&5
12484 sed 's/^/| /' conftest.$ac_ext >&5
12487 rm -f conftest.err conftest.$ac_objext \
12488 conftest$ac_exeext conftest.$ac_ext
12489 else
12490 echo "$as_me: failed program was:" >&5
12491 sed 's/^/| /' conftest.$ac_ext >&5
12494 rm -f conftest.err conftest.$ac_objext \
12495 conftest$ac_exeext conftest.$ac_ext
12497 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
12498 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
12499 if test $ac_cv_func_setvbuf_reversed = yes; then
12501 cat >>confdefs.h <<\_ACEOF
12502 #define SETVBUF_REVERSED 1
12503 _ACEOF
12507 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12508 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12509 if test "${ac_cv_type_signal+set}" = set; then
12510 echo $ECHO_N "(cached) $ECHO_C" >&6
12511 else
12512 cat >conftest.$ac_ext <<_ACEOF
12513 /* confdefs.h. */
12514 _ACEOF
12515 cat confdefs.h >>conftest.$ac_ext
12516 cat >>conftest.$ac_ext <<_ACEOF
12517 /* end confdefs.h. */
12518 #include <sys/types.h>
12519 #include <signal.h>
12520 #ifdef signal
12521 # undef signal
12522 #endif
12523 #ifdef __cplusplus
12524 extern "C" void (*signal (int, void (*)(int)))(int);
12525 #else
12526 void (*signal ()) ();
12527 #endif
12530 main ()
12532 int i;
12534 return 0;
12536 _ACEOF
12537 rm -f conftest.$ac_objext
12538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12539 (eval $ac_compile) 2>conftest.er1
12540 ac_status=$?
12541 grep -v '^ *+' conftest.er1 >conftest.err
12542 rm -f conftest.er1
12543 cat conftest.err >&5
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); } &&
12546 { ac_try='test -z "$ac_c_werror_flag"
12547 || test ! -s conftest.err'
12548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12549 (eval $ac_try) 2>&5
12550 ac_status=$?
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); }; } &&
12553 { ac_try='test -s conftest.$ac_objext'
12554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12555 (eval $ac_try) 2>&5
12556 ac_status=$?
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); }; }; then
12559 ac_cv_type_signal=void
12560 else
12561 echo "$as_me: failed program was:" >&5
12562 sed 's/^/| /' conftest.$ac_ext >&5
12564 ac_cv_type_signal=int
12566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12568 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12569 echo "${ECHO_T}$ac_cv_type_signal" >&6
12571 cat >>confdefs.h <<_ACEOF
12572 #define RETSIGTYPE $ac_cv_type_signal
12573 _ACEOF
12576 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
12577 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
12578 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
12579 echo $ECHO_N "(cached) $ECHO_C" >&6
12580 else
12581 if test "$cross_compiling" = yes; then
12582 ac_cv_func_stat_empty_string_bug=yes
12583 else
12584 cat >conftest.$ac_ext <<_ACEOF
12585 /* confdefs.h. */
12586 _ACEOF
12587 cat confdefs.h >>conftest.$ac_ext
12588 cat >>conftest.$ac_ext <<_ACEOF
12589 /* end confdefs.h. */
12590 $ac_includes_default
12592 main ()
12594 struct stat sbuf;
12595 exit (stat ("", &sbuf) ? 1 : 0);
12597 return 0;
12599 _ACEOF
12600 rm -f conftest$ac_exeext
12601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12602 (eval $ac_link) 2>&5
12603 ac_status=$?
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12607 (eval $ac_try) 2>&5
12608 ac_status=$?
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); }; }; then
12611 ac_cv_func_stat_empty_string_bug=yes
12612 else
12613 echo "$as_me: program exited with status $ac_status" >&5
12614 echo "$as_me: failed program was:" >&5
12615 sed 's/^/| /' conftest.$ac_ext >&5
12617 ( exit $ac_status )
12618 ac_cv_func_stat_empty_string_bug=no
12620 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12623 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
12624 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
12625 if test $ac_cv_func_stat_empty_string_bug = yes; then
12626 case $LIBOBJS in
12627 "stat.$ac_objext" | \
12628 *" stat.$ac_objext" | \
12629 "stat.$ac_objext "* | \
12630 *" stat.$ac_objext "* ) ;;
12631 *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
12632 esac
12635 cat >>confdefs.h <<_ACEOF
12636 #define HAVE_STAT_EMPTY_STRING_BUG 1
12637 _ACEOF
12642 for ac_func in strftime
12644 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12645 echo "$as_me:$LINENO: checking for $ac_func" >&5
12646 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12647 if eval "test \"\${$as_ac_var+set}\" = set"; then
12648 echo $ECHO_N "(cached) $ECHO_C" >&6
12649 else
12650 cat >conftest.$ac_ext <<_ACEOF
12651 /* confdefs.h. */
12652 _ACEOF
12653 cat confdefs.h >>conftest.$ac_ext
12654 cat >>conftest.$ac_ext <<_ACEOF
12655 /* end confdefs.h. */
12656 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12658 #define $ac_func innocuous_$ac_func
12660 /* System header to define __stub macros and hopefully few prototypes,
12661 which can conflict with char $ac_func (); below.
12662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12663 <limits.h> exists even on freestanding compilers. */
12665 #ifdef __STDC__
12666 # include <limits.h>
12667 #else
12668 # include <assert.h>
12669 #endif
12671 #undef $ac_func
12673 /* Override any gcc2 internal prototype to avoid an error. */
12674 #ifdef __cplusplus
12675 extern "C"
12677 #endif
12678 /* We use char because int might match the return type of a gcc2
12679 builtin and then its argument prototype would still apply. */
12680 char $ac_func ();
12681 /* The GNU C library defines this for functions which it implements
12682 to always fail with ENOSYS. Some functions are actually named
12683 something starting with __ and the normal name is an alias. */
12684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12685 choke me
12686 #else
12687 char (*f) () = $ac_func;
12688 #endif
12689 #ifdef __cplusplus
12691 #endif
12694 main ()
12696 return f != $ac_func;
12698 return 0;
12700 _ACEOF
12701 rm -f conftest.$ac_objext conftest$ac_exeext
12702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12703 (eval $ac_link) 2>conftest.er1
12704 ac_status=$?
12705 grep -v '^ *+' conftest.er1 >conftest.err
12706 rm -f conftest.er1
12707 cat conftest.err >&5
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); } &&
12710 { ac_try='test -z "$ac_c_werror_flag"
12711 || test ! -s conftest.err'
12712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12713 (eval $ac_try) 2>&5
12714 ac_status=$?
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); }; } &&
12717 { ac_try='test -s conftest$ac_exeext'
12718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12719 (eval $ac_try) 2>&5
12720 ac_status=$?
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); }; }; then
12723 eval "$as_ac_var=yes"
12724 else
12725 echo "$as_me: failed program was:" >&5
12726 sed 's/^/| /' conftest.$ac_ext >&5
12728 eval "$as_ac_var=no"
12730 rm -f conftest.err conftest.$ac_objext \
12731 conftest$ac_exeext conftest.$ac_ext
12733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12734 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12735 if test `eval echo '${'$as_ac_var'}'` = yes; then
12736 cat >>confdefs.h <<_ACEOF
12737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12738 _ACEOF
12740 else
12741 # strftime is in -lintl on SCO UNIX.
12742 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
12743 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
12744 if test "${ac_cv_lib_intl_strftime+set}" = set; then
12745 echo $ECHO_N "(cached) $ECHO_C" >&6
12746 else
12747 ac_check_lib_save_LIBS=$LIBS
12748 LIBS="-lintl $LIBS"
12749 cat >conftest.$ac_ext <<_ACEOF
12750 /* confdefs.h. */
12751 _ACEOF
12752 cat confdefs.h >>conftest.$ac_ext
12753 cat >>conftest.$ac_ext <<_ACEOF
12754 /* end confdefs.h. */
12756 /* Override any gcc2 internal prototype to avoid an error. */
12757 #ifdef __cplusplus
12758 extern "C"
12759 #endif
12760 /* We use char because int might match the return type of a gcc2
12761 builtin and then its argument prototype would still apply. */
12762 char strftime ();
12764 main ()
12766 strftime ();
12768 return 0;
12770 _ACEOF
12771 rm -f conftest.$ac_objext conftest$ac_exeext
12772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12773 (eval $ac_link) 2>conftest.er1
12774 ac_status=$?
12775 grep -v '^ *+' conftest.er1 >conftest.err
12776 rm -f conftest.er1
12777 cat conftest.err >&5
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); } &&
12780 { ac_try='test -z "$ac_c_werror_flag"
12781 || test ! -s conftest.err'
12782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12783 (eval $ac_try) 2>&5
12784 ac_status=$?
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); }; } &&
12787 { ac_try='test -s conftest$ac_exeext'
12788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12789 (eval $ac_try) 2>&5
12790 ac_status=$?
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); }; }; then
12793 ac_cv_lib_intl_strftime=yes
12794 else
12795 echo "$as_me: failed program was:" >&5
12796 sed 's/^/| /' conftest.$ac_ext >&5
12798 ac_cv_lib_intl_strftime=no
12800 rm -f conftest.err conftest.$ac_objext \
12801 conftest$ac_exeext conftest.$ac_ext
12802 LIBS=$ac_check_lib_save_LIBS
12804 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
12805 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
12806 if test $ac_cv_lib_intl_strftime = yes; then
12807 cat >>confdefs.h <<\_ACEOF
12808 #define HAVE_STRFTIME 1
12809 _ACEOF
12811 LIBS="-lintl $LIBS"
12815 done
12817 echo "$as_me:$LINENO: checking for working strtod" >&5
12818 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
12819 if test "${ac_cv_func_strtod+set}" = set; then
12820 echo $ECHO_N "(cached) $ECHO_C" >&6
12821 else
12822 if test "$cross_compiling" = yes; then
12823 ac_cv_func_strtod=no
12824 else
12825 cat >conftest.$ac_ext <<_ACEOF
12826 /* confdefs.h. */
12827 _ACEOF
12828 cat confdefs.h >>conftest.$ac_ext
12829 cat >>conftest.$ac_ext <<_ACEOF
12830 /* end confdefs.h. */
12832 double strtod ();
12834 main()
12837 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
12838 char *string = " +69";
12839 char *term;
12840 double value;
12841 value = strtod (string, &term);
12842 if (value != 69 || term != (string + 4))
12843 exit (1);
12847 /* Under Solaris 2.4, strtod returns the wrong value for the
12848 terminating character under some conditions. */
12849 char *string = "NaN";
12850 char *term;
12851 strtod (string, &term);
12852 if (term != string && *(term - 1) == 0)
12853 exit (1);
12855 exit (0);
12858 _ACEOF
12859 rm -f conftest$ac_exeext
12860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12861 (eval $ac_link) 2>&5
12862 ac_status=$?
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12866 (eval $ac_try) 2>&5
12867 ac_status=$?
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); }; }; then
12870 ac_cv_func_strtod=yes
12871 else
12872 echo "$as_me: program exited with status $ac_status" >&5
12873 echo "$as_me: failed program was:" >&5
12874 sed 's/^/| /' conftest.$ac_ext >&5
12876 ( exit $ac_status )
12877 ac_cv_func_strtod=no
12879 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12882 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
12883 echo "${ECHO_T}$ac_cv_func_strtod" >&6
12884 if test $ac_cv_func_strtod = no; then
12885 case $LIBOBJS in
12886 "strtod.$ac_objext" | \
12887 *" strtod.$ac_objext" | \
12888 "strtod.$ac_objext "* | \
12889 *" strtod.$ac_objext "* ) ;;
12890 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;;
12891 esac
12893 echo "$as_me:$LINENO: checking for pow" >&5
12894 echo $ECHO_N "checking for pow... $ECHO_C" >&6
12895 if test "${ac_cv_func_pow+set}" = set; then
12896 echo $ECHO_N "(cached) $ECHO_C" >&6
12897 else
12898 cat >conftest.$ac_ext <<_ACEOF
12899 /* confdefs.h. */
12900 _ACEOF
12901 cat confdefs.h >>conftest.$ac_ext
12902 cat >>conftest.$ac_ext <<_ACEOF
12903 /* end confdefs.h. */
12904 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
12905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12906 #define pow innocuous_pow
12908 /* System header to define __stub macros and hopefully few prototypes,
12909 which can conflict with char pow (); below.
12910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12911 <limits.h> exists even on freestanding compilers. */
12913 #ifdef __STDC__
12914 # include <limits.h>
12915 #else
12916 # include <assert.h>
12917 #endif
12919 #undef pow
12921 /* Override any gcc2 internal prototype to avoid an error. */
12922 #ifdef __cplusplus
12923 extern "C"
12925 #endif
12926 /* We use char because int might match the return type of a gcc2
12927 builtin and then its argument prototype would still apply. */
12928 char pow ();
12929 /* The GNU C library defines this for functions which it implements
12930 to always fail with ENOSYS. Some functions are actually named
12931 something starting with __ and the normal name is an alias. */
12932 #if defined (__stub_pow) || defined (__stub___pow)
12933 choke me
12934 #else
12935 char (*f) () = pow;
12936 #endif
12937 #ifdef __cplusplus
12939 #endif
12942 main ()
12944 return f != pow;
12946 return 0;
12948 _ACEOF
12949 rm -f conftest.$ac_objext conftest$ac_exeext
12950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12951 (eval $ac_link) 2>conftest.er1
12952 ac_status=$?
12953 grep -v '^ *+' conftest.er1 >conftest.err
12954 rm -f conftest.er1
12955 cat conftest.err >&5
12956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957 (exit $ac_status); } &&
12958 { ac_try='test -z "$ac_c_werror_flag"
12959 || test ! -s conftest.err'
12960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12961 (eval $ac_try) 2>&5
12962 ac_status=$?
12963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964 (exit $ac_status); }; } &&
12965 { ac_try='test -s conftest$ac_exeext'
12966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12967 (eval $ac_try) 2>&5
12968 ac_status=$?
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); }; }; then
12971 ac_cv_func_pow=yes
12972 else
12973 echo "$as_me: failed program was:" >&5
12974 sed 's/^/| /' conftest.$ac_ext >&5
12976 ac_cv_func_pow=no
12978 rm -f conftest.err conftest.$ac_objext \
12979 conftest$ac_exeext conftest.$ac_ext
12981 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
12982 echo "${ECHO_T}$ac_cv_func_pow" >&6
12984 if test $ac_cv_func_pow = no; then
12985 echo "$as_me:$LINENO: checking for pow in -lm" >&5
12986 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
12987 if test "${ac_cv_lib_m_pow+set}" = set; then
12988 echo $ECHO_N "(cached) $ECHO_C" >&6
12989 else
12990 ac_check_lib_save_LIBS=$LIBS
12991 LIBS="-lm $LIBS"
12992 cat >conftest.$ac_ext <<_ACEOF
12993 /* confdefs.h. */
12994 _ACEOF
12995 cat confdefs.h >>conftest.$ac_ext
12996 cat >>conftest.$ac_ext <<_ACEOF
12997 /* end confdefs.h. */
12999 /* Override any gcc2 internal prototype to avoid an error. */
13000 #ifdef __cplusplus
13001 extern "C"
13002 #endif
13003 /* We use char because int might match the return type of a gcc2
13004 builtin and then its argument prototype would still apply. */
13005 char pow ();
13007 main ()
13009 pow ();
13011 return 0;
13013 _ACEOF
13014 rm -f conftest.$ac_objext conftest$ac_exeext
13015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13016 (eval $ac_link) 2>conftest.er1
13017 ac_status=$?
13018 grep -v '^ *+' conftest.er1 >conftest.err
13019 rm -f conftest.er1
13020 cat conftest.err >&5
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); } &&
13023 { ac_try='test -z "$ac_c_werror_flag"
13024 || test ! -s conftest.err'
13025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13026 (eval $ac_try) 2>&5
13027 ac_status=$?
13028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); }; } &&
13030 { ac_try='test -s conftest$ac_exeext'
13031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13032 (eval $ac_try) 2>&5
13033 ac_status=$?
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); }; }; then
13036 ac_cv_lib_m_pow=yes
13037 else
13038 echo "$as_me: failed program was:" >&5
13039 sed 's/^/| /' conftest.$ac_ext >&5
13041 ac_cv_lib_m_pow=no
13043 rm -f conftest.err conftest.$ac_objext \
13044 conftest$ac_exeext conftest.$ac_ext
13045 LIBS=$ac_check_lib_save_LIBS
13047 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
13048 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
13049 if test $ac_cv_lib_m_pow = yes; then
13050 POW_LIB=-lm
13051 else
13052 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
13053 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
13061 for ac_func in vprintf
13063 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13064 echo "$as_me:$LINENO: checking for $ac_func" >&5
13065 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13066 if eval "test \"\${$as_ac_var+set}\" = set"; then
13067 echo $ECHO_N "(cached) $ECHO_C" >&6
13068 else
13069 cat >conftest.$ac_ext <<_ACEOF
13070 /* confdefs.h. */
13071 _ACEOF
13072 cat confdefs.h >>conftest.$ac_ext
13073 cat >>conftest.$ac_ext <<_ACEOF
13074 /* end confdefs.h. */
13075 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13077 #define $ac_func innocuous_$ac_func
13079 /* System header to define __stub macros and hopefully few prototypes,
13080 which can conflict with char $ac_func (); below.
13081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13082 <limits.h> exists even on freestanding compilers. */
13084 #ifdef __STDC__
13085 # include <limits.h>
13086 #else
13087 # include <assert.h>
13088 #endif
13090 #undef $ac_func
13092 /* Override any gcc2 internal prototype to avoid an error. */
13093 #ifdef __cplusplus
13094 extern "C"
13096 #endif
13097 /* We use char because int might match the return type of a gcc2
13098 builtin and then its argument prototype would still apply. */
13099 char $ac_func ();
13100 /* The GNU C library defines this for functions which it implements
13101 to always fail with ENOSYS. Some functions are actually named
13102 something starting with __ and the normal name is an alias. */
13103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13104 choke me
13105 #else
13106 char (*f) () = $ac_func;
13107 #endif
13108 #ifdef __cplusplus
13110 #endif
13113 main ()
13115 return f != $ac_func;
13117 return 0;
13119 _ACEOF
13120 rm -f conftest.$ac_objext conftest$ac_exeext
13121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13122 (eval $ac_link) 2>conftest.er1
13123 ac_status=$?
13124 grep -v '^ *+' conftest.er1 >conftest.err
13125 rm -f conftest.er1
13126 cat conftest.err >&5
13127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128 (exit $ac_status); } &&
13129 { ac_try='test -z "$ac_c_werror_flag"
13130 || test ! -s conftest.err'
13131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13132 (eval $ac_try) 2>&5
13133 ac_status=$?
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); }; } &&
13136 { ac_try='test -s conftest$ac_exeext'
13137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13138 (eval $ac_try) 2>&5
13139 ac_status=$?
13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); }; }; then
13142 eval "$as_ac_var=yes"
13143 else
13144 echo "$as_me: failed program was:" >&5
13145 sed 's/^/| /' conftest.$ac_ext >&5
13147 eval "$as_ac_var=no"
13149 rm -f conftest.err conftest.$ac_objext \
13150 conftest$ac_exeext conftest.$ac_ext
13152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13153 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13154 if test `eval echo '${'$as_ac_var'}'` = yes; then
13155 cat >>confdefs.h <<_ACEOF
13156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13157 _ACEOF
13159 echo "$as_me:$LINENO: checking for _doprnt" >&5
13160 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
13161 if test "${ac_cv_func__doprnt+set}" = set; then
13162 echo $ECHO_N "(cached) $ECHO_C" >&6
13163 else
13164 cat >conftest.$ac_ext <<_ACEOF
13165 /* confdefs.h. */
13166 _ACEOF
13167 cat confdefs.h >>conftest.$ac_ext
13168 cat >>conftest.$ac_ext <<_ACEOF
13169 /* end confdefs.h. */
13170 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
13171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13172 #define _doprnt innocuous__doprnt
13174 /* System header to define __stub macros and hopefully few prototypes,
13175 which can conflict with char _doprnt (); below.
13176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13177 <limits.h> exists even on freestanding compilers. */
13179 #ifdef __STDC__
13180 # include <limits.h>
13181 #else
13182 # include <assert.h>
13183 #endif
13185 #undef _doprnt
13187 /* Override any gcc2 internal prototype to avoid an error. */
13188 #ifdef __cplusplus
13189 extern "C"
13191 #endif
13192 /* We use char because int might match the return type of a gcc2
13193 builtin and then its argument prototype would still apply. */
13194 char _doprnt ();
13195 /* The GNU C library defines this for functions which it implements
13196 to always fail with ENOSYS. Some functions are actually named
13197 something starting with __ and the normal name is an alias. */
13198 #if defined (__stub__doprnt) || defined (__stub____doprnt)
13199 choke me
13200 #else
13201 char (*f) () = _doprnt;
13202 #endif
13203 #ifdef __cplusplus
13205 #endif
13208 main ()
13210 return f != _doprnt;
13212 return 0;
13214 _ACEOF
13215 rm -f conftest.$ac_objext conftest$ac_exeext
13216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13217 (eval $ac_link) 2>conftest.er1
13218 ac_status=$?
13219 grep -v '^ *+' conftest.er1 >conftest.err
13220 rm -f conftest.er1
13221 cat conftest.err >&5
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); } &&
13224 { ac_try='test -z "$ac_c_werror_flag"
13225 || test ! -s conftest.err'
13226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13227 (eval $ac_try) 2>&5
13228 ac_status=$?
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); }; } &&
13231 { ac_try='test -s conftest$ac_exeext'
13232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13233 (eval $ac_try) 2>&5
13234 ac_status=$?
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); }; }; then
13237 ac_cv_func__doprnt=yes
13238 else
13239 echo "$as_me: failed program was:" >&5
13240 sed 's/^/| /' conftest.$ac_ext >&5
13242 ac_cv_func__doprnt=no
13244 rm -f conftest.err conftest.$ac_objext \
13245 conftest$ac_exeext conftest.$ac_ext
13247 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13248 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
13249 if test $ac_cv_func__doprnt = yes; then
13251 cat >>confdefs.h <<\_ACEOF
13252 #define HAVE_DOPRNT 1
13253 _ACEOF
13258 done
13261 if test $cross_compiling = yes -a $gnumalloc = yes; then
13263 { echo "$as_me:$LINENO: WARNING:
13264 configure cannot check whether malloc() and realloc() are GNU libc
13265 compatible. You have to be ABSOLUTELY sure that they are, otherwise
13266 run configure with the --without-gnu-malloc switch." >&5
13267 echo "$as_me: WARNING:
13268 configure cannot check whether malloc() and realloc() are GNU libc
13269 compatible. You have to be ABSOLUTELY sure that they are, otherwise
13270 run configure with the --without-gnu-malloc switch." >&2;}
13271 _mule_warning_7=yes
13272 _mule_has_warnings=yes
13274 ac_cv_func_malloc_0_nonnull=yes
13275 ac_cv_func_realloc_0_nonnull=yes
13280 for ac_header in stdlib.h
13282 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13284 echo "$as_me:$LINENO: checking for $ac_header" >&5
13285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13287 echo $ECHO_N "(cached) $ECHO_C" >&6
13289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13290 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13291 else
13292 # Is the header compilable?
13293 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13294 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13295 cat >conftest.$ac_ext <<_ACEOF
13296 /* confdefs.h. */
13297 _ACEOF
13298 cat confdefs.h >>conftest.$ac_ext
13299 cat >>conftest.$ac_ext <<_ACEOF
13300 /* end confdefs.h. */
13301 $ac_includes_default
13302 #include <$ac_header>
13303 _ACEOF
13304 rm -f conftest.$ac_objext
13305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13306 (eval $ac_compile) 2>conftest.er1
13307 ac_status=$?
13308 grep -v '^ *+' conftest.er1 >conftest.err
13309 rm -f conftest.er1
13310 cat conftest.err >&5
13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); } &&
13313 { ac_try='test -z "$ac_c_werror_flag"
13314 || test ! -s conftest.err'
13315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13316 (eval $ac_try) 2>&5
13317 ac_status=$?
13318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319 (exit $ac_status); }; } &&
13320 { ac_try='test -s conftest.$ac_objext'
13321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13322 (eval $ac_try) 2>&5
13323 ac_status=$?
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); }; }; then
13326 ac_header_compiler=yes
13327 else
13328 echo "$as_me: failed program was:" >&5
13329 sed 's/^/| /' conftest.$ac_ext >&5
13331 ac_header_compiler=no
13333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13334 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13335 echo "${ECHO_T}$ac_header_compiler" >&6
13337 # Is the header present?
13338 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13339 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13340 cat >conftest.$ac_ext <<_ACEOF
13341 /* confdefs.h. */
13342 _ACEOF
13343 cat confdefs.h >>conftest.$ac_ext
13344 cat >>conftest.$ac_ext <<_ACEOF
13345 /* end confdefs.h. */
13346 #include <$ac_header>
13347 _ACEOF
13348 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13349 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13350 ac_status=$?
13351 grep -v '^ *+' conftest.er1 >conftest.err
13352 rm -f conftest.er1
13353 cat conftest.err >&5
13354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355 (exit $ac_status); } >/dev/null; then
13356 if test -s conftest.err; then
13357 ac_cpp_err=$ac_c_preproc_warn_flag
13358 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13359 else
13360 ac_cpp_err=
13362 else
13363 ac_cpp_err=yes
13365 if test -z "$ac_cpp_err"; then
13366 ac_header_preproc=yes
13367 else
13368 echo "$as_me: failed program was:" >&5
13369 sed 's/^/| /' conftest.$ac_ext >&5
13371 ac_header_preproc=no
13373 rm -f conftest.err conftest.$ac_ext
13374 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13375 echo "${ECHO_T}$ac_header_preproc" >&6
13377 # So? What about this header?
13378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13379 yes:no: )
13380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13381 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13383 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13384 ac_header_preproc=yes
13386 no:yes:* )
13387 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13388 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13389 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13390 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13391 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13392 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13393 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13394 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13397 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13398 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13400 cat <<\_ASBOX
13401 ## ------------------------------ ##
13402 ## Report this to admin@amule.org ##
13403 ## ------------------------------ ##
13404 _ASBOX
13406 sed "s/^/$as_me: WARNING: /" >&2
13408 esac
13409 echo "$as_me:$LINENO: checking for $ac_header" >&5
13410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13412 echo $ECHO_N "(cached) $ECHO_C" >&6
13413 else
13414 eval "$as_ac_Header=\$ac_header_preproc"
13416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13417 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13421 cat >>confdefs.h <<_ACEOF
13422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13423 _ACEOF
13427 done
13429 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
13430 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
13431 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
13432 echo $ECHO_N "(cached) $ECHO_C" >&6
13433 else
13434 if test "$cross_compiling" = yes; then
13435 ac_cv_func_malloc_0_nonnull=no
13436 else
13437 cat >conftest.$ac_ext <<_ACEOF
13438 /* confdefs.h. */
13439 _ACEOF
13440 cat confdefs.h >>conftest.$ac_ext
13441 cat >>conftest.$ac_ext <<_ACEOF
13442 /* end confdefs.h. */
13443 #if STDC_HEADERS || HAVE_STDLIB_H
13444 # include <stdlib.h>
13445 #else
13446 char *malloc ();
13447 #endif
13450 main ()
13452 exit (malloc (0) ? 0 : 1);
13454 return 0;
13456 _ACEOF
13457 rm -f conftest$ac_exeext
13458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13459 (eval $ac_link) 2>&5
13460 ac_status=$?
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13464 (eval $ac_try) 2>&5
13465 ac_status=$?
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); }; }; then
13468 ac_cv_func_malloc_0_nonnull=yes
13469 else
13470 echo "$as_me: program exited with status $ac_status" >&5
13471 echo "$as_me: failed program was:" >&5
13472 sed 's/^/| /' conftest.$ac_ext >&5
13474 ( exit $ac_status )
13475 ac_cv_func_malloc_0_nonnull=no
13477 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13480 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
13481 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
13482 if test $ac_cv_func_malloc_0_nonnull = yes; then
13484 cat >>confdefs.h <<\_ACEOF
13485 #define HAVE_MALLOC 1
13486 _ACEOF
13488 else
13489 cat >>confdefs.h <<\_ACEOF
13490 #define HAVE_MALLOC 0
13491 _ACEOF
13493 case $LIBOBJS in
13494 "malloc.$ac_objext" | \
13495 *" malloc.$ac_objext" | \
13496 "malloc.$ac_objext "* | \
13497 *" malloc.$ac_objext "* ) ;;
13498 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
13499 esac
13502 cat >>confdefs.h <<\_ACEOF
13503 #define malloc rpl_malloc
13504 _ACEOF
13511 for ac_header in stdlib.h
13513 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13514 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13515 echo "$as_me:$LINENO: checking for $ac_header" >&5
13516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13518 echo $ECHO_N "(cached) $ECHO_C" >&6
13520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13521 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13522 else
13523 # Is the header compilable?
13524 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13525 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13526 cat >conftest.$ac_ext <<_ACEOF
13527 /* confdefs.h. */
13528 _ACEOF
13529 cat confdefs.h >>conftest.$ac_ext
13530 cat >>conftest.$ac_ext <<_ACEOF
13531 /* end confdefs.h. */
13532 $ac_includes_default
13533 #include <$ac_header>
13534 _ACEOF
13535 rm -f conftest.$ac_objext
13536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13537 (eval $ac_compile) 2>conftest.er1
13538 ac_status=$?
13539 grep -v '^ *+' conftest.er1 >conftest.err
13540 rm -f conftest.er1
13541 cat conftest.err >&5
13542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); } &&
13544 { ac_try='test -z "$ac_c_werror_flag"
13545 || test ! -s conftest.err'
13546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13547 (eval $ac_try) 2>&5
13548 ac_status=$?
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); }; } &&
13551 { ac_try='test -s conftest.$ac_objext'
13552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13553 (eval $ac_try) 2>&5
13554 ac_status=$?
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); }; }; then
13557 ac_header_compiler=yes
13558 else
13559 echo "$as_me: failed program was:" >&5
13560 sed 's/^/| /' conftest.$ac_ext >&5
13562 ac_header_compiler=no
13564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13565 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13566 echo "${ECHO_T}$ac_header_compiler" >&6
13568 # Is the header present?
13569 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13570 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13571 cat >conftest.$ac_ext <<_ACEOF
13572 /* confdefs.h. */
13573 _ACEOF
13574 cat confdefs.h >>conftest.$ac_ext
13575 cat >>conftest.$ac_ext <<_ACEOF
13576 /* end confdefs.h. */
13577 #include <$ac_header>
13578 _ACEOF
13579 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13580 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13581 ac_status=$?
13582 grep -v '^ *+' conftest.er1 >conftest.err
13583 rm -f conftest.er1
13584 cat conftest.err >&5
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); } >/dev/null; then
13587 if test -s conftest.err; then
13588 ac_cpp_err=$ac_c_preproc_warn_flag
13589 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13590 else
13591 ac_cpp_err=
13593 else
13594 ac_cpp_err=yes
13596 if test -z "$ac_cpp_err"; then
13597 ac_header_preproc=yes
13598 else
13599 echo "$as_me: failed program was:" >&5
13600 sed 's/^/| /' conftest.$ac_ext >&5
13602 ac_header_preproc=no
13604 rm -f conftest.err conftest.$ac_ext
13605 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13606 echo "${ECHO_T}$ac_header_preproc" >&6
13608 # So? What about this header?
13609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13610 yes:no: )
13611 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13612 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13614 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13615 ac_header_preproc=yes
13617 no:yes:* )
13618 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13619 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13620 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13621 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13622 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13623 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13624 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13625 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13627 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13628 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13629 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13631 cat <<\_ASBOX
13632 ## ------------------------------ ##
13633 ## Report this to admin@amule.org ##
13634 ## ------------------------------ ##
13635 _ASBOX
13637 sed "s/^/$as_me: WARNING: /" >&2
13639 esac
13640 echo "$as_me:$LINENO: checking for $ac_header" >&5
13641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13642 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13643 echo $ECHO_N "(cached) $ECHO_C" >&6
13644 else
13645 eval "$as_ac_Header=\$ac_header_preproc"
13647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13648 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13651 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13652 cat >>confdefs.h <<_ACEOF
13653 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13654 _ACEOF
13658 done
13660 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
13661 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
13662 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
13663 echo $ECHO_N "(cached) $ECHO_C" >&6
13664 else
13665 if test "$cross_compiling" = yes; then
13666 ac_cv_func_realloc_0_nonnull=no
13667 else
13668 cat >conftest.$ac_ext <<_ACEOF
13669 /* confdefs.h. */
13670 _ACEOF
13671 cat confdefs.h >>conftest.$ac_ext
13672 cat >>conftest.$ac_ext <<_ACEOF
13673 /* end confdefs.h. */
13674 #if STDC_HEADERS || HAVE_STDLIB_H
13675 # include <stdlib.h>
13676 #else
13677 char *realloc ();
13678 #endif
13681 main ()
13683 exit (realloc (0, 0) ? 0 : 1);
13685 return 0;
13687 _ACEOF
13688 rm -f conftest$ac_exeext
13689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13690 (eval $ac_link) 2>&5
13691 ac_status=$?
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13695 (eval $ac_try) 2>&5
13696 ac_status=$?
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); }; }; then
13699 ac_cv_func_realloc_0_nonnull=yes
13700 else
13701 echo "$as_me: program exited with status $ac_status" >&5
13702 echo "$as_me: failed program was:" >&5
13703 sed 's/^/| /' conftest.$ac_ext >&5
13705 ( exit $ac_status )
13706 ac_cv_func_realloc_0_nonnull=no
13708 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13711 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
13712 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
13713 if test $ac_cv_func_realloc_0_nonnull = yes; then
13715 cat >>confdefs.h <<\_ACEOF
13716 #define HAVE_REALLOC 1
13717 _ACEOF
13719 else
13720 cat >>confdefs.h <<\_ACEOF
13721 #define HAVE_REALLOC 0
13722 _ACEOF
13724 case $LIBOBJS in
13725 "realloc.$ac_objext" | \
13726 *" realloc.$ac_objext" | \
13727 "realloc.$ac_objext "* | \
13728 *" realloc.$ac_objext "* ) ;;
13729 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
13730 esac
13733 cat >>confdefs.h <<\_ACEOF
13734 #define realloc rpl_realloc
13735 _ACEOF
13774 for ac_func in __argz_count __argz_next __argz_stringify endpwent floor ftruncate getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday inet_ntoa localeconv memmove mempcpy memset nl_langinfo pow select setlocale socket sqrt stpcpy strcasecmp strchr strcspn strdup strerror strncasecmp strstr strtoul sigaction
13776 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13777 echo "$as_me:$LINENO: checking for $ac_func" >&5
13778 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13779 if eval "test \"\${$as_ac_var+set}\" = set"; then
13780 echo $ECHO_N "(cached) $ECHO_C" >&6
13781 else
13782 cat >conftest.$ac_ext <<_ACEOF
13783 /* confdefs.h. */
13784 _ACEOF
13785 cat confdefs.h >>conftest.$ac_ext
13786 cat >>conftest.$ac_ext <<_ACEOF
13787 /* end confdefs.h. */
13788 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13790 #define $ac_func innocuous_$ac_func
13792 /* System header to define __stub macros and hopefully few prototypes,
13793 which can conflict with char $ac_func (); below.
13794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13795 <limits.h> exists even on freestanding compilers. */
13797 #ifdef __STDC__
13798 # include <limits.h>
13799 #else
13800 # include <assert.h>
13801 #endif
13803 #undef $ac_func
13805 /* Override any gcc2 internal prototype to avoid an error. */
13806 #ifdef __cplusplus
13807 extern "C"
13809 #endif
13810 /* We use char because int might match the return type of a gcc2
13811 builtin and then its argument prototype would still apply. */
13812 char $ac_func ();
13813 /* The GNU C library defines this for functions which it implements
13814 to always fail with ENOSYS. Some functions are actually named
13815 something starting with __ and the normal name is an alias. */
13816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13817 choke me
13818 #else
13819 char (*f) () = $ac_func;
13820 #endif
13821 #ifdef __cplusplus
13823 #endif
13826 main ()
13828 return f != $ac_func;
13830 return 0;
13832 _ACEOF
13833 rm -f conftest.$ac_objext conftest$ac_exeext
13834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13835 (eval $ac_link) 2>conftest.er1
13836 ac_status=$?
13837 grep -v '^ *+' conftest.er1 >conftest.err
13838 rm -f conftest.er1
13839 cat conftest.err >&5
13840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841 (exit $ac_status); } &&
13842 { ac_try='test -z "$ac_c_werror_flag"
13843 || test ! -s conftest.err'
13844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13845 (eval $ac_try) 2>&5
13846 ac_status=$?
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); }; } &&
13849 { ac_try='test -s conftest$ac_exeext'
13850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13851 (eval $ac_try) 2>&5
13852 ac_status=$?
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); }; }; then
13855 eval "$as_ac_var=yes"
13856 else
13857 echo "$as_me: failed program was:" >&5
13858 sed 's/^/| /' conftest.$ac_ext >&5
13860 eval "$as_ac_var=no"
13862 rm -f conftest.err conftest.$ac_objext \
13863 conftest$ac_exeext conftest.$ac_ext
13865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13866 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13867 if test `eval echo '${'$as_ac_var'}'` = yes; then
13868 cat >>confdefs.h <<_ACEOF
13869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13870 _ACEOF
13873 done
13875 #-------------------------------------------------------------------------------
13876 # End of autoscan stuff
13877 #-------------------------------------------------------------------------------
13883 for ac_func in mkdir getrlimit setrlimit getopt_long
13885 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13886 echo "$as_me:$LINENO: checking for $ac_func" >&5
13887 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13888 if eval "test \"\${$as_ac_var+set}\" = set"; then
13889 echo $ECHO_N "(cached) $ECHO_C" >&6
13890 else
13891 cat >conftest.$ac_ext <<_ACEOF
13892 /* confdefs.h. */
13893 _ACEOF
13894 cat confdefs.h >>conftest.$ac_ext
13895 cat >>conftest.$ac_ext <<_ACEOF
13896 /* end confdefs.h. */
13897 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13899 #define $ac_func innocuous_$ac_func
13901 /* System header to define __stub macros and hopefully few prototypes,
13902 which can conflict with char $ac_func (); below.
13903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13904 <limits.h> exists even on freestanding compilers. */
13906 #ifdef __STDC__
13907 # include <limits.h>
13908 #else
13909 # include <assert.h>
13910 #endif
13912 #undef $ac_func
13914 /* Override any gcc2 internal prototype to avoid an error. */
13915 #ifdef __cplusplus
13916 extern "C"
13918 #endif
13919 /* We use char because int might match the return type of a gcc2
13920 builtin and then its argument prototype would still apply. */
13921 char $ac_func ();
13922 /* The GNU C library defines this for functions which it implements
13923 to always fail with ENOSYS. Some functions are actually named
13924 something starting with __ and the normal name is an alias. */
13925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13926 choke me
13927 #else
13928 char (*f) () = $ac_func;
13929 #endif
13930 #ifdef __cplusplus
13932 #endif
13935 main ()
13937 return f != $ac_func;
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 eval "$as_ac_var=yes"
13965 else
13966 echo "$as_me: failed program was:" >&5
13967 sed 's/^/| /' conftest.$ac_ext >&5
13969 eval "$as_ac_var=no"
13971 rm -f conftest.err conftest.$ac_objext \
13972 conftest$ac_exeext conftest.$ac_ext
13974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13975 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13976 if test `eval echo '${'$as_ac_var'}'` = yes; then
13977 cat >>confdefs.h <<_ACEOF
13978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13979 _ACEOF
13982 done
13985 # Check whether --enable-mmap or --disable-mmap was given.
13986 if test "${enable_mmap+set}" = set; then
13987 enableval="$enable_mmap"
13991 if test ${enable_mmap:-no} = yes; then
13994 for ac_header in sys/mman.h
13996 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13998 echo "$as_me:$LINENO: checking for $ac_header" >&5
13999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14001 echo $ECHO_N "(cached) $ECHO_C" >&6
14003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14004 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14005 else
14006 # Is the header compilable?
14007 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14008 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14009 cat >conftest.$ac_ext <<_ACEOF
14010 /* confdefs.h. */
14011 _ACEOF
14012 cat confdefs.h >>conftest.$ac_ext
14013 cat >>conftest.$ac_ext <<_ACEOF
14014 /* end confdefs.h. */
14015 $ac_includes_default
14016 #include <$ac_header>
14017 _ACEOF
14018 rm -f conftest.$ac_objext
14019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14020 (eval $ac_compile) 2>conftest.er1
14021 ac_status=$?
14022 grep -v '^ *+' conftest.er1 >conftest.err
14023 rm -f conftest.er1
14024 cat conftest.err >&5
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); } &&
14027 { ac_try='test -z "$ac_c_werror_flag"
14028 || test ! -s conftest.err'
14029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14030 (eval $ac_try) 2>&5
14031 ac_status=$?
14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); }; } &&
14034 { ac_try='test -s conftest.$ac_objext'
14035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14036 (eval $ac_try) 2>&5
14037 ac_status=$?
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); }; }; then
14040 ac_header_compiler=yes
14041 else
14042 echo "$as_me: failed program was:" >&5
14043 sed 's/^/| /' conftest.$ac_ext >&5
14045 ac_header_compiler=no
14047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14048 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14049 echo "${ECHO_T}$ac_header_compiler" >&6
14051 # Is the header present?
14052 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14053 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14054 cat >conftest.$ac_ext <<_ACEOF
14055 /* confdefs.h. */
14056 _ACEOF
14057 cat confdefs.h >>conftest.$ac_ext
14058 cat >>conftest.$ac_ext <<_ACEOF
14059 /* end confdefs.h. */
14060 #include <$ac_header>
14061 _ACEOF
14062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14063 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14064 ac_status=$?
14065 grep -v '^ *+' conftest.er1 >conftest.err
14066 rm -f conftest.er1
14067 cat conftest.err >&5
14068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069 (exit $ac_status); } >/dev/null; then
14070 if test -s conftest.err; then
14071 ac_cpp_err=$ac_c_preproc_warn_flag
14072 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14073 else
14074 ac_cpp_err=
14076 else
14077 ac_cpp_err=yes
14079 if test -z "$ac_cpp_err"; then
14080 ac_header_preproc=yes
14081 else
14082 echo "$as_me: failed program was:" >&5
14083 sed 's/^/| /' conftest.$ac_ext >&5
14085 ac_header_preproc=no
14087 rm -f conftest.err conftest.$ac_ext
14088 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14089 echo "${ECHO_T}$ac_header_preproc" >&6
14091 # So? What about this header?
14092 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14093 yes:no: )
14094 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14095 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14097 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14098 ac_header_preproc=yes
14100 no:yes:* )
14101 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14102 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14103 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14104 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14105 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14106 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14107 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14108 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14110 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14111 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14112 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14114 cat <<\_ASBOX
14115 ## ------------------------------ ##
14116 ## Report this to admin@amule.org ##
14117 ## ------------------------------ ##
14118 _ASBOX
14120 sed "s/^/$as_me: WARNING: /" >&2
14122 esac
14123 echo "$as_me:$LINENO: checking for $ac_header" >&5
14124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14126 echo $ECHO_N "(cached) $ECHO_C" >&6
14127 else
14128 eval "$as_ac_Header=\$ac_header_preproc"
14130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14131 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14134 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14135 cat >>confdefs.h <<_ACEOF
14136 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14137 _ACEOF
14141 done
14145 for ac_header in stdlib.h unistd.h
14147 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14149 echo "$as_me:$LINENO: checking for $ac_header" >&5
14150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14152 echo $ECHO_N "(cached) $ECHO_C" >&6
14154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14155 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14156 else
14157 # Is the header compilable?
14158 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14159 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14160 cat >conftest.$ac_ext <<_ACEOF
14161 /* confdefs.h. */
14162 _ACEOF
14163 cat confdefs.h >>conftest.$ac_ext
14164 cat >>conftest.$ac_ext <<_ACEOF
14165 /* end confdefs.h. */
14166 $ac_includes_default
14167 #include <$ac_header>
14168 _ACEOF
14169 rm -f conftest.$ac_objext
14170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14171 (eval $ac_compile) 2>conftest.er1
14172 ac_status=$?
14173 grep -v '^ *+' conftest.er1 >conftest.err
14174 rm -f conftest.er1
14175 cat conftest.err >&5
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); } &&
14178 { ac_try='test -z "$ac_c_werror_flag"
14179 || test ! -s conftest.err'
14180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14181 (eval $ac_try) 2>&5
14182 ac_status=$?
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); }; } &&
14185 { ac_try='test -s conftest.$ac_objext'
14186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14187 (eval $ac_try) 2>&5
14188 ac_status=$?
14189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190 (exit $ac_status); }; }; then
14191 ac_header_compiler=yes
14192 else
14193 echo "$as_me: failed program was:" >&5
14194 sed 's/^/| /' conftest.$ac_ext >&5
14196 ac_header_compiler=no
14198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14199 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14200 echo "${ECHO_T}$ac_header_compiler" >&6
14202 # Is the header present?
14203 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14204 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14205 cat >conftest.$ac_ext <<_ACEOF
14206 /* confdefs.h. */
14207 _ACEOF
14208 cat confdefs.h >>conftest.$ac_ext
14209 cat >>conftest.$ac_ext <<_ACEOF
14210 /* end confdefs.h. */
14211 #include <$ac_header>
14212 _ACEOF
14213 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14214 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14215 ac_status=$?
14216 grep -v '^ *+' conftest.er1 >conftest.err
14217 rm -f conftest.er1
14218 cat conftest.err >&5
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); } >/dev/null; then
14221 if test -s conftest.err; then
14222 ac_cpp_err=$ac_c_preproc_warn_flag
14223 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14224 else
14225 ac_cpp_err=
14227 else
14228 ac_cpp_err=yes
14230 if test -z "$ac_cpp_err"; then
14231 ac_header_preproc=yes
14232 else
14233 echo "$as_me: failed program was:" >&5
14234 sed 's/^/| /' conftest.$ac_ext >&5
14236 ac_header_preproc=no
14238 rm -f conftest.err conftest.$ac_ext
14239 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14240 echo "${ECHO_T}$ac_header_preproc" >&6
14242 # So? What about this header?
14243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14244 yes:no: )
14245 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14246 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14248 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14249 ac_header_preproc=yes
14251 no:yes:* )
14252 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14253 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14254 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14255 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14256 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14257 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14258 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14259 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14262 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14263 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14265 cat <<\_ASBOX
14266 ## ------------------------------ ##
14267 ## Report this to admin@amule.org ##
14268 ## ------------------------------ ##
14269 _ASBOX
14271 sed "s/^/$as_me: WARNING: /" >&2
14273 esac
14274 echo "$as_me:$LINENO: checking for $ac_header" >&5
14275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14277 echo $ECHO_N "(cached) $ECHO_C" >&6
14278 else
14279 eval "$as_ac_Header=\$ac_header_preproc"
14281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14282 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14285 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14286 cat >>confdefs.h <<_ACEOF
14287 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14288 _ACEOF
14292 done
14295 for ac_func in getpagesize
14297 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14298 echo "$as_me:$LINENO: checking for $ac_func" >&5
14299 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14300 if eval "test \"\${$as_ac_var+set}\" = set"; then
14301 echo $ECHO_N "(cached) $ECHO_C" >&6
14302 else
14303 cat >conftest.$ac_ext <<_ACEOF
14304 /* confdefs.h. */
14305 _ACEOF
14306 cat confdefs.h >>conftest.$ac_ext
14307 cat >>conftest.$ac_ext <<_ACEOF
14308 /* end confdefs.h. */
14309 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14310 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14311 #define $ac_func innocuous_$ac_func
14313 /* System header to define __stub macros and hopefully few prototypes,
14314 which can conflict with char $ac_func (); below.
14315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14316 <limits.h> exists even on freestanding compilers. */
14318 #ifdef __STDC__
14319 # include <limits.h>
14320 #else
14321 # include <assert.h>
14322 #endif
14324 #undef $ac_func
14326 /* Override any gcc2 internal prototype to avoid an error. */
14327 #ifdef __cplusplus
14328 extern "C"
14330 #endif
14331 /* We use char because int might match the return type of a gcc2
14332 builtin and then its argument prototype would still apply. */
14333 char $ac_func ();
14334 /* The GNU C library defines this for functions which it implements
14335 to always fail with ENOSYS. Some functions are actually named
14336 something starting with __ and the normal name is an alias. */
14337 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14338 choke me
14339 #else
14340 char (*f) () = $ac_func;
14341 #endif
14342 #ifdef __cplusplus
14344 #endif
14347 main ()
14349 return f != $ac_func;
14351 return 0;
14353 _ACEOF
14354 rm -f conftest.$ac_objext conftest$ac_exeext
14355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14356 (eval $ac_link) 2>conftest.er1
14357 ac_status=$?
14358 grep -v '^ *+' conftest.er1 >conftest.err
14359 rm -f conftest.er1
14360 cat conftest.err >&5
14361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362 (exit $ac_status); } &&
14363 { ac_try='test -z "$ac_c_werror_flag"
14364 || test ! -s conftest.err'
14365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14366 (eval $ac_try) 2>&5
14367 ac_status=$?
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); }; } &&
14370 { ac_try='test -s conftest$ac_exeext'
14371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14372 (eval $ac_try) 2>&5
14373 ac_status=$?
14374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375 (exit $ac_status); }; }; then
14376 eval "$as_ac_var=yes"
14377 else
14378 echo "$as_me: failed program was:" >&5
14379 sed 's/^/| /' conftest.$ac_ext >&5
14381 eval "$as_ac_var=no"
14383 rm -f conftest.err conftest.$ac_objext \
14384 conftest$ac_exeext conftest.$ac_ext
14386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14387 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14388 if test `eval echo '${'$as_ac_var'}'` = yes; then
14389 cat >>confdefs.h <<_ACEOF
14390 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14391 _ACEOF
14394 done
14396 echo "$as_me:$LINENO: checking for working mmap" >&5
14397 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14398 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14399 echo $ECHO_N "(cached) $ECHO_C" >&6
14400 else
14401 if test "$cross_compiling" = yes; then
14402 ac_cv_func_mmap_fixed_mapped=no
14403 else
14404 cat >conftest.$ac_ext <<_ACEOF
14405 /* confdefs.h. */
14406 _ACEOF
14407 cat confdefs.h >>conftest.$ac_ext
14408 cat >>conftest.$ac_ext <<_ACEOF
14409 /* end confdefs.h. */
14410 $ac_includes_default
14411 /* malloc might have been renamed as rpl_malloc. */
14412 #undef malloc
14414 /* Thanks to Mike Haertel and Jim Avera for this test.
14415 Here is a matrix of mmap possibilities:
14416 mmap private not fixed
14417 mmap private fixed at somewhere currently unmapped
14418 mmap private fixed at somewhere already mapped
14419 mmap shared not fixed
14420 mmap shared fixed at somewhere currently unmapped
14421 mmap shared fixed at somewhere already mapped
14422 For private mappings, we should verify that changes cannot be read()
14423 back from the file, nor mmap's back from the file at a different
14424 address. (There have been systems where private was not correctly
14425 implemented like the infamous i386 svr4.0, and systems where the
14426 VM page cache was not coherent with the file system buffer cache
14427 like early versions of FreeBSD and possibly contemporary NetBSD.)
14428 For shared mappings, we should conversely verify that changes get
14429 propagated back to all the places they're supposed to be.
14431 Grep wants private fixed already mapped.
14432 The main things grep needs to know about mmap are:
14433 * does it exist and is it safe to write into the mmap'd area
14434 * how to use it (BSD variants) */
14436 #include <fcntl.h>
14437 #include <sys/mman.h>
14439 #if !STDC_HEADERS && !HAVE_STDLIB_H
14440 char *malloc ();
14441 #endif
14443 /* This mess was copied from the GNU getpagesize.h. */
14444 #if !HAVE_GETPAGESIZE
14445 /* Assume that all systems that can run configure have sys/param.h. */
14446 # if !HAVE_SYS_PARAM_H
14447 # define HAVE_SYS_PARAM_H 1
14448 # endif
14450 # ifdef _SC_PAGESIZE
14451 # define getpagesize() sysconf(_SC_PAGESIZE)
14452 # else /* no _SC_PAGESIZE */
14453 # if HAVE_SYS_PARAM_H
14454 # include <sys/param.h>
14455 # ifdef EXEC_PAGESIZE
14456 # define getpagesize() EXEC_PAGESIZE
14457 # else /* no EXEC_PAGESIZE */
14458 # ifdef NBPG
14459 # define getpagesize() NBPG * CLSIZE
14460 # ifndef CLSIZE
14461 # define CLSIZE 1
14462 # endif /* no CLSIZE */
14463 # else /* no NBPG */
14464 # ifdef NBPC
14465 # define getpagesize() NBPC
14466 # else /* no NBPC */
14467 # ifdef PAGESIZE
14468 # define getpagesize() PAGESIZE
14469 # endif /* PAGESIZE */
14470 # endif /* no NBPC */
14471 # endif /* no NBPG */
14472 # endif /* no EXEC_PAGESIZE */
14473 # else /* no HAVE_SYS_PARAM_H */
14474 # define getpagesize() 8192 /* punt totally */
14475 # endif /* no HAVE_SYS_PARAM_H */
14476 # endif /* no _SC_PAGESIZE */
14478 #endif /* no HAVE_GETPAGESIZE */
14481 main ()
14483 char *data, *data2, *data3;
14484 int i, pagesize;
14485 int fd;
14487 pagesize = getpagesize ();
14489 /* First, make a file with some known garbage in it. */
14490 data = (char *) malloc (pagesize);
14491 if (!data)
14492 exit (1);
14493 for (i = 0; i < pagesize; ++i)
14494 *(data + i) = rand ();
14495 umask (0);
14496 fd = creat ("conftest.mmap", 0600);
14497 if (fd < 0)
14498 exit (1);
14499 if (write (fd, data, pagesize) != pagesize)
14500 exit (1);
14501 close (fd);
14503 /* Next, try to mmap the file at a fixed address which already has
14504 something else allocated at it. If we can, also make sure that
14505 we see the same garbage. */
14506 fd = open ("conftest.mmap", O_RDWR);
14507 if (fd < 0)
14508 exit (1);
14509 data2 = (char *) malloc (2 * pagesize);
14510 if (!data2)
14511 exit (1);
14512 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14513 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14514 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14515 exit (1);
14516 for (i = 0; i < pagesize; ++i)
14517 if (*(data + i) != *(data2 + i))
14518 exit (1);
14520 /* Finally, make sure that changes to the mapped area do not
14521 percolate back to the file as seen by read(). (This is a bug on
14522 some variants of i386 svr4.0.) */
14523 for (i = 0; i < pagesize; ++i)
14524 *(data2 + i) = *(data2 + i) + 1;
14525 data3 = (char *) malloc (pagesize);
14526 if (!data3)
14527 exit (1);
14528 if (read (fd, data3, pagesize) != pagesize)
14529 exit (1);
14530 for (i = 0; i < pagesize; ++i)
14531 if (*(data + i) != *(data3 + i))
14532 exit (1);
14533 close (fd);
14534 exit (0);
14536 _ACEOF
14537 rm -f conftest$ac_exeext
14538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14539 (eval $ac_link) 2>&5
14540 ac_status=$?
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14544 (eval $ac_try) 2>&5
14545 ac_status=$?
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); }; }; then
14548 ac_cv_func_mmap_fixed_mapped=yes
14549 else
14550 echo "$as_me: program exited with status $ac_status" >&5
14551 echo "$as_me: failed program was:" >&5
14552 sed 's/^/| /' conftest.$ac_ext >&5
14554 ( exit $ac_status )
14555 ac_cv_func_mmap_fixed_mapped=no
14557 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14560 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14561 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14562 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14564 cat >>confdefs.h <<\_ACEOF
14565 #define HAVE_MMAP 1
14566 _ACEOF
14569 rm -f conftest.mmap
14573 for ac_func in munmap sysconf
14575 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14576 echo "$as_me:$LINENO: checking for $ac_func" >&5
14577 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14578 if eval "test \"\${$as_ac_var+set}\" = set"; then
14579 echo $ECHO_N "(cached) $ECHO_C" >&6
14580 else
14581 cat >conftest.$ac_ext <<_ACEOF
14582 /* confdefs.h. */
14583 _ACEOF
14584 cat confdefs.h >>conftest.$ac_ext
14585 cat >>conftest.$ac_ext <<_ACEOF
14586 /* end confdefs.h. */
14587 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14589 #define $ac_func innocuous_$ac_func
14591 /* System header to define __stub macros and hopefully few prototypes,
14592 which can conflict with char $ac_func (); below.
14593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14594 <limits.h> exists even on freestanding compilers. */
14596 #ifdef __STDC__
14597 # include <limits.h>
14598 #else
14599 # include <assert.h>
14600 #endif
14602 #undef $ac_func
14604 /* Override any gcc2 internal prototype to avoid an error. */
14605 #ifdef __cplusplus
14606 extern "C"
14608 #endif
14609 /* We use char because int might match the return type of a gcc2
14610 builtin and then its argument prototype would still apply. */
14611 char $ac_func ();
14612 /* The GNU C library defines this for functions which it implements
14613 to always fail with ENOSYS. Some functions are actually named
14614 something starting with __ and the normal name is an alias. */
14615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14616 choke me
14617 #else
14618 char (*f) () = $ac_func;
14619 #endif
14620 #ifdef __cplusplus
14622 #endif
14625 main ()
14627 return f != $ac_func;
14629 return 0;
14631 _ACEOF
14632 rm -f conftest.$ac_objext conftest$ac_exeext
14633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14634 (eval $ac_link) 2>conftest.er1
14635 ac_status=$?
14636 grep -v '^ *+' conftest.er1 >conftest.err
14637 rm -f conftest.er1
14638 cat conftest.err >&5
14639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640 (exit $ac_status); } &&
14641 { ac_try='test -z "$ac_c_werror_flag"
14642 || test ! -s conftest.err'
14643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14644 (eval $ac_try) 2>&5
14645 ac_status=$?
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); }; } &&
14648 { ac_try='test -s conftest$ac_exeext'
14649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14650 (eval $ac_try) 2>&5
14651 ac_status=$?
14652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653 (exit $ac_status); }; }; then
14654 eval "$as_ac_var=yes"
14655 else
14656 echo "$as_me: failed program was:" >&5
14657 sed 's/^/| /' conftest.$ac_ext >&5
14659 eval "$as_ac_var=no"
14661 rm -f conftest.err conftest.$ac_objext \
14662 conftest$ac_exeext conftest.$ac_ext
14664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14665 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14666 if test `eval echo '${'$as_ac_var'}'` = yes; then
14667 cat >>confdefs.h <<_ACEOF
14668 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14669 _ACEOF
14672 done
14674 if test $ac_cv_func_sysconf = yes; then
14676 echo "$as_me:$LINENO: checking for pagesize constant for sysconf" >&5
14677 echo $ECHO_N "checking for pagesize constant for sysconf... $ECHO_C" >&6
14678 cat >conftest.$ac_ext <<_ACEOF
14680 /* confdefs.h. */
14681 _ACEOF
14682 cat confdefs.h >>conftest.$ac_ext
14683 cat >>conftest.$ac_ext <<_ACEOF
14684 /* end confdefs.h. */
14686 #include <unistd.h>
14689 main ()
14692 return sysconf(_SC_PAGESIZE);
14695 return 0;
14698 _ACEOF
14699 rm -f conftest.$ac_objext conftest$ac_exeext
14700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14701 (eval $ac_link) 2>conftest.er1
14702 ac_status=$?
14703 grep -v '^ *+' conftest.er1 >conftest.err
14704 rm -f conftest.er1
14705 cat conftest.err >&5
14706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707 (exit $ac_status); } &&
14708 { ac_try='test -z "$ac_c_werror_flag"
14709 || test ! -s conftest.err'
14710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14711 (eval $ac_try) 2>&5
14712 ac_status=$?
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); }; } &&
14715 { ac_try='test -s conftest$ac_exeext'
14716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14717 (eval $ac_try) 2>&5
14718 ac_status=$?
14719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720 (exit $ac_status); }; }; then
14722 echo "$as_me:$LINENO: result: _SC_PAGESIZE" >&5
14723 echo "${ECHO_T}_SC_PAGESIZE" >&6
14725 cat >>confdefs.h <<\_ACEOF
14726 #define HAVE__SC_PAGESIZE 1
14727 _ACEOF
14730 else
14731 echo "$as_me: failed program was:" >&5
14732 sed 's/^/| /' conftest.$ac_ext >&5
14735 cat >conftest.$ac_ext <<_ACEOF
14737 /* confdefs.h. */
14738 _ACEOF
14739 cat confdefs.h >>conftest.$ac_ext
14740 cat >>conftest.$ac_ext <<_ACEOF
14741 /* end confdefs.h. */
14743 #include <unistd.h>
14746 main ()
14749 return sysconf(_SC_PAGE_SIZE);
14752 return 0;
14755 _ACEOF
14756 rm -f conftest.$ac_objext conftest$ac_exeext
14757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14758 (eval $ac_link) 2>conftest.er1
14759 ac_status=$?
14760 grep -v '^ *+' conftest.er1 >conftest.err
14761 rm -f conftest.er1
14762 cat conftest.err >&5
14763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764 (exit $ac_status); } &&
14765 { ac_try='test -z "$ac_c_werror_flag"
14766 || test ! -s conftest.err'
14767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14768 (eval $ac_try) 2>&5
14769 ac_status=$?
14770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 (exit $ac_status); }; } &&
14772 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
14779 echo "$as_me:$LINENO: result: _SC_PAGE_SIZE" >&5
14780 echo "${ECHO_T}_SC_PAGE_SIZE" >&6
14782 cat >>confdefs.h <<\_ACEOF
14783 #define HAVE__SC_PAGE_SIZE 1
14784 _ACEOF
14787 else
14788 echo "$as_me: failed program was:" >&5
14789 sed 's/^/| /' conftest.$ac_ext >&5
14792 echo "$as_me:$LINENO: result: none" >&5
14793 echo "${ECHO_T}none" >&6
14796 rm -f conftest.err conftest.$ac_objext \
14797 conftest$ac_exeext conftest.$ac_ext
14800 rm -f conftest.err conftest.$ac_objext \
14801 conftest$ac_exeext conftest.$ac_ext
14806 else
14808 # fake the result of the test for munmap() for the gettext macros
14809 ac_cv_func_munmap=no
14815 mule_backup_CPPFLAGS="$CPPFLAGS"
14816 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600"
14817 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
14818 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
14819 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
14820 echo $ECHO_N "(cached) $ECHO_C" >&6
14821 else
14822 cat >conftest.$ac_ext <<_ACEOF
14823 /* confdefs.h. */
14824 _ACEOF
14825 cat confdefs.h >>conftest.$ac_ext
14826 cat >>conftest.$ac_ext <<_ACEOF
14827 /* end confdefs.h. */
14828 $ac_includes_default
14830 main ()
14832 #ifndef strerror_r
14833 char *p = (char *) strerror_r;
14834 #endif
14837 return 0;
14839 _ACEOF
14840 rm -f conftest.$ac_objext
14841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14842 (eval $ac_compile) 2>conftest.er1
14843 ac_status=$?
14844 grep -v '^ *+' conftest.er1 >conftest.err
14845 rm -f conftest.er1
14846 cat conftest.err >&5
14847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848 (exit $ac_status); } &&
14849 { ac_try='test -z "$ac_c_werror_flag"
14850 || test ! -s conftest.err'
14851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14852 (eval $ac_try) 2>&5
14853 ac_status=$?
14854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855 (exit $ac_status); }; } &&
14856 { ac_try='test -s conftest.$ac_objext'
14857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14858 (eval $ac_try) 2>&5
14859 ac_status=$?
14860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14861 (exit $ac_status); }; }; then
14862 ac_cv_have_decl_strerror_r=yes
14863 else
14864 echo "$as_me: failed program was:" >&5
14865 sed 's/^/| /' conftest.$ac_ext >&5
14867 ac_cv_have_decl_strerror_r=no
14869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14871 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
14872 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
14873 if test $ac_cv_have_decl_strerror_r = yes; then
14875 cat >>confdefs.h <<_ACEOF
14876 #define HAVE_DECL_STRERROR_R 1
14877 _ACEOF
14880 else
14881 cat >>confdefs.h <<_ACEOF
14882 #define HAVE_DECL_STRERROR_R 0
14883 _ACEOF
14890 for ac_func in strerror_r
14892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14893 echo "$as_me:$LINENO: checking for $ac_func" >&5
14894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14895 if eval "test \"\${$as_ac_var+set}\" = set"; then
14896 echo $ECHO_N "(cached) $ECHO_C" >&6
14897 else
14898 cat >conftest.$ac_ext <<_ACEOF
14899 /* confdefs.h. */
14900 _ACEOF
14901 cat confdefs.h >>conftest.$ac_ext
14902 cat >>conftest.$ac_ext <<_ACEOF
14903 /* end confdefs.h. */
14904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14906 #define $ac_func innocuous_$ac_func
14908 /* System header to define __stub macros and hopefully few prototypes,
14909 which can conflict with char $ac_func (); below.
14910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14911 <limits.h> exists even on freestanding compilers. */
14913 #ifdef __STDC__
14914 # include <limits.h>
14915 #else
14916 # include <assert.h>
14917 #endif
14919 #undef $ac_func
14921 /* Override any gcc2 internal prototype to avoid an error. */
14922 #ifdef __cplusplus
14923 extern "C"
14925 #endif
14926 /* We use char because int might match the return type of a gcc2
14927 builtin and then its argument prototype would still apply. */
14928 char $ac_func ();
14929 /* The GNU C library defines this for functions which it implements
14930 to always fail with ENOSYS. Some functions are actually named
14931 something starting with __ and the normal name is an alias. */
14932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14933 choke me
14934 #else
14935 char (*f) () = $ac_func;
14936 #endif
14937 #ifdef __cplusplus
14939 #endif
14942 main ()
14944 return f != $ac_func;
14946 return 0;
14948 _ACEOF
14949 rm -f conftest.$ac_objext conftest$ac_exeext
14950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14951 (eval $ac_link) 2>conftest.er1
14952 ac_status=$?
14953 grep -v '^ *+' conftest.er1 >conftest.err
14954 rm -f conftest.er1
14955 cat conftest.err >&5
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); } &&
14958 { ac_try='test -z "$ac_c_werror_flag"
14959 || test ! -s conftest.err'
14960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14961 (eval $ac_try) 2>&5
14962 ac_status=$?
14963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964 (exit $ac_status); }; } &&
14965 { ac_try='test -s conftest$ac_exeext'
14966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14967 (eval $ac_try) 2>&5
14968 ac_status=$?
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); }; }; then
14971 eval "$as_ac_var=yes"
14972 else
14973 echo "$as_me: failed program was:" >&5
14974 sed 's/^/| /' conftest.$ac_ext >&5
14976 eval "$as_ac_var=no"
14978 rm -f conftest.err conftest.$ac_objext \
14979 conftest$ac_exeext conftest.$ac_ext
14981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14982 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14983 if test `eval echo '${'$as_ac_var'}'` = yes; then
14984 cat >>confdefs.h <<_ACEOF
14985 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14986 _ACEOF
14989 done
14991 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
14992 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
14993 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
14994 echo $ECHO_N "(cached) $ECHO_C" >&6
14995 else
14997 ac_cv_func_strerror_r_char_p=no
14998 if test $ac_cv_have_decl_strerror_r = yes; then
14999 cat >conftest.$ac_ext <<_ACEOF
15000 /* confdefs.h. */
15001 _ACEOF
15002 cat confdefs.h >>conftest.$ac_ext
15003 cat >>conftest.$ac_ext <<_ACEOF
15004 /* end confdefs.h. */
15005 $ac_includes_default
15007 main ()
15010 char buf[100];
15011 char x = *strerror_r (0, buf, sizeof buf);
15012 char *p = strerror_r (0, buf, sizeof buf);
15015 return 0;
15017 _ACEOF
15018 rm -f conftest.$ac_objext
15019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15020 (eval $ac_compile) 2>conftest.er1
15021 ac_status=$?
15022 grep -v '^ *+' conftest.er1 >conftest.err
15023 rm -f conftest.er1
15024 cat conftest.err >&5
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); } &&
15027 { ac_try='test -z "$ac_c_werror_flag"
15028 || test ! -s conftest.err'
15029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15030 (eval $ac_try) 2>&5
15031 ac_status=$?
15032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033 (exit $ac_status); }; } &&
15034 { ac_try='test -s conftest.$ac_objext'
15035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15036 (eval $ac_try) 2>&5
15037 ac_status=$?
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); }; }; then
15040 ac_cv_func_strerror_r_char_p=yes
15041 else
15042 echo "$as_me: failed program was:" >&5
15043 sed 's/^/| /' conftest.$ac_ext >&5
15046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15047 else
15048 # strerror_r is not declared. Choose between
15049 # systems that have relatively inaccessible declarations for the
15050 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
15051 # former has a strerror_r that returns char*, while the latter
15052 # has a strerror_r that returns `int'.
15053 # This test should segfault on the DEC system.
15054 if test "$cross_compiling" = yes; then
15056 else
15057 cat >conftest.$ac_ext <<_ACEOF
15058 /* confdefs.h. */
15059 _ACEOF
15060 cat confdefs.h >>conftest.$ac_ext
15061 cat >>conftest.$ac_ext <<_ACEOF
15062 /* end confdefs.h. */
15063 $ac_includes_default
15064 extern char *strerror_r ();
15066 main ()
15068 char buf[100];
15069 char x = *strerror_r (0, buf, sizeof buf);
15070 exit (!isalpha (x));
15072 return 0;
15074 _ACEOF
15075 rm -f conftest$ac_exeext
15076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15077 (eval $ac_link) 2>&5
15078 ac_status=$?
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15082 (eval $ac_try) 2>&5
15083 ac_status=$?
15084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 (exit $ac_status); }; }; then
15086 ac_cv_func_strerror_r_char_p=yes
15087 else
15088 echo "$as_me: program exited with status $ac_status" >&5
15089 echo "$as_me: failed program was:" >&5
15090 sed 's/^/| /' conftest.$ac_ext >&5
15093 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15098 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
15099 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
15100 if test $ac_cv_func_strerror_r_char_p = yes; then
15102 cat >>confdefs.h <<\_ACEOF
15103 #define STRERROR_R_CHAR_P 1
15104 _ACEOF
15108 CPPFLAGS="$mule_backup_CPPFLAGS"
15110 # Look for a way to preallocate disk space for files.
15112 echo "$as_me:$LINENO: checking for fallocate" >&5
15113 echo $ECHO_N "checking for fallocate... $ECHO_C" >&6
15114 mule_backup_CPPFLAGS="$CPPFLAGS"
15115 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
15116 cat >conftest.$ac_ext <<_ACEOF
15118 /* confdefs.h. */
15119 _ACEOF
15120 cat confdefs.h >>conftest.$ac_ext
15121 cat >>conftest.$ac_ext <<_ACEOF
15122 /* end confdefs.h. */
15124 #define _GNU_SOURCE
15125 #ifdef HAVE_FCNTL_H
15126 # include <fcntl.h>
15127 #endif
15128 #include <linux/falloc.h>
15131 main ()
15134 fallocate(0, 0, 0, 0);
15137 return 0;
15140 _ACEOF
15141 rm -f conftest.$ac_objext conftest$ac_exeext
15142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15143 (eval $ac_link) 2>conftest.er1
15144 ac_status=$?
15145 grep -v '^ *+' conftest.er1 >conftest.err
15146 rm -f conftest.er1
15147 cat conftest.err >&5
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); } &&
15150 { ac_try='test -z "$ac_c_werror_flag"
15151 || test ! -s conftest.err'
15152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15153 (eval $ac_try) 2>&5
15154 ac_status=$?
15155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156 (exit $ac_status); }; } &&
15157 { ac_try='test -s conftest$ac_exeext'
15158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15159 (eval $ac_try) 2>&5
15160 ac_status=$?
15161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162 (exit $ac_status); }; }; then
15166 cat >>confdefs.h <<\_ACEOF
15167 #define HAVE_FALLOCATE 1
15168 _ACEOF
15170 echo "$as_me:$LINENO: result: yes" >&5
15171 echo "${ECHO_T}yes" >&6
15173 else
15174 echo "$as_me: failed program was:" >&5
15175 sed 's/^/| /' conftest.$ac_ext >&5
15178 echo "$as_me:$LINENO: result: no" >&5
15179 echo "${ECHO_T}no" >&6
15182 rm -f conftest.err conftest.$ac_objext \
15183 conftest$ac_exeext conftest.$ac_ext
15184 CPPFLAGS="$mule_backup_CPPFLAGS"
15187 echo "$as_me:$LINENO: checking for SYS_fallocate" >&5
15188 echo $ECHO_N "checking for SYS_fallocate... $ECHO_C" >&6
15189 cat >conftest.$ac_ext <<_ACEOF
15191 /* confdefs.h. */
15192 _ACEOF
15193 cat confdefs.h >>conftest.$ac_ext
15194 cat >>conftest.$ac_ext <<_ACEOF
15195 /* end confdefs.h. */
15197 #include <sys/syscall.h>
15198 #include <sys/types.h>
15199 #include <unistd.h>
15202 main ()
15205 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0);
15208 return 0;
15211 _ACEOF
15212 rm -f conftest.$ac_objext conftest$ac_exeext
15213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15214 (eval $ac_link) 2>conftest.er1
15215 ac_status=$?
15216 grep -v '^ *+' conftest.er1 >conftest.err
15217 rm -f conftest.er1
15218 cat conftest.err >&5
15219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220 (exit $ac_status); } &&
15221 { ac_try='test -z "$ac_c_werror_flag"
15222 || test ! -s conftest.err'
15223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15224 (eval $ac_try) 2>&5
15225 ac_status=$?
15226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227 (exit $ac_status); }; } &&
15228 { ac_try='test -s conftest$ac_exeext'
15229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15230 (eval $ac_try) 2>&5
15231 ac_status=$?
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); }; }; then
15237 cat >>confdefs.h <<\_ACEOF
15238 #define HAVE_SYS_FALLOCATE 1
15239 _ACEOF
15241 echo "$as_me:$LINENO: result: yes" >&5
15242 echo "${ECHO_T}yes" >&6
15244 else
15245 echo "$as_me: failed program was:" >&5
15246 sed 's/^/| /' conftest.$ac_ext >&5
15249 echo "$as_me:$LINENO: result: no" >&5
15250 echo "${ECHO_T}no" >&6
15253 rm -f conftest.err conftest.$ac_objext \
15254 conftest$ac_exeext conftest.$ac_ext
15256 echo "$as_me:$LINENO: checking for posix_fallocate" >&5
15257 echo $ECHO_N "checking for posix_fallocate... $ECHO_C" >&6
15258 cat >conftest.$ac_ext <<_ACEOF
15260 /* confdefs.h. */
15261 _ACEOF
15262 cat confdefs.h >>conftest.$ac_ext
15263 cat >>conftest.$ac_ext <<_ACEOF
15264 /* end confdefs.h. */
15266 #define _XOPEN_SOURCE 600
15267 #include <stdlib.h>
15268 #ifdef HAVE_FCNTL_H
15269 # include <fcntl.h>
15270 #endif
15273 main ()
15276 posix_fallocate(0, 0, 0);
15279 return 0;
15282 _ACEOF
15283 rm -f conftest.$ac_objext conftest$ac_exeext
15284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15285 (eval $ac_link) 2>conftest.er1
15286 ac_status=$?
15287 grep -v '^ *+' conftest.er1 >conftest.err
15288 rm -f conftest.er1
15289 cat conftest.err >&5
15290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291 (exit $ac_status); } &&
15292 { ac_try='test -z "$ac_c_werror_flag"
15293 || test ! -s conftest.err'
15294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15295 (eval $ac_try) 2>&5
15296 ac_status=$?
15297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298 (exit $ac_status); }; } &&
15299 { ac_try='test -s conftest$ac_exeext'
15300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15301 (eval $ac_try) 2>&5
15302 ac_status=$?
15303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15304 (exit $ac_status); }; }; then
15308 cat >>confdefs.h <<\_ACEOF
15309 #define HAVE_POSIX_FALLOCATE 1
15310 _ACEOF
15312 echo "$as_me:$LINENO: result: yes" >&5
15313 echo "${ECHO_T}yes" >&6
15315 else
15316 echo "$as_me: failed program was:" >&5
15317 sed 's/^/| /' conftest.$ac_ext >&5
15320 echo "$as_me:$LINENO: result: no" >&5
15321 echo "${ECHO_T}no" >&6
15324 rm -f conftest.err conftest.$ac_objext \
15325 conftest$ac_exeext conftest.$ac_ext
15328 # Checking Native Language Support
15331 MKINSTALLDIRS=
15332 if test -n "$ac_aux_dir"; then
15333 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
15335 if test -z "$MKINSTALLDIRS"; then
15336 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15343 # Extract the first word of "msgfmt", so it can be a program name with args.
15344 set dummy msgfmt; ac_word=$2
15345 echo "$as_me:$LINENO: checking for $ac_word" >&5
15346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15347 if test "${ac_cv_path_MSGFMT+set}" = set; then
15348 echo $ECHO_N "(cached) $ECHO_C" >&6
15349 else
15350 case "$MSGFMT" in
15352 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15355 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15356 for ac_dir in $PATH; do
15357 test -z "$ac_dir" && ac_dir=.
15358 if test -f $ac_dir/$ac_word; then
15359 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
15360 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15361 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
15362 break
15365 done
15366 IFS="$ac_save_ifs"
15367 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15369 esac
15371 MSGFMT="$ac_cv_path_MSGFMT"
15372 if test "$MSGFMT" != ":"; then
15373 echo "$as_me:$LINENO: result: $MSGFMT" >&5
15374 echo "${ECHO_T}$MSGFMT" >&6
15375 else
15376 echo "$as_me:$LINENO: result: no" >&5
15377 echo "${ECHO_T}no" >&6
15380 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15381 set dummy gmsgfmt; ac_word=$2
15382 echo "$as_me:$LINENO: checking for $ac_word" >&5
15383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15384 if test "${ac_cv_path_GMSGFMT+set}" = set; then
15385 echo $ECHO_N "(cached) $ECHO_C" >&6
15386 else
15387 case $GMSGFMT in
15388 [\\/]* | ?:[\\/]*)
15389 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15393 for as_dir in $PATH
15395 IFS=$as_save_IFS
15396 test -z "$as_dir" && as_dir=.
15397 for ac_exec_ext in '' $ac_executable_extensions; do
15398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15399 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15401 break 2
15403 done
15404 done
15406 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15408 esac
15410 GMSGFMT=$ac_cv_path_GMSGFMT
15412 if test -n "$GMSGFMT"; then
15413 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
15414 echo "${ECHO_T}$GMSGFMT" >&6
15415 else
15416 echo "$as_me:$LINENO: result: no" >&5
15417 echo "${ECHO_T}no" >&6
15421 # Extract the first word of "xgettext", so it can be a program name with args.
15422 set dummy xgettext; ac_word=$2
15423 echo "$as_me:$LINENO: checking for $ac_word" >&5
15424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15425 if test "${ac_cv_path_XGETTEXT+set}" = set; then
15426 echo $ECHO_N "(cached) $ECHO_C" >&6
15427 else
15428 case "$XGETTEXT" in
15430 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15433 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15434 for ac_dir in $PATH; do
15435 test -z "$ac_dir" && ac_dir=.
15436 if test -f $ac_dir/$ac_word; then
15437 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
15438 (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
15439 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
15440 break
15443 done
15444 IFS="$ac_save_ifs"
15445 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15447 esac
15449 XGETTEXT="$ac_cv_path_XGETTEXT"
15450 if test "$XGETTEXT" != ":"; then
15451 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15452 echo "${ECHO_T}$XGETTEXT" >&6
15453 else
15454 echo "$as_me:$LINENO: result: no" >&5
15455 echo "${ECHO_T}no" >&6
15458 rm -f messages.po
15460 # Extract the first word of "msgmerge", so it can be a program name with args.
15461 set dummy msgmerge; ac_word=$2
15462 echo "$as_me:$LINENO: checking for $ac_word" >&5
15463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15464 if test "${ac_cv_path_MSGMERGE+set}" = set; then
15465 echo $ECHO_N "(cached) $ECHO_C" >&6
15466 else
15467 case "$MSGMERGE" in
15469 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15472 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15473 for ac_dir in $PATH; do
15474 test -z "$ac_dir" && ac_dir=.
15475 if test -f $ac_dir/$ac_word; then
15476 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
15477 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
15478 break
15481 done
15482 IFS="$ac_save_ifs"
15483 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
15485 esac
15487 MSGMERGE="$ac_cv_path_MSGMERGE"
15488 if test "$MSGMERGE" != ":"; then
15489 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15490 echo "${ECHO_T}$MSGMERGE" >&6
15491 else
15492 echo "$as_me:$LINENO: result: no" >&5
15493 echo "${ECHO_T}no" >&6
15497 if test "$GMSGFMT" != ":"; then
15498 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
15499 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15501 else
15502 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
15503 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
15504 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
15505 GMSGFMT=":"
15509 if test "$XGETTEXT" != ":"; then
15510 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
15511 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15513 else
15514 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
15515 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
15516 XGETTEXT=":"
15518 rm -f messages.po
15521 ac_config_commands="$ac_config_commands default-1"
15524 echo "$as_me:$LINENO: checking for library containing strerror" >&5
15525 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
15526 if test "${ac_cv_search_strerror+set}" = set; then
15527 echo $ECHO_N "(cached) $ECHO_C" >&6
15528 else
15529 ac_func_search_save_LIBS=$LIBS
15530 ac_cv_search_strerror=no
15531 cat >conftest.$ac_ext <<_ACEOF
15532 /* confdefs.h. */
15533 _ACEOF
15534 cat confdefs.h >>conftest.$ac_ext
15535 cat >>conftest.$ac_ext <<_ACEOF
15536 /* end confdefs.h. */
15538 /* Override any gcc2 internal prototype to avoid an error. */
15539 #ifdef __cplusplus
15540 extern "C"
15541 #endif
15542 /* We use char because int might match the return type of a gcc2
15543 builtin and then its argument prototype would still apply. */
15544 char strerror ();
15546 main ()
15548 strerror ();
15550 return 0;
15552 _ACEOF
15553 rm -f conftest.$ac_objext conftest$ac_exeext
15554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15555 (eval $ac_link) 2>conftest.er1
15556 ac_status=$?
15557 grep -v '^ *+' conftest.er1 >conftest.err
15558 rm -f conftest.er1
15559 cat conftest.err >&5
15560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561 (exit $ac_status); } &&
15562 { ac_try='test -z "$ac_c_werror_flag"
15563 || test ! -s conftest.err'
15564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15565 (eval $ac_try) 2>&5
15566 ac_status=$?
15567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568 (exit $ac_status); }; } &&
15569 { ac_try='test -s conftest$ac_exeext'
15570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15571 (eval $ac_try) 2>&5
15572 ac_status=$?
15573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); }; }; then
15575 ac_cv_search_strerror="none required"
15576 else
15577 echo "$as_me: failed program was:" >&5
15578 sed 's/^/| /' conftest.$ac_ext >&5
15581 rm -f conftest.err conftest.$ac_objext \
15582 conftest$ac_exeext conftest.$ac_ext
15583 if test "$ac_cv_search_strerror" = no; then
15584 for ac_lib in cposix; do
15585 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15586 cat >conftest.$ac_ext <<_ACEOF
15587 /* confdefs.h. */
15588 _ACEOF
15589 cat confdefs.h >>conftest.$ac_ext
15590 cat >>conftest.$ac_ext <<_ACEOF
15591 /* end confdefs.h. */
15593 /* Override any gcc2 internal prototype to avoid an error. */
15594 #ifdef __cplusplus
15595 extern "C"
15596 #endif
15597 /* We use char because int might match the return type of a gcc2
15598 builtin and then its argument prototype would still apply. */
15599 char strerror ();
15601 main ()
15603 strerror ();
15605 return 0;
15607 _ACEOF
15608 rm -f conftest.$ac_objext conftest$ac_exeext
15609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15610 (eval $ac_link) 2>conftest.er1
15611 ac_status=$?
15612 grep -v '^ *+' conftest.er1 >conftest.err
15613 rm -f conftest.er1
15614 cat conftest.err >&5
15615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616 (exit $ac_status); } &&
15617 { ac_try='test -z "$ac_c_werror_flag"
15618 || test ! -s conftest.err'
15619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15620 (eval $ac_try) 2>&5
15621 ac_status=$?
15622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623 (exit $ac_status); }; } &&
15624 { ac_try='test -s conftest$ac_exeext'
15625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15626 (eval $ac_try) 2>&5
15627 ac_status=$?
15628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629 (exit $ac_status); }; }; then
15630 ac_cv_search_strerror="-l$ac_lib"
15631 break
15632 else
15633 echo "$as_me: failed program was:" >&5
15634 sed 's/^/| /' conftest.$ac_ext >&5
15637 rm -f conftest.err conftest.$ac_objext \
15638 conftest$ac_exeext conftest.$ac_ext
15639 done
15641 LIBS=$ac_func_search_save_LIBS
15643 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
15644 echo "${ECHO_T}$ac_cv_search_strerror" >&6
15645 if test "$ac_cv_search_strerror" != no; then
15646 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
15651 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
15652 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
15653 if test "${ac_cv_gnu_library_2_1+set}" = set; then
15654 echo $ECHO_N "(cached) $ECHO_C" >&6
15655 else
15656 cat >conftest.$ac_ext <<_ACEOF
15657 /* confdefs.h. */
15658 _ACEOF
15659 cat confdefs.h >>conftest.$ac_ext
15660 cat >>conftest.$ac_ext <<_ACEOF
15661 /* end confdefs.h. */
15663 #include <features.h>
15664 #ifdef __GNU_LIBRARY__
15665 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
15666 Lucky GNU user
15667 #endif
15668 #endif
15670 _ACEOF
15671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15672 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
15673 ac_cv_gnu_library_2_1=yes
15674 else
15675 ac_cv_gnu_library_2_1=no
15677 rm -f conftest*
15682 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
15683 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
15685 GLIBC21="$ac_cv_gnu_library_2_1"
15690 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
15691 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
15692 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
15693 echo $ECHO_N "(cached) $ECHO_C" >&6
15694 else
15696 if test "$cross_compiling" = yes; then
15698 # Guess based on the CPU.
15699 case "$host_cpu" in
15700 alpha* | i3456786 | m68k | s390*)
15701 gt_cv_int_divbyzero_sigfpe="guessing yes";;
15703 gt_cv_int_divbyzero_sigfpe="guessing no";;
15704 esac
15706 else
15707 cat >conftest.$ac_ext <<_ACEOF
15708 /* confdefs.h. */
15709 _ACEOF
15710 cat confdefs.h >>conftest.$ac_ext
15711 cat >>conftest.$ac_ext <<_ACEOF
15712 /* end confdefs.h. */
15714 #include <stdlib.h>
15715 #include <signal.h>
15717 static void
15718 #ifdef __cplusplus
15719 sigfpe_handler (int sig)
15720 #else
15721 sigfpe_handler (sig) int sig;
15722 #endif
15724 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
15725 exit (sig != SIGFPE);
15728 int x = 1;
15729 int y = 0;
15730 int z;
15731 int nan;
15733 int main ()
15735 signal (SIGFPE, sigfpe_handler);
15736 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
15737 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
15738 signal (SIGTRAP, sigfpe_handler);
15739 #endif
15740 /* Linux/SPARC yields signal SIGILL. */
15741 #if defined (__sparc__) && defined (__linux__)
15742 signal (SIGILL, sigfpe_handler);
15743 #endif
15745 z = x / y;
15746 nan = y / y;
15747 exit (1);
15750 _ACEOF
15751 rm -f conftest$ac_exeext
15752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15753 (eval $ac_link) 2>&5
15754 ac_status=$?
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15758 (eval $ac_try) 2>&5
15759 ac_status=$?
15760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 (exit $ac_status); }; }; then
15762 gt_cv_int_divbyzero_sigfpe=yes
15763 else
15764 echo "$as_me: program exited with status $ac_status" >&5
15765 echo "$as_me: failed program was:" >&5
15766 sed 's/^/| /' conftest.$ac_ext >&5
15768 ( exit $ac_status )
15769 gt_cv_int_divbyzero_sigfpe=no
15771 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15775 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
15776 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
15777 case "$gt_cv_int_divbyzero_sigfpe" in
15778 *yes) value=1;;
15779 *) value=0;;
15780 esac
15782 cat >>confdefs.h <<_ACEOF
15783 #define INTDIV0_RAISES_SIGFPE $value
15784 _ACEOF
15788 echo "$as_me:$LINENO: checking for inttypes.h" >&5
15789 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
15790 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
15791 echo $ECHO_N "(cached) $ECHO_C" >&6
15792 else
15793 cat >conftest.$ac_ext <<_ACEOF
15794 /* confdefs.h. */
15795 _ACEOF
15796 cat confdefs.h >>conftest.$ac_ext
15797 cat >>conftest.$ac_ext <<_ACEOF
15798 /* end confdefs.h. */
15799 #include <sys/types.h>
15800 #include <inttypes.h>
15802 main ()
15804 uintmax_t i = (uintmax_t) -1;
15806 return 0;
15808 _ACEOF
15809 rm -f conftest.$ac_objext
15810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15811 (eval $ac_compile) 2>conftest.er1
15812 ac_status=$?
15813 grep -v '^ *+' conftest.er1 >conftest.err
15814 rm -f conftest.er1
15815 cat conftest.err >&5
15816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817 (exit $ac_status); } &&
15818 { ac_try='test -z "$ac_c_werror_flag"
15819 || test ! -s conftest.err'
15820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15821 (eval $ac_try) 2>&5
15822 ac_status=$?
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); }; } &&
15825 { ac_try='test -s conftest.$ac_objext'
15826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15827 (eval $ac_try) 2>&5
15828 ac_status=$?
15829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 (exit $ac_status); }; }; then
15831 jm_ac_cv_header_inttypes_h=yes
15832 else
15833 echo "$as_me: failed program was:" >&5
15834 sed 's/^/| /' conftest.$ac_ext >&5
15836 jm_ac_cv_header_inttypes_h=no
15838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15840 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
15841 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
15842 if test $jm_ac_cv_header_inttypes_h = yes; then
15844 cat >>confdefs.h <<_ACEOF
15845 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
15846 _ACEOF
15851 echo "$as_me:$LINENO: checking for stdint.h" >&5
15852 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
15853 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
15854 echo $ECHO_N "(cached) $ECHO_C" >&6
15855 else
15856 cat >conftest.$ac_ext <<_ACEOF
15857 /* confdefs.h. */
15858 _ACEOF
15859 cat confdefs.h >>conftest.$ac_ext
15860 cat >>conftest.$ac_ext <<_ACEOF
15861 /* end confdefs.h. */
15862 #include <sys/types.h>
15863 #include <stdint.h>
15865 main ()
15867 uintmax_t i = (uintmax_t) -1;
15869 return 0;
15871 _ACEOF
15872 rm -f conftest.$ac_objext
15873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15874 (eval $ac_compile) 2>conftest.er1
15875 ac_status=$?
15876 grep -v '^ *+' conftest.er1 >conftest.err
15877 rm -f conftest.er1
15878 cat conftest.err >&5
15879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880 (exit $ac_status); } &&
15881 { ac_try='test -z "$ac_c_werror_flag"
15882 || test ! -s conftest.err'
15883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15884 (eval $ac_try) 2>&5
15885 ac_status=$?
15886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887 (exit $ac_status); }; } &&
15888 { ac_try='test -s conftest.$ac_objext'
15889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15890 (eval $ac_try) 2>&5
15891 ac_status=$?
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); }; }; then
15894 jm_ac_cv_header_stdint_h=yes
15895 else
15896 echo "$as_me: failed program was:" >&5
15897 sed 's/^/| /' conftest.$ac_ext >&5
15899 jm_ac_cv_header_stdint_h=no
15901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15903 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
15904 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
15905 if test $jm_ac_cv_header_stdint_h = yes; then
15907 cat >>confdefs.h <<_ACEOF
15908 #define HAVE_STDINT_H_WITH_UINTMAX 1
15909 _ACEOF
15914 echo "$as_me:$LINENO: checking for unsigned long long" >&5
15915 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
15916 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
15917 echo $ECHO_N "(cached) $ECHO_C" >&6
15918 else
15919 cat >conftest.$ac_ext <<_ACEOF
15920 /* confdefs.h. */
15921 _ACEOF
15922 cat confdefs.h >>conftest.$ac_ext
15923 cat >>conftest.$ac_ext <<_ACEOF
15924 /* end confdefs.h. */
15925 unsigned long long ull = 1; int i = 63;
15927 main ()
15929 unsigned long long ullmax = (unsigned long long) -1;
15930 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
15932 return 0;
15934 _ACEOF
15935 rm -f conftest.$ac_objext conftest$ac_exeext
15936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15937 (eval $ac_link) 2>conftest.er1
15938 ac_status=$?
15939 grep -v '^ *+' conftest.er1 >conftest.err
15940 rm -f conftest.er1
15941 cat conftest.err >&5
15942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943 (exit $ac_status); } &&
15944 { ac_try='test -z "$ac_c_werror_flag"
15945 || test ! -s conftest.err'
15946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15947 (eval $ac_try) 2>&5
15948 ac_status=$?
15949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); }; } &&
15951 { ac_try='test -s conftest$ac_exeext'
15952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15953 (eval $ac_try) 2>&5
15954 ac_status=$?
15955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956 (exit $ac_status); }; }; then
15957 ac_cv_type_unsigned_long_long=yes
15958 else
15959 echo "$as_me: failed program was:" >&5
15960 sed 's/^/| /' conftest.$ac_ext >&5
15962 ac_cv_type_unsigned_long_long=no
15964 rm -f conftest.err conftest.$ac_objext \
15965 conftest$ac_exeext conftest.$ac_ext
15967 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
15968 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
15969 if test $ac_cv_type_unsigned_long_long = yes; then
15971 cat >>confdefs.h <<\_ACEOF
15972 #define HAVE_UNSIGNED_LONG_LONG 1
15973 _ACEOF
15980 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
15982 test $ac_cv_type_unsigned_long_long = yes \
15983 && ac_type='unsigned long long' \
15984 || ac_type='unsigned long'
15986 cat >>confdefs.h <<_ACEOF
15987 #define uintmax_t $ac_type
15988 _ACEOF
15993 echo "$as_me:$LINENO: checking for inttypes.h" >&5
15994 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
15995 if test "${gt_cv_header_inttypes_h+set}" = set; then
15996 echo $ECHO_N "(cached) $ECHO_C" >&6
15997 else
15999 cat >conftest.$ac_ext <<_ACEOF
16000 /* confdefs.h. */
16001 _ACEOF
16002 cat confdefs.h >>conftest.$ac_ext
16003 cat >>conftest.$ac_ext <<_ACEOF
16004 /* end confdefs.h. */
16005 #include <sys/types.h>
16006 #include <inttypes.h>
16008 main ()
16012 return 0;
16014 _ACEOF
16015 rm -f conftest.$ac_objext
16016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16017 (eval $ac_compile) 2>conftest.er1
16018 ac_status=$?
16019 grep -v '^ *+' conftest.er1 >conftest.err
16020 rm -f conftest.er1
16021 cat conftest.err >&5
16022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023 (exit $ac_status); } &&
16024 { ac_try='test -z "$ac_c_werror_flag"
16025 || test ! -s conftest.err'
16026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16027 (eval $ac_try) 2>&5
16028 ac_status=$?
16029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030 (exit $ac_status); }; } &&
16031 { ac_try='test -s conftest.$ac_objext'
16032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16033 (eval $ac_try) 2>&5
16034 ac_status=$?
16035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036 (exit $ac_status); }; }; then
16037 gt_cv_header_inttypes_h=yes
16038 else
16039 echo "$as_me: failed program was:" >&5
16040 sed 's/^/| /' conftest.$ac_ext >&5
16042 gt_cv_header_inttypes_h=no
16044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16047 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
16048 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
16049 if test $gt_cv_header_inttypes_h = yes; then
16051 cat >>confdefs.h <<_ACEOF
16052 #define HAVE_INTTYPES_H 1
16053 _ACEOF
16059 if test $gt_cv_header_inttypes_h = yes; then
16060 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
16061 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
16062 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
16063 echo $ECHO_N "(cached) $ECHO_C" >&6
16064 else
16066 cat >conftest.$ac_ext <<_ACEOF
16067 /* confdefs.h. */
16068 _ACEOF
16069 cat confdefs.h >>conftest.$ac_ext
16070 cat >>conftest.$ac_ext <<_ACEOF
16071 /* end confdefs.h. */
16072 #include <inttypes.h>
16073 #ifdef PRId32
16074 char *p = PRId32;
16075 #endif
16078 main ()
16082 return 0;
16084 _ACEOF
16085 rm -f conftest.$ac_objext
16086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16087 (eval $ac_compile) 2>conftest.er1
16088 ac_status=$?
16089 grep -v '^ *+' conftest.er1 >conftest.err
16090 rm -f conftest.er1
16091 cat conftest.err >&5
16092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16093 (exit $ac_status); } &&
16094 { ac_try='test -z "$ac_c_werror_flag"
16095 || test ! -s conftest.err'
16096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16097 (eval $ac_try) 2>&5
16098 ac_status=$?
16099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100 (exit $ac_status); }; } &&
16101 { ac_try='test -s conftest.$ac_objext'
16102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16103 (eval $ac_try) 2>&5
16104 ac_status=$?
16105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106 (exit $ac_status); }; }; then
16107 gt_cv_inttypes_pri_broken=no
16108 else
16109 echo "$as_me: failed program was:" >&5
16110 sed 's/^/| /' conftest.$ac_ext >&5
16112 gt_cv_inttypes_pri_broken=yes
16114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16117 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
16118 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
16120 if test "$gt_cv_inttypes_pri_broken" = yes; then
16122 cat >>confdefs.h <<_ACEOF
16123 #define PRI_MACROS_BROKEN 1
16124 _ACEOF
16129 if test "X$prefix" = "XNONE"; then
16130 acl_final_prefix="$ac_default_prefix"
16131 else
16132 acl_final_prefix="$prefix"
16134 if test "X$exec_prefix" = "XNONE"; then
16135 acl_final_exec_prefix='${prefix}'
16136 else
16137 acl_final_exec_prefix="$exec_prefix"
16139 acl_save_prefix="$prefix"
16140 prefix="$acl_final_prefix"
16141 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16142 prefix="$acl_save_prefix"
16145 # Check whether --with-gnu-ld or --without-gnu-ld was given.
16146 if test "${with_gnu_ld+set}" = set; then
16147 withval="$with_gnu_ld"
16148 test "$withval" = no || with_gnu_ld=yes
16149 else
16150 with_gnu_ld=no
16152 ac_prog=ld
16153 if test "$GCC" = yes; then
16154 # Check if gcc -print-prog-name=ld gives a path.
16155 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16156 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
16157 case $host in
16158 *-*-mingw*)
16159 # gcc leaves a trailing carriage return which upsets mingw
16160 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16162 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16163 esac
16164 case $ac_prog in
16165 # Accept absolute paths.
16166 [\\/]* | [A-Za-z]:[\\/]*)
16167 re_direlt='/[^/][^/]*/\.\./'
16168 # Canonicalize the path of ld
16169 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16170 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16171 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16172 done
16173 test -z "$LD" && LD="$ac_prog"
16176 # If it fails, then pretend we aren't using GCC.
16177 ac_prog=ld
16180 # If it is relative, then search for the first ld in PATH.
16181 with_gnu_ld=unknown
16183 esac
16184 elif test "$with_gnu_ld" = yes; then
16185 echo "$as_me:$LINENO: checking for GNU ld" >&5
16186 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
16187 else
16188 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16189 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
16191 if test "${acl_cv_path_LD+set}" = set; then
16192 echo $ECHO_N "(cached) $ECHO_C" >&6
16193 else
16194 if test -z "$LD"; then
16195 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16196 for ac_dir in $PATH; do
16197 test -z "$ac_dir" && ac_dir=.
16198 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16199 acl_cv_path_LD="$ac_dir/$ac_prog"
16200 # Check to see if the program is GNU ld. I'd rather use --version,
16201 # but apparently some GNU ld's only accept -v.
16202 # Break only if it was the GNU/non-GNU ld that we prefer.
16203 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
16204 test "$with_gnu_ld" != no && break
16205 else
16206 test "$with_gnu_ld" != yes && break
16209 done
16210 IFS="$ac_save_ifs"
16211 else
16212 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16216 LD="$acl_cv_path_LD"
16217 if test -n "$LD"; then
16218 echo "$as_me:$LINENO: result: $LD" >&5
16219 echo "${ECHO_T}$LD" >&6
16220 else
16221 echo "$as_me:$LINENO: result: no" >&5
16222 echo "${ECHO_T}no" >&6
16224 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16225 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16226 { (exit 1); exit 1; }; }
16227 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16228 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
16229 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16230 echo $ECHO_N "(cached) $ECHO_C" >&6
16231 else
16232 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16233 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
16234 acl_cv_prog_gnu_ld=yes
16235 else
16236 acl_cv_prog_gnu_ld=no
16239 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16240 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
16241 with_gnu_ld=$acl_cv_prog_gnu_ld
16245 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16246 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
16247 if test "${acl_cv_rpath+set}" = set; then
16248 echo $ECHO_N "(cached) $ECHO_C" >&6
16249 else
16251 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16252 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16253 . ./conftest.sh
16254 rm -f ./conftest.sh
16255 acl_cv_rpath=done
16258 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16259 echo "${ECHO_T}$acl_cv_rpath" >&6
16260 wl="$acl_cv_wl"
16261 libext="$acl_cv_libext"
16262 shlibext="$acl_cv_shlibext"
16263 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16264 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16265 hardcode_direct="$acl_cv_hardcode_direct"
16266 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16267 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
16268 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
16269 # Check whether --enable-rpath or --disable-rpath was given.
16270 if test "${enable_rpath+set}" = set; then
16271 enableval="$enable_rpath"
16273 else
16274 enable_rpath=yes
16283 use_additional=yes
16285 acl_save_prefix="$prefix"
16286 prefix="$acl_final_prefix"
16287 acl_save_exec_prefix="$exec_prefix"
16288 exec_prefix="$acl_final_exec_prefix"
16290 eval additional_includedir=\"$includedir\"
16291 eval additional_libdir=\"$libdir\"
16293 exec_prefix="$acl_save_exec_prefix"
16294 prefix="$acl_save_prefix"
16297 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
16298 if test "${with_libiconv_prefix+set}" = set; then
16299 withval="$with_libiconv_prefix"
16301 if test "X$withval" = "Xno"; then
16302 use_additional=no
16303 else
16304 if test "X$withval" = "X"; then
16306 acl_save_prefix="$prefix"
16307 prefix="$acl_final_prefix"
16308 acl_save_exec_prefix="$exec_prefix"
16309 exec_prefix="$acl_final_exec_prefix"
16311 eval additional_includedir=\"$includedir\"
16312 eval additional_libdir=\"$libdir\"
16314 exec_prefix="$acl_save_exec_prefix"
16315 prefix="$acl_save_prefix"
16317 else
16318 additional_includedir="$withval/include"
16319 additional_libdir="$withval/lib"
16324 LIBICONV=
16325 LTLIBICONV=
16326 INCICONV=
16327 rpathdirs=
16328 ltrpathdirs=
16329 names_already_handled=
16330 names_next_round='iconv '
16331 while test -n "$names_next_round"; do
16332 names_this_round="$names_next_round"
16333 names_next_round=
16334 for name in $names_this_round; do
16335 already_handled=
16336 for n in $names_already_handled; do
16337 if test "$n" = "$name"; then
16338 already_handled=yes
16339 break
16341 done
16342 if test -z "$already_handled"; then
16343 names_already_handled="$names_already_handled $name"
16344 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16345 eval value=\"\$HAVE_LIB$uppername\"
16346 if test -n "$value"; then
16347 if test "$value" = yes; then
16348 eval value=\"\$LIB$uppername\"
16349 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16350 eval value=\"\$LTLIB$uppername\"
16351 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16352 else
16355 else
16356 found_dir=
16357 found_la=
16358 found_so=
16359 found_a=
16360 if test $use_additional = yes; then
16361 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16362 found_dir="$additional_libdir"
16363 found_so="$additional_libdir/lib$name.$shlibext"
16364 if test -f "$additional_libdir/lib$name.la"; then
16365 found_la="$additional_libdir/lib$name.la"
16367 else
16368 if test -f "$additional_libdir/lib$name.$libext"; then
16369 found_dir="$additional_libdir"
16370 found_a="$additional_libdir/lib$name.$libext"
16371 if test -f "$additional_libdir/lib$name.la"; then
16372 found_la="$additional_libdir/lib$name.la"
16377 if test "X$found_dir" = "X"; then
16378 for x in $LDFLAGS $LTLIBICONV; do
16380 acl_save_prefix="$prefix"
16381 prefix="$acl_final_prefix"
16382 acl_save_exec_prefix="$exec_prefix"
16383 exec_prefix="$acl_final_exec_prefix"
16384 eval x=\"$x\"
16385 exec_prefix="$acl_save_exec_prefix"
16386 prefix="$acl_save_prefix"
16388 case "$x" in
16389 -L*)
16390 dir=`echo "X$x" | sed -e 's/^X-L//'`
16391 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16392 found_dir="$dir"
16393 found_so="$dir/lib$name.$shlibext"
16394 if test -f "$dir/lib$name.la"; then
16395 found_la="$dir/lib$name.la"
16397 else
16398 if test -f "$dir/lib$name.$libext"; then
16399 found_dir="$dir"
16400 found_a="$dir/lib$name.$libext"
16401 if test -f "$dir/lib$name.la"; then
16402 found_la="$dir/lib$name.la"
16407 esac
16408 if test "X$found_dir" != "X"; then
16409 break
16411 done
16413 if test "X$found_dir" != "X"; then
16414 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16415 if test "X$found_so" != "X"; then
16416 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16417 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16418 else
16419 haveit=
16420 for x in $ltrpathdirs; do
16421 if test "X$x" = "X$found_dir"; then
16422 haveit=yes
16423 break
16425 done
16426 if test -z "$haveit"; then
16427 ltrpathdirs="$ltrpathdirs $found_dir"
16429 if test "$hardcode_direct" = yes; then
16430 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16431 else
16432 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16433 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16434 haveit=
16435 for x in $rpathdirs; do
16436 if test "X$x" = "X$found_dir"; then
16437 haveit=yes
16438 break
16440 done
16441 if test -z "$haveit"; then
16442 rpathdirs="$rpathdirs $found_dir"
16444 else
16445 haveit=
16446 for x in $LDFLAGS $LIBICONV; do
16448 acl_save_prefix="$prefix"
16449 prefix="$acl_final_prefix"
16450 acl_save_exec_prefix="$exec_prefix"
16451 exec_prefix="$acl_final_exec_prefix"
16452 eval x=\"$x\"
16453 exec_prefix="$acl_save_exec_prefix"
16454 prefix="$acl_save_prefix"
16456 if test "X$x" = "X-L$found_dir"; then
16457 haveit=yes
16458 break
16460 done
16461 if test -z "$haveit"; then
16462 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16464 if test "$hardcode_minus_L" != no; then
16465 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16466 else
16467 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16472 else
16473 if test "X$found_a" != "X"; then
16474 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16475 else
16476 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16479 additional_includedir=
16480 case "$found_dir" in
16481 */lib | */lib/)
16482 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16483 additional_includedir="$basedir/include"
16485 esac
16486 if test "X$additional_includedir" != "X"; then
16487 if test "X$additional_includedir" != "X/usr/include"; then
16488 haveit=
16489 if test "X$additional_includedir" = "X/usr/local/include"; then
16490 if test -n "$GCC"; then
16491 case $host_os in
16492 linux*) haveit=yes;;
16493 esac
16496 if test -z "$haveit"; then
16497 for x in $CPPFLAGS $INCICONV; do
16499 acl_save_prefix="$prefix"
16500 prefix="$acl_final_prefix"
16501 acl_save_exec_prefix="$exec_prefix"
16502 exec_prefix="$acl_final_exec_prefix"
16503 eval x=\"$x\"
16504 exec_prefix="$acl_save_exec_prefix"
16505 prefix="$acl_save_prefix"
16507 if test "X$x" = "X-I$additional_includedir"; then
16508 haveit=yes
16509 break
16511 done
16512 if test -z "$haveit"; then
16513 if test -d "$additional_includedir"; then
16514 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16520 if test -n "$found_la"; then
16521 save_libdir="$libdir"
16522 case "$found_la" in
16523 */* | *\\*) . "$found_la" ;;
16524 *) . "./$found_la" ;;
16525 esac
16526 libdir="$save_libdir"
16527 for dep in $dependency_libs; do
16528 case "$dep" in
16529 -L*)
16530 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16531 if test "X$additional_libdir" != "X/usr/lib"; then
16532 haveit=
16533 if test "X$additional_libdir" = "X/usr/local/lib"; then
16534 if test -n "$GCC"; then
16535 case $host_os in
16536 linux*) haveit=yes;;
16537 esac
16540 if test -z "$haveit"; then
16541 haveit=
16542 for x in $LDFLAGS $LIBICONV; do
16544 acl_save_prefix="$prefix"
16545 prefix="$acl_final_prefix"
16546 acl_save_exec_prefix="$exec_prefix"
16547 exec_prefix="$acl_final_exec_prefix"
16548 eval x=\"$x\"
16549 exec_prefix="$acl_save_exec_prefix"
16550 prefix="$acl_save_prefix"
16552 if test "X$x" = "X-L$additional_libdir"; then
16553 haveit=yes
16554 break
16556 done
16557 if test -z "$haveit"; then
16558 if test -d "$additional_libdir"; then
16559 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16562 haveit=
16563 for x in $LDFLAGS $LTLIBICONV; do
16565 acl_save_prefix="$prefix"
16566 prefix="$acl_final_prefix"
16567 acl_save_exec_prefix="$exec_prefix"
16568 exec_prefix="$acl_final_exec_prefix"
16569 eval x=\"$x\"
16570 exec_prefix="$acl_save_exec_prefix"
16571 prefix="$acl_save_prefix"
16573 if test "X$x" = "X-L$additional_libdir"; then
16574 haveit=yes
16575 break
16577 done
16578 if test -z "$haveit"; then
16579 if test -d "$additional_libdir"; then
16580 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16586 -R*)
16587 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16588 if test "$enable_rpath" != no; then
16589 haveit=
16590 for x in $rpathdirs; do
16591 if test "X$x" = "X$dir"; then
16592 haveit=yes
16593 break
16595 done
16596 if test -z "$haveit"; then
16597 rpathdirs="$rpathdirs $dir"
16599 haveit=
16600 for x in $ltrpathdirs; do
16601 if test "X$x" = "X$dir"; then
16602 haveit=yes
16603 break
16605 done
16606 if test -z "$haveit"; then
16607 ltrpathdirs="$ltrpathdirs $dir"
16611 -l*)
16612 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16614 *.la)
16615 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16618 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16619 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16621 esac
16622 done
16624 else
16625 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16626 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16630 done
16631 done
16632 if test "X$rpathdirs" != "X"; then
16633 if test -n "$hardcode_libdir_separator"; then
16634 alldirs=
16635 for found_dir in $rpathdirs; do
16636 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16637 done
16638 acl_save_libdir="$libdir"
16639 libdir="$alldirs"
16640 eval flag=\"$hardcode_libdir_flag_spec\"
16641 libdir="$acl_save_libdir"
16642 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16643 else
16644 for found_dir in $rpathdirs; do
16645 acl_save_libdir="$libdir"
16646 libdir="$found_dir"
16647 eval flag=\"$hardcode_libdir_flag_spec\"
16648 libdir="$acl_save_libdir"
16649 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16650 done
16653 if test "X$ltrpathdirs" != "X"; then
16654 for found_dir in $ltrpathdirs; do
16655 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16656 done
16672 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
16673 stdlib.h string.h unistd.h sys/param.h
16675 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16676 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16677 echo "$as_me:$LINENO: checking for $ac_header" >&5
16678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16679 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16680 echo $ECHO_N "(cached) $ECHO_C" >&6
16682 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16683 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16684 else
16685 # Is the header compilable?
16686 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16687 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16688 cat >conftest.$ac_ext <<_ACEOF
16689 /* confdefs.h. */
16690 _ACEOF
16691 cat confdefs.h >>conftest.$ac_ext
16692 cat >>conftest.$ac_ext <<_ACEOF
16693 /* end confdefs.h. */
16694 $ac_includes_default
16695 #include <$ac_header>
16696 _ACEOF
16697 rm -f conftest.$ac_objext
16698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16699 (eval $ac_compile) 2>conftest.er1
16700 ac_status=$?
16701 grep -v '^ *+' conftest.er1 >conftest.err
16702 rm -f conftest.er1
16703 cat conftest.err >&5
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); } &&
16706 { ac_try='test -z "$ac_c_werror_flag"
16707 || test ! -s conftest.err'
16708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16709 (eval $ac_try) 2>&5
16710 ac_status=$?
16711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); }; } &&
16713 { ac_try='test -s conftest.$ac_objext'
16714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16715 (eval $ac_try) 2>&5
16716 ac_status=$?
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); }; }; then
16719 ac_header_compiler=yes
16720 else
16721 echo "$as_me: failed program was:" >&5
16722 sed 's/^/| /' conftest.$ac_ext >&5
16724 ac_header_compiler=no
16726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16727 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16728 echo "${ECHO_T}$ac_header_compiler" >&6
16730 # Is the header present?
16731 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16732 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16733 cat >conftest.$ac_ext <<_ACEOF
16734 /* confdefs.h. */
16735 _ACEOF
16736 cat confdefs.h >>conftest.$ac_ext
16737 cat >>conftest.$ac_ext <<_ACEOF
16738 /* end confdefs.h. */
16739 #include <$ac_header>
16740 _ACEOF
16741 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16742 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16743 ac_status=$?
16744 grep -v '^ *+' conftest.er1 >conftest.err
16745 rm -f conftest.er1
16746 cat conftest.err >&5
16747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); } >/dev/null; then
16749 if test -s conftest.err; then
16750 ac_cpp_err=$ac_c_preproc_warn_flag
16751 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16752 else
16753 ac_cpp_err=
16755 else
16756 ac_cpp_err=yes
16758 if test -z "$ac_cpp_err"; then
16759 ac_header_preproc=yes
16760 else
16761 echo "$as_me: failed program was:" >&5
16762 sed 's/^/| /' conftest.$ac_ext >&5
16764 ac_header_preproc=no
16766 rm -f conftest.err conftest.$ac_ext
16767 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16768 echo "${ECHO_T}$ac_header_preproc" >&6
16770 # So? What about this header?
16771 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16772 yes:no: )
16773 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16774 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16776 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16777 ac_header_preproc=yes
16779 no:yes:* )
16780 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16781 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16782 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16783 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16784 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16785 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16786 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16787 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16789 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16790 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16791 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16793 cat <<\_ASBOX
16794 ## ------------------------------ ##
16795 ## Report this to admin@amule.org ##
16796 ## ------------------------------ ##
16797 _ASBOX
16799 sed "s/^/$as_me: WARNING: /" >&2
16801 esac
16802 echo "$as_me:$LINENO: checking for $ac_header" >&5
16803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16805 echo $ECHO_N "(cached) $ECHO_C" >&6
16806 else
16807 eval "$as_ac_Header=\$ac_header_preproc"
16809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16810 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16814 cat >>confdefs.h <<_ACEOF
16815 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16816 _ACEOF
16820 done
16843 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
16844 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
16845 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
16847 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16848 echo "$as_me:$LINENO: checking for $ac_func" >&5
16849 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16850 if eval "test \"\${$as_ac_var+set}\" = set"; then
16851 echo $ECHO_N "(cached) $ECHO_C" >&6
16852 else
16853 cat >conftest.$ac_ext <<_ACEOF
16854 /* confdefs.h. */
16855 _ACEOF
16856 cat confdefs.h >>conftest.$ac_ext
16857 cat >>conftest.$ac_ext <<_ACEOF
16858 /* end confdefs.h. */
16859 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16861 #define $ac_func innocuous_$ac_func
16863 /* System header to define __stub macros and hopefully few prototypes,
16864 which can conflict with char $ac_func (); below.
16865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16866 <limits.h> exists even on freestanding compilers. */
16868 #ifdef __STDC__
16869 # include <limits.h>
16870 #else
16871 # include <assert.h>
16872 #endif
16874 #undef $ac_func
16876 /* Override any gcc2 internal prototype to avoid an error. */
16877 #ifdef __cplusplus
16878 extern "C"
16880 #endif
16881 /* We use char because int might match the return type of a gcc2
16882 builtin and then its argument prototype would still apply. */
16883 char $ac_func ();
16884 /* The GNU C library defines this for functions which it implements
16885 to always fail with ENOSYS. Some functions are actually named
16886 something starting with __ and the normal name is an alias. */
16887 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16888 choke me
16889 #else
16890 char (*f) () = $ac_func;
16891 #endif
16892 #ifdef __cplusplus
16894 #endif
16897 main ()
16899 return f != $ac_func;
16901 return 0;
16903 _ACEOF
16904 rm -f conftest.$ac_objext conftest$ac_exeext
16905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16906 (eval $ac_link) 2>conftest.er1
16907 ac_status=$?
16908 grep -v '^ *+' conftest.er1 >conftest.err
16909 rm -f conftest.er1
16910 cat conftest.err >&5
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); } &&
16913 { ac_try='test -z "$ac_c_werror_flag"
16914 || test ! -s conftest.err'
16915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16916 (eval $ac_try) 2>&5
16917 ac_status=$?
16918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); }; } &&
16920 { ac_try='test -s conftest$ac_exeext'
16921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16922 (eval $ac_try) 2>&5
16923 ac_status=$?
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); }; }; then
16926 eval "$as_ac_var=yes"
16927 else
16928 echo "$as_me: failed program was:" >&5
16929 sed 's/^/| /' conftest.$ac_ext >&5
16931 eval "$as_ac_var=no"
16933 rm -f conftest.err conftest.$ac_objext \
16934 conftest$ac_exeext conftest.$ac_ext
16936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16937 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16938 if test `eval echo '${'$as_ac_var'}'` = yes; then
16939 cat >>confdefs.h <<_ACEOF
16940 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16941 _ACEOF
16944 done
16952 am_save_CPPFLAGS="$CPPFLAGS"
16954 for element in $INCICONV; do
16955 haveit=
16956 for x in $CPPFLAGS; do
16958 acl_save_prefix="$prefix"
16959 prefix="$acl_final_prefix"
16960 acl_save_exec_prefix="$exec_prefix"
16961 exec_prefix="$acl_final_exec_prefix"
16962 eval x=\"$x\"
16963 exec_prefix="$acl_save_exec_prefix"
16964 prefix="$acl_save_prefix"
16966 if test "X$x" = "X$element"; then
16967 haveit=yes
16968 break
16970 done
16971 if test -z "$haveit"; then
16972 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16974 done
16977 echo "$as_me:$LINENO: checking for iconv" >&5
16978 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
16979 if test "${am_cv_func_iconv+set}" = set; then
16980 echo $ECHO_N "(cached) $ECHO_C" >&6
16981 else
16983 am_cv_func_iconv="no, consider installing GNU libiconv"
16984 am_cv_lib_iconv=no
16985 cat >conftest.$ac_ext <<_ACEOF
16986 /* confdefs.h. */
16987 _ACEOF
16988 cat confdefs.h >>conftest.$ac_ext
16989 cat >>conftest.$ac_ext <<_ACEOF
16990 /* end confdefs.h. */
16991 #include <stdlib.h>
16992 #include <iconv.h>
16994 main ()
16996 iconv_t cd = iconv_open("","");
16997 iconv(cd,NULL,NULL,NULL,NULL);
16998 iconv_close(cd);
17000 return 0;
17002 _ACEOF
17003 rm -f conftest.$ac_objext conftest$ac_exeext
17004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17005 (eval $ac_link) 2>conftest.er1
17006 ac_status=$?
17007 grep -v '^ *+' conftest.er1 >conftest.err
17008 rm -f conftest.er1
17009 cat conftest.err >&5
17010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011 (exit $ac_status); } &&
17012 { ac_try='test -z "$ac_c_werror_flag"
17013 || test ! -s conftest.err'
17014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17015 (eval $ac_try) 2>&5
17016 ac_status=$?
17017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018 (exit $ac_status); }; } &&
17019 { ac_try='test -s conftest$ac_exeext'
17020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17021 (eval $ac_try) 2>&5
17022 ac_status=$?
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); }; }; then
17025 am_cv_func_iconv=yes
17026 else
17027 echo "$as_me: failed program was:" >&5
17028 sed 's/^/| /' conftest.$ac_ext >&5
17031 rm -f conftest.err conftest.$ac_objext \
17032 conftest$ac_exeext conftest.$ac_ext
17033 if test "$am_cv_func_iconv" != yes; then
17034 am_save_LIBS="$LIBS"
17035 LIBS="$LIBS $LIBICONV"
17036 cat >conftest.$ac_ext <<_ACEOF
17037 /* confdefs.h. */
17038 _ACEOF
17039 cat confdefs.h >>conftest.$ac_ext
17040 cat >>conftest.$ac_ext <<_ACEOF
17041 /* end confdefs.h. */
17042 #include <stdlib.h>
17043 #include <iconv.h>
17045 main ()
17047 iconv_t cd = iconv_open("","");
17048 iconv(cd,NULL,NULL,NULL,NULL);
17049 iconv_close(cd);
17051 return 0;
17053 _ACEOF
17054 rm -f conftest.$ac_objext conftest$ac_exeext
17055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17056 (eval $ac_link) 2>conftest.er1
17057 ac_status=$?
17058 grep -v '^ *+' conftest.er1 >conftest.err
17059 rm -f conftest.er1
17060 cat conftest.err >&5
17061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 (exit $ac_status); } &&
17063 { ac_try='test -z "$ac_c_werror_flag"
17064 || test ! -s conftest.err'
17065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17066 (eval $ac_try) 2>&5
17067 ac_status=$?
17068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); }; } &&
17070 { ac_try='test -s conftest$ac_exeext'
17071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17072 (eval $ac_try) 2>&5
17073 ac_status=$?
17074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075 (exit $ac_status); }; }; then
17076 am_cv_lib_iconv=yes
17077 am_cv_func_iconv=yes
17078 else
17079 echo "$as_me: failed program was:" >&5
17080 sed 's/^/| /' conftest.$ac_ext >&5
17083 rm -f conftest.err conftest.$ac_objext \
17084 conftest$ac_exeext conftest.$ac_ext
17085 LIBS="$am_save_LIBS"
17089 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17090 echo "${ECHO_T}$am_cv_func_iconv" >&6
17091 if test "$am_cv_func_iconv" = yes; then
17093 cat >>confdefs.h <<\_ACEOF
17094 #define HAVE_ICONV 1
17095 _ACEOF
17098 if test "$am_cv_lib_iconv" = yes; then
17099 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17100 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
17101 echo "$as_me:$LINENO: result: $LIBICONV" >&5
17102 echo "${ECHO_T}$LIBICONV" >&6
17103 else
17104 CPPFLAGS="$am_save_CPPFLAGS"
17105 LIBICONV=
17106 LTLIBICONV=
17111 if test "$am_cv_func_iconv" = yes; then
17112 echo "$as_me:$LINENO: checking for iconv declaration" >&5
17113 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
17114 if test "${am_cv_proto_iconv+set}" = set; then
17115 echo $ECHO_N "(cached) $ECHO_C" >&6
17116 else
17118 cat >conftest.$ac_ext <<_ACEOF
17119 /* confdefs.h. */
17120 _ACEOF
17121 cat confdefs.h >>conftest.$ac_ext
17122 cat >>conftest.$ac_ext <<_ACEOF
17123 /* end confdefs.h. */
17125 #include <stdlib.h>
17126 #include <iconv.h>
17127 extern
17128 #ifdef __cplusplus
17130 #endif
17131 #if defined(__STDC__) || defined(__cplusplus)
17132 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17133 #else
17134 size_t iconv();
17135 #endif
17138 main ()
17142 return 0;
17144 _ACEOF
17145 rm -f conftest.$ac_objext
17146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17147 (eval $ac_compile) 2>conftest.er1
17148 ac_status=$?
17149 grep -v '^ *+' conftest.er1 >conftest.err
17150 rm -f conftest.er1
17151 cat conftest.err >&5
17152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153 (exit $ac_status); } &&
17154 { ac_try='test -z "$ac_c_werror_flag"
17155 || test ! -s conftest.err'
17156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17157 (eval $ac_try) 2>&5
17158 ac_status=$?
17159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160 (exit $ac_status); }; } &&
17161 { ac_try='test -s conftest.$ac_objext'
17162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17163 (eval $ac_try) 2>&5
17164 ac_status=$?
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); }; }; then
17167 am_cv_proto_iconv_arg1=""
17168 else
17169 echo "$as_me: failed program was:" >&5
17170 sed 's/^/| /' conftest.$ac_ext >&5
17172 am_cv_proto_iconv_arg1="const"
17174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17175 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);"
17178 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
17179 echo "$as_me:$LINENO: result: ${ac_t:-
17180 }$am_cv_proto_iconv" >&5
17181 echo "${ECHO_T}${ac_t:-
17182 }$am_cv_proto_iconv" >&6
17184 cat >>confdefs.h <<_ACEOF
17185 #define ICONV_CONST $am_cv_proto_iconv_arg1
17186 _ACEOF
17191 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
17192 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
17193 if test "${am_cv_langinfo_codeset+set}" = set; then
17194 echo $ECHO_N "(cached) $ECHO_C" >&6
17195 else
17196 cat >conftest.$ac_ext <<_ACEOF
17197 /* confdefs.h. */
17198 _ACEOF
17199 cat confdefs.h >>conftest.$ac_ext
17200 cat >>conftest.$ac_ext <<_ACEOF
17201 /* end confdefs.h. */
17202 #include <langinfo.h>
17204 main ()
17206 char* cs = nl_langinfo(CODESET);
17208 return 0;
17210 _ACEOF
17211 rm -f conftest.$ac_objext conftest$ac_exeext
17212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17213 (eval $ac_link) 2>conftest.er1
17214 ac_status=$?
17215 grep -v '^ *+' conftest.er1 >conftest.err
17216 rm -f conftest.er1
17217 cat conftest.err >&5
17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); } &&
17220 { ac_try='test -z "$ac_c_werror_flag"
17221 || test ! -s conftest.err'
17222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17223 (eval $ac_try) 2>&5
17224 ac_status=$?
17225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226 (exit $ac_status); }; } &&
17227 { ac_try='test -s conftest$ac_exeext'
17228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17229 (eval $ac_try) 2>&5
17230 ac_status=$?
17231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232 (exit $ac_status); }; }; then
17233 am_cv_langinfo_codeset=yes
17234 else
17235 echo "$as_me: failed program was:" >&5
17236 sed 's/^/| /' conftest.$ac_ext >&5
17238 am_cv_langinfo_codeset=no
17240 rm -f conftest.err conftest.$ac_objext \
17241 conftest$ac_exeext conftest.$ac_ext
17244 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
17245 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
17246 if test $am_cv_langinfo_codeset = yes; then
17248 cat >>confdefs.h <<\_ACEOF
17249 #define HAVE_LANGINFO_CODESET 1
17250 _ACEOF
17254 if test $ac_cv_header_locale_h = yes; then
17256 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
17257 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
17258 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
17259 echo $ECHO_N "(cached) $ECHO_C" >&6
17260 else
17261 cat >conftest.$ac_ext <<_ACEOF
17262 /* confdefs.h. */
17263 _ACEOF
17264 cat confdefs.h >>conftest.$ac_ext
17265 cat >>conftest.$ac_ext <<_ACEOF
17266 /* end confdefs.h. */
17267 #include <locale.h>
17269 main ()
17271 return LC_MESSAGES
17273 return 0;
17275 _ACEOF
17276 rm -f conftest.$ac_objext conftest$ac_exeext
17277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17278 (eval $ac_link) 2>conftest.er1
17279 ac_status=$?
17280 grep -v '^ *+' conftest.er1 >conftest.err
17281 rm -f conftest.er1
17282 cat conftest.err >&5
17283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284 (exit $ac_status); } &&
17285 { ac_try='test -z "$ac_c_werror_flag"
17286 || test ! -s conftest.err'
17287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17288 (eval $ac_try) 2>&5
17289 ac_status=$?
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); }; } &&
17292 { ac_try='test -s conftest$ac_exeext'
17293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17294 (eval $ac_try) 2>&5
17295 ac_status=$?
17296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297 (exit $ac_status); }; }; then
17298 am_cv_val_LC_MESSAGES=yes
17299 else
17300 echo "$as_me: failed program was:" >&5
17301 sed 's/^/| /' conftest.$ac_ext >&5
17303 am_cv_val_LC_MESSAGES=no
17305 rm -f conftest.err conftest.$ac_objext \
17306 conftest$ac_exeext conftest.$ac_ext
17308 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
17309 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
17310 if test $am_cv_val_LC_MESSAGES = yes; then
17312 cat >>confdefs.h <<\_ACEOF
17313 #define HAVE_LC_MESSAGES 1
17314 _ACEOF
17320 for ac_prog in bison
17322 # Extract the first word of "$ac_prog", so it can be a program name with args.
17323 set dummy $ac_prog; ac_word=$2
17324 echo "$as_me:$LINENO: checking for $ac_word" >&5
17325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17326 if test "${ac_cv_prog_INTLBISON+set}" = set; then
17327 echo $ECHO_N "(cached) $ECHO_C" >&6
17328 else
17329 if test -n "$INTLBISON"; then
17330 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
17331 else
17332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17333 for as_dir in $PATH
17335 IFS=$as_save_IFS
17336 test -z "$as_dir" && as_dir=.
17337 for ac_exec_ext in '' $ac_executable_extensions; do
17338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17339 ac_cv_prog_INTLBISON="$ac_prog"
17340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17341 break 2
17343 done
17344 done
17348 INTLBISON=$ac_cv_prog_INTLBISON
17349 if test -n "$INTLBISON"; then
17350 echo "$as_me:$LINENO: result: $INTLBISON" >&5
17351 echo "${ECHO_T}$INTLBISON" >&6
17352 else
17353 echo "$as_me:$LINENO: result: no" >&5
17354 echo "${ECHO_T}no" >&6
17357 test -n "$INTLBISON" && break
17358 done
17360 if test -z "$INTLBISON"; then
17361 ac_verc_fail=yes
17362 else
17363 echo "$as_me:$LINENO: checking version of bison" >&5
17364 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
17365 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
17366 case $ac_prog_version in
17367 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
17368 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
17369 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
17370 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
17371 esac
17372 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
17373 echo "${ECHO_T}$ac_prog_version" >&6
17375 if test $ac_verc_fail = yes; then
17376 INTLBISON=:
17381 # Check whether --with-language or --without-language was given.
17382 if test "${with_language+set}" = set; then
17383 withval="$with_language"
17384 if test "$withval" != "all"; then
17385 LINGUAS="`echo $withval | sed -e 's/,/ /g'`"
17404 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17405 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
17406 # Check whether --enable-nls or --disable-nls was given.
17407 if test "${enable_nls+set}" = set; then
17408 enableval="$enable_nls"
17409 USE_NLS=$enableval
17410 else
17411 USE_NLS=yes
17413 echo "$as_me:$LINENO: result: $USE_NLS" >&5
17414 echo "${ECHO_T}$USE_NLS" >&6
17418 BUILD_INCLUDED_LIBINTL=no
17419 USE_INCLUDED_LIBINTL=no
17421 LIBINTL=
17422 LTLIBINTL=
17423 POSUB=
17425 if test "$USE_NLS" = "yes"; then
17426 gt_use_preinstalled_gnugettext=no
17428 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
17429 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
17431 # Check whether --with-included-gettext or --without-included-gettext was given.
17432 if test "${with_included_gettext+set}" = set; then
17433 withval="$with_included_gettext"
17434 nls_cv_force_use_gnu_gettext=$withval
17435 else
17436 nls_cv_force_use_gnu_gettext=no
17438 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
17439 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
17441 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
17442 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
17449 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17450 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
17451 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
17452 echo $ECHO_N "(cached) $ECHO_C" >&6
17453 else
17454 cat >conftest.$ac_ext <<_ACEOF
17455 /* confdefs.h. */
17456 _ACEOF
17457 cat confdefs.h >>conftest.$ac_ext
17458 cat >>conftest.$ac_ext <<_ACEOF
17459 /* end confdefs.h. */
17460 #include <libintl.h>
17461 extern int _nl_msg_cat_cntr;
17462 extern int *_nl_domain_bindings;
17464 main ()
17466 bindtextdomain ("", "");
17467 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
17469 return 0;
17471 _ACEOF
17472 rm -f conftest.$ac_objext conftest$ac_exeext
17473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17474 (eval $ac_link) 2>conftest.er1
17475 ac_status=$?
17476 grep -v '^ *+' conftest.er1 >conftest.err
17477 rm -f conftest.er1
17478 cat conftest.err >&5
17479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480 (exit $ac_status); } &&
17481 { ac_try='test -z "$ac_c_werror_flag"
17482 || test ! -s conftest.err'
17483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17484 (eval $ac_try) 2>&5
17485 ac_status=$?
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); }; } &&
17488 { ac_try='test -s conftest$ac_exeext'
17489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17490 (eval $ac_try) 2>&5
17491 ac_status=$?
17492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493 (exit $ac_status); }; }; then
17494 gt_cv_func_gnugettext2_libc=yes
17495 else
17496 echo "$as_me: failed program was:" >&5
17497 sed 's/^/| /' conftest.$ac_ext >&5
17499 gt_cv_func_gnugettext2_libc=no
17501 rm -f conftest.err conftest.$ac_objext \
17502 conftest$ac_exeext conftest.$ac_ext
17504 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
17505 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
17507 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
17511 use_additional=yes
17513 acl_save_prefix="$prefix"
17514 prefix="$acl_final_prefix"
17515 acl_save_exec_prefix="$exec_prefix"
17516 exec_prefix="$acl_final_exec_prefix"
17518 eval additional_includedir=\"$includedir\"
17519 eval additional_libdir=\"$libdir\"
17521 exec_prefix="$acl_save_exec_prefix"
17522 prefix="$acl_save_prefix"
17525 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
17526 if test "${with_libintl_prefix+set}" = set; then
17527 withval="$with_libintl_prefix"
17529 if test "X$withval" = "Xno"; then
17530 use_additional=no
17531 else
17532 if test "X$withval" = "X"; then
17534 acl_save_prefix="$prefix"
17535 prefix="$acl_final_prefix"
17536 acl_save_exec_prefix="$exec_prefix"
17537 exec_prefix="$acl_final_exec_prefix"
17539 eval additional_includedir=\"$includedir\"
17540 eval additional_libdir=\"$libdir\"
17542 exec_prefix="$acl_save_exec_prefix"
17543 prefix="$acl_save_prefix"
17545 else
17546 additional_includedir="$withval/include"
17547 additional_libdir="$withval/lib"
17552 LIBINTL=
17553 LTLIBINTL=
17554 INCINTL=
17555 rpathdirs=
17556 ltrpathdirs=
17557 names_already_handled=
17558 names_next_round='intl '
17559 while test -n "$names_next_round"; do
17560 names_this_round="$names_next_round"
17561 names_next_round=
17562 for name in $names_this_round; do
17563 already_handled=
17564 for n in $names_already_handled; do
17565 if test "$n" = "$name"; then
17566 already_handled=yes
17567 break
17569 done
17570 if test -z "$already_handled"; then
17571 names_already_handled="$names_already_handled $name"
17572 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17573 eval value=\"\$HAVE_LIB$uppername\"
17574 if test -n "$value"; then
17575 if test "$value" = yes; then
17576 eval value=\"\$LIB$uppername\"
17577 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17578 eval value=\"\$LTLIB$uppername\"
17579 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17580 else
17583 else
17584 found_dir=
17585 found_la=
17586 found_so=
17587 found_a=
17588 if test $use_additional = yes; then
17589 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17590 found_dir="$additional_libdir"
17591 found_so="$additional_libdir/lib$name.$shlibext"
17592 if test -f "$additional_libdir/lib$name.la"; then
17593 found_la="$additional_libdir/lib$name.la"
17595 else
17596 if test -f "$additional_libdir/lib$name.$libext"; then
17597 found_dir="$additional_libdir"
17598 found_a="$additional_libdir/lib$name.$libext"
17599 if test -f "$additional_libdir/lib$name.la"; then
17600 found_la="$additional_libdir/lib$name.la"
17605 if test "X$found_dir" = "X"; then
17606 for x in $LDFLAGS $LTLIBINTL; do
17608 acl_save_prefix="$prefix"
17609 prefix="$acl_final_prefix"
17610 acl_save_exec_prefix="$exec_prefix"
17611 exec_prefix="$acl_final_exec_prefix"
17612 eval x=\"$x\"
17613 exec_prefix="$acl_save_exec_prefix"
17614 prefix="$acl_save_prefix"
17616 case "$x" in
17617 -L*)
17618 dir=`echo "X$x" | sed -e 's/^X-L//'`
17619 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17620 found_dir="$dir"
17621 found_so="$dir/lib$name.$shlibext"
17622 if test -f "$dir/lib$name.la"; then
17623 found_la="$dir/lib$name.la"
17625 else
17626 if test -f "$dir/lib$name.$libext"; then
17627 found_dir="$dir"
17628 found_a="$dir/lib$name.$libext"
17629 if test -f "$dir/lib$name.la"; then
17630 found_la="$dir/lib$name.la"
17635 esac
17636 if test "X$found_dir" != "X"; then
17637 break
17639 done
17641 if test "X$found_dir" != "X"; then
17642 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17643 if test "X$found_so" != "X"; then
17644 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17645 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17646 else
17647 haveit=
17648 for x in $ltrpathdirs; do
17649 if test "X$x" = "X$found_dir"; then
17650 haveit=yes
17651 break
17653 done
17654 if test -z "$haveit"; then
17655 ltrpathdirs="$ltrpathdirs $found_dir"
17657 if test "$hardcode_direct" = yes; then
17658 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17659 else
17660 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17661 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17662 haveit=
17663 for x in $rpathdirs; do
17664 if test "X$x" = "X$found_dir"; then
17665 haveit=yes
17666 break
17668 done
17669 if test -z "$haveit"; then
17670 rpathdirs="$rpathdirs $found_dir"
17672 else
17673 haveit=
17674 for x in $LDFLAGS $LIBINTL; do
17676 acl_save_prefix="$prefix"
17677 prefix="$acl_final_prefix"
17678 acl_save_exec_prefix="$exec_prefix"
17679 exec_prefix="$acl_final_exec_prefix"
17680 eval x=\"$x\"
17681 exec_prefix="$acl_save_exec_prefix"
17682 prefix="$acl_save_prefix"
17684 if test "X$x" = "X-L$found_dir"; then
17685 haveit=yes
17686 break
17688 done
17689 if test -z "$haveit"; then
17690 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17692 if test "$hardcode_minus_L" != no; then
17693 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17694 else
17695 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17700 else
17701 if test "X$found_a" != "X"; then
17702 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17703 else
17704 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17707 additional_includedir=
17708 case "$found_dir" in
17709 */lib | */lib/)
17710 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17711 additional_includedir="$basedir/include"
17713 esac
17714 if test "X$additional_includedir" != "X"; then
17715 if test "X$additional_includedir" != "X/usr/include"; then
17716 haveit=
17717 if test "X$additional_includedir" = "X/usr/local/include"; then
17718 if test -n "$GCC"; then
17719 case $host_os in
17720 linux*) haveit=yes;;
17721 esac
17724 if test -z "$haveit"; then
17725 for x in $CPPFLAGS $INCINTL; do
17727 acl_save_prefix="$prefix"
17728 prefix="$acl_final_prefix"
17729 acl_save_exec_prefix="$exec_prefix"
17730 exec_prefix="$acl_final_exec_prefix"
17731 eval x=\"$x\"
17732 exec_prefix="$acl_save_exec_prefix"
17733 prefix="$acl_save_prefix"
17735 if test "X$x" = "X-I$additional_includedir"; then
17736 haveit=yes
17737 break
17739 done
17740 if test -z "$haveit"; then
17741 if test -d "$additional_includedir"; then
17742 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17748 if test -n "$found_la"; then
17749 save_libdir="$libdir"
17750 case "$found_la" in
17751 */* | *\\*) . "$found_la" ;;
17752 *) . "./$found_la" ;;
17753 esac
17754 libdir="$save_libdir"
17755 for dep in $dependency_libs; do
17756 case "$dep" in
17757 -L*)
17758 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17759 if test "X$additional_libdir" != "X/usr/lib"; then
17760 haveit=
17761 if test "X$additional_libdir" = "X/usr/local/lib"; then
17762 if test -n "$GCC"; then
17763 case $host_os in
17764 linux*) haveit=yes;;
17765 esac
17768 if test -z "$haveit"; then
17769 haveit=
17770 for x in $LDFLAGS $LIBINTL; do
17772 acl_save_prefix="$prefix"
17773 prefix="$acl_final_prefix"
17774 acl_save_exec_prefix="$exec_prefix"
17775 exec_prefix="$acl_final_exec_prefix"
17776 eval x=\"$x\"
17777 exec_prefix="$acl_save_exec_prefix"
17778 prefix="$acl_save_prefix"
17780 if test "X$x" = "X-L$additional_libdir"; then
17781 haveit=yes
17782 break
17784 done
17785 if test -z "$haveit"; then
17786 if test -d "$additional_libdir"; then
17787 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17790 haveit=
17791 for x in $LDFLAGS $LTLIBINTL; do
17793 acl_save_prefix="$prefix"
17794 prefix="$acl_final_prefix"
17795 acl_save_exec_prefix="$exec_prefix"
17796 exec_prefix="$acl_final_exec_prefix"
17797 eval x=\"$x\"
17798 exec_prefix="$acl_save_exec_prefix"
17799 prefix="$acl_save_prefix"
17801 if test "X$x" = "X-L$additional_libdir"; then
17802 haveit=yes
17803 break
17805 done
17806 if test -z "$haveit"; then
17807 if test -d "$additional_libdir"; then
17808 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17814 -R*)
17815 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17816 if test "$enable_rpath" != no; then
17817 haveit=
17818 for x in $rpathdirs; do
17819 if test "X$x" = "X$dir"; then
17820 haveit=yes
17821 break
17823 done
17824 if test -z "$haveit"; then
17825 rpathdirs="$rpathdirs $dir"
17827 haveit=
17828 for x in $ltrpathdirs; do
17829 if test "X$x" = "X$dir"; then
17830 haveit=yes
17831 break
17833 done
17834 if test -z "$haveit"; then
17835 ltrpathdirs="$ltrpathdirs $dir"
17839 -l*)
17840 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17842 *.la)
17843 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17846 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17847 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17849 esac
17850 done
17852 else
17853 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17854 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17858 done
17859 done
17860 if test "X$rpathdirs" != "X"; then
17861 if test -n "$hardcode_libdir_separator"; then
17862 alldirs=
17863 for found_dir in $rpathdirs; do
17864 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17865 done
17866 acl_save_libdir="$libdir"
17867 libdir="$alldirs"
17868 eval flag=\"$hardcode_libdir_flag_spec\"
17869 libdir="$acl_save_libdir"
17870 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17871 else
17872 for found_dir in $rpathdirs; do
17873 acl_save_libdir="$libdir"
17874 libdir="$found_dir"
17875 eval flag=\"$hardcode_libdir_flag_spec\"
17876 libdir="$acl_save_libdir"
17877 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17878 done
17881 if test "X$ltrpathdirs" != "X"; then
17882 for found_dir in $ltrpathdirs; do
17883 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17884 done
17887 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
17888 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
17889 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
17890 echo $ECHO_N "(cached) $ECHO_C" >&6
17891 else
17892 gt_save_CPPFLAGS="$CPPFLAGS"
17893 CPPFLAGS="$CPPFLAGS $INCINTL"
17894 gt_save_LIBS="$LIBS"
17895 LIBS="$LIBS $LIBINTL"
17896 cat >conftest.$ac_ext <<_ACEOF
17897 /* confdefs.h. */
17898 _ACEOF
17899 cat confdefs.h >>conftest.$ac_ext
17900 cat >>conftest.$ac_ext <<_ACEOF
17901 /* end confdefs.h. */
17902 #include <libintl.h>
17903 extern int _nl_msg_cat_cntr;
17904 extern
17905 #ifdef __cplusplus
17907 #endif
17908 const char *_nl_expand_alias ();
17910 main ()
17912 bindtextdomain ("", "");
17913 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17915 return 0;
17917 _ACEOF
17918 rm -f conftest.$ac_objext conftest$ac_exeext
17919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17920 (eval $ac_link) 2>conftest.er1
17921 ac_status=$?
17922 grep -v '^ *+' conftest.er1 >conftest.err
17923 rm -f conftest.er1
17924 cat conftest.err >&5
17925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); } &&
17927 { ac_try='test -z "$ac_c_werror_flag"
17928 || test ! -s conftest.err'
17929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17930 (eval $ac_try) 2>&5
17931 ac_status=$?
17932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933 (exit $ac_status); }; } &&
17934 { ac_try='test -s conftest$ac_exeext'
17935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17936 (eval $ac_try) 2>&5
17937 ac_status=$?
17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); }; }; then
17940 gt_cv_func_gnugettext2_libintl=yes
17941 else
17942 echo "$as_me: failed program was:" >&5
17943 sed 's/^/| /' conftest.$ac_ext >&5
17945 gt_cv_func_gnugettext2_libintl=no
17947 rm -f conftest.err conftest.$ac_objext \
17948 conftest$ac_exeext conftest.$ac_ext
17949 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
17950 LIBS="$LIBS $LIBICONV"
17951 cat >conftest.$ac_ext <<_ACEOF
17952 /* confdefs.h. */
17953 _ACEOF
17954 cat confdefs.h >>conftest.$ac_ext
17955 cat >>conftest.$ac_ext <<_ACEOF
17956 /* end confdefs.h. */
17957 #include <libintl.h>
17958 extern int _nl_msg_cat_cntr;
17959 extern
17960 #ifdef __cplusplus
17962 #endif
17963 const char *_nl_expand_alias ();
17965 main ()
17967 bindtextdomain ("", "");
17968 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17970 return 0;
17972 _ACEOF
17973 rm -f conftest.$ac_objext conftest$ac_exeext
17974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17975 (eval $ac_link) 2>conftest.er1
17976 ac_status=$?
17977 grep -v '^ *+' conftest.er1 >conftest.err
17978 rm -f conftest.er1
17979 cat conftest.err >&5
17980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17981 (exit $ac_status); } &&
17982 { ac_try='test -z "$ac_c_werror_flag"
17983 || test ! -s conftest.err'
17984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17985 (eval $ac_try) 2>&5
17986 ac_status=$?
17987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988 (exit $ac_status); }; } &&
17989 { ac_try='test -s conftest$ac_exeext'
17990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17991 (eval $ac_try) 2>&5
17992 ac_status=$?
17993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17994 (exit $ac_status); }; }; then
17995 LIBINTL="$LIBINTL $LIBICONV"
17996 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17997 gt_cv_func_gnugettext2_libintl=yes
17999 else
18000 echo "$as_me: failed program was:" >&5
18001 sed 's/^/| /' conftest.$ac_ext >&5
18004 rm -f conftest.err conftest.$ac_objext \
18005 conftest$ac_exeext conftest.$ac_ext
18007 CPPFLAGS="$gt_save_CPPFLAGS"
18008 LIBS="$gt_save_LIBS"
18010 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
18011 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
18014 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
18015 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
18016 && test "$PACKAGE" != gettext; }; then
18017 gt_use_preinstalled_gnugettext=yes
18018 else
18019 LIBINTL=
18020 LTLIBINTL=
18021 INCINTL=
18025 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
18026 nls_cv_use_gnu_gettext=yes
18030 if test "$nls_cv_use_gnu_gettext" = "yes"; then
18031 INTLOBJS="\$(GETTOBJS)"
18032 BUILD_INCLUDED_LIBINTL=yes
18033 USE_INCLUDED_LIBINTL=yes
18034 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
18035 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
18036 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
18039 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18040 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18041 CATOBJEXT=.gmo
18045 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18046 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18048 cat >>confdefs.h <<\_ACEOF
18049 #define ENABLE_NLS 1
18050 _ACEOF
18052 else
18053 USE_NLS=no
18057 if test "$USE_NLS" = "yes"; then
18059 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18060 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
18061 echo "$as_me:$LINENO: checking how to link with libintl" >&5
18062 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
18063 echo "$as_me:$LINENO: result: $LIBINTL" >&5
18064 echo "${ECHO_T}$LIBINTL" >&6
18066 for element in $INCINTL; do
18067 haveit=
18068 for x in $CPPFLAGS; do
18070 acl_save_prefix="$prefix"
18071 prefix="$acl_final_prefix"
18072 acl_save_exec_prefix="$exec_prefix"
18073 exec_prefix="$acl_final_exec_prefix"
18074 eval x=\"$x\"
18075 exec_prefix="$acl_save_exec_prefix"
18076 prefix="$acl_save_prefix"
18078 if test "X$x" = "X$element"; then
18079 haveit=yes
18080 break
18082 done
18083 if test -z "$haveit"; then
18084 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18086 done
18091 cat >>confdefs.h <<\_ACEOF
18092 #define HAVE_GETTEXT 1
18093 _ACEOF
18096 cat >>confdefs.h <<\_ACEOF
18097 #define HAVE_DCGETTEXT 1
18098 _ACEOF
18102 POSUB=po
18106 if test "$PACKAGE" = gettext; then
18107 BUILD_INCLUDED_LIBINTL=yes
18115 nls_cv_header_intl=
18116 nls_cv_header_libgt=
18118 DATADIRNAME=share
18121 INSTOBJEXT=.mo
18124 GENCAT=gencat
18127 INTL_LIBTOOL_SUFFIX_PREFIX=
18131 INTLLIBS="$LIBINTL"
18138 if test $USE_INCLUDED_LIBINTL = yes; then
18139 INCINTL=-I\${top_builddir}/intl
18143 if test x$USE_NLS = xyes; then
18145 echo "$as_me:$LINENO: checking for autopoint" >&5
18146 echo $ECHO_N "checking for autopoint... $ECHO_C" >&6
18147 autopoint_version=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
18148 if test -n "$autopoint_version"; then
18150 echo "$as_me:$LINENO: result: yes ($autopoint_version)" >&5
18151 echo "${ECHO_T}yes ($autopoint_version)" >&6
18154 else
18156 echo "$as_me:$LINENO: result: no" >&5
18157 echo "${ECHO_T}no" >&6
18158 USE_NLS=no
18165 if test x$USE_NLS = xno -a x${enable_nls:-yes} = xyes; then
18166 { echo "$as_me:$LINENO: WARNING:
18167 You need to install GNU gettext/gettext-tools to compile aMule with
18168 i18n support." >&5
18169 echo "$as_me: WARNING:
18170 You need to install GNU gettext/gettext-tools to compile aMule with
18171 i18n support." >&2;}
18172 _mule_warning_8=yes
18173 _mule_has_warnings=yes
18178 if test ${USE_NLS:-no} = yes; then
18180 echo "$as_me:$LINENO: checking for requested languages" >&5
18181 echo $ECHO_N "checking for requested languages... $ECHO_C" >&6
18182 Generate_Langs=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
18184 if test "$AMULE_DAEMON" = "yes"; then
18186 if test -z "$LINGUAS"; then
18187 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
18188 else
18190 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18191 AMULE_DAEMON_MANPAGES="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
18195 AMULE_DAEMON_MANPAGES=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
18197 else
18198 AMULE_DAEMON_MANPAGES=
18204 if test "$AMULECMD" = "yes"; then
18206 if test -z "$LINGUAS"; then
18207 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
18208 else
18210 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18211 AMULECMD_MANPAGES="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
18215 AMULECMD_MANPAGES=`echo $AMULECMD_MANPAGES | tr -d '\n'`
18217 else
18218 AMULECMD_MANPAGES=
18224 if test "$WEB" = "yes"; then
18226 if test -z "$LINGUAS"; then
18227 WEB_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
18228 else
18230 WEB_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18231 WEB_MANPAGES="`basename docs/man/amuleweb.1` $WEB_MANPAGES"
18235 WEB_MANPAGES=`echo $WEB_MANPAGES | tr -d '\n'`
18237 else
18238 WEB_MANPAGES=
18244 if test "$AMULE_GUI" = "yes"; then
18246 if test -z "$LINGUAS"; then
18247 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
18248 else
18250 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18251 AMULE_GUI_MANPAGES="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
18255 AMULE_GUI_MANPAGES=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
18257 else
18258 AMULE_GUI_MANPAGES=
18264 if test "$CAS" = "yes"; then
18266 if test -z "$LINGUAS"; then
18267 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
18268 else
18270 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18271 CAS_MANPAGES="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
18275 CAS_MANPAGES=`echo $CAS_MANPAGES | tr -d '\n'`
18277 else
18278 CAS_MANPAGES=
18284 if test "$WXCAS" = "yes"; then
18286 if test -z "$LINGUAS"; then
18287 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
18288 else
18290 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18291 WXCAS_MANPAGES="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
18295 WXCAS_MANPAGES=`echo $WXCAS_MANPAGES | tr -d '\n'`
18297 else
18298 WXCAS_MANPAGES=
18304 if test "$ED2K" = "yes"; then
18306 if test -z "$LINGUAS"; then
18307 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
18308 else
18310 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18311 ED2K_MANPAGES="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
18315 ED2K_MANPAGES=`echo $ED2K_MANPAGES | tr -d '\n'`
18317 else
18318 ED2K_MANPAGES=
18324 if test "$ALC" = "yes"; then
18326 if test -z "$LINGUAS"; then
18327 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
18328 else
18330 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18331 ALC_MANPAGES="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
18335 ALC_MANPAGES=`echo $ALC_MANPAGES | tr -d '\n'`
18337 else
18338 ALC_MANPAGES=
18344 if test "$ALCC" = "yes"; then
18346 if test -z "$LINGUAS"; then
18347 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
18348 else
18350 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18351 ALCC_MANPAGES="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
18355 ALCC_MANPAGES=`echo $ALCC_MANPAGES | tr -d '\n'`
18357 else
18358 ALCC_MANPAGES=
18364 if test "$MONOLITHIC" = "yes"; then
18366 if test -z "$LINGUAS"; then
18367 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
18368 else
18370 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18371 MONOLITHIC_MANPAGES="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
18375 MONOLITHIC_MANPAGES=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
18377 else
18378 MONOLITHIC_MANPAGES=
18383 echo "$as_me:$LINENO: result: ${LINGUAS:-all}" >&5
18384 echo "${ECHO_T}${LINGUAS:-all}" >&6
18391 # Check for bfd.h (to have proper backtraces without using wxExecute)
18393 echo "$as_me:$LINENO: checking for bfd" >&5
18394 echo $ECHO_N "checking for bfd... $ECHO_C" >&6
18395 result=no
18396 for bfd_ldadd in "" "${LIBINTL}"; do
18397 mule_backup_LIBS="$LIBS"
18398 mule_backup_LDFLAGS="$LDFLAGS"
18399 LIBS="-lbfd -liberty ${bfd_ldadd} ${ZLIB_LIBS} $LIBS"
18400 LDFLAGS="$LDFLAGS ${ZLIB_LDFLAGS}"
18401 cat >conftest.$ac_ext <<_ACEOF
18403 /* confdefs.h. */
18404 _ACEOF
18405 cat confdefs.h >>conftest.$ac_ext
18406 cat >>conftest.$ac_ext <<_ACEOF
18407 /* end confdefs.h. */
18409 #include <ansidecl.h>
18410 #include <bfd.h>
18413 main ()
18416 char *dummy = bfd_errmsg(bfd_get_error());
18419 return 0;
18422 _ACEOF
18423 rm -f conftest.$ac_objext conftest$ac_exeext
18424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18425 (eval $ac_link) 2>conftest.er1
18426 ac_status=$?
18427 grep -v '^ *+' conftest.er1 >conftest.err
18428 rm -f conftest.er1
18429 cat conftest.err >&5
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); } &&
18432 { ac_try='test -z "$ac_c_werror_flag"
18433 || test ! -s conftest.err'
18434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18435 (eval $ac_try) 2>&5
18436 ac_status=$?
18437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); }; } &&
18439 { ac_try='test -s conftest$ac_exeext'
18440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18441 (eval $ac_try) 2>&5
18442 ac_status=$?
18443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444 (exit $ac_status); }; }; then
18446 result=yes
18447 BFD_CPPFLAGS="-DHAVE_BFD"
18448 BFD_LIBS="-lbfd -liberty ${bfd_ldadd}"
18449 LIBS="$mule_backup_LIBS"
18450 LDFLAGS="$mule_backup_LDFLAGS"
18451 break
18453 else
18454 echo "$as_me: failed program was:" >&5
18455 sed 's/^/| /' conftest.$ac_ext >&5
18458 rm -f conftest.err conftest.$ac_objext \
18459 conftest$ac_exeext conftest.$ac_ext
18460 LIBS="$mule_backup_LIBS"
18461 LDFLAGS="$mule_backup_LDFLAGS"
18462 done
18464 echo "$as_me:$LINENO: result: $result" >&5
18465 echo "${ECHO_T}$result" >&6
18467 if test $result = no; then
18468 { echo "$as_me:$LINENO: WARNING:
18469 bfd.h not found or unusable, please install binutils development
18470 package if you are a developer or want to help testing aMule" >&5
18471 echo "$as_me: WARNING:
18472 bfd.h not found or unusable, please install binutils development
18473 package if you are a developer or want to help testing aMule" >&2;}
18474 _mule_warning_9=yes
18475 _mule_has_warnings=yes
18482 echo "$as_me:$LINENO: checking for <execinfo.h> and backtrace()" >&5
18483 echo $ECHO_N "checking for <execinfo.h> and backtrace()... $ECHO_C" >&6
18484 cat >conftest.$ac_ext <<_ACEOF
18486 /* confdefs.h. */
18487 _ACEOF
18488 cat confdefs.h >>conftest.$ac_ext
18489 cat >>conftest.$ac_ext <<_ACEOF
18490 /* end confdefs.h. */
18492 #include <execinfo.h>
18495 main ()
18498 void *bt[1];
18499 int n = backtrace(&bt, 1);
18500 const char **bt_syms = backtrace_symbols(bt, n);
18503 return 0;
18506 _ACEOF
18507 rm -f conftest.$ac_objext conftest$ac_exeext
18508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18509 (eval $ac_link) 2>conftest.er1
18510 ac_status=$?
18511 grep -v '^ *+' conftest.er1 >conftest.err
18512 rm -f conftest.er1
18513 cat conftest.err >&5
18514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515 (exit $ac_status); } &&
18516 { ac_try='test -z "$ac_c_werror_flag"
18517 || test ! -s conftest.err'
18518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18519 (eval $ac_try) 2>&5
18520 ac_status=$?
18521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522 (exit $ac_status); }; } &&
18523 { ac_try='test -s conftest$ac_exeext'
18524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18525 (eval $ac_try) 2>&5
18526 ac_status=$?
18527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528 (exit $ac_status); }; }; then
18532 cat >>confdefs.h <<\_ACEOF
18533 #define HAVE_EXECINFO 1
18534 _ACEOF
18536 echo "$as_me:$LINENO: result: yes" >&5
18537 echo "${ECHO_T}yes" >&6
18539 else
18540 echo "$as_me: failed program was:" >&5
18541 sed 's/^/| /' conftest.$ac_ext >&5
18544 echo "$as_me:$LINENO: result: no" >&5
18545 echo "${ECHO_T}no" >&6
18548 rm -f conftest.err conftest.$ac_objext \
18549 conftest$ac_exeext conftest.$ac_ext
18552 # Flush standard test results for speeding cache
18553 cat >confcache <<\_ACEOF
18554 # This file is a shell script that caches the results of configure
18555 # tests run on this system so they can be shared between configure
18556 # scripts and configure runs, see configure's option --config-cache.
18557 # It is not useful on other systems. If it contains results you don't
18558 # want to keep, you may remove or edit it.
18560 # config.status only pays attention to the cache file if you give it
18561 # the --recheck option to rerun configure.
18563 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18564 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18565 # following values.
18567 _ACEOF
18569 # The following way of writing the cache mishandles newlines in values,
18570 # but we know of no workaround that is simple, portable, and efficient.
18571 # So, don't put newlines in cache variables' values.
18572 # Ultrix sh set writes to stderr and can't be redirected directly,
18573 # and sets the high bit in the cache file unless we assign to the vars.
18575 (set) 2>&1 |
18576 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18577 *ac_space=\ *)
18578 # `set' does not quote correctly, so add quotes (double-quote
18579 # substitution turns \\\\ into \\, and sed turns \\ into \).
18580 sed -n \
18581 "s/'/'\\\\''/g;
18582 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18585 # `set' quotes correctly as required by POSIX, so do not add quotes.
18586 sed -n \
18587 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18589 esac;
18591 sed '
18592 t clear
18593 : clear
18594 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18595 t end
18596 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18597 : end' >>confcache
18598 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18599 if test -w $cache_file; then
18600 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18601 cat confcache >$cache_file
18602 else
18603 echo "not updating unwritable cache $cache_file"
18606 rm -f confcache
18608 # Other tests
18609 # aMule options
18612 # Check whether --enable-debug or --disable-debug was given.
18613 if test "${enable_debug+set}" = set; then
18614 enableval="$enable_debug"
18615 USE_DEBUG=${enableval:-yes}
18616 else
18617 USE_DEBUG=yes
18620 if test $USE_DEBUG = yes; then
18622 MULECPPFLAGS="$MULECPPFLAGS -D__DEBUG__"
18624 MULECFLAGS="$MULECFLAGS -g"
18625 MULECXXFLAGS="$MULECXXFLAGS -g"
18627 if test ${GLIBCXX:-no} = yes; then
18628 MULECPPFLAGS="$MULECPPFLAGS -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC"
18631 if test ${GCC:-no} = yes; then
18633 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18634 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18638 if test ${SYS:-unknown} = win32; then
18639 MULERCFLAGS="$MULERCFLAGS -D__DEBUG__"
18643 else
18645 if test ${GCC:-no} = yes; then
18647 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef"
18648 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef"
18657 # Check whether --enable-optimize or --disable-optimize was given.
18658 if test "${enable_optimize+set}" = set; then
18659 enableval="$enable_optimize"
18660 USE_OPTIMIZE=${enableval:-no}
18661 else
18662 USE_OPTIMIZE=no
18665 if test $USE_OPTIMIZE = yes; then
18667 MULECFLAGS="$MULECFLAGS -O2"
18668 MULECXXFLAGS="$MULECXXFLAGS -O2"
18674 # Check whether --enable-profile or --disable-profile was given.
18675 if test "${enable_profile+set}" = set; then
18676 enableval="$enable_profile"
18677 USE_PROFILE=${enableval:-no}
18678 else
18679 USE_PROFILE=no
18682 if test $USE_PROFILE = yes; then
18685 MULECFLAGS="$MULECFLAGS -pg"
18686 MULECXXFLAGS="$MULECXXFLAGS -pg"
18688 MULELDFLAGS="$MULELDFLAGS -pg"
18694 echo "$as_me:$LINENO: checking if the applications should be statically linked" >&5
18695 echo $ECHO_N "checking if the applications should be statically linked... $ECHO_C" >&6
18696 # Check whether --enable-static or --disable-static was given.
18697 if test "${enable_static+set}" = set; then
18698 enableval="$enable_static"
18699 if test ${enableval:-no} = yes; then
18700 MULELDFLAGS="$MULELDFLAGS -static"
18704 echo "$as_me:$LINENO: result: ${enableval:-no}" >&5
18705 echo "${ECHO_T}${enableval:-no}" >&6
18707 MULECPPFLAGS="$MULECPPFLAGS -DUSE_WX_EXTENSIONS"
18710 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
18711 echo "$as_me:$LINENO: checking for docdir" >&5
18712 echo $ECHO_N "checking for docdir... $ECHO_C" >&6
18713 if test -z "$docdir"; then
18714 docdir="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}"
18717 echo "$as_me:$LINENO: result: $docdir" >&5
18718 echo "${ECHO_T}$docdir" >&6
18720 # Try to set the SVN checkout-date
18721 echo "$as_me:$LINENO: checking for SVNDATE" >&5
18722 echo $ECHO_N "checking for SVNDATE... $ECHO_C" >&6
18723 if test -f "$srcdir/.svn-revision" # SVNDATE for tarballs
18724 then
18725 svndate="rev. `cat $srcdir/.svn-revision`"
18726 elif test -d $srcdir/.svn # SVNDATE for svn
18727 then
18728 svndate="rev. `svnversion $srcdir | sed -e 's/[0-9][0-9]*:\(.*\)/\1/' -e 's/\([0-9][0-9]*\).*/\1/'`"
18730 echo "$as_me:$LINENO: result: ${svndate:-None required}" >&5
18731 echo "${ECHO_T}${svndate:-None required}" >&6
18732 if test -n "$svndate"; then
18735 cat >>confdefs.h <<_ACEOF
18736 #define SVNDATE "$svndate"
18737 _ACEOF
18739 MULERCFLAGS="$MULERCFLAGS -D__PRERELEASE__"
18743 SVNDATE=$svndate
18747 # Check whether --with-denoise-level or --without-denoise-level was given.
18748 if test "${with_denoise_level+set}" = set; then
18749 withval="$with_denoise_level"
18753 echo "$as_me:$LINENO: checking denoising level" >&5
18754 echo $ECHO_N "checking denoising level... $ECHO_C" >&6
18755 if test ${with_denoise_level:-5} = yes; then
18756 with_denoise_level=5
18759 if test ${with_denoise_level:-5} = no; then
18760 with_denoise_level=0
18763 if test ${with_denoise_level:-5} -gt 4; then
18764 if test "${svndate:+set}" = "set"; then
18765 with_denoise_level=0
18766 else
18767 with_denoise_level=4
18772 echo "$as_me:$LINENO: result: $with_denoise_level" >&5
18773 echo "${ECHO_T}$with_denoise_level" >&6
18775 ac_config_commands="$ac_config_commands denoiser"
18781 if test x$WEB = xyes; then
18782 WEB_TRUE=
18783 WEB_FALSE='#'
18784 else
18785 WEB_TRUE='#'
18786 WEB_FALSE=
18791 if test x$ED2K = xyes; then
18792 ED2K_TRUE=
18793 ED2K_FALSE='#'
18794 else
18795 ED2K_TRUE='#'
18796 ED2K_FALSE=
18801 if test x$CAS = xyes; then
18802 CAS_TRUE=
18803 CAS_FALSE='#'
18804 else
18805 CAS_TRUE='#'
18806 CAS_FALSE=
18811 if test x$WXCAS = xyes; then
18812 WXCAS_TRUE=
18813 WXCAS_FALSE='#'
18814 else
18815 WXCAS_TRUE='#'
18816 WXCAS_FALSE=
18821 if test x$ALC = xyes; then
18822 ALC_TRUE=
18823 ALC_FALSE='#'
18824 else
18825 ALC_TRUE='#'
18826 ALC_FALSE=
18831 if test x$ALCC = xyes; then
18832 ALCC_TRUE=
18833 ALCC_FALSE='#'
18834 else
18835 ALCC_TRUE='#'
18836 ALCC_FALSE=
18841 if test x$AMULE_GUI = xyes; then
18842 AMULE_GUI_TRUE=
18843 AMULE_GUI_FALSE='#'
18844 else
18845 AMULE_GUI_TRUE='#'
18846 AMULE_GUI_FALSE=
18851 if test x$AMULE_DAEMON = xyes; then
18852 AMULE_DAEMON_TRUE=
18853 AMULE_DAEMON_FALSE='#'
18854 else
18855 AMULE_DAEMON_TRUE='#'
18856 AMULE_DAEMON_FALSE=
18861 if test x$AMULECMD = xyes; then
18862 COMPILE_CMD_TRUE=
18863 COMPILE_CMD_FALSE='#'
18864 else
18865 COMPILE_CMD_TRUE='#'
18866 COMPILE_CMD_FALSE=
18871 if test x$MONOLITHIC = xyes; then
18872 MONOLITHIC_TRUE=
18873 MONOLITHIC_FALSE='#'
18874 else
18875 MONOLITHIC_TRUE='#'
18876 MONOLITHIC_FALSE=
18881 if test x$XAS = xyes; then
18882 XAS_TRUE=
18883 XAS_FALSE='#'
18884 else
18885 XAS_TRUE='#'
18886 XAS_FALSE=
18891 if test x$FILEVIEW = xyes; then
18892 FILEVIEW_TRUE=
18893 FILEVIEW_FALSE='#'
18894 else
18895 FILEVIEW_TRUE='#'
18896 FILEVIEW_FALSE=
18901 if test x$ENABLE_UPNP = xyes; then
18902 ENABLE_UPNP_TRUE=
18903 ENABLE_UPNP_FALSE='#'
18904 else
18905 ENABLE_UPNP_TRUE='#'
18906 ENABLE_UPNP_FALSE=
18911 if test x$ENABLE_IP2COUNTRY = xyes; then
18912 ENABLE_IP2COUNTRY_TRUE=
18913 ENABLE_IP2COUNTRY_FALSE='#'
18914 else
18915 ENABLE_IP2COUNTRY_TRUE='#'
18916 ENABLE_IP2COUNTRY_FALSE=
18921 if test x$SYS = xwin32; then
18922 SYS_WIN32_TRUE=
18923 SYS_WIN32_FALSE='#'
18924 else
18925 SYS_WIN32_TRUE='#'
18926 SYS_WIN32_FALSE=
18931 if test x$SYS = xwin32 -a "$RC" != ":"; then
18932 NEED_RC_TRUE=
18933 NEED_RC_FALSE='#'
18934 else
18935 NEED_RC_TRUE='#'
18936 NEED_RC_FALSE=
18941 if test x$SYS = xdarwin; then
18942 NEED_CORESERVICES_TRUE=
18943 NEED_CORESERVICES_FALSE='#'
18944 else
18945 NEED_CORESERVICES_TRUE='#'
18946 NEED_CORESERVICES_FALSE=
18951 if test x$USE_NLS = xyes; then
18952 COMPILE_NLS_TRUE=
18953 COMPILE_NLS_FALSE='#'
18954 else
18955 COMPILE_NLS_TRUE='#'
18956 COMPILE_NLS_FALSE=
18961 if test x$HAVE_FLEX_EXTENDED = xyes; then
18962 GENERATE_FLEX_HEADER_TRUE=
18963 GENERATE_FLEX_HEADER_FALSE='#'
18964 else
18965 GENERATE_FLEX_HEADER_TRUE='#'
18966 GENERATE_FLEX_HEADER_FALSE=
18971 if test x$INSTALL_SKINS = xyes; then
18972 INSTALL_SKINS_TRUE=
18973 INSTALL_SKINS_FALSE='#'
18974 else
18975 INSTALL_SKINS_TRUE='#'
18976 INSTALL_SKINS_FALSE=
18980 # Check for readline library
18981 if test x$AMULECMD = xyes -o x$WEB = xyes; then
18983 echo "$as_me:$LINENO: checking for a readline compatible library" >&5
18984 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6
18985 if test "${vl_cv_lib_readline+set}" = set; then
18986 echo $ECHO_N "(cached) $ECHO_C" >&6
18987 else
18989 ORIG_LIBS="$LIBS"
18990 for readline_lib in readline edit editline; do
18991 for termcap_lib in "" termcap curses ncurses; do
18992 if test -z "$termcap_lib"; then
18993 TRY_LIB="-l$readline_lib"
18994 else
18995 TRY_LIB="-l$readline_lib -l$termcap_lib"
18997 LIBS="$ORIG_LIBS $TRY_LIB"
18998 cat >conftest.$ac_ext <<_ACEOF
18999 /* confdefs.h. */
19000 _ACEOF
19001 cat confdefs.h >>conftest.$ac_ext
19002 cat >>conftest.$ac_ext <<_ACEOF
19003 /* end confdefs.h. */
19005 /* Override any gcc2 internal prototype to avoid an error. */
19006 #ifdef __cplusplus
19007 extern "C"
19008 #endif
19009 /* We use char because int might match the return type of a gcc2
19010 builtin and then its argument prototype would still apply. */
19011 char readline ();
19013 main ()
19015 readline ();
19017 return 0;
19019 _ACEOF
19020 rm -f conftest.$ac_objext conftest$ac_exeext
19021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19022 (eval $ac_link) 2>conftest.er1
19023 ac_status=$?
19024 grep -v '^ *+' conftest.er1 >conftest.err
19025 rm -f conftest.er1
19026 cat conftest.err >&5
19027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); } &&
19029 { ac_try='test -z "$ac_c_werror_flag"
19030 || test ! -s conftest.err'
19031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19032 (eval $ac_try) 2>&5
19033 ac_status=$?
19034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035 (exit $ac_status); }; } &&
19036 { ac_try='test -s conftest$ac_exeext'
19037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19038 (eval $ac_try) 2>&5
19039 ac_status=$?
19040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041 (exit $ac_status); }; }; then
19042 vl_cv_lib_readline="$TRY_LIB"
19043 else
19044 echo "$as_me: failed program was:" >&5
19045 sed 's/^/| /' conftest.$ac_ext >&5
19048 rm -f conftest.err conftest.$ac_objext \
19049 conftest$ac_exeext conftest.$ac_ext
19050 if test -n "$vl_cv_lib_readline"; then
19051 break
19053 done
19054 if test -n "$vl_cv_lib_readline"; then
19055 break
19057 done
19058 if test -z "$vl_cv_lib_readline"; then
19059 vl_cv_lib_readline="no"
19060 LIBS="$ORIG_LIBS"
19061 READLINE_LIBS=""
19062 else
19063 READLINE_LIBS="$vl_cv_lib_readline"
19067 echo "$as_me:$LINENO: result: $vl_cv_lib_readline" >&5
19068 echo "${ECHO_T}$vl_cv_lib_readline" >&6
19070 if test "$vl_cv_lib_readline" != "no"; then
19072 cat >>confdefs.h <<\_ACEOF
19073 #define HAVE_LIBREADLINE 1
19074 _ACEOF
19078 for ac_header in readline.h readline/readline.h
19080 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19082 echo "$as_me:$LINENO: checking for $ac_header" >&5
19083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19085 echo $ECHO_N "(cached) $ECHO_C" >&6
19087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19089 else
19090 # Is the header compilable?
19091 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19092 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19093 cat >conftest.$ac_ext <<_ACEOF
19094 /* confdefs.h. */
19095 _ACEOF
19096 cat confdefs.h >>conftest.$ac_ext
19097 cat >>conftest.$ac_ext <<_ACEOF
19098 /* end confdefs.h. */
19099 $ac_includes_default
19100 #include <$ac_header>
19101 _ACEOF
19102 rm -f conftest.$ac_objext
19103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19104 (eval $ac_compile) 2>conftest.er1
19105 ac_status=$?
19106 grep -v '^ *+' conftest.er1 >conftest.err
19107 rm -f conftest.er1
19108 cat conftest.err >&5
19109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19110 (exit $ac_status); } &&
19111 { ac_try='test -z "$ac_c_werror_flag"
19112 || test ! -s conftest.err'
19113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19114 (eval $ac_try) 2>&5
19115 ac_status=$?
19116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117 (exit $ac_status); }; } &&
19118 { ac_try='test -s conftest.$ac_objext'
19119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19120 (eval $ac_try) 2>&5
19121 ac_status=$?
19122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123 (exit $ac_status); }; }; then
19124 ac_header_compiler=yes
19125 else
19126 echo "$as_me: failed program was:" >&5
19127 sed 's/^/| /' conftest.$ac_ext >&5
19129 ac_header_compiler=no
19131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19132 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19133 echo "${ECHO_T}$ac_header_compiler" >&6
19135 # Is the header present?
19136 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19137 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19138 cat >conftest.$ac_ext <<_ACEOF
19139 /* confdefs.h. */
19140 _ACEOF
19141 cat confdefs.h >>conftest.$ac_ext
19142 cat >>conftest.$ac_ext <<_ACEOF
19143 /* end confdefs.h. */
19144 #include <$ac_header>
19145 _ACEOF
19146 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19147 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19148 ac_status=$?
19149 grep -v '^ *+' conftest.er1 >conftest.err
19150 rm -f conftest.er1
19151 cat conftest.err >&5
19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153 (exit $ac_status); } >/dev/null; then
19154 if test -s conftest.err; then
19155 ac_cpp_err=$ac_c_preproc_warn_flag
19156 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19157 else
19158 ac_cpp_err=
19160 else
19161 ac_cpp_err=yes
19163 if test -z "$ac_cpp_err"; then
19164 ac_header_preproc=yes
19165 else
19166 echo "$as_me: failed program was:" >&5
19167 sed 's/^/| /' conftest.$ac_ext >&5
19169 ac_header_preproc=no
19171 rm -f conftest.err conftest.$ac_ext
19172 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19173 echo "${ECHO_T}$ac_header_preproc" >&6
19175 # So? What about this header?
19176 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19177 yes:no: )
19178 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19179 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19181 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19182 ac_header_preproc=yes
19184 no:yes:* )
19185 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19186 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19187 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19188 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19189 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19190 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19191 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19192 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19195 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19196 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19198 cat <<\_ASBOX
19199 ## ------------------------------ ##
19200 ## Report this to admin@amule.org ##
19201 ## ------------------------------ ##
19202 _ASBOX
19204 sed "s/^/$as_me: WARNING: /" >&2
19206 esac
19207 echo "$as_me:$LINENO: checking for $ac_header" >&5
19208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19210 echo $ECHO_N "(cached) $ECHO_C" >&6
19211 else
19212 eval "$as_ac_Header=\$ac_header_preproc"
19214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19215 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19218 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19219 cat >>confdefs.h <<_ACEOF
19220 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19221 _ACEOF
19225 done
19227 echo "$as_me:$LINENO: checking whether readline supports history" >&5
19228 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6
19229 if test "${vl_cv_lib_readline_history+set}" = set; then
19230 echo $ECHO_N "(cached) $ECHO_C" >&6
19231 else
19233 vl_cv_lib_readline_history="no"
19234 cat >conftest.$ac_ext <<_ACEOF
19235 /* confdefs.h. */
19236 _ACEOF
19237 cat confdefs.h >>conftest.$ac_ext
19238 cat >>conftest.$ac_ext <<_ACEOF
19239 /* end confdefs.h. */
19241 /* Override any gcc2 internal prototype to avoid an error. */
19242 #ifdef __cplusplus
19243 extern "C"
19244 #endif
19245 /* We use char because int might match the return type of a gcc2
19246 builtin and then its argument prototype would still apply. */
19247 char add_history ();
19249 main ()
19251 add_history ();
19253 return 0;
19255 _ACEOF
19256 rm -f conftest.$ac_objext conftest$ac_exeext
19257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19258 (eval $ac_link) 2>conftest.er1
19259 ac_status=$?
19260 grep -v '^ *+' conftest.er1 >conftest.err
19261 rm -f conftest.er1
19262 cat conftest.err >&5
19263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264 (exit $ac_status); } &&
19265 { ac_try='test -z "$ac_c_werror_flag"
19266 || test ! -s conftest.err'
19267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19268 (eval $ac_try) 2>&5
19269 ac_status=$?
19270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271 (exit $ac_status); }; } &&
19272 { ac_try='test -s conftest$ac_exeext'
19273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19274 (eval $ac_try) 2>&5
19275 ac_status=$?
19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); }; }; then
19278 vl_cv_lib_readline_history="yes"
19279 else
19280 echo "$as_me: failed program was:" >&5
19281 sed 's/^/| /' conftest.$ac_ext >&5
19284 rm -f conftest.err conftest.$ac_objext \
19285 conftest$ac_exeext conftest.$ac_ext
19288 echo "$as_me:$LINENO: result: $vl_cv_lib_readline_history" >&5
19289 echo "${ECHO_T}$vl_cv_lib_readline_history" >&6
19290 if test "$vl_cv_lib_readline_history" = "yes"; then
19292 cat >>confdefs.h <<\_ACEOF
19293 #define HAVE_READLINE_HISTORY 1
19294 _ACEOF
19298 for ac_header in history.h readline/history.h
19300 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19302 echo "$as_me:$LINENO: checking for $ac_header" >&5
19303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19305 echo $ECHO_N "(cached) $ECHO_C" >&6
19307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19309 else
19310 # Is the header compilable?
19311 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19312 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19313 cat >conftest.$ac_ext <<_ACEOF
19314 /* confdefs.h. */
19315 _ACEOF
19316 cat confdefs.h >>conftest.$ac_ext
19317 cat >>conftest.$ac_ext <<_ACEOF
19318 /* end confdefs.h. */
19319 $ac_includes_default
19320 #include <$ac_header>
19321 _ACEOF
19322 rm -f conftest.$ac_objext
19323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19324 (eval $ac_compile) 2>conftest.er1
19325 ac_status=$?
19326 grep -v '^ *+' conftest.er1 >conftest.err
19327 rm -f conftest.er1
19328 cat conftest.err >&5
19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); } &&
19331 { ac_try='test -z "$ac_c_werror_flag"
19332 || test ! -s conftest.err'
19333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19334 (eval $ac_try) 2>&5
19335 ac_status=$?
19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 (exit $ac_status); }; } &&
19338 { ac_try='test -s conftest.$ac_objext'
19339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19340 (eval $ac_try) 2>&5
19341 ac_status=$?
19342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343 (exit $ac_status); }; }; then
19344 ac_header_compiler=yes
19345 else
19346 echo "$as_me: failed program was:" >&5
19347 sed 's/^/| /' conftest.$ac_ext >&5
19349 ac_header_compiler=no
19351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19352 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19353 echo "${ECHO_T}$ac_header_compiler" >&6
19355 # Is the header present?
19356 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19357 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19358 cat >conftest.$ac_ext <<_ACEOF
19359 /* confdefs.h. */
19360 _ACEOF
19361 cat confdefs.h >>conftest.$ac_ext
19362 cat >>conftest.$ac_ext <<_ACEOF
19363 /* end confdefs.h. */
19364 #include <$ac_header>
19365 _ACEOF
19366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19368 ac_status=$?
19369 grep -v '^ *+' conftest.er1 >conftest.err
19370 rm -f conftest.er1
19371 cat conftest.err >&5
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); } >/dev/null; then
19374 if test -s conftest.err; then
19375 ac_cpp_err=$ac_c_preproc_warn_flag
19376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19377 else
19378 ac_cpp_err=
19380 else
19381 ac_cpp_err=yes
19383 if test -z "$ac_cpp_err"; then
19384 ac_header_preproc=yes
19385 else
19386 echo "$as_me: failed program was:" >&5
19387 sed 's/^/| /' conftest.$ac_ext >&5
19389 ac_header_preproc=no
19391 rm -f conftest.err conftest.$ac_ext
19392 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19393 echo "${ECHO_T}$ac_header_preproc" >&6
19395 # So? What about this header?
19396 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19397 yes:no: )
19398 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19399 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19401 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19402 ac_header_preproc=yes
19404 no:yes:* )
19405 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19406 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19407 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19408 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19409 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19410 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19411 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19412 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19414 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19415 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19416 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19418 cat <<\_ASBOX
19419 ## ------------------------------ ##
19420 ## Report this to admin@amule.org ##
19421 ## ------------------------------ ##
19422 _ASBOX
19424 sed "s/^/$as_me: WARNING: /" >&2
19426 esac
19427 echo "$as_me:$LINENO: checking for $ac_header" >&5
19428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19430 echo $ECHO_N "(cached) $ECHO_C" >&6
19431 else
19432 eval "$as_ac_Header=\$ac_header_preproc"
19434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19439 cat >>confdefs.h <<_ACEOF
19440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19441 _ACEOF
19445 done
19450 LIBS="$ORIG_LIBS"
19454 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
19457 # Check whether --enable-ccache or --disable-ccache was given.
19458 if test "${enable_ccache+set}" = set; then
19459 enableval="$enable_ccache"
19464 # Check whether --with-ccache-prefix or --without-ccache-prefix was given.
19465 if test "${with_ccache_prefix+set}" = set; then
19466 withval="$with_ccache_prefix"
19470 echo "$as_me:$LINENO: checking whether ccache support should be added" >&5
19471 echo $ECHO_N "checking whether ccache support should be added... $ECHO_C" >&6
19472 echo "$as_me:$LINENO: result: ${enable_ccache:-no}" >&5
19473 echo "${ECHO_T}${enable_ccache:-no}" >&6
19475 if test ${enable_ccache:-no} = yes; then
19477 echo "$as_me:$LINENO: checking for ccache presence" >&5
19478 echo $ECHO_N "checking for ccache presence... $ECHO_C" >&6
19479 if test -z "$with_ccache_prefix"; then
19481 ccache_full=`which ccache`
19482 with_ccache_prefix=`dirname ${ccache_full}`
19486 if $with_ccache_prefix/ccache -V >/dev/null 2>&1; then
19488 echo "$as_me:$LINENO: result: yes" >&5
19489 echo "${ECHO_T}yes" >&6
19490 CC="$with_ccache_prefix/ccache $CC"
19491 CXX="$with_ccache_prefix/ccache $CXX"
19492 BUILD_CC="$with_ccache_prefix/ccache $BUILD_CC"
19494 else
19496 enable_ccache=no
19497 echo "$as_me:$LINENO: result: no" >&5
19498 echo "${ECHO_T}no" >&6
19507 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"
19509 ac_config_files="$ac_config_files po/Makefile.in Compilation.flags"
19511 if test x$SYS = xwin32; then
19512 ac_config_files="$ac_config_files version.rc"
19516 cat >confcache <<\_ACEOF
19517 # This file is a shell script that caches the results of configure
19518 # tests run on this system so they can be shared between configure
19519 # scripts and configure runs, see configure's option --config-cache.
19520 # It is not useful on other systems. If it contains results you don't
19521 # want to keep, you may remove or edit it.
19523 # config.status only pays attention to the cache file if you give it
19524 # the --recheck option to rerun configure.
19526 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19527 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19528 # following values.
19530 _ACEOF
19532 # The following way of writing the cache mishandles newlines in values,
19533 # but we know of no workaround that is simple, portable, and efficient.
19534 # So, don't put newlines in cache variables' values.
19535 # Ultrix sh set writes to stderr and can't be redirected directly,
19536 # and sets the high bit in the cache file unless we assign to the vars.
19538 (set) 2>&1 |
19539 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19540 *ac_space=\ *)
19541 # `set' does not quote correctly, so add quotes (double-quote
19542 # substitution turns \\\\ into \\, and sed turns \\ into \).
19543 sed -n \
19544 "s/'/'\\\\''/g;
19545 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19548 # `set' quotes correctly as required by POSIX, so do not add quotes.
19549 sed -n \
19550 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19552 esac;
19554 sed '
19555 t clear
19556 : clear
19557 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19558 t end
19559 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19560 : end' >>confcache
19561 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19562 if test -w $cache_file; then
19563 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19564 cat confcache >$cache_file
19565 else
19566 echo "not updating unwritable cache $cache_file"
19569 rm -f confcache
19571 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19572 # Let make expand exec_prefix.
19573 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19575 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19576 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19577 # trailing colons and then remove the whole line if VPATH becomes empty
19578 # (actually we leave an empty line to preserve line numbers).
19579 if test "x$srcdir" = x.; then
19580 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19581 s/:*\$(srcdir):*/:/;
19582 s/:*\${srcdir}:*/:/;
19583 s/:*@srcdir@:*/:/;
19584 s/^\([^=]*=[ ]*\):*/\1/;
19585 s/:*$//;
19586 s/^[^=]*=[ ]*$//;
19590 DEFS=-DHAVE_CONFIG_H
19592 ac_libobjs=
19593 ac_ltlibobjs=
19594 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19595 # 1. Remove the extension, and $U if already installed.
19596 ac_i=`echo "$ac_i" |
19597 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19598 # 2. Add them.
19599 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19600 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19601 done
19602 LIBOBJS=$ac_libobjs
19604 LTLIBOBJS=$ac_ltlibobjs
19607 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19608 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19609 Usually this means the macro was only invoked conditionally." >&5
19610 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19611 Usually this means the macro was only invoked conditionally." >&2;}
19612 { (exit 1); exit 1; }; }
19614 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19615 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19616 Usually this means the macro was only invoked conditionally." >&5
19617 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19618 Usually this means the macro was only invoked conditionally." >&2;}
19619 { (exit 1); exit 1; }; }
19621 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19622 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19623 Usually this means the macro was only invoked conditionally." >&5
19624 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19625 Usually this means the macro was only invoked conditionally." >&2;}
19626 { (exit 1); exit 1; }; }
19628 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19629 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19630 Usually this means the macro was only invoked conditionally." >&5
19631 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19632 Usually this means the macro was only invoked conditionally." >&2;}
19633 { (exit 1); exit 1; }; }
19635 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
19636 { { echo "$as_me:$LINENO: error: conditional \"WEB\" was never defined.
19637 Usually this means the macro was only invoked conditionally." >&5
19638 echo "$as_me: error: conditional \"WEB\" was never defined.
19639 Usually this means the macro was only invoked conditionally." >&2;}
19640 { (exit 1); exit 1; }; }
19642 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
19643 { { echo "$as_me:$LINENO: error: conditional \"ED2K\" was never defined.
19644 Usually this means the macro was only invoked conditionally." >&5
19645 echo "$as_me: error: conditional \"ED2K\" was never defined.
19646 Usually this means the macro was only invoked conditionally." >&2;}
19647 { (exit 1); exit 1; }; }
19649 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
19650 { { echo "$as_me:$LINENO: error: conditional \"CAS\" was never defined.
19651 Usually this means the macro was only invoked conditionally." >&5
19652 echo "$as_me: error: conditional \"CAS\" was never defined.
19653 Usually this means the macro was only invoked conditionally." >&2;}
19654 { (exit 1); exit 1; }; }
19656 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
19657 { { echo "$as_me:$LINENO: error: conditional \"WXCAS\" was never defined.
19658 Usually this means the macro was only invoked conditionally." >&5
19659 echo "$as_me: error: conditional \"WXCAS\" was never defined.
19660 Usually this means the macro was only invoked conditionally." >&2;}
19661 { (exit 1); exit 1; }; }
19663 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
19664 { { echo "$as_me:$LINENO: error: conditional \"ALC\" was never defined.
19665 Usually this means the macro was only invoked conditionally." >&5
19666 echo "$as_me: error: conditional \"ALC\" was never defined.
19667 Usually this means the macro was only invoked conditionally." >&2;}
19668 { (exit 1); exit 1; }; }
19670 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
19671 { { echo "$as_me:$LINENO: error: conditional \"ALCC\" was never defined.
19672 Usually this means the macro was only invoked conditionally." >&5
19673 echo "$as_me: error: conditional \"ALCC\" was never defined.
19674 Usually this means the macro was only invoked conditionally." >&2;}
19675 { (exit 1); exit 1; }; }
19677 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
19678 { { echo "$as_me:$LINENO: error: conditional \"AMULE_GUI\" was never defined.
19679 Usually this means the macro was only invoked conditionally." >&5
19680 echo "$as_me: error: conditional \"AMULE_GUI\" was never defined.
19681 Usually this means the macro was only invoked conditionally." >&2;}
19682 { (exit 1); exit 1; }; }
19684 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
19685 { { echo "$as_me:$LINENO: error: conditional \"AMULE_DAEMON\" was never defined.
19686 Usually this means the macro was only invoked conditionally." >&5
19687 echo "$as_me: error: conditional \"AMULE_DAEMON\" was never defined.
19688 Usually this means the macro was only invoked conditionally." >&2;}
19689 { (exit 1); exit 1; }; }
19691 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
19692 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_CMD\" was never defined.
19693 Usually this means the macro was only invoked conditionally." >&5
19694 echo "$as_me: error: conditional \"COMPILE_CMD\" was never defined.
19695 Usually this means the macro was only invoked conditionally." >&2;}
19696 { (exit 1); exit 1; }; }
19698 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
19699 { { echo "$as_me:$LINENO: error: conditional \"MONOLITHIC\" was never defined.
19700 Usually this means the macro was only invoked conditionally." >&5
19701 echo "$as_me: error: conditional \"MONOLITHIC\" was never defined.
19702 Usually this means the macro was only invoked conditionally." >&2;}
19703 { (exit 1); exit 1; }; }
19705 if test -z "${XAS_TRUE}" && test -z "${XAS_FALSE}"; then
19706 { { echo "$as_me:$LINENO: error: conditional \"XAS\" was never defined.
19707 Usually this means the macro was only invoked conditionally." >&5
19708 echo "$as_me: error: conditional \"XAS\" was never defined.
19709 Usually this means the macro was only invoked conditionally." >&2;}
19710 { (exit 1); exit 1; }; }
19712 if test -z "${FILEVIEW_TRUE}" && test -z "${FILEVIEW_FALSE}"; then
19713 { { echo "$as_me:$LINENO: error: conditional \"FILEVIEW\" was never defined.
19714 Usually this means the macro was only invoked conditionally." >&5
19715 echo "$as_me: error: conditional \"FILEVIEW\" was never defined.
19716 Usually this means the macro was only invoked conditionally." >&2;}
19717 { (exit 1); exit 1; }; }
19719 if test -z "${ENABLE_UPNP_TRUE}" && test -z "${ENABLE_UPNP_FALSE}"; then
19720 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_UPNP\" was never defined.
19721 Usually this means the macro was only invoked conditionally." >&5
19722 echo "$as_me: error: conditional \"ENABLE_UPNP\" was never defined.
19723 Usually this means the macro was only invoked conditionally." >&2;}
19724 { (exit 1); exit 1; }; }
19726 if test -z "${ENABLE_IP2COUNTRY_TRUE}" && test -z "${ENABLE_IP2COUNTRY_FALSE}"; then
19727 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
19728 Usually this means the macro was only invoked conditionally." >&5
19729 echo "$as_me: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
19730 Usually this means the macro was only invoked conditionally." >&2;}
19731 { (exit 1); exit 1; }; }
19733 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
19734 { { echo "$as_me:$LINENO: error: conditional \"SYS_WIN32\" was never defined.
19735 Usually this means the macro was only invoked conditionally." >&5
19736 echo "$as_me: error: conditional \"SYS_WIN32\" was never defined.
19737 Usually this means the macro was only invoked conditionally." >&2;}
19738 { (exit 1); exit 1; }; }
19740 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
19741 { { echo "$as_me:$LINENO: error: conditional \"NEED_RC\" was never defined.
19742 Usually this means the macro was only invoked conditionally." >&5
19743 echo "$as_me: error: conditional \"NEED_RC\" was never defined.
19744 Usually this means the macro was only invoked conditionally." >&2;}
19745 { (exit 1); exit 1; }; }
19747 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
19748 { { echo "$as_me:$LINENO: error: conditional \"NEED_CORESERVICES\" was never defined.
19749 Usually this means the macro was only invoked conditionally." >&5
19750 echo "$as_me: error: conditional \"NEED_CORESERVICES\" was never defined.
19751 Usually this means the macro was only invoked conditionally." >&2;}
19752 { (exit 1); exit 1; }; }
19754 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
19755 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_NLS\" was never defined.
19756 Usually this means the macro was only invoked conditionally." >&5
19757 echo "$as_me: error: conditional \"COMPILE_NLS\" was never defined.
19758 Usually this means the macro was only invoked conditionally." >&2;}
19759 { (exit 1); exit 1; }; }
19761 if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then
19762 { { echo "$as_me:$LINENO: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19763 Usually this means the macro was only invoked conditionally." >&5
19764 echo "$as_me: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19765 Usually this means the macro was only invoked conditionally." >&2;}
19766 { (exit 1); exit 1; }; }
19768 if test -z "${INSTALL_SKINS_TRUE}" && test -z "${INSTALL_SKINS_FALSE}"; then
19769 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_SKINS\" was never defined.
19770 Usually this means the macro was only invoked conditionally." >&5
19771 echo "$as_me: error: conditional \"INSTALL_SKINS\" was never defined.
19772 Usually this means the macro was only invoked conditionally." >&2;}
19773 { (exit 1); exit 1; }; }
19776 : ${CONFIG_STATUS=./config.status}
19777 ac_clean_files_save=$ac_clean_files
19778 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19779 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19780 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19781 cat >$CONFIG_STATUS <<_ACEOF
19782 #! $SHELL
19783 # Generated by $as_me.
19784 # Run this file to recreate the current configuration.
19785 # Compiler output produced by configure, useful for debugging
19786 # configure, is in config.log if it exists.
19788 debug=false
19789 ac_cs_recheck=false
19790 ac_cs_silent=false
19791 SHELL=\${CONFIG_SHELL-$SHELL}
19792 _ACEOF
19794 cat >>$CONFIG_STATUS <<\_ACEOF
19795 ## --------------------- ##
19796 ## M4sh Initialization. ##
19797 ## --------------------- ##
19799 # Be Bourne compatible
19800 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19801 emulate sh
19802 NULLCMD=:
19803 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19804 # is contrary to our usage. Disable this feature.
19805 alias -g '${1+"$@"}'='"$@"'
19806 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19807 set -o posix
19809 DUALCASE=1; export DUALCASE # for MKS sh
19811 # Support unset when possible.
19812 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19813 as_unset=unset
19814 else
19815 as_unset=false
19819 # Work around bugs in pre-3.0 UWIN ksh.
19820 $as_unset ENV MAIL MAILPATH
19821 PS1='$ '
19822 PS2='> '
19823 PS4='+ '
19825 # NLS nuisances.
19826 for as_var in \
19827 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19828 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19829 LC_TELEPHONE LC_TIME
19831 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19832 eval $as_var=C; export $as_var
19833 else
19834 $as_unset $as_var
19836 done
19838 # Required to use basename.
19839 if expr a : '\(a\)' >/dev/null 2>&1; then
19840 as_expr=expr
19841 else
19842 as_expr=false
19845 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19846 as_basename=basename
19847 else
19848 as_basename=false
19852 # Name of the executable.
19853 as_me=`$as_basename "$0" ||
19854 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19855 X"$0" : 'X\(//\)$' \| \
19856 X"$0" : 'X\(/\)$' \| \
19857 . : '\(.\)' 2>/dev/null ||
19858 echo X/"$0" |
19859 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19860 /^X\/\(\/\/\)$/{ s//\1/; q; }
19861 /^X\/\(\/\).*/{ s//\1/; q; }
19862 s/.*/./; q'`
19865 # PATH needs CR, and LINENO needs CR and PATH.
19866 # Avoid depending upon Character Ranges.
19867 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19868 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19869 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19870 as_cr_digits='0123456789'
19871 as_cr_alnum=$as_cr_Letters$as_cr_digits
19873 # The user is always right.
19874 if test "${PATH_SEPARATOR+set}" != set; then
19875 echo "#! /bin/sh" >conf$$.sh
19876 echo "exit 0" >>conf$$.sh
19877 chmod +x conf$$.sh
19878 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19879 PATH_SEPARATOR=';'
19880 else
19881 PATH_SEPARATOR=:
19883 rm -f conf$$.sh
19887 as_lineno_1=$LINENO
19888 as_lineno_2=$LINENO
19889 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19890 test "x$as_lineno_1" != "x$as_lineno_2" &&
19891 test "x$as_lineno_3" = "x$as_lineno_2" || {
19892 # Find who we are. Look in the path if we contain no path at all
19893 # relative or not.
19894 case $0 in
19895 *[\\/]* ) as_myself=$0 ;;
19896 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19897 for as_dir in $PATH
19899 IFS=$as_save_IFS
19900 test -z "$as_dir" && as_dir=.
19901 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19902 done
19905 esac
19906 # We did not find ourselves, most probably we were run as `sh COMMAND'
19907 # in which case we are not to be found in the path.
19908 if test "x$as_myself" = x; then
19909 as_myself=$0
19911 if test ! -f "$as_myself"; then
19912 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19913 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19914 { (exit 1); exit 1; }; }
19916 case $CONFIG_SHELL in
19918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19919 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19921 IFS=$as_save_IFS
19922 test -z "$as_dir" && as_dir=.
19923 for as_base in sh bash ksh sh5; do
19924 case $as_dir in
19926 if ("$as_dir/$as_base" -c '
19927 as_lineno_1=$LINENO
19928 as_lineno_2=$LINENO
19929 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19930 test "x$as_lineno_1" != "x$as_lineno_2" &&
19931 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19932 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19933 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19934 CONFIG_SHELL=$as_dir/$as_base
19935 export CONFIG_SHELL
19936 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19937 fi;;
19938 esac
19939 done
19940 done
19942 esac
19944 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19945 # uniformly replaced by the line number. The first 'sed' inserts a
19946 # line-number line before each line; the second 'sed' does the real
19947 # work. The second script uses 'N' to pair each line-number line
19948 # with the numbered line, and appends trailing '-' during
19949 # substitution so that $LINENO is not a special case at line end.
19950 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19951 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19952 sed '=' <$as_myself |
19953 sed '
19955 s,$,-,
19956 : loop
19957 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19958 t loop
19959 s,-$,,
19960 s,^['$as_cr_digits']*\n,,
19961 ' >$as_me.lineno &&
19962 chmod +x $as_me.lineno ||
19963 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19964 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19965 { (exit 1); exit 1; }; }
19967 # Don't try to exec as it changes $[0], causing all sort of problems
19968 # (the dirname of $[0] is not the place where we might find the
19969 # original and so on. Autoconf is especially sensible to this).
19970 . ./$as_me.lineno
19971 # Exit status is that of the last command.
19972 exit
19976 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19977 *c*,-n*) ECHO_N= ECHO_C='
19978 ' ECHO_T=' ' ;;
19979 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19980 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19981 esac
19983 if expr a : '\(a\)' >/dev/null 2>&1; then
19984 as_expr=expr
19985 else
19986 as_expr=false
19989 rm -f conf$$ conf$$.exe conf$$.file
19990 echo >conf$$.file
19991 if ln -s conf$$.file conf$$ 2>/dev/null; then
19992 # We could just check for DJGPP; but this test a) works b) is more generic
19993 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19994 if test -f conf$$.exe; then
19995 # Don't use ln at all; we don't have any links
19996 as_ln_s='cp -p'
19997 else
19998 as_ln_s='ln -s'
20000 elif ln conf$$.file conf$$ 2>/dev/null; then
20001 as_ln_s=ln
20002 else
20003 as_ln_s='cp -p'
20005 rm -f conf$$ conf$$.exe conf$$.file
20007 if mkdir -p . 2>/dev/null; then
20008 as_mkdir_p=:
20009 else
20010 test -d ./-p && rmdir ./-p
20011 as_mkdir_p=false
20014 as_executable_p="test -f"
20016 # Sed expression to map a string onto a valid CPP name.
20017 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20019 # Sed expression to map a string onto a valid variable name.
20020 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20023 # IFS
20024 # We need space, tab and new line, in precisely that order.
20025 as_nl='
20027 IFS=" $as_nl"
20029 # CDPATH.
20030 $as_unset CDPATH
20032 exec 6>&1
20034 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20035 # report actual input values of CONFIG_FILES etc. instead of their
20036 # values after options handling. Logging --version etc. is OK.
20037 exec 5>>config.log
20039 echo
20040 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20041 ## Running $as_me. ##
20042 _ASBOX
20043 } >&5
20044 cat >&5 <<_CSEOF
20046 This file was extended by aMule $as_me SVN, which was
20047 generated by GNU Autoconf 2.59. Invocation command line was
20049 CONFIG_FILES = $CONFIG_FILES
20050 CONFIG_HEADERS = $CONFIG_HEADERS
20051 CONFIG_LINKS = $CONFIG_LINKS
20052 CONFIG_COMMANDS = $CONFIG_COMMANDS
20053 $ $0 $@
20055 _CSEOF
20056 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20057 echo >&5
20058 _ACEOF
20060 # Files that config.status was made for.
20061 if test -n "$ac_config_files"; then
20062 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20065 if test -n "$ac_config_headers"; then
20066 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20069 if test -n "$ac_config_links"; then
20070 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20073 if test -n "$ac_config_commands"; then
20074 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20077 cat >>$CONFIG_STATUS <<\_ACEOF
20079 ac_cs_usage="\
20080 \`$as_me' instantiates files from templates according to the
20081 current configuration.
20083 Usage: $0 [OPTIONS] [FILE]...
20085 -h, --help print this help, then exit
20086 -V, --version print version number, then exit
20087 -q, --quiet do not print progress messages
20088 -d, --debug don't remove temporary files
20089 --recheck update $as_me by reconfiguring in the same conditions
20090 --file=FILE[:TEMPLATE]
20091 instantiate the configuration file FILE
20092 --header=FILE[:TEMPLATE]
20093 instantiate the configuration header FILE
20095 Configuration files:
20096 $config_files
20098 Configuration headers:
20099 $config_headers
20101 Configuration commands:
20102 $config_commands
20104 Report bugs to <bug-autoconf@gnu.org>."
20105 _ACEOF
20107 cat >>$CONFIG_STATUS <<_ACEOF
20108 ac_cs_version="\\
20109 aMule config.status SVN
20110 configured by $0, generated by GNU Autoconf 2.59,
20111 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20113 Copyright (C) 2003 Free Software Foundation, Inc.
20114 This config.status script is free software; the Free Software Foundation
20115 gives unlimited permission to copy, distribute and modify it."
20116 srcdir=$srcdir
20117 INSTALL="$INSTALL"
20118 _ACEOF
20120 cat >>$CONFIG_STATUS <<\_ACEOF
20121 # If no file are specified by the user, then we need to provide default
20122 # value. By we need to know if files were specified by the user.
20123 ac_need_defaults=:
20124 while test $# != 0
20126 case $1 in
20127 --*=*)
20128 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20129 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20130 ac_shift=:
20133 ac_option=$1
20134 ac_optarg=$2
20135 ac_shift=shift
20137 *) # This is not an option, so the user has probably given explicit
20138 # arguments.
20139 ac_option=$1
20140 ac_need_defaults=false;;
20141 esac
20143 case $ac_option in
20144 # Handling of the options.
20145 _ACEOF
20146 cat >>$CONFIG_STATUS <<\_ACEOF
20147 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20148 ac_cs_recheck=: ;;
20149 --version | --vers* | -V )
20150 echo "$ac_cs_version"; exit 0 ;;
20151 --he | --h)
20152 # Conflict between --help and --header
20153 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20154 Try \`$0 --help' for more information." >&5
20155 echo "$as_me: error: ambiguous option: $1
20156 Try \`$0 --help' for more information." >&2;}
20157 { (exit 1); exit 1; }; };;
20158 --help | --hel | -h )
20159 echo "$ac_cs_usage"; exit 0 ;;
20160 --debug | --d* | -d )
20161 debug=: ;;
20162 --file | --fil | --fi | --f )
20163 $ac_shift
20164 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20165 ac_need_defaults=false;;
20166 --header | --heade | --head | --hea )
20167 $ac_shift
20168 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20169 ac_need_defaults=false;;
20170 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20171 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20172 ac_cs_silent=: ;;
20174 # This is an error.
20175 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20176 Try \`$0 --help' for more information." >&5
20177 echo "$as_me: error: unrecognized option: $1
20178 Try \`$0 --help' for more information." >&2;}
20179 { (exit 1); exit 1; }; } ;;
20181 *) ac_config_targets="$ac_config_targets $1" ;;
20183 esac
20184 shift
20185 done
20187 ac_configure_extra_args=
20189 if $ac_cs_silent; then
20190 exec 6>/dev/null
20191 ac_configure_extra_args="$ac_configure_extra_args --silent"
20194 _ACEOF
20195 cat >>$CONFIG_STATUS <<_ACEOF
20196 if \$ac_cs_recheck; then
20197 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20198 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20201 _ACEOF
20203 cat >>$CONFIG_STATUS <<_ACEOF
20205 # INIT-COMMANDS section.
20208 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20209 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
20210 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
20211 # from automake.
20212 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
20213 # Capture the value of LINGUAS because we need it to compute CATALOGS.
20214 LINGUAS="${LINGUAS-%UNSET%}"
20216 denoiserlevel=$with_denoise_level
20218 _ACEOF
20222 cat >>$CONFIG_STATUS <<\_ACEOF
20223 for ac_config_target in $ac_config_targets
20225 case "$ac_config_target" in
20226 # Handling of arguments.
20227 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20228 "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
20229 "docs/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/man/Makefile" ;;
20230 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
20231 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20232 "src/pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pixmaps/Makefile" ;;
20233 "src/pixmaps/flags_xpm/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
20234 "src/libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/Makefile" ;;
20235 "src/libs/ec/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/ec/Makefile" ;;
20236 "src/libs/ec/cpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
20237 "src/libs/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/common/Makefile" ;;
20238 "src/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
20239 "src/utils/aLinkCreator/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
20240 "src/utils/aLinkCreator/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
20241 "src/utils/aLinkCreator/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
20242 "src/utils/cas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/cas/Makefile" ;;
20243 "src/utils/cas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
20244 "src/utils/fileview/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/fileview/Makefile" ;;
20245 "src/utils/wxCas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
20246 "src/utils/wxCas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
20247 "src/utils/wxCas/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
20248 "src/utils/xas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/Makefile" ;;
20249 "src/utils/xas/autostart-xas" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
20250 "src/utils/xas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
20251 "src/skins/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/skins/Makefile" ;;
20252 "src/webserver/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/Makefile" ;;
20253 "src/webserver/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/src/Makefile" ;;
20254 "src/webserver/default/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/default/Makefile" ;;
20255 "unittests/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/Makefile" ;;
20256 "unittests/muleunit/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/muleunit/Makefile" ;;
20257 "unittests/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/tests/Makefile" ;;
20258 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
20259 "Compilation.flags" ) CONFIG_FILES="$CONFIG_FILES Compilation.flags" ;;
20260 "version.rc" ) CONFIG_FILES="$CONFIG_FILES version.rc" ;;
20261 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20262 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20263 "denoiser" ) CONFIG_COMMANDS="$CONFIG_COMMANDS denoiser" ;;
20264 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20265 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20266 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20267 { (exit 1); exit 1; }; };;
20268 esac
20269 done
20271 # If the user did not use the arguments to specify the items to instantiate,
20272 # then the envvar interface is used. Set only those that are not.
20273 # We use the long form for the default assignment because of an extremely
20274 # bizarre bug on SunOS 4.1.3.
20275 if $ac_need_defaults; then
20276 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20277 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20278 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20281 # Have a temporary directory for convenience. Make it in the build tree
20282 # simply because there is no reason to put it here, and in addition,
20283 # creating and moving files from /tmp can sometimes cause problems.
20284 # Create a temporary directory, and hook for its removal unless debugging.
20285 $debug ||
20287 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20288 trap '{ (exit 1); exit 1; }' 1 2 13 15
20291 # Create a (secure) tmp directory for tmp files.
20294 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20295 test -n "$tmp" && test -d "$tmp"
20296 } ||
20298 tmp=./confstat$$-$RANDOM
20299 (umask 077 && mkdir $tmp)
20300 } ||
20302 echo "$me: cannot create a temporary directory in ." >&2
20303 { (exit 1); exit 1; }
20306 _ACEOF
20308 cat >>$CONFIG_STATUS <<_ACEOF
20311 # CONFIG_FILES section.
20314 # No need to generate the scripts if there are no CONFIG_FILES.
20315 # This happens for instance when ./config.status config.h
20316 if test -n "\$CONFIG_FILES"; then
20317 # Protect against being on the right side of a sed subst in config.status.
20318 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20319 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20320 s,@GEOIP_CPPFLAGS@,$GEOIP_CPPFLAGS,;t t
20321 s,@GEOIP_LDFLAGS@,$GEOIP_LDFLAGS,;t t
20322 s,@GEOIP_LIBS@,$GEOIP_LIBS,;t t
20323 s,@SHELL@,$SHELL,;t t
20324 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20325 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20326 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20327 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20328 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20329 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20330 s,@exec_prefix@,$exec_prefix,;t t
20331 s,@prefix@,$prefix,;t t
20332 s,@program_transform_name@,$program_transform_name,;t t
20333 s,@bindir@,$bindir,;t t
20334 s,@sbindir@,$sbindir,;t t
20335 s,@libexecdir@,$libexecdir,;t t
20336 s,@datadir@,$datadir,;t t
20337 s,@sysconfdir@,$sysconfdir,;t t
20338 s,@sharedstatedir@,$sharedstatedir,;t t
20339 s,@localstatedir@,$localstatedir,;t t
20340 s,@libdir@,$libdir,;t t
20341 s,@includedir@,$includedir,;t t
20342 s,@oldincludedir@,$oldincludedir,;t t
20343 s,@infodir@,$infodir,;t t
20344 s,@mandir@,$mandir,;t t
20345 s,@build_alias@,$build_alias,;t t
20346 s,@host_alias@,$host_alias,;t t
20347 s,@target_alias@,$target_alias,;t t
20348 s,@DEFS@,$DEFS,;t t
20349 s,@ECHO_C@,$ECHO_C,;t t
20350 s,@ECHO_N@,$ECHO_N,;t t
20351 s,@ECHO_T@,$ECHO_T,;t t
20352 s,@LIBS@,$LIBS,;t t
20353 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20354 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20355 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20356 s,@CYGPATH_W@,$CYGPATH_W,;t t
20357 s,@PACKAGE@,$PACKAGE,;t t
20358 s,@VERSION@,$VERSION,;t t
20359 s,@ACLOCAL@,$ACLOCAL,;t t
20360 s,@AUTOCONF@,$AUTOCONF,;t t
20361 s,@AUTOMAKE@,$AUTOMAKE,;t t
20362 s,@AUTOHEADER@,$AUTOHEADER,;t t
20363 s,@MAKEINFO@,$MAKEINFO,;t t
20364 s,@install_sh@,$install_sh,;t t
20365 s,@STRIP@,$STRIP,;t t
20366 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20367 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20368 s,@mkdir_p@,$mkdir_p,;t t
20369 s,@AWK@,$AWK,;t t
20370 s,@SET_MAKE@,$SET_MAKE,;t t
20371 s,@am__leading_dot@,$am__leading_dot,;t t
20372 s,@AMTAR@,$AMTAR,;t t
20373 s,@am__tar@,$am__tar,;t t
20374 s,@am__untar@,$am__untar,;t t
20375 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20376 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20377 s,@MAINT@,$MAINT,;t t
20378 s,@build@,$build,;t t
20379 s,@build_cpu@,$build_cpu,;t t
20380 s,@build_vendor@,$build_vendor,;t t
20381 s,@build_os@,$build_os,;t t
20382 s,@host@,$host,;t t
20383 s,@host_cpu@,$host_cpu,;t t
20384 s,@host_vendor@,$host_vendor,;t t
20385 s,@host_os@,$host_os,;t t
20386 s,@RESOLV_LIB@,$RESOLV_LIB,;t t
20387 s,@X11LIBS@,$X11LIBS,;t t
20388 s,@MULECPPFLAGS@,$MULECPPFLAGS,;t t
20389 s,@MULECFLAGS@,$MULECFLAGS,;t t
20390 s,@MULECXXFLAGS@,$MULECXXFLAGS,;t t
20391 s,@MULELDFLAGS@,$MULELDFLAGS,;t t
20392 s,@MULERCFLAGS@,$MULERCFLAGS,;t t
20393 s,@CXX@,$CXX,;t t
20394 s,@CXXFLAGS@,$CXXFLAGS,;t t
20395 s,@LDFLAGS@,$LDFLAGS,;t t
20396 s,@CPPFLAGS@,$CPPFLAGS,;t t
20397 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20398 s,@EXEEXT@,$EXEEXT,;t t
20399 s,@OBJEXT@,$OBJEXT,;t t
20400 s,@DEPDIR@,$DEPDIR,;t t
20401 s,@am__include@,$am__include,;t t
20402 s,@am__quote@,$am__quote,;t t
20403 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20404 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20405 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20406 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20407 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20408 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20409 s,@CXXCPP@,$CXXCPP,;t t
20410 s,@CC@,$CC,;t t
20411 s,@CFLAGS@,$CFLAGS,;t t
20412 s,@ac_ct_CC@,$ac_ct_CC,;t t
20413 s,@CCDEPMODE@,$CCDEPMODE,;t t
20414 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20415 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20416 s,@CPP@,$CPP,;t t
20417 s,@BUILD_CC@,$BUILD_CC,;t t
20418 s,@ac_ct_BUILD_CC@,$ac_ct_BUILD_CC,;t t
20419 s,@EXEEXT@,$EXEEXT,;t t
20420 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
20421 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
20422 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
20423 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
20424 s,@EGREP@,$EGREP,;t t
20425 s,@LEX@,$LEX,;t t
20426 s,@LEXLIB@,$LEXLIB,;t t
20427 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
20428 s,@RANLIB@,$RANLIB,;t t
20429 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20430 s,@YACC@,$YACC,;t t
20431 s,@AR@,$AR,;t t
20432 s,@ac_ct_AR@,$ac_ct_AR,;t t
20433 s,@LD@,$LD,;t t
20434 s,@ac_ct_LD@,$ac_ct_LD,;t t
20435 s,@ZLIB_CPPFLAGS@,$ZLIB_CPPFLAGS,;t t
20436 s,@ZLIB_LDFLAGS@,$ZLIB_LDFLAGS,;t t
20437 s,@ZLIB_LIBS@,$ZLIB_LIBS,;t t
20438 s,@GDLIB_CONFIG_PATH@,$GDLIB_CONFIG_PATH,;t t
20439 s,@GDLIB_CFLAGS@,$GDLIB_CFLAGS,;t t
20440 s,@GDLIB_LDFLAGS@,$GDLIB_LDFLAGS,;t t
20441 s,@GDLIB_LIBS@,$GDLIB_LIBS,;t t
20442 s,@CAS_DEFS@,$CAS_DEFS,;t t
20443 s,@LIBPNG_CONFIG_PATH@,$LIBPNG_CONFIG_PATH,;t t
20444 s,@LIBPNG_CFLAGS@,$LIBPNG_CFLAGS,;t t
20445 s,@LIBPNG_LDFLAGS@,$LIBPNG_LDFLAGS,;t t
20446 s,@LIBPNG_LIBS@,$LIBPNG_LIBS,;t t
20447 s,@AMULEWEB_DEFS@,$AMULEWEB_DEFS,;t t
20448 s,@WX_CONFIG_PATH@,$WX_CONFIG_PATH,;t t
20449 s,@WX_CPPFLAGS@,$WX_CPPFLAGS,;t t
20450 s,@WX_CFLAGS@,$WX_CFLAGS,;t t
20451 s,@WX_CXXFLAGS@,$WX_CXXFLAGS,;t t
20452 s,@WX_CFLAGS_ONLY@,$WX_CFLAGS_ONLY,;t t
20453 s,@WX_CXXFLAGS_ONLY@,$WX_CXXFLAGS_ONLY,;t t
20454 s,@WX_LIBS@,$WX_LIBS,;t t
20455 s,@WX_LIBS_STATIC@,$WX_LIBS_STATIC,;t t
20456 s,@WX_VERSION_FULL@,$WX_VERSION_FULL,;t t
20457 s,@WX_RESCOMP@,$WX_RESCOMP,;t t
20458 s,@WX_VERSION_MAJOR@,$WX_VERSION_MAJOR,;t t
20459 s,@WX_VERSION_MINOR@,$WX_VERSION_MINOR,;t t
20460 s,@WX_UNICODE@,$WX_UNICODE,;t t
20461 s,@WX_DEBUG@,$WX_DEBUG,;t t
20462 s,@WX_SHARED@,$WX_SHARED,;t t
20463 s,@WX_PORT@,$WX_PORT,;t t
20464 s,@WXBASE_LIBS@,$WXBASE_LIBS,;t t
20465 s,@WXBASE_CPPFLAGS@,$WXBASE_CPPFLAGS,;t t
20466 s,@RC@,$RC,;t t
20467 s,@RCFLAGS@,$RCFLAGS,;t t
20468 s,@ac_ct_RC@,$ac_ct_RC,;t t
20469 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20470 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
20471 s,@LIBUPNP_CPPFLAGS@,$LIBUPNP_CPPFLAGS,;t t
20472 s,@LIBUPNP_CFLAGS@,$LIBUPNP_CFLAGS,;t t
20473 s,@LIBUPNP_LDFLAGS@,$LIBUPNP_LDFLAGS,;t t
20474 s,@LIBUPNP_LIBS@,$LIBUPNP_LIBS,;t t
20475 s,@CRYPTOPP_CPPFLAGS@,$CRYPTOPP_CPPFLAGS,;t t
20476 s,@CRYPTOPP_LDFLAGS@,$CRYPTOPP_LDFLAGS,;t t
20477 s,@CRYPTOPP_LIBS@,$CRYPTOPP_LIBS,;t t
20478 s,@ALLOCA@,$ALLOCA,;t t
20479 s,@LIBOBJS@,$LIBOBJS,;t t
20480 s,@POW_LIB@,$POW_LIB,;t t
20481 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20482 s,@MSGFMT@,$MSGFMT,;t t
20483 s,@GMSGFMT@,$GMSGFMT,;t t
20484 s,@XGETTEXT@,$XGETTEXT,;t t
20485 s,@MSGMERGE@,$MSGMERGE,;t t
20486 s,@GLIBC21@,$GLIBC21,;t t
20487 s,@LIBICONV@,$LIBICONV,;t t
20488 s,@LTLIBICONV@,$LTLIBICONV,;t t
20489 s,@INTLBISON@,$INTLBISON,;t t
20490 s,@USE_NLS@,$USE_NLS,;t t
20491 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
20492 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
20493 s,@CATOBJEXT@,$CATOBJEXT,;t t
20494 s,@INTLOBJS@,$INTLOBJS,;t t
20495 s,@DATADIRNAME@,$DATADIRNAME,;t t
20496 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20497 s,@GENCAT@,$GENCAT,;t t
20498 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
20499 s,@INTLLIBS@,$INTLLIBS,;t t
20500 s,@LIBINTL@,$LIBINTL,;t t
20501 s,@LTLIBINTL@,$LTLIBINTL,;t t
20502 s,@POSUB@,$POSUB,;t t
20503 s,@AMULE_DAEMON_MANPAGES@,$AMULE_DAEMON_MANPAGES,;t t
20504 s,@AMULECMD_MANPAGES@,$AMULECMD_MANPAGES,;t t
20505 s,@WEB_MANPAGES@,$WEB_MANPAGES,;t t
20506 s,@AMULE_GUI_MANPAGES@,$AMULE_GUI_MANPAGES,;t t
20507 s,@CAS_MANPAGES@,$CAS_MANPAGES,;t t
20508 s,@WXCAS_MANPAGES@,$WXCAS_MANPAGES,;t t
20509 s,@ED2K_MANPAGES@,$ED2K_MANPAGES,;t t
20510 s,@ALC_MANPAGES@,$ALC_MANPAGES,;t t
20511 s,@ALCC_MANPAGES@,$ALCC_MANPAGES,;t t
20512 s,@MONOLITHIC_MANPAGES@,$MONOLITHIC_MANPAGES,;t t
20513 s,@INCINTL@,$INCINTL,;t t
20514 s,@BFD_CPPFLAGS@,$BFD_CPPFLAGS,;t t
20515 s,@BFD_LIBS@,$BFD_LIBS,;t t
20516 s,@docdir@,$docdir,;t t
20517 s,@SVNDATE@,$SVNDATE,;t t
20518 s,@WEB_TRUE@,$WEB_TRUE,;t t
20519 s,@WEB_FALSE@,$WEB_FALSE,;t t
20520 s,@ED2K_TRUE@,$ED2K_TRUE,;t t
20521 s,@ED2K_FALSE@,$ED2K_FALSE,;t t
20522 s,@CAS_TRUE@,$CAS_TRUE,;t t
20523 s,@CAS_FALSE@,$CAS_FALSE,;t t
20524 s,@WXCAS_TRUE@,$WXCAS_TRUE,;t t
20525 s,@WXCAS_FALSE@,$WXCAS_FALSE,;t t
20526 s,@ALC_TRUE@,$ALC_TRUE,;t t
20527 s,@ALC_FALSE@,$ALC_FALSE,;t t
20528 s,@ALCC_TRUE@,$ALCC_TRUE,;t t
20529 s,@ALCC_FALSE@,$ALCC_FALSE,;t t
20530 s,@AMULE_GUI_TRUE@,$AMULE_GUI_TRUE,;t t
20531 s,@AMULE_GUI_FALSE@,$AMULE_GUI_FALSE,;t t
20532 s,@AMULE_DAEMON_TRUE@,$AMULE_DAEMON_TRUE,;t t
20533 s,@AMULE_DAEMON_FALSE@,$AMULE_DAEMON_FALSE,;t t
20534 s,@COMPILE_CMD_TRUE@,$COMPILE_CMD_TRUE,;t t
20535 s,@COMPILE_CMD_FALSE@,$COMPILE_CMD_FALSE,;t t
20536 s,@MONOLITHIC_TRUE@,$MONOLITHIC_TRUE,;t t
20537 s,@MONOLITHIC_FALSE@,$MONOLITHIC_FALSE,;t t
20538 s,@XAS_TRUE@,$XAS_TRUE,;t t
20539 s,@XAS_FALSE@,$XAS_FALSE,;t t
20540 s,@FILEVIEW_TRUE@,$FILEVIEW_TRUE,;t t
20541 s,@FILEVIEW_FALSE@,$FILEVIEW_FALSE,;t t
20542 s,@ENABLE_UPNP_TRUE@,$ENABLE_UPNP_TRUE,;t t
20543 s,@ENABLE_UPNP_FALSE@,$ENABLE_UPNP_FALSE,;t t
20544 s,@ENABLE_IP2COUNTRY_TRUE@,$ENABLE_IP2COUNTRY_TRUE,;t t
20545 s,@ENABLE_IP2COUNTRY_FALSE@,$ENABLE_IP2COUNTRY_FALSE,;t t
20546 s,@SYS_WIN32_TRUE@,$SYS_WIN32_TRUE,;t t
20547 s,@SYS_WIN32_FALSE@,$SYS_WIN32_FALSE,;t t
20548 s,@NEED_RC_TRUE@,$NEED_RC_TRUE,;t t
20549 s,@NEED_RC_FALSE@,$NEED_RC_FALSE,;t t
20550 s,@NEED_CORESERVICES_TRUE@,$NEED_CORESERVICES_TRUE,;t t
20551 s,@NEED_CORESERVICES_FALSE@,$NEED_CORESERVICES_FALSE,;t t
20552 s,@COMPILE_NLS_TRUE@,$COMPILE_NLS_TRUE,;t t
20553 s,@COMPILE_NLS_FALSE@,$COMPILE_NLS_FALSE,;t t
20554 s,@GENERATE_FLEX_HEADER_TRUE@,$GENERATE_FLEX_HEADER_TRUE,;t t
20555 s,@GENERATE_FLEX_HEADER_FALSE@,$GENERATE_FLEX_HEADER_FALSE,;t t
20556 s,@INSTALL_SKINS_TRUE@,$INSTALL_SKINS_TRUE,;t t
20557 s,@INSTALL_SKINS_FALSE@,$INSTALL_SKINS_FALSE,;t t
20558 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
20559 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20560 CEOF
20562 _ACEOF
20564 cat >>$CONFIG_STATUS <<\_ACEOF
20565 # Split the substitutions into bite-sized pieces for seds with
20566 # small command number limits, like on Digital OSF/1 and HP-UX.
20567 ac_max_sed_lines=48
20568 ac_sed_frag=1 # Number of current file.
20569 ac_beg=1 # First line for current file.
20570 ac_end=$ac_max_sed_lines # Line after last line for current file.
20571 ac_more_lines=:
20572 ac_sed_cmds=
20573 while $ac_more_lines; do
20574 if test $ac_beg -gt 1; then
20575 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20576 else
20577 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20579 if test ! -s $tmp/subs.frag; then
20580 ac_more_lines=false
20581 else
20582 # The purpose of the label and of the branching condition is to
20583 # speed up the sed processing (if there are no `@' at all, there
20584 # is no need to browse any of the substitutions).
20585 # These are the two extra sed commands mentioned above.
20586 (echo ':t
20587 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20588 if test -z "$ac_sed_cmds"; then
20589 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20590 else
20591 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20593 ac_sed_frag=`expr $ac_sed_frag + 1`
20594 ac_beg=$ac_end
20595 ac_end=`expr $ac_end + $ac_max_sed_lines`
20597 done
20598 if test -z "$ac_sed_cmds"; then
20599 ac_sed_cmds=cat
20601 fi # test -n "$CONFIG_FILES"
20603 _ACEOF
20604 cat >>$CONFIG_STATUS <<\_ACEOF
20605 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20606 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20607 case $ac_file in
20608 - | *:- | *:-:* ) # input from stdin
20609 cat >$tmp/stdin
20610 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20611 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20612 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20613 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20614 * ) ac_file_in=$ac_file.in ;;
20615 esac
20617 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20618 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20619 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20620 X"$ac_file" : 'X\(//\)[^/]' \| \
20621 X"$ac_file" : 'X\(//\)$' \| \
20622 X"$ac_file" : 'X\(/\)' \| \
20623 . : '\(.\)' 2>/dev/null ||
20624 echo X"$ac_file" |
20625 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20626 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20627 /^X\(\/\/\)$/{ s//\1/; q; }
20628 /^X\(\/\).*/{ s//\1/; q; }
20629 s/.*/./; q'`
20630 { if $as_mkdir_p; then
20631 mkdir -p "$ac_dir"
20632 else
20633 as_dir="$ac_dir"
20634 as_dirs=
20635 while test ! -d "$as_dir"; do
20636 as_dirs="$as_dir $as_dirs"
20637 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20638 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20639 X"$as_dir" : 'X\(//\)[^/]' \| \
20640 X"$as_dir" : 'X\(//\)$' \| \
20641 X"$as_dir" : 'X\(/\)' \| \
20642 . : '\(.\)' 2>/dev/null ||
20643 echo X"$as_dir" |
20644 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20645 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20646 /^X\(\/\/\)$/{ s//\1/; q; }
20647 /^X\(\/\).*/{ s//\1/; q; }
20648 s/.*/./; q'`
20649 done
20650 test ! -n "$as_dirs" || mkdir $as_dirs
20651 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20652 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20653 { (exit 1); exit 1; }; }; }
20655 ac_builddir=.
20657 if test "$ac_dir" != .; then
20658 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20659 # A "../" for each directory in $ac_dir_suffix.
20660 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20661 else
20662 ac_dir_suffix= ac_top_builddir=
20665 case $srcdir in
20666 .) # No --srcdir option. We are building in place.
20667 ac_srcdir=.
20668 if test -z "$ac_top_builddir"; then
20669 ac_top_srcdir=.
20670 else
20671 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20672 fi ;;
20673 [\\/]* | ?:[\\/]* ) # Absolute path.
20674 ac_srcdir=$srcdir$ac_dir_suffix;
20675 ac_top_srcdir=$srcdir ;;
20676 *) # Relative path.
20677 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20678 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20679 esac
20681 # Do not use `cd foo && pwd` to compute absolute paths, because
20682 # the directories may not exist.
20683 case `pwd` in
20684 .) ac_abs_builddir="$ac_dir";;
20686 case "$ac_dir" in
20687 .) ac_abs_builddir=`pwd`;;
20688 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20689 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20690 esac;;
20691 esac
20692 case $ac_abs_builddir in
20693 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20695 case ${ac_top_builddir}. in
20696 .) ac_abs_top_builddir=$ac_abs_builddir;;
20697 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20698 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20699 esac;;
20700 esac
20701 case $ac_abs_builddir in
20702 .) ac_abs_srcdir=$ac_srcdir;;
20704 case $ac_srcdir in
20705 .) ac_abs_srcdir=$ac_abs_builddir;;
20706 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20707 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20708 esac;;
20709 esac
20710 case $ac_abs_builddir in
20711 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20713 case $ac_top_srcdir in
20714 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20715 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20716 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20717 esac;;
20718 esac
20721 case $INSTALL in
20722 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20723 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20724 esac
20726 if test x"$ac_file" != x-; then
20727 { echo "$as_me:$LINENO: creating $ac_file" >&5
20728 echo "$as_me: creating $ac_file" >&6;}
20729 rm -f "$ac_file"
20731 # Let's still pretend it is `configure' which instantiates (i.e., don't
20732 # use $as_me), people would be surprised to read:
20733 # /* config.h. Generated by config.status. */
20734 if test x"$ac_file" = x-; then
20735 configure_input=
20736 else
20737 configure_input="$ac_file. "
20739 configure_input=$configure_input"Generated from `echo $ac_file_in |
20740 sed 's,.*/,,'` by configure."
20742 # First look for the input files in the build tree, otherwise in the
20743 # src tree.
20744 ac_file_inputs=`IFS=:
20745 for f in $ac_file_in; do
20746 case $f in
20747 -) echo $tmp/stdin ;;
20748 [\\/$]*)
20749 # Absolute (can't be DOS-style, as IFS=:)
20750 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20751 echo "$as_me: error: cannot find input file: $f" >&2;}
20752 { (exit 1); exit 1; }; }
20753 echo "$f";;
20754 *) # Relative
20755 if test -f "$f"; then
20756 # Build tree
20757 echo "$f"
20758 elif test -f "$srcdir/$f"; then
20759 # Source tree
20760 echo "$srcdir/$f"
20761 else
20762 # /dev/null tree
20763 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20764 echo "$as_me: error: cannot find input file: $f" >&2;}
20765 { (exit 1); exit 1; }; }
20766 fi;;
20767 esac
20768 done` || { (exit 1); exit 1; }
20769 _ACEOF
20770 cat >>$CONFIG_STATUS <<_ACEOF
20771 sed "$ac_vpsub
20772 $extrasub
20773 _ACEOF
20774 cat >>$CONFIG_STATUS <<\_ACEOF
20776 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20777 s,@configure_input@,$configure_input,;t t
20778 s,@srcdir@,$ac_srcdir,;t t
20779 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20780 s,@top_srcdir@,$ac_top_srcdir,;t t
20781 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20782 s,@builddir@,$ac_builddir,;t t
20783 s,@abs_builddir@,$ac_abs_builddir,;t t
20784 s,@top_builddir@,$ac_top_builddir,;t t
20785 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20786 s,@INSTALL@,$ac_INSTALL,;t t
20787 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20788 rm -f $tmp/stdin
20789 if test x"$ac_file" != x-; then
20790 mv $tmp/out $ac_file
20791 else
20792 cat $tmp/out
20793 rm -f $tmp/out
20796 done
20797 _ACEOF
20798 cat >>$CONFIG_STATUS <<\_ACEOF
20801 # CONFIG_HEADER section.
20804 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20805 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20807 # ac_d sets the value in "#define NAME VALUE" lines.
20808 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20809 ac_dB='[ ].*$,\1#\2'
20810 ac_dC=' '
20811 ac_dD=',;t'
20812 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20813 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20814 ac_uB='$,\1#\2define\3'
20815 ac_uC=' '
20816 ac_uD=',;t'
20818 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20819 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20820 case $ac_file in
20821 - | *:- | *:-:* ) # input from stdin
20822 cat >$tmp/stdin
20823 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20824 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20825 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20826 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20827 * ) ac_file_in=$ac_file.in ;;
20828 esac
20830 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20831 echo "$as_me: creating $ac_file" >&6;}
20833 # First look for the input files in the build tree, otherwise in the
20834 # src tree.
20835 ac_file_inputs=`IFS=:
20836 for f in $ac_file_in; do
20837 case $f in
20838 -) echo $tmp/stdin ;;
20839 [\\/$]*)
20840 # Absolute (can't be DOS-style, as IFS=:)
20841 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20842 echo "$as_me: error: cannot find input file: $f" >&2;}
20843 { (exit 1); exit 1; }; }
20844 # Do quote $f, to prevent DOS paths from being IFS'd.
20845 echo "$f";;
20846 *) # Relative
20847 if test -f "$f"; then
20848 # Build tree
20849 echo "$f"
20850 elif test -f "$srcdir/$f"; then
20851 # Source tree
20852 echo "$srcdir/$f"
20853 else
20854 # /dev/null tree
20855 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20856 echo "$as_me: error: cannot find input file: $f" >&2;}
20857 { (exit 1); exit 1; }; }
20858 fi;;
20859 esac
20860 done` || { (exit 1); exit 1; }
20861 # Remove the trailing spaces.
20862 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20864 _ACEOF
20866 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20867 # `conftest.undefs', that substitutes the proper values into
20868 # config.h.in to produce config.h. The first handles `#define'
20869 # templates, and the second `#undef' templates.
20870 # And first: Protect against being on the right side of a sed subst in
20871 # config.status. Protect against being in an unquoted here document
20872 # in config.status.
20873 rm -f conftest.defines conftest.undefs
20874 # Using a here document instead of a string reduces the quoting nightmare.
20875 # Putting comments in sed scripts is not portable.
20877 # `end' is used to avoid that the second main sed command (meant for
20878 # 0-ary CPP macros) applies to n-ary macro definitions.
20879 # See the Autoconf documentation for `clear'.
20880 cat >confdef2sed.sed <<\_ACEOF
20881 s/[\\&,]/\\&/g
20882 s,[\\$`],\\&,g
20883 t clear
20884 : clear
20885 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20886 t end
20887 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20888 : end
20889 _ACEOF
20890 # If some macros were called several times there might be several times
20891 # the same #defines, which is useless. Nevertheless, we may not want to
20892 # sort them, since we want the *last* AC-DEFINE to be honored.
20893 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20894 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20895 rm -f confdef2sed.sed
20897 # This sed command replaces #undef with comments. This is necessary, for
20898 # example, in the case of _POSIX_SOURCE, which is predefined and required
20899 # on some systems where configure will not decide to define it.
20900 cat >>conftest.undefs <<\_ACEOF
20901 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20902 _ACEOF
20904 # Break up conftest.defines because some shells have a limit on the size
20905 # of here documents, and old seds have small limits too (100 cmds).
20906 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20907 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20908 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20909 echo ' :' >>$CONFIG_STATUS
20910 rm -f conftest.tail
20911 while grep . conftest.defines >/dev/null
20913 # Write a limited-size here document to $tmp/defines.sed.
20914 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20915 # Speed up: don't consider the non `#define' lines.
20916 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20917 # Work around the forget-to-reset-the-flag bug.
20918 echo 't clr' >>$CONFIG_STATUS
20919 echo ': clr' >>$CONFIG_STATUS
20920 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20921 echo 'CEOF
20922 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20923 rm -f $tmp/in
20924 mv $tmp/out $tmp/in
20925 ' >>$CONFIG_STATUS
20926 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20927 rm -f conftest.defines
20928 mv conftest.tail conftest.defines
20929 done
20930 rm -f conftest.defines
20931 echo ' fi # grep' >>$CONFIG_STATUS
20932 echo >>$CONFIG_STATUS
20934 # Break up conftest.undefs because some shells have a limit on the size
20935 # of here documents, and old seds have small limits too (100 cmds).
20936 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20937 rm -f conftest.tail
20938 while grep . conftest.undefs >/dev/null
20940 # Write a limited-size here document to $tmp/undefs.sed.
20941 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20942 # Speed up: don't consider the non `#undef'
20943 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20944 # Work around the forget-to-reset-the-flag bug.
20945 echo 't clr' >>$CONFIG_STATUS
20946 echo ': clr' >>$CONFIG_STATUS
20947 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20948 echo 'CEOF
20949 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20950 rm -f $tmp/in
20951 mv $tmp/out $tmp/in
20952 ' >>$CONFIG_STATUS
20953 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20954 rm -f conftest.undefs
20955 mv conftest.tail conftest.undefs
20956 done
20957 rm -f conftest.undefs
20959 cat >>$CONFIG_STATUS <<\_ACEOF
20960 # Let's still pretend it is `configure' which instantiates (i.e., don't
20961 # use $as_me), people would be surprised to read:
20962 # /* config.h. Generated by config.status. */
20963 if test x"$ac_file" = x-; then
20964 echo "/* Generated by configure. */" >$tmp/config.h
20965 else
20966 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20968 cat $tmp/in >>$tmp/config.h
20969 rm -f $tmp/in
20970 if test x"$ac_file" != x-; then
20971 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20972 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20973 echo "$as_me: $ac_file is unchanged" >&6;}
20974 else
20975 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20976 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20977 X"$ac_file" : 'X\(//\)[^/]' \| \
20978 X"$ac_file" : 'X\(//\)$' \| \
20979 X"$ac_file" : 'X\(/\)' \| \
20980 . : '\(.\)' 2>/dev/null ||
20981 echo X"$ac_file" |
20982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20983 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20984 /^X\(\/\/\)$/{ s//\1/; q; }
20985 /^X\(\/\).*/{ s//\1/; q; }
20986 s/.*/./; q'`
20987 { if $as_mkdir_p; then
20988 mkdir -p "$ac_dir"
20989 else
20990 as_dir="$ac_dir"
20991 as_dirs=
20992 while test ! -d "$as_dir"; do
20993 as_dirs="$as_dir $as_dirs"
20994 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20995 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20996 X"$as_dir" : 'X\(//\)[^/]' \| \
20997 X"$as_dir" : 'X\(//\)$' \| \
20998 X"$as_dir" : 'X\(/\)' \| \
20999 . : '\(.\)' 2>/dev/null ||
21000 echo X"$as_dir" |
21001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21002 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21003 /^X\(\/\/\)$/{ s//\1/; q; }
21004 /^X\(\/\).*/{ s//\1/; q; }
21005 s/.*/./; q'`
21006 done
21007 test ! -n "$as_dirs" || mkdir $as_dirs
21008 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21009 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21010 { (exit 1); exit 1; }; }; }
21012 rm -f $ac_file
21013 mv $tmp/config.h $ac_file
21015 else
21016 cat $tmp/config.h
21017 rm -f $tmp/config.h
21019 # Compute $ac_file's index in $config_headers.
21020 _am_stamp_count=1
21021 for _am_header in $config_headers :; do
21022 case $_am_header in
21023 $ac_file | $ac_file:* )
21024 break ;;
21026 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21027 esac
21028 done
21029 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21030 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21031 X$ac_file : 'X\(//\)[^/]' \| \
21032 X$ac_file : 'X\(//\)$' \| \
21033 X$ac_file : 'X\(/\)' \| \
21034 . : '\(.\)' 2>/dev/null ||
21035 echo X$ac_file |
21036 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21037 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21038 /^X\(\/\/\)$/{ s//\1/; q; }
21039 /^X\(\/\).*/{ s//\1/; q; }
21040 s/.*/./; q'`/stamp-h$_am_stamp_count
21041 done
21042 _ACEOF
21043 cat >>$CONFIG_STATUS <<\_ACEOF
21046 # CONFIG_COMMANDS section.
21048 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21049 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21050 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21051 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21052 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21053 X"$ac_dest" : 'X\(//\)[^/]' \| \
21054 X"$ac_dest" : 'X\(//\)$' \| \
21055 X"$ac_dest" : 'X\(/\)' \| \
21056 . : '\(.\)' 2>/dev/null ||
21057 echo X"$ac_dest" |
21058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21059 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21060 /^X\(\/\/\)$/{ s//\1/; q; }
21061 /^X\(\/\).*/{ s//\1/; q; }
21062 s/.*/./; q'`
21063 { if $as_mkdir_p; then
21064 mkdir -p "$ac_dir"
21065 else
21066 as_dir="$ac_dir"
21067 as_dirs=
21068 while test ! -d "$as_dir"; do
21069 as_dirs="$as_dir $as_dirs"
21070 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21071 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21072 X"$as_dir" : 'X\(//\)[^/]' \| \
21073 X"$as_dir" : 'X\(//\)$' \| \
21074 X"$as_dir" : 'X\(/\)' \| \
21075 . : '\(.\)' 2>/dev/null ||
21076 echo X"$as_dir" |
21077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21078 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21079 /^X\(\/\/\)$/{ s//\1/; q; }
21080 /^X\(\/\).*/{ s//\1/; q; }
21081 s/.*/./; q'`
21082 done
21083 test ! -n "$as_dirs" || mkdir $as_dirs
21084 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21085 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21086 { (exit 1); exit 1; }; }; }
21088 ac_builddir=.
21090 if test "$ac_dir" != .; then
21091 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21092 # A "../" for each directory in $ac_dir_suffix.
21093 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21094 else
21095 ac_dir_suffix= ac_top_builddir=
21098 case $srcdir in
21099 .) # No --srcdir option. We are building in place.
21100 ac_srcdir=.
21101 if test -z "$ac_top_builddir"; then
21102 ac_top_srcdir=.
21103 else
21104 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21105 fi ;;
21106 [\\/]* | ?:[\\/]* ) # Absolute path.
21107 ac_srcdir=$srcdir$ac_dir_suffix;
21108 ac_top_srcdir=$srcdir ;;
21109 *) # Relative path.
21110 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21111 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21112 esac
21114 # Do not use `cd foo && pwd` to compute absolute paths, because
21115 # the directories may not exist.
21116 case `pwd` in
21117 .) ac_abs_builddir="$ac_dir";;
21119 case "$ac_dir" in
21120 .) ac_abs_builddir=`pwd`;;
21121 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21122 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21123 esac;;
21124 esac
21125 case $ac_abs_builddir in
21126 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21128 case ${ac_top_builddir}. in
21129 .) ac_abs_top_builddir=$ac_abs_builddir;;
21130 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21131 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21132 esac;;
21133 esac
21134 case $ac_abs_builddir in
21135 .) ac_abs_srcdir=$ac_srcdir;;
21137 case $ac_srcdir in
21138 .) ac_abs_srcdir=$ac_abs_builddir;;
21139 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21140 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21141 esac;;
21142 esac
21143 case $ac_abs_builddir in
21144 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21146 case $ac_top_srcdir in
21147 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21148 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21149 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21150 esac;;
21151 esac
21154 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21155 echo "$as_me: executing $ac_dest commands" >&6;}
21156 case $ac_dest in
21157 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21158 # Strip MF so we end up with the name of the file.
21159 mf=`echo "$mf" | sed -e 's/:.*$//'`
21160 # Check whether this is an Automake generated Makefile or not.
21161 # We used to match only the files named `Makefile.in', but
21162 # some people rename them; so instead we look at the file content.
21163 # Grep'ing the first line is not enough: some people post-process
21164 # each Makefile.in and add a new line on top of each file to say so.
21165 # So let's grep whole file.
21166 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21167 dirpart=`(dirname "$mf") 2>/dev/null ||
21168 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21169 X"$mf" : 'X\(//\)[^/]' \| \
21170 X"$mf" : 'X\(//\)$' \| \
21171 X"$mf" : 'X\(/\)' \| \
21172 . : '\(.\)' 2>/dev/null ||
21173 echo X"$mf" |
21174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21175 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21176 /^X\(\/\/\)$/{ s//\1/; q; }
21177 /^X\(\/\).*/{ s//\1/; q; }
21178 s/.*/./; q'`
21179 else
21180 continue
21182 # Extract the definition of DEPDIR, am__include, and am__quote
21183 # from the Makefile without running `make'.
21184 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21185 test -z "$DEPDIR" && continue
21186 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21187 test -z "am__include" && continue
21188 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21189 # When using ansi2knr, U may be empty or an underscore; expand it
21190 U=`sed -n 's/^U = //p' < "$mf"`
21191 # Find all dependency output files, they are included files with
21192 # $(DEPDIR) in their names. We invoke sed twice because it is the
21193 # simplest approach to changing $(DEPDIR) to its actual value in the
21194 # expansion.
21195 for file in `sed -n "
21196 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21197 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21198 # Make sure the directory exists.
21199 test -f "$dirpart/$file" && continue
21200 fdir=`(dirname "$file") 2>/dev/null ||
21201 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21202 X"$file" : 'X\(//\)[^/]' \| \
21203 X"$file" : 'X\(//\)$' \| \
21204 X"$file" : 'X\(/\)' \| \
21205 . : '\(.\)' 2>/dev/null ||
21206 echo X"$file" |
21207 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21208 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21209 /^X\(\/\/\)$/{ s//\1/; q; }
21210 /^X\(\/\).*/{ s//\1/; q; }
21211 s/.*/./; q'`
21212 { if $as_mkdir_p; then
21213 mkdir -p $dirpart/$fdir
21214 else
21215 as_dir=$dirpart/$fdir
21216 as_dirs=
21217 while test ! -d "$as_dir"; do
21218 as_dirs="$as_dir $as_dirs"
21219 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21220 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21221 X"$as_dir" : 'X\(//\)[^/]' \| \
21222 X"$as_dir" : 'X\(//\)$' \| \
21223 X"$as_dir" : 'X\(/\)' \| \
21224 . : '\(.\)' 2>/dev/null ||
21225 echo X"$as_dir" |
21226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21227 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21228 /^X\(\/\/\)$/{ s//\1/; q; }
21229 /^X\(\/\).*/{ s//\1/; q; }
21230 s/.*/./; q'`
21231 done
21232 test ! -n "$as_dirs" || mkdir $as_dirs
21233 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21234 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21235 { (exit 1); exit 1; }; }; }
21237 # echo "creating $dirpart/$file"
21238 echo '# dummy' > "$dirpart/$file"
21239 done
21240 done
21242 default-1 )
21243 for ac_file in $CONFIG_FILES; do
21244 # Support "outfile[:infile[:infile...]]"
21245 case "$ac_file" in
21246 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21247 esac
21248 # PO directories have a Makefile.in generated from Makefile.in.in.
21249 case "$ac_file" in */Makefile.in)
21250 # Adjust a relative srcdir.
21251 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
21252 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
21253 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
21254 # In autoconf-2.13 it is called $ac_given_srcdir.
21255 # In autoconf-2.50 it is called $srcdir.
21256 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
21257 case "$ac_given_srcdir" in
21258 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
21259 /*) top_srcdir="$ac_given_srcdir" ;;
21260 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
21261 esac
21262 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
21263 rm -f "$ac_dir/POTFILES"
21264 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
21265 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
21266 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
21267 # on $ac_dir but don't depend on user-specified configuration
21268 # parameters.
21269 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
21270 # The LINGUAS file contains the set of available languages.
21271 if test -n "$ALL_LINGUAS"; then
21272 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
21274 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
21275 # Hide the ALL_LINGUAS assigment from automake.
21276 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
21278 case "$ac_given_srcdir" in
21279 .) srcdirpre= ;;
21280 *) srcdirpre='$(srcdir)/' ;;
21281 esac
21282 POFILES=
21283 GMOFILES=
21284 UPDATEPOFILES=
21285 DUMMYPOFILES=
21286 for lang in $ALL_LINGUAS; do
21287 POFILES="$POFILES $srcdirpre$lang.po"
21288 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
21289 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
21290 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
21291 done
21292 # CATALOGS depends on both $ac_dir and the user's LINGUAS
21293 # environment variable.
21294 INST_LINGUAS=
21295 if test -n "$ALL_LINGUAS"; then
21296 for presentlang in $ALL_LINGUAS; do
21297 useit=no
21298 if test "%UNSET%" != "$LINGUAS"; then
21299 desiredlanguages="$LINGUAS"
21300 else
21301 desiredlanguages="$ALL_LINGUAS"
21303 for desiredlang in $desiredlanguages; do
21304 # Use the presentlang catalog if desiredlang is
21305 # a. equal to presentlang, or
21306 # b. a variant of presentlang (because in this case,
21307 # presentlang can be used as a fallback for messages
21308 # which are not translated in the desiredlang catalog).
21309 case "$desiredlang" in
21310 "$presentlang"*) useit=yes;;
21311 esac
21312 done
21313 if test $useit = yes; then
21314 INST_LINGUAS="$INST_LINGUAS $presentlang"
21316 done
21318 CATALOGS=
21319 if test -n "$INST_LINGUAS"; then
21320 for lang in $INST_LINGUAS; do
21321 CATALOGS="$CATALOGS $lang.gmo"
21322 done
21324 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
21325 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"
21326 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
21327 if test -f "$f"; then
21328 case "$f" in
21329 *.orig | *.bak | *~) ;;
21330 *) cat "$f" >> "$ac_dir/Makefile" ;;
21331 esac
21333 done
21336 esac
21337 done ;;
21338 denoiser ) if test $denoiserlevel -gt 0; then
21339 if test ! -d src/utils/scripts; then mkdir -p src/utils/scripts; fi
21340 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" \
21341 $srcdir/src/utils/scripts/denoiser.rules > src/utils/scripts/denoiser.sed
21342 for i in `find . -name 'Makefile' -print`; do
21343 if test -n "`head -n 1 $i | grep '^#'`"; then
21344 sed -f src/utils/scripts/denoiser.sed $i > $i.tmp && mv $i.tmp $i
21346 done
21347 fi ;;
21348 esac
21349 done
21350 _ACEOF
21352 cat >>$CONFIG_STATUS <<\_ACEOF
21354 { (exit 0); exit 0; }
21355 _ACEOF
21356 chmod +x $CONFIG_STATUS
21357 ac_clean_files=$ac_clean_files_save
21360 # configure is writing to config.log, and then calls config.status.
21361 # config.status does its own redirection, appending to config.log.
21362 # Unfortunately, on DOS this fails, as config.log is still kept open
21363 # by configure, so config.status won't be able to write to it; its
21364 # output is simply discarded. So we exec the FD to /dev/null,
21365 # effectively closing config.log, so it can be properly (re)opened and
21366 # appended to by config.status. When coming back to configure, we
21367 # need to make the FD available again.
21368 if test "$no_create" != yes; then
21369 ac_cs_success=:
21370 ac_config_status_args=
21371 test "$silent" = yes &&
21372 ac_config_status_args="$ac_config_status_args --quiet"
21373 exec 5>/dev/null
21374 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21375 exec 5>>config.log
21376 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21377 # would make configure fail if this is the last instruction.
21378 $ac_cs_success || { (exit 1); exit 1; }
21382 if test -n "$svndate"; then
21383 SVN_REVISION=" ($svndate)"
21384 else
21385 SVN_REVISION=
21389 echo
21390 echo
21391 echo " Configure script has finished system check."
21392 echo
21393 echo " Configured aMule ${PACKAGE_VERSION}${SVN_REVISION} for '${host}'."
21394 echo
21395 echo " aMule enabled options:"
21396 echo
21397 echo " **** aMule Core ****"
21398 echo " Prefix where aMule should be installed? ${prefix:-none}"
21399 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
21400 echo " Should aMule be compiled in debug mode? ${USE_DEBUG:-no}"
21401 echo " Should aMule be compiled with profiling? ${USE_PROFILE:-no}"
21402 echo " Should aMule be compiled with optimizations? ${USE_OPTIMIZE:-no}"
21403 echo " Should aMule be compiled with UPnP support? ${ENABLE_UPNP:-yes}"
21404 echo " Should aMule be compiled with IP2country support? ${ENABLE_IP2COUNTRY:-no}"
21405 echo " Should aMule monolithic application be built? ${MONOLITHIC:-yes}"
21406 echo " Should aMule daemon version be built? ${AMULE_DAEMON:-no}"
21407 echo " Should aMule remote gui be built? (EXPERIMENTAL) ${AMULE_GUI:-no}"
21408 echo " Crypto++ library/headers style? ${CRYPTOPP_STYLE:-not found}"
21410 echo
21411 echo " **** aMule TextClient ****"
21412 echo " Should aMule Command Line Client be built? ${AMULECMD:-no}"
21413 echo
21414 echo " **** aMule WebServer ****"
21415 echo " Should aMule WebServer be built? ${WEB:-no}"
21416 echo
21417 echo " **** aMule ED2K Links Handler ****"
21418 echo " Should aMule ED2K Links Handler be built? ${ED2K:-yes}"
21419 echo
21420 echo " **** aMuleLinkCreator ****"
21421 echo " Should aMuleLinkCreator GUI version (alc) be built? ${ALC:-no}"
21422 echo " Should aMuleLinkCreator for console (alcc) be built? ${ALCC:-no}"
21423 echo
21424 echo " **** aMule Statistics ****"
21425 echo " Should C aMule Statistics (CAS) be built? ${CAS:-no}"
21426 echo " Should aMule GUI Statistics (wxCas) be built? ${WXCAS:-no}"
21427 echo " Should xas XChat2 plugin be installed? ${XAS:-yes}"
21429 echo
21430 echo " **** General Libraries and Tools ****"
21431 echo " Should ccache support be enabled? ${enable_ccache:-no}"
21432 echo " Libraries aMule will use to build:"
21433 wxinfo="$WX_PORT"
21434 if test $WX_DEBUG -eq 1; then
21435 wxinfo="$wxinfo,debug"
21438 if test $WX_SHARED -eq 1; then
21439 wxinfo="$wxinfo,shared"
21440 else
21441 wxinfo="$wxinfo,static"
21444 echo " wxWidgets ${WX_VERSION_FULL} ($wxinfo)"
21445 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (${CRYPTOPP_STYLE}, in ${CRYPTOPP_PREFIX})"
21446 if test -n "$with_libupnp_prefix"; then
21447 libupnp_place=" (in $with_libupnp_prefix)"
21450 if test x${ENABLE_UPNP} = xyes; then
21451 echo " libupnp ${LIBUPNP_VERSION:-Not detected}${libupnp_place:-}"
21454 if test ${enable_nls:-yes} = yes; then
21455 if test x$USE_NLS = xno; then
21456 libintl_found="Not detected"
21457 else
21458 if test x$USE_INCLUDED_LIBINTL = xyes; then
21459 libintl_found="included"
21460 else
21461 libintl_found="system"
21466 echo " libintl $libintl_found"
21468 if test -z "${with_geoip_headers:-}${with_geoip_lib:-}"; then
21469 geoip_style=system
21470 else
21471 geoip_style=user
21474 if test ${ENABLE_IP2COUNTRY:-no} = yes; then
21475 echo " libGeoIP ${geoip_style}"
21478 if test x$LIBPNG_VERSION != xnot_needed; then
21479 echo " libpng ${LIBPNG_VERSION:-Not detected}"
21481 if test x$GDLIB_VERSION != xnot_needed; then
21482 echo " libgd ${GDLIB_VERSION:-Not detected}"
21484 echo " zlib ${ZLIB_VERSION:-Not detected}"
21485 if test ${_mule_has_warnings:-no} = yes; then
21486 echo ""
21487 echo ""
21488 echo " *** Warnings during configuration ***"
21490 if test ${_mule_warning_0:-no} = yes; then
21491 cat <<_MULEEOT
21493 * gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
21494 Please check that gdlib-config is in your default path, check out
21495 LD_LIBRARY_PATH or equivalent variable.
21496 Or this might also be that your gdlib-config has other name.
21497 Please try again with --with-gdlib-config=/usr/bin/gdlib-config (replace
21498 /usr/bin/gdlib-config with a valid path to your gdlib-config).
21499 If you use compiled packages check if you have devel pack installed.
21500 To download the latest version check http://www.boutell.com/gd for sources.
21501 _MULEEOT
21503 if test ${_mule_warning_1:-no} = yes; then
21504 cat <<_MULEEOT
21506 * libpng >= 1.2.0 not found.
21507 amuleweb will be compiled but file download progress bar images will NOT be
21508 generated.
21509 _MULEEOT
21511 if test ${_mule_warning_2:-no} = yes; then
21512 cat <<_MULEEOT
21514 * Cannot link GeoIP statically, because your linker ($LD) does not support it.
21515 _MULEEOT
21517 if test ${_mule_warning_3:-no} = yes; then
21518 cat <<_MULEEOT
21520 * GeoIP support has been disabled because the GeoIP libraries were not found
21521 _MULEEOT
21523 if test ${_mule_warning_4:-no} = yes; then
21524 cat <<_MULEEOT
21526 * GeoIP support has been disabled because the GeoIP header files were not
21527 found
21528 _MULEEOT
21530 if test ${_mule_warning_5:-no} = yes; then
21531 cat <<_MULEEOT
21533 * UPnP code has been disabled because ${libupnp_error}.
21534 _MULEEOT
21536 if test ${_mule_warning_6:-no} = yes; then
21537 cat <<_MULEEOT
21539 * Cross-compilation detected, so exception handling cannot be tested.
21540 Note that broken exception handling in your compiler may lead to unexpected
21541 crashes.
21542 _MULEEOT
21544 if test ${_mule_warning_7:-no} = yes; then
21545 cat <<_MULEEOT
21547 * configure cannot check whether malloc() and realloc() are GNU libc
21548 compatible. You have to be ABSOLUTELY sure that they are, otherwise run
21549 configure with the --without-gnu-malloc switch.
21550 _MULEEOT
21552 if test ${_mule_warning_8:-no} = yes; then
21553 cat <<_MULEEOT
21555 * You need to install GNU gettext/gettext-tools to compile aMule with i18n
21556 support.
21557 _MULEEOT
21559 if test ${_mule_warning_9:-no} = yes; then
21560 cat <<_MULEEOT
21562 * bfd.h not found or unusable, please install binutils development package if
21563 you are a developer or want to help testing aMule
21564 _MULEEOT