Rewrote upload queue for better performance
[amule.git] / configure
blob589a6864173a5b468b19f57e8c24f138801cfced
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 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 MONOLITHIC_TRUE MONOLITHIC_FALSE AMULE_DAEMON_TRUE AMULE_DAEMON_FALSE COMPILE_CMD_TRUE COMPILE_CMD_FALSE WEB_TRUE WEB_FALSE AMULE_GUI_TRUE AMULE_GUI_FALSE CAS_TRUE CAS_FALSE WXCAS_TRUE WXCAS_FALSE ED2K_TRUE ED2K_FALSE ALC_TRUE ALC_FALSE ALCC_TRUE ALCC_FALSE XAS_TRUE XAS_FALSE FILEVIEW_TRUE FILEVIEW_FALSE 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_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 WEBSERVER_MANPAGES AMULE_GUI_MANPAGES CAS_MANPAGES WXCAS_MANPAGES ED2K_MANPAGES ALC_MANPAGES ALCC_MANPAGES MONOLITHIC_MANPAGES INCINTL BFD_CPPFLAGS BFD_LIBS docdir SVNDATE QT_MOC QT_CORE_CXXFLAGS QT_CORE_LIBS QT_GUI_CXXFLAGS QT_GUI_LIBS KDE4_CONFIG KDE_HEADER_DIR KDE_APPLNK_PATH KDE_SERVICE_PATH KDE_MODULE_PATH KDE_ICON_PATH KDE_MIME_PATH 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 PLASMAMULE_TRUE PLASMAMULE_FALSE COMPILE_LIB_COMMON_TRUE COMPILE_LIB_COMMON_FALSE COMPILE_LIB_EC_TRUE COMPILE_LIB_EC_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 System types:
866 --build=BUILD configure for building on BUILD [guessed]
867 --host=HOST cross-compile to build programs to run on HOST [BUILD]
868 _ACEOF
871 if test -n "$ac_init_help"; then
872 case $ac_init_help in
873 short | recursive ) echo "Configuration of aMule SVN:";;
874 esac
875 cat <<\_ACEOF
877 Optional Features:
878 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
879 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
880 --enable-maintainer-mode enable make rules and dependencies not useful
881 (and sometimes confusing) to the casual installer
882 --disable-dependency-tracking speeds up one-time build
883 --enable-dependency-tracking do not reject slow dependency extractors
884 --disable-monolithic disable building of the monolithic aMule app
885 --enable-amule-daemon compile aMule daemon version
886 --enable-amulecmd compile aMule command line client
887 --enable-webserver compile aMule WebServer
888 --enable-amule-gui compile aMule remote GUI (EXPERIMENTAL)
889 --enable-cas compile C aMule Statistics
890 --enable-wxcas compile aMule GUI Statistics
891 --disable-ed2k don't compile aMule ed2k links handler
892 --enable-alc compile aMuleLinkCreator GUI version
893 --enable-alcc compile aMuleLinkCreator for console
894 --enable-xas install xas XChat2 plugin
895 --enable-fileview compile aMule file viewer for console (EXPERIMENTAL)
896 --enable-plasmamule compile aMule plasma applet and engine
897 --enable-static produce a statically linked executable
898 --enable-kde-in-home install KDE related stuff in your home dir
899 --enable-geoip compile with GeoIP IP2Country library
900 --disable-upnp do not compile UPnP code
901 --enable-mmap enable using mapped memory if supported
902 --disable-rpath do not hardcode runtime library paths
903 --disable-nls do not use Native Language Support
904 --disable-debug disable additional debugging output
905 --enable-profile enable code profiling
906 --enable-optimize enable code optimization
907 --enable-ccache enable ccache support for fast recompilation
909 Optional Packages:
910 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
911 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
912 --with-kde4-config=PATH kde4-config script to use
913 --with-moc=PATH Search in PATH for Qt's meta object compiler
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-language=<langs> Specify a comma-separated list of languages you want
947 to have installed. See po/LINGUAS for available
948 languages
949 --with-gnu-ld assume the C compiler uses GNU ld default=no
950 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
951 --without-libiconv-prefix don't search for libiconv in includedir and libdir
952 --with-included-gettext use the GNU gettext library included here
953 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
954 --without-libintl-prefix don't search for libintl in includedir and libdir
955 --with-denoise-level=<level>
956 Specifies denoising level (0-4):
957 0 - Do nothing
958 4 - Suppress all normal output
959 (for more information see
960 src/utils/scripts/denoiser.rules)
962 --with-ccache-prefix=PREFIX
963 prefix where ccache is installed
965 Some influential environment variables:
966 CXX C++ compiler command
967 CXXFLAGS C++ compiler flags
968 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
969 nonstandard directory <lib dir>
970 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
971 headers in a nonstandard directory <include dir>
972 CXXCPP C++ preprocessor
973 CC C compiler command
974 CFLAGS C compiler flags
975 CPP C preprocessor
976 RC Resource Compiler
977 RCFLAGS Resource Compiler Flags
978 PKG_CONFIG path to pkg-config utility
980 Use these variables to override the choices made by `configure' or to help
981 it to find libraries and programs with nonstandard names/locations.
983 Report bugs to <admin@amule.org>.
984 _ACEOF
987 if test "$ac_init_help" = "recursive"; then
988 # If there are subdirs, report their specific --help.
989 ac_popdir=`pwd`
990 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
991 test -d $ac_dir || continue
992 ac_builddir=.
994 if test "$ac_dir" != .; then
995 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
996 # A "../" for each directory in $ac_dir_suffix.
997 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
998 else
999 ac_dir_suffix= ac_top_builddir=
1002 case $srcdir in
1003 .) # No --srcdir option. We are building in place.
1004 ac_srcdir=.
1005 if test -z "$ac_top_builddir"; then
1006 ac_top_srcdir=.
1007 else
1008 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1009 fi ;;
1010 [\\/]* | ?:[\\/]* ) # Absolute path.
1011 ac_srcdir=$srcdir$ac_dir_suffix;
1012 ac_top_srcdir=$srcdir ;;
1013 *) # Relative path.
1014 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1015 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1016 esac
1018 # Do not use `cd foo && pwd` to compute absolute paths, because
1019 # the directories may not exist.
1020 case `pwd` in
1021 .) ac_abs_builddir="$ac_dir";;
1023 case "$ac_dir" in
1024 .) ac_abs_builddir=`pwd`;;
1025 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1026 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1027 esac;;
1028 esac
1029 case $ac_abs_builddir in
1030 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1032 case ${ac_top_builddir}. in
1033 .) ac_abs_top_builddir=$ac_abs_builddir;;
1034 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1035 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1036 esac;;
1037 esac
1038 case $ac_abs_builddir in
1039 .) ac_abs_srcdir=$ac_srcdir;;
1041 case $ac_srcdir in
1042 .) ac_abs_srcdir=$ac_abs_builddir;;
1043 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1044 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1045 esac;;
1046 esac
1047 case $ac_abs_builddir in
1048 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1050 case $ac_top_srcdir in
1051 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1052 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1053 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1054 esac;;
1055 esac
1057 cd $ac_dir
1058 # Check for guested configure; otherwise get Cygnus style configure.
1059 if test -f $ac_srcdir/configure.gnu; then
1060 echo
1061 $SHELL $ac_srcdir/configure.gnu --help=recursive
1062 elif test -f $ac_srcdir/configure; then
1063 echo
1064 $SHELL $ac_srcdir/configure --help=recursive
1065 elif test -f $ac_srcdir/configure.ac ||
1066 test -f $ac_srcdir/configure.in; then
1067 echo
1068 $ac_configure --help
1069 else
1070 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1072 cd $ac_popdir
1073 done
1076 test -n "$ac_init_help" && exit 0
1077 if $ac_init_version; then
1078 cat <<\_ACEOF
1079 aMule configure SVN
1080 generated by GNU Autoconf 2.59
1082 Copyright (C) 2003 Free Software Foundation, Inc.
1083 This configure script is free software; the Free Software Foundation
1084 gives unlimited permission to copy, distribute and modify it.
1085 _ACEOF
1086 exit 0
1088 exec 5>config.log
1089 cat >&5 <<_ACEOF
1090 This file contains any messages produced by compilers while
1091 running configure, to aid debugging if configure makes a mistake.
1093 It was created by aMule $as_me SVN, which was
1094 generated by GNU Autoconf 2.59. Invocation command line was
1096 $ $0 $@
1098 _ACEOF
1100 cat <<_ASUNAME
1101 ## --------- ##
1102 ## Platform. ##
1103 ## --------- ##
1105 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1106 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1107 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1108 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1109 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1111 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1112 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1114 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1115 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1116 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1117 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1118 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1119 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1120 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1122 _ASUNAME
1124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1125 for as_dir in $PATH
1127 IFS=$as_save_IFS
1128 test -z "$as_dir" && as_dir=.
1129 echo "PATH: $as_dir"
1130 done
1132 } >&5
1134 cat >&5 <<_ACEOF
1137 ## ----------- ##
1138 ## Core tests. ##
1139 ## ----------- ##
1141 _ACEOF
1144 # Keep a trace of the command line.
1145 # Strip out --no-create and --no-recursion so they do not pile up.
1146 # Strip out --silent because we don't want to record it for future runs.
1147 # Also quote any args containing shell meta-characters.
1148 # Make two passes to allow for proper duplicate-argument suppression.
1149 ac_configure_args=
1150 ac_configure_args0=
1151 ac_configure_args1=
1152 ac_sep=
1153 ac_must_keep_next=false
1154 for ac_pass in 1 2
1156 for ac_arg
1158 case $ac_arg in
1159 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1160 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1161 | -silent | --silent | --silen | --sile | --sil)
1162 continue ;;
1163 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1164 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1165 esac
1166 case $ac_pass in
1167 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1169 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1170 if test $ac_must_keep_next = true; then
1171 ac_must_keep_next=false # Got value, back to normal.
1172 else
1173 case $ac_arg in
1174 *=* | --config-cache | -C | -disable-* | --disable-* \
1175 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1176 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1177 | -with-* | --with-* | -without-* | --without-* | --x)
1178 case "$ac_configure_args0 " in
1179 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1180 esac
1182 -* ) ac_must_keep_next=true ;;
1183 esac
1185 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1186 # Get rid of the leading space.
1187 ac_sep=" "
1189 esac
1190 done
1191 done
1192 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1193 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1195 # When interrupted or exit'd, cleanup temporary files, and complete
1196 # config.log. We remove comments because anyway the quotes in there
1197 # would cause problems or look ugly.
1198 # WARNING: Be sure not to use single quotes in there, as some shells,
1199 # such as our DU 5.0 friend, will then `close' the trap.
1200 trap 'exit_status=$?
1201 # Save into config.log some information that might help in debugging.
1203 echo
1205 cat <<\_ASBOX
1206 ## ---------------- ##
1207 ## Cache variables. ##
1208 ## ---------------- ##
1209 _ASBOX
1210 echo
1211 # The following way of writing the cache mishandles newlines in values,
1213 (set) 2>&1 |
1214 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1215 *ac_space=\ *)
1216 sed -n \
1217 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1218 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1221 sed -n \
1222 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1224 esac;
1226 echo
1228 cat <<\_ASBOX
1229 ## ----------------- ##
1230 ## Output variables. ##
1231 ## ----------------- ##
1232 _ASBOX
1233 echo
1234 for ac_var in $ac_subst_vars
1236 eval ac_val=$`echo $ac_var`
1237 echo "$ac_var='"'"'$ac_val'"'"'"
1238 done | sort
1239 echo
1241 if test -n "$ac_subst_files"; then
1242 cat <<\_ASBOX
1243 ## ------------- ##
1244 ## Output files. ##
1245 ## ------------- ##
1246 _ASBOX
1247 echo
1248 for ac_var in $ac_subst_files
1250 eval ac_val=$`echo $ac_var`
1251 echo "$ac_var='"'"'$ac_val'"'"'"
1252 done | sort
1253 echo
1256 if test -s confdefs.h; then
1257 cat <<\_ASBOX
1258 ## ----------- ##
1259 ## confdefs.h. ##
1260 ## ----------- ##
1261 _ASBOX
1262 echo
1263 sed "/^$/d" confdefs.h | sort
1264 echo
1266 test "$ac_signal" != 0 &&
1267 echo "$as_me: caught signal $ac_signal"
1268 echo "$as_me: exit $exit_status"
1269 } >&5
1270 rm -f core *.core &&
1271 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1272 exit $exit_status
1274 for ac_signal in 1 2 13 15; do
1275 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1276 done
1277 ac_signal=0
1279 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1280 rm -rf conftest* confdefs.h
1281 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1282 echo >confdefs.h
1284 # Predefined preprocessor variables.
1286 cat >>confdefs.h <<_ACEOF
1287 #define PACKAGE_NAME "$PACKAGE_NAME"
1288 _ACEOF
1291 cat >>confdefs.h <<_ACEOF
1292 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1293 _ACEOF
1296 cat >>confdefs.h <<_ACEOF
1297 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1298 _ACEOF
1301 cat >>confdefs.h <<_ACEOF
1302 #define PACKAGE_STRING "$PACKAGE_STRING"
1303 _ACEOF
1306 cat >>confdefs.h <<_ACEOF
1307 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1308 _ACEOF
1311 # Let the site file select an alternate cache file if it wants to.
1312 # Prefer explicitly selected file to automatically selected ones.
1313 if test -z "$CONFIG_SITE"; then
1314 if test "x$prefix" != xNONE; then
1315 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1316 else
1317 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1320 for ac_site_file in $CONFIG_SITE; do
1321 if test -r "$ac_site_file"; then
1322 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1323 echo "$as_me: loading site script $ac_site_file" >&6;}
1324 sed 's/^/| /' "$ac_site_file" >&5
1325 . "$ac_site_file"
1327 done
1329 if test -r "$cache_file"; then
1330 # Some versions of bash will fail to source /dev/null (special
1331 # files actually), so we avoid doing that.
1332 if test -f "$cache_file"; then
1333 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1334 echo "$as_me: loading cache $cache_file" >&6;}
1335 case $cache_file in
1336 [\\/]* | ?:[\\/]* ) . $cache_file;;
1337 *) . ./$cache_file;;
1338 esac
1340 else
1341 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1342 echo "$as_me: creating cache $cache_file" >&6;}
1343 >$cache_file
1346 # Check that the precious variables saved in the cache have kept the same
1347 # value.
1348 ac_cache_corrupted=false
1349 for ac_var in `(set) 2>&1 |
1350 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1351 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1352 eval ac_new_set=\$ac_env_${ac_var}_set
1353 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1354 eval ac_new_val="\$ac_env_${ac_var}_value"
1355 case $ac_old_set,$ac_new_set in
1356 set,)
1357 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1358 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1359 ac_cache_corrupted=: ;;
1360 ,set)
1361 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1362 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1363 ac_cache_corrupted=: ;;
1364 ,);;
1366 if test "x$ac_old_val" != "x$ac_new_val"; then
1367 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1368 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1369 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1370 echo "$as_me: former value: $ac_old_val" >&2;}
1371 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1372 echo "$as_me: current value: $ac_new_val" >&2;}
1373 ac_cache_corrupted=:
1374 fi;;
1375 esac
1376 # Pass precious variables to config.status.
1377 if test "$ac_new_set" = set; then
1378 case $ac_new_val in
1379 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1380 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1381 *) ac_arg=$ac_var=$ac_new_val ;;
1382 esac
1383 case " $ac_configure_args " in
1384 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1385 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1386 esac
1388 done
1389 if $ac_cache_corrupted; then
1390 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1391 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1392 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1393 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1394 { (exit 1); exit 1; }; }
1397 ac_ext=c
1398 ac_cpp='$CPP $CPPFLAGS'
1399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1429 am__api_version="1.9"
1430 ac_aux_dir=
1431 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1432 if test -f $ac_dir/install-sh; then
1433 ac_aux_dir=$ac_dir
1434 ac_install_sh="$ac_aux_dir/install-sh -c"
1435 break
1436 elif test -f $ac_dir/install.sh; then
1437 ac_aux_dir=$ac_dir
1438 ac_install_sh="$ac_aux_dir/install.sh -c"
1439 break
1440 elif test -f $ac_dir/shtool; then
1441 ac_aux_dir=$ac_dir
1442 ac_install_sh="$ac_aux_dir/shtool install -c"
1443 break
1445 done
1446 if test -z "$ac_aux_dir"; then
1447 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1448 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1449 { (exit 1); exit 1; }; }
1451 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1452 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1453 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1455 # Find a good install program. We prefer a C program (faster),
1456 # so one script is as good as another. But avoid the broken or
1457 # incompatible versions:
1458 # SysV /etc/install, /usr/sbin/install
1459 # SunOS /usr/etc/install
1460 # IRIX /sbin/install
1461 # AIX /bin/install
1462 # AmigaOS /C/install, which installs bootblocks on floppy discs
1463 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1464 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1465 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1466 # OS/2's system install, which has a completely different semantic
1467 # ./install, which can be erroneously created by make from ./install.sh.
1468 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1469 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1470 if test -z "$INSTALL"; then
1471 if test "${ac_cv_path_install+set}" = set; then
1472 echo $ECHO_N "(cached) $ECHO_C" >&6
1473 else
1474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1475 for as_dir in $PATH
1477 IFS=$as_save_IFS
1478 test -z "$as_dir" && as_dir=.
1479 # Account for people who put trailing slashes in PATH elements.
1480 case $as_dir/ in
1481 ./ | .// | /cC/* | \
1482 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1483 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1484 /usr/ucb/* ) ;;
1486 # OSF1 and SCO ODT 3.0 have their own names for install.
1487 # Don't use installbsd from OSF since it installs stuff as root
1488 # by default.
1489 for ac_prog in ginstall scoinst install; do
1490 for ac_exec_ext in '' $ac_executable_extensions; do
1491 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1492 if test $ac_prog = install &&
1493 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1494 # AIX install. It has an incompatible calling convention.
1496 elif test $ac_prog = install &&
1497 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1498 # program-specific install script used by HP pwplus--don't use.
1500 else
1501 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1502 break 3
1505 done
1506 done
1508 esac
1509 done
1513 if test "${ac_cv_path_install+set}" = set; then
1514 INSTALL=$ac_cv_path_install
1515 else
1516 # As a last resort, use the slow shell script. We don't cache a
1517 # path for INSTALL within a source directory, because that will
1518 # break other packages using the cache if that directory is
1519 # removed, or if the path is relative.
1520 INSTALL=$ac_install_sh
1523 echo "$as_me:$LINENO: result: $INSTALL" >&5
1524 echo "${ECHO_T}$INSTALL" >&6
1526 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1527 # It thinks the first close brace ends the variable substitution.
1528 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1530 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1532 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1534 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1535 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1536 # Just in case
1537 sleep 1
1538 echo timestamp > conftest.file
1539 # Do `set' in a subshell so we don't clobber the current shell's
1540 # arguments. Must try -L first in case configure is actually a
1541 # symlink; some systems play weird games with the mod time of symlinks
1542 # (eg FreeBSD returns the mod time of the symlink's containing
1543 # directory).
1544 if (
1545 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1546 if test "$*" = "X"; then
1547 # -L didn't work.
1548 set X `ls -t $srcdir/configure conftest.file`
1550 rm -f conftest.file
1551 if test "$*" != "X $srcdir/configure conftest.file" \
1552 && test "$*" != "X conftest.file $srcdir/configure"; then
1554 # If neither matched, then we have a broken ls. This can happen
1555 # if, for instance, CONFIG_SHELL is bash and it inherits a
1556 # broken ls alias from the environment. This has actually
1557 # happened. Such a system could not be considered "sane".
1558 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1559 alias in your environment" >&5
1560 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1561 alias in your environment" >&2;}
1562 { (exit 1); exit 1; }; }
1565 test "$2" = conftest.file
1567 then
1568 # Ok.
1570 else
1571 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1572 Check your system clock" >&5
1573 echo "$as_me: error: newly created file is older than distributed files!
1574 Check your system clock" >&2;}
1575 { (exit 1); exit 1; }; }
1577 echo "$as_me:$LINENO: result: yes" >&5
1578 echo "${ECHO_T}yes" >&6
1579 test "$program_prefix" != NONE &&
1580 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1581 # Use a double $ so make ignores it.
1582 test "$program_suffix" != NONE &&
1583 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1584 # Double any \ or $. echo might interpret backslashes.
1585 # By default was `s,x,x', remove it if useless.
1586 cat <<\_ACEOF >conftest.sed
1587 s/[\\$]/&&/g;s/;s,x,x,$//
1588 _ACEOF
1589 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1590 rm conftest.sed
1592 # expand $ac_aux_dir to an absolute path
1593 am_aux_dir=`cd $ac_aux_dir && pwd`
1595 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1596 # Use eval to expand $SHELL
1597 if eval "$MISSING --run true"; then
1598 am_missing_run="$MISSING --run "
1599 else
1600 am_missing_run=
1601 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1602 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1605 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1606 # We used to keeping the `.' as first argument, in order to
1607 # allow $(mkdir_p) to be used without argument. As in
1608 # $(mkdir_p) $(somedir)
1609 # where $(somedir) is conditionally defined. However this is wrong
1610 # for two reasons:
1611 # 1. if the package is installed by a user who cannot write `.'
1612 # make install will fail,
1613 # 2. the above comment should most certainly read
1614 # $(mkdir_p) $(DESTDIR)$(somedir)
1615 # so it does not work when $(somedir) is undefined and
1616 # $(DESTDIR) is not.
1617 # To support the latter case, we have to write
1618 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1619 # so the `.' trick is pointless.
1620 mkdir_p='mkdir -p --'
1621 else
1622 # On NextStep and OpenStep, the `mkdir' command does not
1623 # recognize any option. It will interpret all options as
1624 # directories to create, and then abort because `.' already
1625 # exists.
1626 for d in ./-p ./--version;
1628 test -d $d && rmdir $d
1629 done
1630 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1631 if test -f "$ac_aux_dir/mkinstalldirs"; then
1632 mkdir_p='$(mkinstalldirs)'
1633 else
1634 mkdir_p='$(install_sh) -d'
1638 for ac_prog in gawk mawk nawk awk
1640 # Extract the first word of "$ac_prog", so it can be a program name with args.
1641 set dummy $ac_prog; ac_word=$2
1642 echo "$as_me:$LINENO: checking for $ac_word" >&5
1643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1644 if test "${ac_cv_prog_AWK+set}" = set; then
1645 echo $ECHO_N "(cached) $ECHO_C" >&6
1646 else
1647 if test -n "$AWK"; then
1648 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1649 else
1650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1651 for as_dir in $PATH
1653 IFS=$as_save_IFS
1654 test -z "$as_dir" && as_dir=.
1655 for ac_exec_ext in '' $ac_executable_extensions; do
1656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1657 ac_cv_prog_AWK="$ac_prog"
1658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1659 break 2
1661 done
1662 done
1666 AWK=$ac_cv_prog_AWK
1667 if test -n "$AWK"; then
1668 echo "$as_me:$LINENO: result: $AWK" >&5
1669 echo "${ECHO_T}$AWK" >&6
1670 else
1671 echo "$as_me:$LINENO: result: no" >&5
1672 echo "${ECHO_T}no" >&6
1675 test -n "$AWK" && break
1676 done
1678 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1679 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1680 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1681 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1682 echo $ECHO_N "(cached) $ECHO_C" >&6
1683 else
1684 cat >conftest.make <<\_ACEOF
1685 all:
1686 @echo 'ac_maketemp="$(MAKE)"'
1687 _ACEOF
1688 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1689 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1690 if test -n "$ac_maketemp"; then
1691 eval ac_cv_prog_make_${ac_make}_set=yes
1692 else
1693 eval ac_cv_prog_make_${ac_make}_set=no
1695 rm -f conftest.make
1697 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1698 echo "$as_me:$LINENO: result: yes" >&5
1699 echo "${ECHO_T}yes" >&6
1700 SET_MAKE=
1701 else
1702 echo "$as_me:$LINENO: result: no" >&5
1703 echo "${ECHO_T}no" >&6
1704 SET_MAKE="MAKE=${MAKE-make}"
1707 rm -rf .tst 2>/dev/null
1708 mkdir .tst 2>/dev/null
1709 if test -d .tst; then
1710 am__leading_dot=.
1711 else
1712 am__leading_dot=_
1714 rmdir .tst 2>/dev/null
1716 # test to see if srcdir already configured
1717 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1718 test -f $srcdir/config.status; then
1719 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1720 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1721 { (exit 1); exit 1; }; }
1724 # test whether we have cygpath
1725 if test -z "$CYGPATH_W"; then
1726 if (cygpath --version) >/dev/null 2>/dev/null; then
1727 CYGPATH_W='cygpath -w'
1728 else
1729 CYGPATH_W=echo
1734 # Define the identity of the package.
1735 PACKAGE='amule'
1736 VERSION='SVN'
1739 cat >>confdefs.h <<_ACEOF
1740 #define PACKAGE "$PACKAGE"
1741 _ACEOF
1744 cat >>confdefs.h <<_ACEOF
1745 #define VERSION "$VERSION"
1746 _ACEOF
1748 # Some tools Automake needs.
1750 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1753 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1756 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1759 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1762 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1764 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1766 # Installed binaries are usually stripped using `strip' when the user
1767 # run `make install-strip'. However `strip' might not be the right
1768 # tool to use in cross-compilation environments, therefore Automake
1769 # will honor the `STRIP' environment variable to overrule this program.
1770 if test "$cross_compiling" != no; then
1771 if test -n "$ac_tool_prefix"; then
1772 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1773 set dummy ${ac_tool_prefix}strip; ac_word=$2
1774 echo "$as_me:$LINENO: checking for $ac_word" >&5
1775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1776 if test "${ac_cv_prog_STRIP+set}" = set; then
1777 echo $ECHO_N "(cached) $ECHO_C" >&6
1778 else
1779 if test -n "$STRIP"; then
1780 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1781 else
1782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1783 for as_dir in $PATH
1785 IFS=$as_save_IFS
1786 test -z "$as_dir" && as_dir=.
1787 for ac_exec_ext in '' $ac_executable_extensions; do
1788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1789 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1791 break 2
1793 done
1794 done
1798 STRIP=$ac_cv_prog_STRIP
1799 if test -n "$STRIP"; then
1800 echo "$as_me:$LINENO: result: $STRIP" >&5
1801 echo "${ECHO_T}$STRIP" >&6
1802 else
1803 echo "$as_me:$LINENO: result: no" >&5
1804 echo "${ECHO_T}no" >&6
1808 if test -z "$ac_cv_prog_STRIP"; then
1809 ac_ct_STRIP=$STRIP
1810 # Extract the first word of "strip", so it can be a program name with args.
1811 set dummy strip; ac_word=$2
1812 echo "$as_me:$LINENO: checking for $ac_word" >&5
1813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1814 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1815 echo $ECHO_N "(cached) $ECHO_C" >&6
1816 else
1817 if test -n "$ac_ct_STRIP"; then
1818 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1819 else
1820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1821 for as_dir in $PATH
1823 IFS=$as_save_IFS
1824 test -z "$as_dir" && as_dir=.
1825 for ac_exec_ext in '' $ac_executable_extensions; do
1826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1827 ac_cv_prog_ac_ct_STRIP="strip"
1828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1829 break 2
1831 done
1832 done
1834 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1837 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1838 if test -n "$ac_ct_STRIP"; then
1839 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1840 echo "${ECHO_T}$ac_ct_STRIP" >&6
1841 else
1842 echo "$as_me:$LINENO: result: no" >&5
1843 echo "${ECHO_T}no" >&6
1846 STRIP=$ac_ct_STRIP
1847 else
1848 STRIP="$ac_cv_prog_STRIP"
1852 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1854 # We need awk for the "check" target. The system "awk" is bad on
1855 # some platforms.
1856 # Always define AMTAR for backward compatibility.
1858 AMTAR=${AMTAR-"${am_missing_run}tar"}
1860 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1870 ac_config_headers="$ac_config_headers config.h"
1872 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1873 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1874 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1875 if test "${enable_maintainer_mode+set}" = set; then
1876 enableval="$enable_maintainer_mode"
1877 USE_MAINTAINER_MODE=$enableval
1878 else
1879 USE_MAINTAINER_MODE=no
1881 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1882 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1885 if test $USE_MAINTAINER_MODE = yes; then
1886 MAINTAINER_MODE_TRUE=
1887 MAINTAINER_MODE_FALSE='#'
1888 else
1889 MAINTAINER_MODE_TRUE='#'
1890 MAINTAINER_MODE_FALSE=
1893 MAINT=$MAINTAINER_MODE_TRUE
1897 # Make sure we can run config.sub.
1898 $ac_config_sub sun4 >/dev/null 2>&1 ||
1899 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1900 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1901 { (exit 1); exit 1; }; }
1903 echo "$as_me:$LINENO: checking build system type" >&5
1904 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1905 if test "${ac_cv_build+set}" = set; then
1906 echo $ECHO_N "(cached) $ECHO_C" >&6
1907 else
1908 ac_cv_build_alias=$build_alias
1909 test -z "$ac_cv_build_alias" &&
1910 ac_cv_build_alias=`$ac_config_guess`
1911 test -z "$ac_cv_build_alias" &&
1912 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1913 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1914 { (exit 1); exit 1; }; }
1915 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1916 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1917 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1918 { (exit 1); exit 1; }; }
1921 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1922 echo "${ECHO_T}$ac_cv_build" >&6
1923 build=$ac_cv_build
1924 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1925 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1926 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1929 echo "$as_me:$LINENO: checking host system type" >&5
1930 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1931 if test "${ac_cv_host+set}" = set; then
1932 echo $ECHO_N "(cached) $ECHO_C" >&6
1933 else
1934 ac_cv_host_alias=$host_alias
1935 test -z "$ac_cv_host_alias" &&
1936 ac_cv_host_alias=$ac_cv_build_alias
1937 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1938 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1939 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1940 { (exit 1); exit 1; }; }
1943 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1944 echo "${ECHO_T}$ac_cv_host" >&6
1945 host=$ac_cv_host
1946 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1947 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1948 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1952 case "${host_os}" in
1953 darwin*)
1954 SYS=darwin
1955 MULECPPFLAGS="-no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH";
1956 MULELDFLAGS="-bind_at_load"
1957 touch src/Scanner.cpp
1959 openbsd*)
1960 SYS=openbsd
1961 LIBS="$LIBS -L/usr/local/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 LIBS="$LIBS -lrt"
1973 *netbsd*)
1974 SYS=netbsd
1975 # Now this is against autoconf recommendation that configure should not modify CPPFLAGS and LDFLAGS
1976 # However, these values in NetBSD are required even to run the tests, and this is the easiest way to do it.
1977 # Still, we prepend them, instead of adding, so the user may override them.
1978 CPPFLAGS="-I/usr/pkg/include $CPPFLAGS"
1979 LDFLAGS="-R/usr/pkg/lib -L/usr/pkg/lib $LDFLAGS"
1981 *irix*)
1982 SYS=irix
1983 MULECPPFLAGS="-D__IRIX__"
1986 SYS=unknown
1988 esac
1990 # -lpthread is needed by Debian but FreeBSD < 5 doesn't support it
1991 if test ${SYS:-unknown} != win32; then
1993 echo "$as_me:$LINENO: checking if this is a FreeBSD 4 or earlier system" >&5
1994 echo $ECHO_N "checking if this is a FreeBSD 4 or earlier system... $ECHO_C" >&6
1995 if test x"`uname -s`" = xFreeBSD && test 0`uname -r | cut -c 1` -lt 5; then
1997 MULELDFLAGS="$MULELDFLAGS -pthread"
1998 echo "$as_me:$LINENO: result: yes" >&5
1999 echo "${ECHO_T}yes" >&6
2001 else
2003 MULELDFLAGS="$MULELDFLAGS -lpthread"
2004 echo "$as_me:$LINENO: result: no" >&5
2005 echo "${ECHO_T}no" >&6
2015 mule_backup_CFLAGS="$CFLAGS"
2016 mule_backup_CXXFLAGS="$CXXFLAGS"
2017 mule_backup_BUILD_CFLAGS="$BUILD_CFLAGS"
2018 ac_ext=cc
2019 ac_cpp='$CXXCPP $CPPFLAGS'
2020 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2021 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2022 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2023 if test -n "$ac_tool_prefix"; then
2024 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2026 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2027 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2028 echo "$as_me:$LINENO: checking for $ac_word" >&5
2029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2030 if test "${ac_cv_prog_CXX+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2032 else
2033 if test -n "$CXX"; then
2034 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2035 else
2036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037 for as_dir in $PATH
2039 IFS=$as_save_IFS
2040 test -z "$as_dir" && as_dir=.
2041 for ac_exec_ext in '' $ac_executable_extensions; do
2042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2043 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2045 break 2
2047 done
2048 done
2052 CXX=$ac_cv_prog_CXX
2053 if test -n "$CXX"; then
2054 echo "$as_me:$LINENO: result: $CXX" >&5
2055 echo "${ECHO_T}$CXX" >&6
2056 else
2057 echo "$as_me:$LINENO: result: no" >&5
2058 echo "${ECHO_T}no" >&6
2061 test -n "$CXX" && break
2062 done
2064 if test -z "$CXX"; then
2065 ac_ct_CXX=$CXX
2066 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2068 # Extract the first word of "$ac_prog", so it can be a program name with args.
2069 set dummy $ac_prog; ac_word=$2
2070 echo "$as_me:$LINENO: checking for $ac_word" >&5
2071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2072 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2074 else
2075 if test -n "$ac_ct_CXX"; then
2076 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2077 else
2078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079 for as_dir in $PATH
2081 IFS=$as_save_IFS
2082 test -z "$as_dir" && as_dir=.
2083 for ac_exec_ext in '' $ac_executable_extensions; do
2084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2085 ac_cv_prog_ac_ct_CXX="$ac_prog"
2086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2087 break 2
2089 done
2090 done
2094 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2095 if test -n "$ac_ct_CXX"; then
2096 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2097 echo "${ECHO_T}$ac_ct_CXX" >&6
2098 else
2099 echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6
2103 test -n "$ac_ct_CXX" && break
2104 done
2105 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2107 CXX=$ac_ct_CXX
2111 # Provide some information about the compiler.
2112 echo "$as_me:$LINENO:" \
2113 "checking for C++ compiler version" >&5
2114 ac_compiler=`set X $ac_compile; echo $2`
2115 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2116 (eval $ac_compiler --version </dev/null >&5) 2>&5
2117 ac_status=$?
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }
2120 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2121 (eval $ac_compiler -v </dev/null >&5) 2>&5
2122 ac_status=$?
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); }
2125 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2126 (eval $ac_compiler -V </dev/null >&5) 2>&5
2127 ac_status=$?
2128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129 (exit $ac_status); }
2131 cat >conftest.$ac_ext <<_ACEOF
2132 /* confdefs.h. */
2133 _ACEOF
2134 cat confdefs.h >>conftest.$ac_ext
2135 cat >>conftest.$ac_ext <<_ACEOF
2136 /* end confdefs.h. */
2139 main ()
2143 return 0;
2145 _ACEOF
2146 ac_clean_files_save=$ac_clean_files
2147 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2148 # Try to create an executable without -o first, disregard a.out.
2149 # It will help us diagnose broken compilers, and finding out an intuition
2150 # of exeext.
2151 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2152 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2153 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2154 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2155 (eval $ac_link_default) 2>&5
2156 ac_status=$?
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }; then
2159 # Find the output, starting from the most likely. This scheme is
2160 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2161 # resort.
2163 # Be careful to initialize this variable, since it used to be cached.
2164 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2165 ac_cv_exeext=
2166 # b.out is created by i960 compilers.
2167 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2169 test -f "$ac_file" || continue
2170 case $ac_file in
2171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2173 conftest.$ac_ext )
2174 # This is the source file.
2176 [ab].out )
2177 # We found the default executable, but exeext='' is most
2178 # certainly right.
2179 break;;
2180 *.* )
2181 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2182 # FIXME: I believe we export ac_cv_exeext for Libtool,
2183 # but it would be cool to find out if it's true. Does anybody
2184 # maintain Libtool? --akim.
2185 export ac_cv_exeext
2186 break;;
2188 break;;
2189 esac
2190 done
2191 else
2192 echo "$as_me: failed program was:" >&5
2193 sed 's/^/| /' conftest.$ac_ext >&5
2195 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2196 See \`config.log' for more details." >&5
2197 echo "$as_me: error: C++ compiler cannot create executables
2198 See \`config.log' for more details." >&2;}
2199 { (exit 77); exit 77; }; }
2202 ac_exeext=$ac_cv_exeext
2203 echo "$as_me:$LINENO: result: $ac_file" >&5
2204 echo "${ECHO_T}$ac_file" >&6
2206 # Check the compiler produces executables we can run. If not, either
2207 # the compiler is broken, or we cross compile.
2208 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2209 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2210 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2211 # If not cross compiling, check that we can run a simple program.
2212 if test "$cross_compiling" != yes; then
2213 if { ac_try='./$ac_file'
2214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2215 (eval $ac_try) 2>&5
2216 ac_status=$?
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); }; }; then
2219 cross_compiling=no
2220 else
2221 if test "$cross_compiling" = maybe; then
2222 cross_compiling=yes
2223 else
2224 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2225 If you meant to cross compile, use \`--host'.
2226 See \`config.log' for more details." >&5
2227 echo "$as_me: error: cannot run C++ compiled programs.
2228 If you meant to cross compile, use \`--host'.
2229 See \`config.log' for more details." >&2;}
2230 { (exit 1); exit 1; }; }
2234 echo "$as_me:$LINENO: result: yes" >&5
2235 echo "${ECHO_T}yes" >&6
2237 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2238 ac_clean_files=$ac_clean_files_save
2239 # Check the compiler produces executables we can run. If not, either
2240 # the compiler is broken, or we cross compile.
2241 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2242 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2243 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2244 echo "${ECHO_T}$cross_compiling" >&6
2246 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2247 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2249 (eval $ac_link) 2>&5
2250 ac_status=$?
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; then
2253 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2254 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2255 # work properly (i.e., refer to `conftest.exe'), while it won't with
2256 # `rm'.
2257 for ac_file in conftest.exe conftest conftest.*; do
2258 test -f "$ac_file" || continue
2259 case $ac_file in
2260 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2261 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2262 export ac_cv_exeext
2263 break;;
2264 * ) break;;
2265 esac
2266 done
2267 else
2268 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2269 See \`config.log' for more details." >&5
2270 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2271 See \`config.log' for more details." >&2;}
2272 { (exit 1); exit 1; }; }
2275 rm -f conftest$ac_cv_exeext
2276 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2277 echo "${ECHO_T}$ac_cv_exeext" >&6
2279 rm -f conftest.$ac_ext
2280 EXEEXT=$ac_cv_exeext
2281 ac_exeext=$EXEEXT
2282 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2283 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2284 if test "${ac_cv_objext+set}" = set; then
2285 echo $ECHO_N "(cached) $ECHO_C" >&6
2286 else
2287 cat >conftest.$ac_ext <<_ACEOF
2288 /* confdefs.h. */
2289 _ACEOF
2290 cat confdefs.h >>conftest.$ac_ext
2291 cat >>conftest.$ac_ext <<_ACEOF
2292 /* end confdefs.h. */
2295 main ()
2299 return 0;
2301 _ACEOF
2302 rm -f conftest.o conftest.obj
2303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2304 (eval $ac_compile) 2>&5
2305 ac_status=$?
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); }; then
2308 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2309 case $ac_file in
2310 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2311 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2312 break;;
2313 esac
2314 done
2315 else
2316 echo "$as_me: failed program was:" >&5
2317 sed 's/^/| /' conftest.$ac_ext >&5
2319 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2320 See \`config.log' for more details." >&5
2321 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2322 See \`config.log' for more details." >&2;}
2323 { (exit 1); exit 1; }; }
2326 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2328 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2329 echo "${ECHO_T}$ac_cv_objext" >&6
2330 OBJEXT=$ac_cv_objext
2331 ac_objext=$OBJEXT
2332 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2333 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2334 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2335 echo $ECHO_N "(cached) $ECHO_C" >&6
2336 else
2337 cat >conftest.$ac_ext <<_ACEOF
2338 /* confdefs.h. */
2339 _ACEOF
2340 cat confdefs.h >>conftest.$ac_ext
2341 cat >>conftest.$ac_ext <<_ACEOF
2342 /* end confdefs.h. */
2345 main ()
2347 #ifndef __GNUC__
2348 choke me
2349 #endif
2352 return 0;
2354 _ACEOF
2355 rm -f conftest.$ac_objext
2356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2357 (eval $ac_compile) 2>conftest.er1
2358 ac_status=$?
2359 grep -v '^ *+' conftest.er1 >conftest.err
2360 rm -f conftest.er1
2361 cat conftest.err >&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); } &&
2364 { ac_try='test -z "$ac_cxx_werror_flag"
2365 || test ! -s conftest.err'
2366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2367 (eval $ac_try) 2>&5
2368 ac_status=$?
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }; } &&
2371 { ac_try='test -s conftest.$ac_objext'
2372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2373 (eval $ac_try) 2>&5
2374 ac_status=$?
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); }; }; then
2377 ac_compiler_gnu=yes
2378 else
2379 echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.$ac_ext >&5
2382 ac_compiler_gnu=no
2384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2385 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2388 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2389 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2390 GXX=`test $ac_compiler_gnu = yes && echo yes`
2391 ac_test_CXXFLAGS=${CXXFLAGS+set}
2392 ac_save_CXXFLAGS=$CXXFLAGS
2393 CXXFLAGS="-g"
2394 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2395 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2396 if test "${ac_cv_prog_cxx_g+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2398 else
2399 cat >conftest.$ac_ext <<_ACEOF
2400 /* confdefs.h. */
2401 _ACEOF
2402 cat confdefs.h >>conftest.$ac_ext
2403 cat >>conftest.$ac_ext <<_ACEOF
2404 /* end confdefs.h. */
2407 main ()
2411 return 0;
2413 _ACEOF
2414 rm -f conftest.$ac_objext
2415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2416 (eval $ac_compile) 2>conftest.er1
2417 ac_status=$?
2418 grep -v '^ *+' conftest.er1 >conftest.err
2419 rm -f conftest.er1
2420 cat conftest.err >&5
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); } &&
2423 { ac_try='test -z "$ac_cxx_werror_flag"
2424 || test ! -s conftest.err'
2425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426 (eval $ac_try) 2>&5
2427 ac_status=$?
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }; } &&
2430 { ac_try='test -s conftest.$ac_objext'
2431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2432 (eval $ac_try) 2>&5
2433 ac_status=$?
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); }; }; then
2436 ac_cv_prog_cxx_g=yes
2437 else
2438 echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.$ac_ext >&5
2441 ac_cv_prog_cxx_g=no
2443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2445 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2446 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2447 if test "$ac_test_CXXFLAGS" = set; then
2448 CXXFLAGS=$ac_save_CXXFLAGS
2449 elif test $ac_cv_prog_cxx_g = yes; then
2450 if test "$GXX" = yes; then
2451 CXXFLAGS="-g -O2"
2452 else
2453 CXXFLAGS="-g"
2455 else
2456 if test "$GXX" = yes; then
2457 CXXFLAGS="-O2"
2458 else
2459 CXXFLAGS=
2462 for ac_declaration in \
2463 '' \
2464 'extern "C" void std::exit (int) throw (); using std::exit;' \
2465 'extern "C" void std::exit (int); using std::exit;' \
2466 'extern "C" void exit (int) throw ();' \
2467 'extern "C" void exit (int);' \
2468 'void exit (int);'
2470 cat >conftest.$ac_ext <<_ACEOF
2471 /* confdefs.h. */
2472 _ACEOF
2473 cat confdefs.h >>conftest.$ac_ext
2474 cat >>conftest.$ac_ext <<_ACEOF
2475 /* end confdefs.h. */
2476 $ac_declaration
2477 #include <stdlib.h>
2479 main ()
2481 exit (42);
2483 return 0;
2485 _ACEOF
2486 rm -f conftest.$ac_objext
2487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2488 (eval $ac_compile) 2>conftest.er1
2489 ac_status=$?
2490 grep -v '^ *+' conftest.er1 >conftest.err
2491 rm -f conftest.er1
2492 cat conftest.err >&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); } &&
2495 { ac_try='test -z "$ac_cxx_werror_flag"
2496 || test ! -s conftest.err'
2497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2498 (eval $ac_try) 2>&5
2499 ac_status=$?
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); }; } &&
2502 { ac_try='test -s conftest.$ac_objext'
2503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2504 (eval $ac_try) 2>&5
2505 ac_status=$?
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); }; }; then
2509 else
2510 echo "$as_me: failed program was:" >&5
2511 sed 's/^/| /' conftest.$ac_ext >&5
2513 continue
2515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2516 cat >conftest.$ac_ext <<_ACEOF
2517 /* confdefs.h. */
2518 _ACEOF
2519 cat confdefs.h >>conftest.$ac_ext
2520 cat >>conftest.$ac_ext <<_ACEOF
2521 /* end confdefs.h. */
2522 $ac_declaration
2524 main ()
2526 exit (42);
2528 return 0;
2530 _ACEOF
2531 rm -f conftest.$ac_objext
2532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2533 (eval $ac_compile) 2>conftest.er1
2534 ac_status=$?
2535 grep -v '^ *+' conftest.er1 >conftest.err
2536 rm -f conftest.er1
2537 cat conftest.err >&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); } &&
2540 { ac_try='test -z "$ac_cxx_werror_flag"
2541 || test ! -s conftest.err'
2542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2543 (eval $ac_try) 2>&5
2544 ac_status=$?
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }; } &&
2547 { ac_try='test -s conftest.$ac_objext'
2548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2549 (eval $ac_try) 2>&5
2550 ac_status=$?
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }; }; then
2553 break
2554 else
2555 echo "$as_me: failed program was:" >&5
2556 sed 's/^/| /' conftest.$ac_ext >&5
2559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2560 done
2561 rm -f conftest*
2562 if test -n "$ac_declaration"; then
2563 echo '#ifdef __cplusplus' >>confdefs.h
2564 echo $ac_declaration >>confdefs.h
2565 echo '#endif' >>confdefs.h
2568 ac_ext=c
2569 ac_cpp='$CPP $CPPFLAGS'
2570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2573 DEPDIR="${am__leading_dot}deps"
2575 ac_config_commands="$ac_config_commands depfiles"
2578 am_make=${MAKE-make}
2579 cat > confinc << 'END'
2580 am__doit:
2581 @echo done
2582 .PHONY: am__doit
2584 # If we don't find an include directive, just comment out the code.
2585 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2586 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2587 am__include="#"
2588 am__quote=
2589 _am_result=none
2590 # First try GNU make style include.
2591 echo "include confinc" > confmf
2592 # We grep out `Entering directory' and `Leaving directory'
2593 # messages which can occur if `w' ends up in MAKEFLAGS.
2594 # In particular we don't look at `^make:' because GNU make might
2595 # be invoked under some other name (usually "gmake"), in which
2596 # case it prints its new name instead of `make'.
2597 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2598 am__include=include
2599 am__quote=
2600 _am_result=GNU
2602 # Now try BSD make style include.
2603 if test "$am__include" = "#"; then
2604 echo '.include "confinc"' > confmf
2605 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2606 am__include=.include
2607 am__quote="\""
2608 _am_result=BSD
2613 echo "$as_me:$LINENO: result: $_am_result" >&5
2614 echo "${ECHO_T}$_am_result" >&6
2615 rm -f confinc confmf
2617 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2618 if test "${enable_dependency_tracking+set}" = set; then
2619 enableval="$enable_dependency_tracking"
2622 if test "x$enable_dependency_tracking" != xno; then
2623 am_depcomp="$ac_aux_dir/depcomp"
2624 AMDEPBACKSLASH='\'
2628 if test "x$enable_dependency_tracking" != xno; then
2629 AMDEP_TRUE=
2630 AMDEP_FALSE='#'
2631 else
2632 AMDEP_TRUE='#'
2633 AMDEP_FALSE=
2639 depcc="$CXX" am_compiler_list=
2641 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2642 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2643 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2644 echo $ECHO_N "(cached) $ECHO_C" >&6
2645 else
2646 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2647 # We make a subdir and do the tests there. Otherwise we can end up
2648 # making bogus files that we don't know about and never remove. For
2649 # instance it was reported that on HP-UX the gcc test will end up
2650 # making a dummy file named `D' -- because `-MD' means `put the output
2651 # in D'.
2652 mkdir conftest.dir
2653 # Copy depcomp to subdir because otherwise we won't find it if we're
2654 # using a relative directory.
2655 cp "$am_depcomp" conftest.dir
2656 cd conftest.dir
2657 # We will build objects and dependencies in a subdirectory because
2658 # it helps to detect inapplicable dependency modes. For instance
2659 # both Tru64's cc and ICC support -MD to output dependencies as a
2660 # side effect of compilation, but ICC will put the dependencies in
2661 # the current directory while Tru64 will put them in the object
2662 # directory.
2663 mkdir sub
2665 am_cv_CXX_dependencies_compiler_type=none
2666 if test "$am_compiler_list" = ""; then
2667 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2669 for depmode in $am_compiler_list; do
2670 # Setup a source with many dependencies, because some compilers
2671 # like to wrap large dependency lists on column 80 (with \), and
2672 # we should not choose a depcomp mode which is confused by this.
2674 # We need to recreate these files for each test, as the compiler may
2675 # overwrite some of them when testing with obscure command lines.
2676 # This happens at least with the AIX C compiler.
2677 : > sub/conftest.c
2678 for i in 1 2 3 4 5 6; do
2679 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2680 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2681 # Solaris 8's {/usr,}/bin/sh.
2682 touch sub/conftst$i.h
2683 done
2684 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2686 case $depmode in
2687 nosideeffect)
2688 # after this tag, mechanisms are not by side-effect, so they'll
2689 # only be used when explicitly requested
2690 if test "x$enable_dependency_tracking" = xyes; then
2691 continue
2692 else
2693 break
2696 none) break ;;
2697 esac
2698 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2699 # mode. It turns out that the SunPro C++ compiler does not properly
2700 # handle `-M -o', and we need to detect this.
2701 if depmode=$depmode \
2702 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2703 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2704 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2705 >/dev/null 2>conftest.err &&
2706 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2707 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2708 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2709 # icc doesn't choke on unknown options, it will just issue warnings
2710 # or remarks (even with -Werror). So we grep stderr for any message
2711 # that says an option was ignored or not supported.
2712 # When given -MP, icc 7.0 and 7.1 complain thusly:
2713 # icc: Command line warning: ignoring option '-M'; no argument required
2714 # The diagnosis changed in icc 8.0:
2715 # icc: Command line remark: option '-MP' not supported
2716 if (grep 'ignoring option' conftest.err ||
2717 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2718 am_cv_CXX_dependencies_compiler_type=$depmode
2719 break
2722 done
2724 cd ..
2725 rm -rf conftest.dir
2726 else
2727 am_cv_CXX_dependencies_compiler_type=none
2731 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2732 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2733 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2738 test "x$enable_dependency_tracking" != xno \
2739 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2740 am__fastdepCXX_TRUE=
2741 am__fastdepCXX_FALSE='#'
2742 else
2743 am__fastdepCXX_TRUE='#'
2744 am__fastdepCXX_FALSE=
2748 ac_ext=cc
2749 ac_cpp='$CXXCPP $CPPFLAGS'
2750 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2751 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2752 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2753 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2754 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2755 if test -z "$CXXCPP"; then
2756 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2757 echo $ECHO_N "(cached) $ECHO_C" >&6
2758 else
2759 # Double quotes because CXXCPP needs to be expanded
2760 for CXXCPP in "$CXX -E" "/lib/cpp"
2762 ac_preproc_ok=false
2763 for ac_cxx_preproc_warn_flag in '' yes
2765 # Use a header file that comes with gcc, so configuring glibc
2766 # with a fresh cross-compiler works.
2767 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2768 # <limits.h> exists even on freestanding compilers.
2769 # On the NeXT, cc -E runs the code through the compiler's parser,
2770 # not just through cpp. "Syntax error" is here to catch this case.
2771 cat >conftest.$ac_ext <<_ACEOF
2772 /* confdefs.h. */
2773 _ACEOF
2774 cat confdefs.h >>conftest.$ac_ext
2775 cat >>conftest.$ac_ext <<_ACEOF
2776 /* end confdefs.h. */
2777 #ifdef __STDC__
2778 # include <limits.h>
2779 #else
2780 # include <assert.h>
2781 #endif
2782 Syntax error
2783 _ACEOF
2784 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2785 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2786 ac_status=$?
2787 grep -v '^ *+' conftest.er1 >conftest.err
2788 rm -f conftest.er1
2789 cat conftest.err >&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); } >/dev/null; then
2792 if test -s conftest.err; then
2793 ac_cpp_err=$ac_cxx_preproc_warn_flag
2794 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2795 else
2796 ac_cpp_err=
2798 else
2799 ac_cpp_err=yes
2801 if test -z "$ac_cpp_err"; then
2803 else
2804 echo "$as_me: failed program was:" >&5
2805 sed 's/^/| /' conftest.$ac_ext >&5
2807 # Broken: fails on valid input.
2808 continue
2810 rm -f conftest.err conftest.$ac_ext
2812 # OK, works on sane cases. Now check whether non-existent headers
2813 # can be detected and how.
2814 cat >conftest.$ac_ext <<_ACEOF
2815 /* confdefs.h. */
2816 _ACEOF
2817 cat confdefs.h >>conftest.$ac_ext
2818 cat >>conftest.$ac_ext <<_ACEOF
2819 /* end confdefs.h. */
2820 #include <ac_nonexistent.h>
2821 _ACEOF
2822 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2823 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2824 ac_status=$?
2825 grep -v '^ *+' conftest.er1 >conftest.err
2826 rm -f conftest.er1
2827 cat conftest.err >&5
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); } >/dev/null; then
2830 if test -s conftest.err; then
2831 ac_cpp_err=$ac_cxx_preproc_warn_flag
2832 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2833 else
2834 ac_cpp_err=
2836 else
2837 ac_cpp_err=yes
2839 if test -z "$ac_cpp_err"; then
2840 # Broken: success on invalid input.
2841 continue
2842 else
2843 echo "$as_me: failed program was:" >&5
2844 sed 's/^/| /' conftest.$ac_ext >&5
2846 # Passes both tests.
2847 ac_preproc_ok=:
2848 break
2850 rm -f conftest.err conftest.$ac_ext
2852 done
2853 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2854 rm -f conftest.err conftest.$ac_ext
2855 if $ac_preproc_ok; then
2856 break
2859 done
2860 ac_cv_prog_CXXCPP=$CXXCPP
2863 CXXCPP=$ac_cv_prog_CXXCPP
2864 else
2865 ac_cv_prog_CXXCPP=$CXXCPP
2867 echo "$as_me:$LINENO: result: $CXXCPP" >&5
2868 echo "${ECHO_T}$CXXCPP" >&6
2869 ac_preproc_ok=false
2870 for ac_cxx_preproc_warn_flag in '' yes
2872 # Use a header file that comes with gcc, so configuring glibc
2873 # with a fresh cross-compiler works.
2874 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2875 # <limits.h> exists even on freestanding compilers.
2876 # On the NeXT, cc -E runs the code through the compiler's parser,
2877 # not just through cpp. "Syntax error" is here to catch this case.
2878 cat >conftest.$ac_ext <<_ACEOF
2879 /* confdefs.h. */
2880 _ACEOF
2881 cat confdefs.h >>conftest.$ac_ext
2882 cat >>conftest.$ac_ext <<_ACEOF
2883 /* end confdefs.h. */
2884 #ifdef __STDC__
2885 # include <limits.h>
2886 #else
2887 # include <assert.h>
2888 #endif
2889 Syntax error
2890 _ACEOF
2891 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2892 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2893 ac_status=$?
2894 grep -v '^ *+' conftest.er1 >conftest.err
2895 rm -f conftest.er1
2896 cat conftest.err >&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } >/dev/null; then
2899 if test -s conftest.err; then
2900 ac_cpp_err=$ac_cxx_preproc_warn_flag
2901 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2902 else
2903 ac_cpp_err=
2905 else
2906 ac_cpp_err=yes
2908 if test -z "$ac_cpp_err"; then
2910 else
2911 echo "$as_me: failed program was:" >&5
2912 sed 's/^/| /' conftest.$ac_ext >&5
2914 # Broken: fails on valid input.
2915 continue
2917 rm -f conftest.err conftest.$ac_ext
2919 # OK, works on sane cases. Now check whether non-existent headers
2920 # can be detected and how.
2921 cat >conftest.$ac_ext <<_ACEOF
2922 /* confdefs.h. */
2923 _ACEOF
2924 cat confdefs.h >>conftest.$ac_ext
2925 cat >>conftest.$ac_ext <<_ACEOF
2926 /* end confdefs.h. */
2927 #include <ac_nonexistent.h>
2928 _ACEOF
2929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2930 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2931 ac_status=$?
2932 grep -v '^ *+' conftest.er1 >conftest.err
2933 rm -f conftest.er1
2934 cat conftest.err >&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); } >/dev/null; then
2937 if test -s conftest.err; then
2938 ac_cpp_err=$ac_cxx_preproc_warn_flag
2939 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2940 else
2941 ac_cpp_err=
2943 else
2944 ac_cpp_err=yes
2946 if test -z "$ac_cpp_err"; then
2947 # Broken: success on invalid input.
2948 continue
2949 else
2950 echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.$ac_ext >&5
2953 # Passes both tests.
2954 ac_preproc_ok=:
2955 break
2957 rm -f conftest.err conftest.$ac_ext
2959 done
2960 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2961 rm -f conftest.err conftest.$ac_ext
2962 if $ac_preproc_ok; then
2964 else
2965 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2966 See \`config.log' for more details." >&5
2967 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2968 See \`config.log' for more details." >&2;}
2969 { (exit 1); exit 1; }; }
2972 ac_ext=c
2973 ac_cpp='$CPP $CPPFLAGS'
2974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2978 ac_ext=c
2979 ac_cpp='$CPP $CPPFLAGS'
2980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2983 if test -n "$ac_tool_prefix"; then
2984 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2985 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2986 echo "$as_me:$LINENO: checking for $ac_word" >&5
2987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2988 if test "${ac_cv_prog_CC+set}" = set; then
2989 echo $ECHO_N "(cached) $ECHO_C" >&6
2990 else
2991 if test -n "$CC"; then
2992 ac_cv_prog_CC="$CC" # Let the user override the test.
2993 else
2994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995 for as_dir in $PATH
2997 IFS=$as_save_IFS
2998 test -z "$as_dir" && as_dir=.
2999 for ac_exec_ext in '' $ac_executable_extensions; do
3000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3001 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3003 break 2
3005 done
3006 done
3010 CC=$ac_cv_prog_CC
3011 if test -n "$CC"; then
3012 echo "$as_me:$LINENO: result: $CC" >&5
3013 echo "${ECHO_T}$CC" >&6
3014 else
3015 echo "$as_me:$LINENO: result: no" >&5
3016 echo "${ECHO_T}no" >&6
3020 if test -z "$ac_cv_prog_CC"; then
3021 ac_ct_CC=$CC
3022 # Extract the first word of "gcc", so it can be a program name with args.
3023 set dummy gcc; ac_word=$2
3024 echo "$as_me:$LINENO: checking for $ac_word" >&5
3025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3026 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3027 echo $ECHO_N "(cached) $ECHO_C" >&6
3028 else
3029 if test -n "$ac_ct_CC"; then
3030 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3031 else
3032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033 for as_dir in $PATH
3035 IFS=$as_save_IFS
3036 test -z "$as_dir" && as_dir=.
3037 for ac_exec_ext in '' $ac_executable_extensions; do
3038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3039 ac_cv_prog_ac_ct_CC="gcc"
3040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3041 break 2
3043 done
3044 done
3048 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3049 if test -n "$ac_ct_CC"; then
3050 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3051 echo "${ECHO_T}$ac_ct_CC" >&6
3052 else
3053 echo "$as_me:$LINENO: result: no" >&5
3054 echo "${ECHO_T}no" >&6
3057 CC=$ac_ct_CC
3058 else
3059 CC="$ac_cv_prog_CC"
3062 if test -z "$CC"; then
3063 if test -n "$ac_tool_prefix"; then
3064 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3065 set dummy ${ac_tool_prefix}cc; ac_word=$2
3066 echo "$as_me:$LINENO: checking for $ac_word" >&5
3067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3068 if test "${ac_cv_prog_CC+set}" = set; then
3069 echo $ECHO_N "(cached) $ECHO_C" >&6
3070 else
3071 if test -n "$CC"; then
3072 ac_cv_prog_CC="$CC" # Let the user override the test.
3073 else
3074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 for as_dir in $PATH
3077 IFS=$as_save_IFS
3078 test -z "$as_dir" && as_dir=.
3079 for ac_exec_ext in '' $ac_executable_extensions; do
3080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3081 ac_cv_prog_CC="${ac_tool_prefix}cc"
3082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3083 break 2
3085 done
3086 done
3090 CC=$ac_cv_prog_CC
3091 if test -n "$CC"; then
3092 echo "$as_me:$LINENO: result: $CC" >&5
3093 echo "${ECHO_T}$CC" >&6
3094 else
3095 echo "$as_me:$LINENO: result: no" >&5
3096 echo "${ECHO_T}no" >&6
3100 if test -z "$ac_cv_prog_CC"; then
3101 ac_ct_CC=$CC
3102 # Extract the first word of "cc", so it can be a program name with args.
3103 set dummy cc; ac_word=$2
3104 echo "$as_me:$LINENO: checking for $ac_word" >&5
3105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3106 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3107 echo $ECHO_N "(cached) $ECHO_C" >&6
3108 else
3109 if test -n "$ac_ct_CC"; then
3110 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3111 else
3112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113 for as_dir in $PATH
3115 IFS=$as_save_IFS
3116 test -z "$as_dir" && as_dir=.
3117 for ac_exec_ext in '' $ac_executable_extensions; do
3118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3119 ac_cv_prog_ac_ct_CC="cc"
3120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3121 break 2
3123 done
3124 done
3128 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3129 if test -n "$ac_ct_CC"; then
3130 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3131 echo "${ECHO_T}$ac_ct_CC" >&6
3132 else
3133 echo "$as_me:$LINENO: result: no" >&5
3134 echo "${ECHO_T}no" >&6
3137 CC=$ac_ct_CC
3138 else
3139 CC="$ac_cv_prog_CC"
3143 if test -z "$CC"; then
3144 # Extract the first word of "cc", so it can be a program name with args.
3145 set dummy cc; ac_word=$2
3146 echo "$as_me:$LINENO: checking for $ac_word" >&5
3147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3148 if test "${ac_cv_prog_CC+set}" = set; then
3149 echo $ECHO_N "(cached) $ECHO_C" >&6
3150 else
3151 if test -n "$CC"; then
3152 ac_cv_prog_CC="$CC" # Let the user override the test.
3153 else
3154 ac_prog_rejected=no
3155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156 for as_dir in $PATH
3158 IFS=$as_save_IFS
3159 test -z "$as_dir" && as_dir=.
3160 for ac_exec_ext in '' $ac_executable_extensions; do
3161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3162 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3163 ac_prog_rejected=yes
3164 continue
3166 ac_cv_prog_CC="cc"
3167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3168 break 2
3170 done
3171 done
3173 if test $ac_prog_rejected = yes; then
3174 # We found a bogon in the path, so make sure we never use it.
3175 set dummy $ac_cv_prog_CC
3176 shift
3177 if test $# != 0; then
3178 # We chose a different compiler from the bogus one.
3179 # However, it has the same basename, so the bogon will be chosen
3180 # first if we set CC to just the basename; use the full file name.
3181 shift
3182 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3187 CC=$ac_cv_prog_CC
3188 if test -n "$CC"; then
3189 echo "$as_me:$LINENO: result: $CC" >&5
3190 echo "${ECHO_T}$CC" >&6
3191 else
3192 echo "$as_me:$LINENO: result: no" >&5
3193 echo "${ECHO_T}no" >&6
3197 if test -z "$CC"; then
3198 if test -n "$ac_tool_prefix"; then
3199 for ac_prog in cl
3201 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3202 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3203 echo "$as_me:$LINENO: checking for $ac_word" >&5
3204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3205 if test "${ac_cv_prog_CC+set}" = set; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
3207 else
3208 if test -n "$CC"; then
3209 ac_cv_prog_CC="$CC" # Let the user override the test.
3210 else
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212 for as_dir in $PATH
3214 IFS=$as_save_IFS
3215 test -z "$as_dir" && as_dir=.
3216 for ac_exec_ext in '' $ac_executable_extensions; do
3217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3218 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3220 break 2
3222 done
3223 done
3227 CC=$ac_cv_prog_CC
3228 if test -n "$CC"; then
3229 echo "$as_me:$LINENO: result: $CC" >&5
3230 echo "${ECHO_T}$CC" >&6
3231 else
3232 echo "$as_me:$LINENO: result: no" >&5
3233 echo "${ECHO_T}no" >&6
3236 test -n "$CC" && break
3237 done
3239 if test -z "$CC"; then
3240 ac_ct_CC=$CC
3241 for ac_prog in cl
3243 # Extract the first word of "$ac_prog", so it can be a program name with args.
3244 set dummy $ac_prog; ac_word=$2
3245 echo "$as_me:$LINENO: checking for $ac_word" >&5
3246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3247 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
3249 else
3250 if test -n "$ac_ct_CC"; then
3251 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3252 else
3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254 for as_dir in $PATH
3256 IFS=$as_save_IFS
3257 test -z "$as_dir" && as_dir=.
3258 for ac_exec_ext in '' $ac_executable_extensions; do
3259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3260 ac_cv_prog_ac_ct_CC="$ac_prog"
3261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3262 break 2
3264 done
3265 done
3269 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3270 if test -n "$ac_ct_CC"; then
3271 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3272 echo "${ECHO_T}$ac_ct_CC" >&6
3273 else
3274 echo "$as_me:$LINENO: result: no" >&5
3275 echo "${ECHO_T}no" >&6
3278 test -n "$ac_ct_CC" && break
3279 done
3281 CC=$ac_ct_CC
3287 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3288 See \`config.log' for more details." >&5
3289 echo "$as_me: error: no acceptable C compiler found in \$PATH
3290 See \`config.log' for more details." >&2;}
3291 { (exit 1); exit 1; }; }
3293 # Provide some information about the compiler.
3294 echo "$as_me:$LINENO:" \
3295 "checking for C compiler version" >&5
3296 ac_compiler=`set X $ac_compile; echo $2`
3297 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3298 (eval $ac_compiler --version </dev/null >&5) 2>&5
3299 ac_status=$?
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); }
3302 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3303 (eval $ac_compiler -v </dev/null >&5) 2>&5
3304 ac_status=$?
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); }
3307 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3308 (eval $ac_compiler -V </dev/null >&5) 2>&5
3309 ac_status=$?
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); }
3313 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3314 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3315 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3316 echo $ECHO_N "(cached) $ECHO_C" >&6
3317 else
3318 cat >conftest.$ac_ext <<_ACEOF
3319 /* confdefs.h. */
3320 _ACEOF
3321 cat confdefs.h >>conftest.$ac_ext
3322 cat >>conftest.$ac_ext <<_ACEOF
3323 /* end confdefs.h. */
3326 main ()
3328 #ifndef __GNUC__
3329 choke me
3330 #endif
3333 return 0;
3335 _ACEOF
3336 rm -f conftest.$ac_objext
3337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3338 (eval $ac_compile) 2>conftest.er1
3339 ac_status=$?
3340 grep -v '^ *+' conftest.er1 >conftest.err
3341 rm -f conftest.er1
3342 cat conftest.err >&5
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); } &&
3345 { ac_try='test -z "$ac_c_werror_flag"
3346 || test ! -s conftest.err'
3347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3348 (eval $ac_try) 2>&5
3349 ac_status=$?
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; } &&
3352 { ac_try='test -s conftest.$ac_objext'
3353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3354 (eval $ac_try) 2>&5
3355 ac_status=$?
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; }; then
3358 ac_compiler_gnu=yes
3359 else
3360 echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3363 ac_compiler_gnu=no
3365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3366 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3369 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3370 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3371 GCC=`test $ac_compiler_gnu = yes && echo yes`
3372 ac_test_CFLAGS=${CFLAGS+set}
3373 ac_save_CFLAGS=$CFLAGS
3374 CFLAGS="-g"
3375 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3376 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3377 if test "${ac_cv_prog_cc_g+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3379 else
3380 cat >conftest.$ac_ext <<_ACEOF
3381 /* confdefs.h. */
3382 _ACEOF
3383 cat confdefs.h >>conftest.$ac_ext
3384 cat >>conftest.$ac_ext <<_ACEOF
3385 /* end confdefs.h. */
3388 main ()
3392 return 0;
3394 _ACEOF
3395 rm -f conftest.$ac_objext
3396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3397 (eval $ac_compile) 2>conftest.er1
3398 ac_status=$?
3399 grep -v '^ *+' conftest.er1 >conftest.err
3400 rm -f conftest.er1
3401 cat conftest.err >&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); } &&
3404 { ac_try='test -z "$ac_c_werror_flag"
3405 || test ! -s conftest.err'
3406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407 (eval $ac_try) 2>&5
3408 ac_status=$?
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; } &&
3411 { ac_try='test -s conftest.$ac_objext'
3412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3413 (eval $ac_try) 2>&5
3414 ac_status=$?
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); }; }; then
3417 ac_cv_prog_cc_g=yes
3418 else
3419 echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3422 ac_cv_prog_cc_g=no
3424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3426 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3427 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3428 if test "$ac_test_CFLAGS" = set; then
3429 CFLAGS=$ac_save_CFLAGS
3430 elif test $ac_cv_prog_cc_g = yes; then
3431 if test "$GCC" = yes; then
3432 CFLAGS="-g -O2"
3433 else
3434 CFLAGS="-g"
3436 else
3437 if test "$GCC" = yes; then
3438 CFLAGS="-O2"
3439 else
3440 CFLAGS=
3443 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3444 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3445 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
3447 else
3448 ac_cv_prog_cc_stdc=no
3449 ac_save_CC=$CC
3450 cat >conftest.$ac_ext <<_ACEOF
3451 /* confdefs.h. */
3452 _ACEOF
3453 cat confdefs.h >>conftest.$ac_ext
3454 cat >>conftest.$ac_ext <<_ACEOF
3455 /* end confdefs.h. */
3456 #include <stdarg.h>
3457 #include <stdio.h>
3458 #include <sys/types.h>
3459 #include <sys/stat.h>
3460 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3461 struct buf { int x; };
3462 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3463 static char *e (p, i)
3464 char **p;
3465 int i;
3467 return p[i];
3469 static char *f (char * (*g) (char **, int), char **p, ...)
3471 char *s;
3472 va_list v;
3473 va_start (v,p);
3474 s = g (p, va_arg (v,int));
3475 va_end (v);
3476 return s;
3479 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3480 function prototypes and stuff, but not '\xHH' hex character constants.
3481 These don't provoke an error unfortunately, instead are silently treated
3482 as 'x'. The following induces an error, until -std1 is added to get
3483 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3484 array size at least. It's necessary to write '\x00'==0 to get something
3485 that's true only with -std1. */
3486 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3488 int test (int i, double x);
3489 struct s1 {int (*f) (int a);};
3490 struct s2 {int (*f) (double a);};
3491 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3492 int argc;
3493 char **argv;
3495 main ()
3497 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3499 return 0;
3501 _ACEOF
3502 # Don't try gcc -ansi; that turns off useful extensions and
3503 # breaks some systems' header files.
3504 # AIX -qlanglvl=ansi
3505 # Ultrix and OSF/1 -std1
3506 # HP-UX 10.20 and later -Ae
3507 # HP-UX older versions -Aa -D_HPUX_SOURCE
3508 # SVR4 -Xc -D__EXTENSIONS__
3509 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3511 CC="$ac_save_CC $ac_arg"
3512 rm -f conftest.$ac_objext
3513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3514 (eval $ac_compile) 2>conftest.er1
3515 ac_status=$?
3516 grep -v '^ *+' conftest.er1 >conftest.err
3517 rm -f conftest.er1
3518 cat conftest.err >&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); } &&
3521 { ac_try='test -z "$ac_c_werror_flag"
3522 || test ! -s conftest.err'
3523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524 (eval $ac_try) 2>&5
3525 ac_status=$?
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }; } &&
3528 { ac_try='test -s conftest.$ac_objext'
3529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3530 (eval $ac_try) 2>&5
3531 ac_status=$?
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); }; }; then
3534 ac_cv_prog_cc_stdc=$ac_arg
3535 break
3536 else
3537 echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.$ac_ext >&5
3541 rm -f conftest.err conftest.$ac_objext
3542 done
3543 rm -f conftest.$ac_ext conftest.$ac_objext
3544 CC=$ac_save_CC
3548 case "x$ac_cv_prog_cc_stdc" in
3549 x|xno)
3550 echo "$as_me:$LINENO: result: none needed" >&5
3551 echo "${ECHO_T}none needed" >&6 ;;
3553 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3554 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3555 CC="$CC $ac_cv_prog_cc_stdc" ;;
3556 esac
3558 # Some people use a C++ compiler to compile C. Since we use `exit',
3559 # in C++ we need to declare it. In case someone uses the same compiler
3560 # for both compiling C and C++ we need to have the C++ compiler decide
3561 # the declaration of exit, since it's the most demanding environment.
3562 cat >conftest.$ac_ext <<_ACEOF
3563 #ifndef __cplusplus
3564 choke me
3565 #endif
3566 _ACEOF
3567 rm -f conftest.$ac_objext
3568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3569 (eval $ac_compile) 2>conftest.er1
3570 ac_status=$?
3571 grep -v '^ *+' conftest.er1 >conftest.err
3572 rm -f conftest.er1
3573 cat conftest.err >&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); } &&
3576 { ac_try='test -z "$ac_c_werror_flag"
3577 || test ! -s conftest.err'
3578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3579 (eval $ac_try) 2>&5
3580 ac_status=$?
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); }; } &&
3583 { ac_try='test -s conftest.$ac_objext'
3584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3585 (eval $ac_try) 2>&5
3586 ac_status=$?
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); }; }; then
3589 for ac_declaration in \
3590 '' \
3591 'extern "C" void std::exit (int) throw (); using std::exit;' \
3592 'extern "C" void std::exit (int); using std::exit;' \
3593 'extern "C" void exit (int) throw ();' \
3594 'extern "C" void exit (int);' \
3595 'void exit (int);'
3597 cat >conftest.$ac_ext <<_ACEOF
3598 /* confdefs.h. */
3599 _ACEOF
3600 cat confdefs.h >>conftest.$ac_ext
3601 cat >>conftest.$ac_ext <<_ACEOF
3602 /* end confdefs.h. */
3603 $ac_declaration
3604 #include <stdlib.h>
3606 main ()
3608 exit (42);
3610 return 0;
3612 _ACEOF
3613 rm -f conftest.$ac_objext
3614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3615 (eval $ac_compile) 2>conftest.er1
3616 ac_status=$?
3617 grep -v '^ *+' conftest.er1 >conftest.err
3618 rm -f conftest.er1
3619 cat conftest.err >&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } &&
3622 { ac_try='test -z "$ac_c_werror_flag"
3623 || test ! -s conftest.err'
3624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3625 (eval $ac_try) 2>&5
3626 ac_status=$?
3627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); }; } &&
3629 { ac_try='test -s conftest.$ac_objext'
3630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3631 (eval $ac_try) 2>&5
3632 ac_status=$?
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); }; }; then
3636 else
3637 echo "$as_me: failed program was:" >&5
3638 sed 's/^/| /' conftest.$ac_ext >&5
3640 continue
3642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3643 cat >conftest.$ac_ext <<_ACEOF
3644 /* confdefs.h. */
3645 _ACEOF
3646 cat confdefs.h >>conftest.$ac_ext
3647 cat >>conftest.$ac_ext <<_ACEOF
3648 /* end confdefs.h. */
3649 $ac_declaration
3651 main ()
3653 exit (42);
3655 return 0;
3657 _ACEOF
3658 rm -f conftest.$ac_objext
3659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3660 (eval $ac_compile) 2>conftest.er1
3661 ac_status=$?
3662 grep -v '^ *+' conftest.er1 >conftest.err
3663 rm -f conftest.er1
3664 cat conftest.err >&5
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); } &&
3667 { ac_try='test -z "$ac_c_werror_flag"
3668 || test ! -s conftest.err'
3669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3670 (eval $ac_try) 2>&5
3671 ac_status=$?
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); }; } &&
3674 { ac_try='test -s conftest.$ac_objext'
3675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3676 (eval $ac_try) 2>&5
3677 ac_status=$?
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); }; }; then
3680 break
3681 else
3682 echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.$ac_ext >&5
3686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3687 done
3688 rm -f conftest*
3689 if test -n "$ac_declaration"; then
3690 echo '#ifdef __cplusplus' >>confdefs.h
3691 echo $ac_declaration >>confdefs.h
3692 echo '#endif' >>confdefs.h
3695 else
3696 echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3701 ac_ext=c
3702 ac_cpp='$CPP $CPPFLAGS'
3703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3707 depcc="$CC" am_compiler_list=
3709 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3710 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3711 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3713 else
3714 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3715 # We make a subdir and do the tests there. Otherwise we can end up
3716 # making bogus files that we don't know about and never remove. For
3717 # instance it was reported that on HP-UX the gcc test will end up
3718 # making a dummy file named `D' -- because `-MD' means `put the output
3719 # in D'.
3720 mkdir conftest.dir
3721 # Copy depcomp to subdir because otherwise we won't find it if we're
3722 # using a relative directory.
3723 cp "$am_depcomp" conftest.dir
3724 cd conftest.dir
3725 # We will build objects and dependencies in a subdirectory because
3726 # it helps to detect inapplicable dependency modes. For instance
3727 # both Tru64's cc and ICC support -MD to output dependencies as a
3728 # side effect of compilation, but ICC will put the dependencies in
3729 # the current directory while Tru64 will put them in the object
3730 # directory.
3731 mkdir sub
3733 am_cv_CC_dependencies_compiler_type=none
3734 if test "$am_compiler_list" = ""; then
3735 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3737 for depmode in $am_compiler_list; do
3738 # Setup a source with many dependencies, because some compilers
3739 # like to wrap large dependency lists on column 80 (with \), and
3740 # we should not choose a depcomp mode which is confused by this.
3742 # We need to recreate these files for each test, as the compiler may
3743 # overwrite some of them when testing with obscure command lines.
3744 # This happens at least with the AIX C compiler.
3745 : > sub/conftest.c
3746 for i in 1 2 3 4 5 6; do
3747 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3748 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3749 # Solaris 8's {/usr,}/bin/sh.
3750 touch sub/conftst$i.h
3751 done
3752 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3754 case $depmode in
3755 nosideeffect)
3756 # after this tag, mechanisms are not by side-effect, so they'll
3757 # only be used when explicitly requested
3758 if test "x$enable_dependency_tracking" = xyes; then
3759 continue
3760 else
3761 break
3764 none) break ;;
3765 esac
3766 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3767 # mode. It turns out that the SunPro C++ compiler does not properly
3768 # handle `-M -o', and we need to detect this.
3769 if depmode=$depmode \
3770 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3771 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3772 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3773 >/dev/null 2>conftest.err &&
3774 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3775 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3776 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3777 # icc doesn't choke on unknown options, it will just issue warnings
3778 # or remarks (even with -Werror). So we grep stderr for any message
3779 # that says an option was ignored or not supported.
3780 # When given -MP, icc 7.0 and 7.1 complain thusly:
3781 # icc: Command line warning: ignoring option '-M'; no argument required
3782 # The diagnosis changed in icc 8.0:
3783 # icc: Command line remark: option '-MP' not supported
3784 if (grep 'ignoring option' conftest.err ||
3785 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3786 am_cv_CC_dependencies_compiler_type=$depmode
3787 break
3790 done
3792 cd ..
3793 rm -rf conftest.dir
3794 else
3795 am_cv_CC_dependencies_compiler_type=none
3799 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3800 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3801 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3806 test "x$enable_dependency_tracking" != xno \
3807 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3808 am__fastdepCC_TRUE=
3809 am__fastdepCC_FALSE='#'
3810 else
3811 am__fastdepCC_TRUE='#'
3812 am__fastdepCC_FALSE=
3816 ac_ext=c
3817 ac_cpp='$CPP $CPPFLAGS'
3818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3821 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3822 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3823 # On Suns, sometimes $CPP names a directory.
3824 if test -n "$CPP" && test -d "$CPP"; then
3825 CPP=
3827 if test -z "$CPP"; then
3828 if test "${ac_cv_prog_CPP+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3830 else
3831 # Double quotes because CPP needs to be expanded
3832 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3834 ac_preproc_ok=false
3835 for ac_c_preproc_warn_flag in '' yes
3837 # Use a header file that comes with gcc, so configuring glibc
3838 # with a fresh cross-compiler works.
3839 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3840 # <limits.h> exists even on freestanding compilers.
3841 # On the NeXT, cc -E runs the code through the compiler's parser,
3842 # not just through cpp. "Syntax error" is here to catch this case.
3843 cat >conftest.$ac_ext <<_ACEOF
3844 /* confdefs.h. */
3845 _ACEOF
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3849 #ifdef __STDC__
3850 # include <limits.h>
3851 #else
3852 # include <assert.h>
3853 #endif
3854 Syntax error
3855 _ACEOF
3856 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3857 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3858 ac_status=$?
3859 grep -v '^ *+' conftest.er1 >conftest.err
3860 rm -f conftest.er1
3861 cat conftest.err >&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } >/dev/null; then
3864 if test -s conftest.err; then
3865 ac_cpp_err=$ac_c_preproc_warn_flag
3866 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3867 else
3868 ac_cpp_err=
3870 else
3871 ac_cpp_err=yes
3873 if test -z "$ac_cpp_err"; then
3875 else
3876 echo "$as_me: failed program was:" >&5
3877 sed 's/^/| /' conftest.$ac_ext >&5
3879 # Broken: fails on valid input.
3880 continue
3882 rm -f conftest.err conftest.$ac_ext
3884 # OK, works on sane cases. Now check whether non-existent headers
3885 # can be detected and how.
3886 cat >conftest.$ac_ext <<_ACEOF
3887 /* confdefs.h. */
3888 _ACEOF
3889 cat confdefs.h >>conftest.$ac_ext
3890 cat >>conftest.$ac_ext <<_ACEOF
3891 /* end confdefs.h. */
3892 #include <ac_nonexistent.h>
3893 _ACEOF
3894 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3895 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3896 ac_status=$?
3897 grep -v '^ *+' conftest.er1 >conftest.err
3898 rm -f conftest.er1
3899 cat conftest.err >&5
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); } >/dev/null; then
3902 if test -s conftest.err; then
3903 ac_cpp_err=$ac_c_preproc_warn_flag
3904 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3905 else
3906 ac_cpp_err=
3908 else
3909 ac_cpp_err=yes
3911 if test -z "$ac_cpp_err"; then
3912 # Broken: success on invalid input.
3913 continue
3914 else
3915 echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.$ac_ext >&5
3918 # Passes both tests.
3919 ac_preproc_ok=:
3920 break
3922 rm -f conftest.err conftest.$ac_ext
3924 done
3925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3926 rm -f conftest.err conftest.$ac_ext
3927 if $ac_preproc_ok; then
3928 break
3931 done
3932 ac_cv_prog_CPP=$CPP
3935 CPP=$ac_cv_prog_CPP
3936 else
3937 ac_cv_prog_CPP=$CPP
3939 echo "$as_me:$LINENO: result: $CPP" >&5
3940 echo "${ECHO_T}$CPP" >&6
3941 ac_preproc_ok=false
3942 for ac_c_preproc_warn_flag in '' yes
3944 # Use a header file that comes with gcc, so configuring glibc
3945 # with a fresh cross-compiler works.
3946 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3947 # <limits.h> exists even on freestanding compilers.
3948 # On the NeXT, cc -E runs the code through the compiler's parser,
3949 # not just through cpp. "Syntax error" is here to catch this case.
3950 cat >conftest.$ac_ext <<_ACEOF
3951 /* confdefs.h. */
3952 _ACEOF
3953 cat confdefs.h >>conftest.$ac_ext
3954 cat >>conftest.$ac_ext <<_ACEOF
3955 /* end confdefs.h. */
3956 #ifdef __STDC__
3957 # include <limits.h>
3958 #else
3959 # include <assert.h>
3960 #endif
3961 Syntax error
3962 _ACEOF
3963 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3964 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3965 ac_status=$?
3966 grep -v '^ *+' conftest.er1 >conftest.err
3967 rm -f conftest.er1
3968 cat conftest.err >&5
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); } >/dev/null; then
3971 if test -s conftest.err; then
3972 ac_cpp_err=$ac_c_preproc_warn_flag
3973 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3974 else
3975 ac_cpp_err=
3977 else
3978 ac_cpp_err=yes
3980 if test -z "$ac_cpp_err"; then
3982 else
3983 echo "$as_me: failed program was:" >&5
3984 sed 's/^/| /' conftest.$ac_ext >&5
3986 # Broken: fails on valid input.
3987 continue
3989 rm -f conftest.err conftest.$ac_ext
3991 # OK, works on sane cases. Now check whether non-existent headers
3992 # can be detected and how.
3993 cat >conftest.$ac_ext <<_ACEOF
3994 /* confdefs.h. */
3995 _ACEOF
3996 cat confdefs.h >>conftest.$ac_ext
3997 cat >>conftest.$ac_ext <<_ACEOF
3998 /* end confdefs.h. */
3999 #include <ac_nonexistent.h>
4000 _ACEOF
4001 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4002 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4003 ac_status=$?
4004 grep -v '^ *+' conftest.er1 >conftest.err
4005 rm -f conftest.er1
4006 cat conftest.err >&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } >/dev/null; then
4009 if test -s conftest.err; then
4010 ac_cpp_err=$ac_c_preproc_warn_flag
4011 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4012 else
4013 ac_cpp_err=
4015 else
4016 ac_cpp_err=yes
4018 if test -z "$ac_cpp_err"; then
4019 # Broken: success on invalid input.
4020 continue
4021 else
4022 echo "$as_me: failed program was:" >&5
4023 sed 's/^/| /' conftest.$ac_ext >&5
4025 # Passes both tests.
4026 ac_preproc_ok=:
4027 break
4029 rm -f conftest.err conftest.$ac_ext
4031 done
4032 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4033 rm -f conftest.err conftest.$ac_ext
4034 if $ac_preproc_ok; then
4036 else
4037 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4038 See \`config.log' for more details." >&5
4039 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4040 See \`config.log' for more details." >&2;}
4041 { (exit 1); exit 1; }; }
4044 ac_ext=c
4045 ac_cpp='$CPP $CPPFLAGS'
4046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4050 if test "$cross_compiling" = yes; then
4051 ac_build_prefix=
4052 test -n "$build_alias" && ac_build_prefix=$build_alias-
4055 # Even if we're cross-compiling, we want a compiler here
4056 # that is not a cross-compiler.
4057 saved_cross=$cross_compiling
4058 cross_compiling=no
4060 ac_ext=c
4061 ac_cpp='$CPP $BUILD_CPPFLAGS'
4062 ac_compile='$BUILD_CC -c $BUILD_CFLAGS $BUILD_CPPFLAGS conftest.$ac_ext >&5'
4063 ac_link='$BUILD_CC -o conftest$ac_build_exeext $BUILD_CFLAGS $BUILD_CPPFLAGS $BUILD_LDFLAGS conftest.$ac_ext $BUILD_LIBS >&5'
4064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4065 if test -n "$ac_build_prefix"; then
4066 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4067 set dummy ${ac_build_prefix}gcc; ac_word=$2
4068 echo "$as_me:$LINENO: checking for $ac_word" >&5
4069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4070 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4071 echo $ECHO_N "(cached) $ECHO_C" >&6
4072 else
4073 if test -n "$BUILD_CC"; then
4074 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4075 else
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077 for as_dir in $PATH
4079 IFS=$as_save_IFS
4080 test -z "$as_dir" && as_dir=.
4081 for ac_exec_ext in '' $ac_executable_extensions; do
4082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4083 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4085 break 2
4087 done
4088 done
4092 BUILD_CC=$ac_cv_prog_BUILD_CC
4093 if test -n "$BUILD_CC"; then
4094 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4095 echo "${ECHO_T}$BUILD_CC" >&6
4096 else
4097 echo "$as_me:$LINENO: result: no" >&5
4098 echo "${ECHO_T}no" >&6
4102 if test -z "$ac_cv_prog_BUILD_CC"; then
4103 ac_ct_BUILD_CC=$BUILD_CC
4104 # Extract the first word of "gcc", so it can be a program name with args.
4105 set dummy gcc; ac_word=$2
4106 echo "$as_me:$LINENO: checking for $ac_word" >&5
4107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4108 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4110 else
4111 if test -n "$ac_ct_BUILD_CC"; then
4112 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
4113 else
4114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4115 for as_dir in $PATH
4117 IFS=$as_save_IFS
4118 test -z "$as_dir" && as_dir=.
4119 for ac_exec_ext in '' $ac_executable_extensions; do
4120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4121 ac_cv_prog_ac_ct_BUILD_CC="gcc"
4122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4123 break 2
4125 done
4126 done
4130 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
4131 if test -n "$ac_ct_BUILD_CC"; then
4132 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4133 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4134 else
4135 echo "$as_me:$LINENO: result: no" >&5
4136 echo "${ECHO_T}no" >&6
4139 BUILD_CC=$ac_ct_BUILD_CC
4140 else
4141 BUILD_CC="$ac_cv_prog_BUILD_CC"
4144 if test -z "$BUILD_CC"; then
4145 if test -n "$ac_build_prefix"; then
4146 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4147 set dummy ${ac_build_prefix}cc; ac_word=$2
4148 echo "$as_me:$LINENO: checking for $ac_word" >&5
4149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4150 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4151 echo $ECHO_N "(cached) $ECHO_C" >&6
4152 else
4153 if test -n "$BUILD_CC"; then
4154 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4155 else
4156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4157 for as_dir in $PATH
4159 IFS=$as_save_IFS
4160 test -z "$as_dir" && as_dir=.
4161 for ac_exec_ext in '' $ac_executable_extensions; do
4162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4163 ac_cv_prog_BUILD_CC="${ac_build_prefix}cc"
4164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4165 break 2
4167 done
4168 done
4172 BUILD_CC=$ac_cv_prog_BUILD_CC
4173 if test -n "$BUILD_CC"; then
4174 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4175 echo "${ECHO_T}$BUILD_CC" >&6
4176 else
4177 echo "$as_me:$LINENO: result: no" >&5
4178 echo "${ECHO_T}no" >&6
4182 if test -z "$ac_cv_prog_BUILD_CC"; then
4183 ac_ct_BUILD_CC=$BUILD_CC
4184 # Extract the first word of "cc", so it can be a program name with args.
4185 set dummy cc; ac_word=$2
4186 echo "$as_me:$LINENO: checking for $ac_word" >&5
4187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4188 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4189 echo $ECHO_N "(cached) $ECHO_C" >&6
4190 else
4191 if test -n "$ac_ct_BUILD_CC"; then
4192 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
4193 else
4194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195 for as_dir in $PATH
4197 IFS=$as_save_IFS
4198 test -z "$as_dir" && as_dir=.
4199 for ac_exec_ext in '' $ac_executable_extensions; do
4200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4201 ac_cv_prog_ac_ct_BUILD_CC="cc"
4202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4203 break 2
4205 done
4206 done
4210 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
4211 if test -n "$ac_ct_BUILD_CC"; then
4212 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4213 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4214 else
4215 echo "$as_me:$LINENO: result: no" >&5
4216 echo "${ECHO_T}no" >&6
4219 BUILD_CC=$ac_ct_BUILD_CC
4220 else
4221 BUILD_CC="$ac_cv_prog_BUILD_CC"
4225 if test -z "$BUILD_CC"; then
4226 # Extract the first word of "cc", so it can be a program name with args.
4227 set dummy cc; ac_word=$2
4228 echo "$as_me:$LINENO: checking for $ac_word" >&5
4229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4230 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4231 echo $ECHO_N "(cached) $ECHO_C" >&6
4232 else
4233 if test -n "$BUILD_CC"; then
4234 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4235 else
4236 ac_prog_rejected=no
4237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238 for as_dir in $PATH
4240 IFS=$as_save_IFS
4241 test -z "$as_dir" && as_dir=.
4242 for ac_exec_ext in '' $ac_executable_extensions; do
4243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4244 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4245 ac_prog_rejected=yes
4246 continue
4248 ac_cv_prog_BUILD_CC="cc"
4249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4250 break 2
4252 done
4253 done
4255 if test $ac_prog_rejected = yes; then
4256 # We found a bogon in the path, so make sure we never use it.
4257 set dummy $ac_cv_prog_BUILD_CC
4258 shift
4259 if test $# != 0; then
4260 # We chose a different compiler from the bogus one.
4261 # However, it has the same basename, so the bogon will be chosen
4262 # first if we set BUILD_CC to just the basename; use the full file name.
4263 shift
4264 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4269 BUILD_CC=$ac_cv_prog_BUILD_CC
4270 if test -n "$BUILD_CC"; then
4271 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4272 echo "${ECHO_T}$BUILD_CC" >&6
4273 else
4274 echo "$as_me:$LINENO: result: no" >&5
4275 echo "${ECHO_T}no" >&6
4279 if test -z "$BUILD_CC"; then
4280 if test -n "$ac_build_prefix"; then
4281 for ac_prog in cl
4283 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4284 set dummy $ac_build_prefix$ac_prog; ac_word=$2
4285 echo "$as_me:$LINENO: checking for $ac_word" >&5
4286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4287 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4288 echo $ECHO_N "(cached) $ECHO_C" >&6
4289 else
4290 if test -n "$BUILD_CC"; then
4291 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4292 else
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294 for as_dir in $PATH
4296 IFS=$as_save_IFS
4297 test -z "$as_dir" && as_dir=.
4298 for ac_exec_ext in '' $ac_executable_extensions; do
4299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4300 ac_cv_prog_BUILD_CC="$ac_build_prefix$ac_prog"
4301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4302 break 2
4304 done
4305 done
4309 BUILD_CC=$ac_cv_prog_BUILD_CC
4310 if test -n "$BUILD_CC"; then
4311 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4312 echo "${ECHO_T}$BUILD_CC" >&6
4313 else
4314 echo "$as_me:$LINENO: result: no" >&5
4315 echo "${ECHO_T}no" >&6
4318 test -n "$BUILD_CC" && break
4319 done
4321 if test -z "$BUILD_CC"; then
4322 ac_ct_BUILD_CC=$BUILD_CC
4323 for ac_prog in cl
4325 # Extract the first word of "$ac_prog", so it can be a program name with args.
4326 set dummy $ac_prog; ac_word=$2
4327 echo "$as_me:$LINENO: checking for $ac_word" >&5
4328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4329 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
4331 else
4332 if test -n "$ac_ct_BUILD_CC"; then
4333 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
4334 else
4335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4336 for as_dir in $PATH
4338 IFS=$as_save_IFS
4339 test -z "$as_dir" && as_dir=.
4340 for ac_exec_ext in '' $ac_executable_extensions; do
4341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4342 ac_cv_prog_ac_ct_BUILD_CC="$ac_prog"
4343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4344 break 2
4346 done
4347 done
4351 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
4352 if test -n "$ac_ct_BUILD_CC"; then
4353 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4354 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4355 else
4356 echo "$as_me:$LINENO: result: no" >&5
4357 echo "${ECHO_T}no" >&6
4360 test -n "$ac_ct_BUILD_CC" && break
4361 done
4363 BUILD_CC=$ac_ct_BUILD_CC
4369 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4370 See \`config.log' for more details." >&5
4371 echo "$as_me: error: no acceptable C compiler found in \$PATH
4372 See \`config.log' for more details." >&2;}
4373 { (exit 1); exit 1; }; }
4375 # Provide some information about the compiler.
4376 echo "$as_me:$LINENO:" \
4377 "checking for C compiler version" >&5
4378 ac_compiler=`set X $ac_compile; echo $2`
4379 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4380 (eval $ac_compiler --version </dev/null >&5) 2>&5
4381 ac_status=$?
4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); }
4384 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4385 (eval $ac_compiler -v </dev/null >&5) 2>&5
4386 ac_status=$?
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); }
4389 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4390 (eval $ac_compiler -V </dev/null >&5) 2>&5
4391 ac_status=$?
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); }
4395 cat >conftest.$ac_ext <<_ACEOF
4396 /* confdefs.h. */
4397 _ACEOF
4398 cat confdefs.h >>conftest.$ac_ext
4399 cat >>conftest.$ac_ext <<_ACEOF
4400 /* end confdefs.h. */
4403 main ()
4407 return 0;
4409 _ACEOF
4410 ac_clean_files_save=$ac_clean_files
4411 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4412 # Try to create an executable without -o first, disregard a.out.
4413 # It will help us diagnose broken compilers, and finding out an intuition
4414 # of exeext.
4415 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4416 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4417 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4418 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4419 (eval $ac_link_default) 2>&5
4420 ac_status=$?
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); }; then
4423 # Find the output, starting from the most likely. This scheme is
4424 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4425 # resort.
4427 # Be careful to initialize this variable, since it used to be cached.
4428 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4429 ac_cv_build_exeext=
4430 # b.out is created by i960 compilers.
4431 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4433 test -f "$ac_file" || continue
4434 case $ac_file in
4435 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4437 conftest.$ac_ext )
4438 # This is the source file.
4440 [ab].out )
4441 # We found the default executable, but exeext='' is most
4442 # certainly right.
4443 break;;
4444 *.* )
4445 ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4446 # FIXME: I believe we export ac_cv_exeext for Libtool,
4447 # but it would be cool to find out if it's true. Does anybody
4448 # maintain Libtool? --akim.
4449 export ac_cv_build_exeext
4450 break;;
4452 break;;
4453 esac
4454 done
4455 else
4456 echo "$as_me: failed program was:" >&5
4457 sed 's/^/| /' conftest.$ac_ext >&5
4459 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4460 See \`config.log' for more details." >&5
4461 echo "$as_me: error: C compiler cannot create executables
4462 See \`config.log' for more details." >&2;}
4463 { (exit 77); exit 77; }; }
4466 ac_build_exeext=$ac_cv_build_exeext
4467 echo "$as_me:$LINENO: result: $ac_file" >&5
4468 echo "${ECHO_T}$ac_file" >&6
4470 # Check the compiler produces executables we can run. If not, either
4471 # the compiler is broken, or we cross compile.
4472 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4473 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4474 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4475 # If not cross compiling, check that we can run a simple program.
4476 if test "$cross_compiling" != yes; then
4477 if { ac_try='./$ac_file'
4478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4479 (eval $ac_try) 2>&5
4480 ac_status=$?
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }; }; then
4483 cross_compiling=no
4484 else
4485 if test "$cross_compiling" = maybe; then
4486 cross_compiling=yes
4487 else
4488 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4489 If you meant to cross compile, use \`--host'.
4490 See \`config.log' for more details." >&5
4491 echo "$as_me: error: cannot run C compiled programs.
4492 If you meant to cross compile, use \`--host'.
4493 See \`config.log' for more details." >&2;}
4494 { (exit 1); exit 1; }; }
4498 echo "$as_me:$LINENO: result: yes" >&5
4499 echo "${ECHO_T}yes" >&6
4501 rm -f a.out a.exe conftest$ac_cv_build_exeext b.out
4502 ac_clean_files=$ac_clean_files_save
4503 # Check the compiler produces executables we can run. If not, either
4504 # the compiler is broken, or we cross compile.
4505 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4506 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4507 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4508 echo "${ECHO_T}$cross_compiling" >&6
4510 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4511 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4513 (eval $ac_link) 2>&5
4514 ac_status=$?
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); }; then
4517 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4518 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4519 # work properly (i.e., refer to `conftest.exe'), while it won't with
4520 # `rm'.
4521 for ac_file in conftest.exe conftest conftest.*; do
4522 test -f "$ac_file" || continue
4523 case $ac_file in
4524 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4525 *.* ) ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4526 export ac_cv_build_exeext
4527 break;;
4528 * ) break;;
4529 esac
4530 done
4531 else
4532 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4533 See \`config.log' for more details." >&5
4534 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4535 See \`config.log' for more details." >&2;}
4536 { (exit 1); exit 1; }; }
4539 rm -f conftest$ac_cv_build_exeext
4540 echo "$as_me:$LINENO: result: $ac_cv_build_exeext" >&5
4541 echo "${ECHO_T}$ac_cv_build_exeext" >&6
4543 rm -f conftest.$ac_ext
4544 BUILD_EXEEXT=$ac_cv_build_exeext
4545 ac_build_exeext=$BUILD_EXEEXT
4548 # Restore configuration environment
4549 cross_compiling=$saved_cross
4551 ac_ext=c
4552 ac_cpp='$CPP $CPPFLAGS'
4553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4557 else
4558 BUILD_CC="$CC" ; BUILD_EXEEXT=$EXEEXT
4561 CFLAGS="$mule_backup_CFLAGS"
4562 CXXFLAGS="$mule_backup_CXXFLAGS"
4563 BUILD_CFLAGS="$mule_backup_BUILD_CFLAGS"
4564 for ac_prog in gawk mawk nawk awk
4566 # Extract the first word of "$ac_prog", so it can be a program name with args.
4567 set dummy $ac_prog; ac_word=$2
4568 echo "$as_me:$LINENO: checking for $ac_word" >&5
4569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4570 if test "${ac_cv_prog_AWK+set}" = set; then
4571 echo $ECHO_N "(cached) $ECHO_C" >&6
4572 else
4573 if test -n "$AWK"; then
4574 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4575 else
4576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577 for as_dir in $PATH
4579 IFS=$as_save_IFS
4580 test -z "$as_dir" && as_dir=.
4581 for ac_exec_ext in '' $ac_executable_extensions; do
4582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4583 ac_cv_prog_AWK="$ac_prog"
4584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4585 break 2
4587 done
4588 done
4592 AWK=$ac_cv_prog_AWK
4593 if test -n "$AWK"; then
4594 echo "$as_me:$LINENO: result: $AWK" >&5
4595 echo "${ECHO_T}$AWK" >&6
4596 else
4597 echo "$as_me:$LINENO: result: no" >&5
4598 echo "${ECHO_T}no" >&6
4601 test -n "$AWK" && break
4602 done
4604 echo "$as_me:$LINENO: checking for egrep" >&5
4605 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4606 if test "${ac_cv_prog_egrep+set}" = set; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
4608 else
4609 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4610 then ac_cv_prog_egrep='grep -E'
4611 else ac_cv_prog_egrep='egrep'
4614 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4615 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4616 EGREP=$ac_cv_prog_egrep
4619 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4620 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4621 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4622 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4624 else
4625 cat >conftest.make <<\_ACEOF
4626 all:
4627 @echo 'ac_maketemp="$(MAKE)"'
4628 _ACEOF
4629 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4630 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4631 if test -n "$ac_maketemp"; then
4632 eval ac_cv_prog_make_${ac_make}_set=yes
4633 else
4634 eval ac_cv_prog_make_${ac_make}_set=no
4636 rm -f conftest.make
4638 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4639 echo "$as_me:$LINENO: result: yes" >&5
4640 echo "${ECHO_T}yes" >&6
4641 SET_MAKE=
4642 else
4643 echo "$as_me:$LINENO: result: no" >&5
4644 echo "${ECHO_T}no" >&6
4645 SET_MAKE="MAKE=${MAKE-make}"
4649 for ac_prog in flex lex
4651 # Extract the first word of "$ac_prog", so it can be a program name with args.
4652 set dummy $ac_prog; ac_word=$2
4653 echo "$as_me:$LINENO: checking for $ac_word" >&5
4654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4655 if test "${ac_cv_prog_LEX+set}" = set; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
4657 else
4658 if test -n "$LEX"; then
4659 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4660 else
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 for as_dir in $PATH
4664 IFS=$as_save_IFS
4665 test -z "$as_dir" && as_dir=.
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4668 ac_cv_prog_LEX="$ac_prog"
4669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4670 break 2
4672 done
4673 done
4677 LEX=$ac_cv_prog_LEX
4678 if test -n "$LEX"; then
4679 echo "$as_me:$LINENO: result: $LEX" >&5
4680 echo "${ECHO_T}$LEX" >&6
4681 else
4682 echo "$as_me:$LINENO: result: no" >&5
4683 echo "${ECHO_T}no" >&6
4686 test -n "$LEX" && break
4687 done
4688 test -n "$LEX" || LEX=":"
4690 if test -z "$LEXLIB"
4691 then
4692 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4693 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4694 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4695 echo $ECHO_N "(cached) $ECHO_C" >&6
4696 else
4697 ac_check_lib_save_LIBS=$LIBS
4698 LIBS="-lfl $LIBS"
4699 cat >conftest.$ac_ext <<_ACEOF
4700 /* confdefs.h. */
4701 _ACEOF
4702 cat confdefs.h >>conftest.$ac_ext
4703 cat >>conftest.$ac_ext <<_ACEOF
4704 /* end confdefs.h. */
4706 /* Override any gcc2 internal prototype to avoid an error. */
4707 #ifdef __cplusplus
4708 extern "C"
4709 #endif
4710 /* We use char because int might match the return type of a gcc2
4711 builtin and then its argument prototype would still apply. */
4712 char yywrap ();
4714 main ()
4716 yywrap ();
4718 return 0;
4720 _ACEOF
4721 rm -f conftest.$ac_objext conftest$ac_exeext
4722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4723 (eval $ac_link) 2>conftest.er1
4724 ac_status=$?
4725 grep -v '^ *+' conftest.er1 >conftest.err
4726 rm -f conftest.er1
4727 cat conftest.err >&5
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); } &&
4730 { ac_try='test -z "$ac_c_werror_flag"
4731 || test ! -s conftest.err'
4732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4733 (eval $ac_try) 2>&5
4734 ac_status=$?
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); }; } &&
4737 { ac_try='test -s conftest$ac_exeext'
4738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4739 (eval $ac_try) 2>&5
4740 ac_status=$?
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); }; }; then
4743 ac_cv_lib_fl_yywrap=yes
4744 else
4745 echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.$ac_ext >&5
4748 ac_cv_lib_fl_yywrap=no
4750 rm -f conftest.err conftest.$ac_objext \
4751 conftest$ac_exeext conftest.$ac_ext
4752 LIBS=$ac_check_lib_save_LIBS
4754 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4755 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4756 if test $ac_cv_lib_fl_yywrap = yes; then
4757 LEXLIB="-lfl"
4758 else
4759 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4760 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4761 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4762 echo $ECHO_N "(cached) $ECHO_C" >&6
4763 else
4764 ac_check_lib_save_LIBS=$LIBS
4765 LIBS="-ll $LIBS"
4766 cat >conftest.$ac_ext <<_ACEOF
4767 /* confdefs.h. */
4768 _ACEOF
4769 cat confdefs.h >>conftest.$ac_ext
4770 cat >>conftest.$ac_ext <<_ACEOF
4771 /* end confdefs.h. */
4773 /* Override any gcc2 internal prototype to avoid an error. */
4774 #ifdef __cplusplus
4775 extern "C"
4776 #endif
4777 /* We use char because int might match the return type of a gcc2
4778 builtin and then its argument prototype would still apply. */
4779 char yywrap ();
4781 main ()
4783 yywrap ();
4785 return 0;
4787 _ACEOF
4788 rm -f conftest.$ac_objext conftest$ac_exeext
4789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4790 (eval $ac_link) 2>conftest.er1
4791 ac_status=$?
4792 grep -v '^ *+' conftest.er1 >conftest.err
4793 rm -f conftest.er1
4794 cat conftest.err >&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); } &&
4797 { ac_try='test -z "$ac_c_werror_flag"
4798 || test ! -s conftest.err'
4799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4800 (eval $ac_try) 2>&5
4801 ac_status=$?
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); }; } &&
4804 { ac_try='test -s conftest$ac_exeext'
4805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806 (eval $ac_try) 2>&5
4807 ac_status=$?
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); }; }; then
4810 ac_cv_lib_l_yywrap=yes
4811 else
4812 echo "$as_me: failed program was:" >&5
4813 sed 's/^/| /' conftest.$ac_ext >&5
4815 ac_cv_lib_l_yywrap=no
4817 rm -f conftest.err conftest.$ac_objext \
4818 conftest$ac_exeext conftest.$ac_ext
4819 LIBS=$ac_check_lib_save_LIBS
4821 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4822 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4823 if test $ac_cv_lib_l_yywrap = yes; then
4824 LEXLIB="-ll"
4831 if test "x$LEX" != "x:"; then
4832 echo "$as_me:$LINENO: checking lex output file root" >&5
4833 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4834 if test "${ac_cv_prog_lex_root+set}" = set; then
4835 echo $ECHO_N "(cached) $ECHO_C" >&6
4836 else
4837 # The minimal lex program is just a single line: %%. But some broken lexes
4838 # (Solaris, I think it was) want two %% lines, so accommodate them.
4839 cat >conftest.l <<_ACEOF
4842 _ACEOF
4843 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4844 (eval $LEX conftest.l) 2>&5
4845 ac_status=$?
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); }
4848 if test -f lex.yy.c; then
4849 ac_cv_prog_lex_root=lex.yy
4850 elif test -f lexyy.c; then
4851 ac_cv_prog_lex_root=lexyy
4852 else
4853 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4854 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4855 { (exit 1); exit 1; }; }
4858 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4859 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4860 rm -f conftest.l
4861 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4863 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4864 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4865 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4866 echo $ECHO_N "(cached) $ECHO_C" >&6
4867 else
4868 # POSIX says lex can declare yytext either as a pointer or an array; the
4869 # default is implementation-dependent. Figure out which it is, since
4870 # not all implementations provide the %pointer and %array declarations.
4871 ac_cv_prog_lex_yytext_pointer=no
4872 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4873 ac_save_LIBS=$LIBS
4874 LIBS="$LIBS $LEXLIB"
4875 cat >conftest.$ac_ext <<_ACEOF
4876 `cat $LEX_OUTPUT_ROOT.c`
4877 _ACEOF
4878 rm -f conftest.$ac_objext conftest$ac_exeext
4879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4880 (eval $ac_link) 2>conftest.er1
4881 ac_status=$?
4882 grep -v '^ *+' conftest.er1 >conftest.err
4883 rm -f conftest.er1
4884 cat conftest.err >&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); } &&
4887 { ac_try='test -z "$ac_c_werror_flag"
4888 || test ! -s conftest.err'
4889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4890 (eval $ac_try) 2>&5
4891 ac_status=$?
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); }; } &&
4894 { ac_try='test -s conftest$ac_exeext'
4895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896 (eval $ac_try) 2>&5
4897 ac_status=$?
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); }; }; then
4900 ac_cv_prog_lex_yytext_pointer=yes
4901 else
4902 echo "$as_me: failed program was:" >&5
4903 sed 's/^/| /' conftest.$ac_ext >&5
4906 rm -f conftest.err conftest.$ac_objext \
4907 conftest$ac_exeext conftest.$ac_ext
4908 LIBS=$ac_save_LIBS
4909 rm -f "${LEX_OUTPUT_ROOT}.c"
4912 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4913 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4914 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4916 cat >>confdefs.h <<\_ACEOF
4917 #define YYTEXT_POINTER 1
4918 _ACEOF
4923 # Find a good install program. We prefer a C program (faster),
4924 # so one script is as good as another. But avoid the broken or
4925 # incompatible versions:
4926 # SysV /etc/install, /usr/sbin/install
4927 # SunOS /usr/etc/install
4928 # IRIX /sbin/install
4929 # AIX /bin/install
4930 # AmigaOS /C/install, which installs bootblocks on floppy discs
4931 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4932 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4933 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4934 # OS/2's system install, which has a completely different semantic
4935 # ./install, which can be erroneously created by make from ./install.sh.
4936 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4937 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4938 if test -z "$INSTALL"; then
4939 if test "${ac_cv_path_install+set}" = set; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4941 else
4942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943 for as_dir in $PATH
4945 IFS=$as_save_IFS
4946 test -z "$as_dir" && as_dir=.
4947 # Account for people who put trailing slashes in PATH elements.
4948 case $as_dir/ in
4949 ./ | .// | /cC/* | \
4950 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4951 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4952 /usr/ucb/* ) ;;
4954 # OSF1 and SCO ODT 3.0 have their own names for install.
4955 # Don't use installbsd from OSF since it installs stuff as root
4956 # by default.
4957 for ac_prog in ginstall scoinst install; do
4958 for ac_exec_ext in '' $ac_executable_extensions; do
4959 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4960 if test $ac_prog = install &&
4961 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4962 # AIX install. It has an incompatible calling convention.
4964 elif test $ac_prog = install &&
4965 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4966 # program-specific install script used by HP pwplus--don't use.
4968 else
4969 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4970 break 3
4973 done
4974 done
4976 esac
4977 done
4981 if test "${ac_cv_path_install+set}" = set; then
4982 INSTALL=$ac_cv_path_install
4983 else
4984 # As a last resort, use the slow shell script. We don't cache a
4985 # path for INSTALL within a source directory, because that will
4986 # break other packages using the cache if that directory is
4987 # removed, or if the path is relative.
4988 INSTALL=$ac_install_sh
4991 echo "$as_me:$LINENO: result: $INSTALL" >&5
4992 echo "${ECHO_T}$INSTALL" >&6
4994 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4995 # It thinks the first close brace ends the variable substitution.
4996 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4998 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5000 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5002 if test -n "$ac_tool_prefix"; then
5003 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5004 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5005 echo "$as_me:$LINENO: checking for $ac_word" >&5
5006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5007 if test "${ac_cv_prog_RANLIB+set}" = set; then
5008 echo $ECHO_N "(cached) $ECHO_C" >&6
5009 else
5010 if test -n "$RANLIB"; then
5011 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5012 else
5013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014 for as_dir in $PATH
5016 IFS=$as_save_IFS
5017 test -z "$as_dir" && as_dir=.
5018 for ac_exec_ext in '' $ac_executable_extensions; do
5019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5020 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5022 break 2
5024 done
5025 done
5029 RANLIB=$ac_cv_prog_RANLIB
5030 if test -n "$RANLIB"; then
5031 echo "$as_me:$LINENO: result: $RANLIB" >&5
5032 echo "${ECHO_T}$RANLIB" >&6
5033 else
5034 echo "$as_me:$LINENO: result: no" >&5
5035 echo "${ECHO_T}no" >&6
5039 if test -z "$ac_cv_prog_RANLIB"; then
5040 ac_ct_RANLIB=$RANLIB
5041 # Extract the first word of "ranlib", so it can be a program name with args.
5042 set dummy ranlib; ac_word=$2
5043 echo "$as_me:$LINENO: checking for $ac_word" >&5
5044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5045 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5046 echo $ECHO_N "(cached) $ECHO_C" >&6
5047 else
5048 if test -n "$ac_ct_RANLIB"; then
5049 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5050 else
5051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052 for as_dir in $PATH
5054 IFS=$as_save_IFS
5055 test -z "$as_dir" && as_dir=.
5056 for ac_exec_ext in '' $ac_executable_extensions; do
5057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5058 ac_cv_prog_ac_ct_RANLIB="ranlib"
5059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5060 break 2
5062 done
5063 done
5065 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5068 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5069 if test -n "$ac_ct_RANLIB"; then
5070 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5071 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5072 else
5073 echo "$as_me:$LINENO: result: no" >&5
5074 echo "${ECHO_T}no" >&6
5077 RANLIB=$ac_ct_RANLIB
5078 else
5079 RANLIB="$ac_cv_prog_RANLIB"
5082 for ac_prog in 'bison -y' byacc
5084 # Extract the first word of "$ac_prog", so it can be a program name with args.
5085 set dummy $ac_prog; ac_word=$2
5086 echo "$as_me:$LINENO: checking for $ac_word" >&5
5087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5088 if test "${ac_cv_prog_YACC+set}" = set; then
5089 echo $ECHO_N "(cached) $ECHO_C" >&6
5090 else
5091 if test -n "$YACC"; then
5092 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5093 else
5094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095 for as_dir in $PATH
5097 IFS=$as_save_IFS
5098 test -z "$as_dir" && as_dir=.
5099 for ac_exec_ext in '' $ac_executable_extensions; do
5100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5101 ac_cv_prog_YACC="$ac_prog"
5102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5103 break 2
5105 done
5106 done
5110 YACC=$ac_cv_prog_YACC
5111 if test -n "$YACC"; then
5112 echo "$as_me:$LINENO: result: $YACC" >&5
5113 echo "${ECHO_T}$YACC" >&6
5114 else
5115 echo "$as_me:$LINENO: result: no" >&5
5116 echo "${ECHO_T}no" >&6
5119 test -n "$YACC" && break
5120 done
5121 test -n "$YACC" || YACC="yacc"
5124 if test -n "$ac_tool_prefix"; then
5125 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5126 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5127 echo "$as_me:$LINENO: checking for $ac_word" >&5
5128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5129 if test "${ac_cv_prog_RANLIB+set}" = set; then
5130 echo $ECHO_N "(cached) $ECHO_C" >&6
5131 else
5132 if test -n "$RANLIB"; then
5133 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5134 else
5135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136 for as_dir in $PATH
5138 IFS=$as_save_IFS
5139 test -z "$as_dir" && as_dir=.
5140 for ac_exec_ext in '' $ac_executable_extensions; do
5141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5142 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5144 break 2
5146 done
5147 done
5151 RANLIB=$ac_cv_prog_RANLIB
5152 if test -n "$RANLIB"; then
5153 echo "$as_me:$LINENO: result: $RANLIB" >&5
5154 echo "${ECHO_T}$RANLIB" >&6
5155 else
5156 echo "$as_me:$LINENO: result: no" >&5
5157 echo "${ECHO_T}no" >&6
5161 if test -z "$ac_cv_prog_RANLIB"; then
5162 ac_ct_RANLIB=$RANLIB
5163 # Extract the first word of "ranlib", so it can be a program name with args.
5164 set dummy ranlib; ac_word=$2
5165 echo "$as_me:$LINENO: checking for $ac_word" >&5
5166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5167 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5168 echo $ECHO_N "(cached) $ECHO_C" >&6
5169 else
5170 if test -n "$ac_ct_RANLIB"; then
5171 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5172 else
5173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 for as_dir in $PATH
5176 IFS=$as_save_IFS
5177 test -z "$as_dir" && as_dir=.
5178 for ac_exec_ext in '' $ac_executable_extensions; do
5179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5180 ac_cv_prog_ac_ct_RANLIB="ranlib"
5181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5182 break 2
5184 done
5185 done
5189 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5190 if test -n "$ac_ct_RANLIB"; then
5191 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5192 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5193 else
5194 echo "$as_me:$LINENO: result: no" >&5
5195 echo "${ECHO_T}no" >&6
5198 RANLIB=$ac_ct_RANLIB
5199 else
5200 RANLIB="$ac_cv_prog_RANLIB"
5203 if test -n "$ac_tool_prefix"; then
5204 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5205 set dummy ${ac_tool_prefix}strip; ac_word=$2
5206 echo "$as_me:$LINENO: checking for $ac_word" >&5
5207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5208 if test "${ac_cv_prog_STRIP+set}" = set; then
5209 echo $ECHO_N "(cached) $ECHO_C" >&6
5210 else
5211 if test -n "$STRIP"; then
5212 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5213 else
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215 for as_dir in $PATH
5217 IFS=$as_save_IFS
5218 test -z "$as_dir" && as_dir=.
5219 for ac_exec_ext in '' $ac_executable_extensions; do
5220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5221 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5223 break 2
5225 done
5226 done
5230 STRIP=$ac_cv_prog_STRIP
5231 if test -n "$STRIP"; then
5232 echo "$as_me:$LINENO: result: $STRIP" >&5
5233 echo "${ECHO_T}$STRIP" >&6
5234 else
5235 echo "$as_me:$LINENO: result: no" >&5
5236 echo "${ECHO_T}no" >&6
5240 if test -z "$ac_cv_prog_STRIP"; then
5241 ac_ct_STRIP=$STRIP
5242 # Extract the first word of "strip", so it can be a program name with args.
5243 set dummy strip; ac_word=$2
5244 echo "$as_me:$LINENO: checking for $ac_word" >&5
5245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5246 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
5248 else
5249 if test -n "$ac_ct_STRIP"; then
5250 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5251 else
5252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253 for as_dir in $PATH
5255 IFS=$as_save_IFS
5256 test -z "$as_dir" && as_dir=.
5257 for ac_exec_ext in '' $ac_executable_extensions; do
5258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5259 ac_cv_prog_ac_ct_STRIP="strip"
5260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5261 break 2
5263 done
5264 done
5268 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5269 if test -n "$ac_ct_STRIP"; then
5270 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5271 echo "${ECHO_T}$ac_ct_STRIP" >&6
5272 else
5273 echo "$as_me:$LINENO: result: no" >&5
5274 echo "${ECHO_T}no" >&6
5277 STRIP=$ac_ct_STRIP
5278 else
5279 STRIP="$ac_cv_prog_STRIP"
5282 if test -n "$ac_tool_prefix"; then
5283 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5284 set dummy ${ac_tool_prefix}ar; ac_word=$2
5285 echo "$as_me:$LINENO: checking for $ac_word" >&5
5286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5287 if test "${ac_cv_prog_AR+set}" = set; then
5288 echo $ECHO_N "(cached) $ECHO_C" >&6
5289 else
5290 if test -n "$AR"; then
5291 ac_cv_prog_AR="$AR" # Let the user override the test.
5292 else
5293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294 for as_dir in $PATH
5296 IFS=$as_save_IFS
5297 test -z "$as_dir" && as_dir=.
5298 for ac_exec_ext in '' $ac_executable_extensions; do
5299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5300 ac_cv_prog_AR="${ac_tool_prefix}ar"
5301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5302 break 2
5304 done
5305 done
5309 AR=$ac_cv_prog_AR
5310 if test -n "$AR"; then
5311 echo "$as_me:$LINENO: result: $AR" >&5
5312 echo "${ECHO_T}$AR" >&6
5313 else
5314 echo "$as_me:$LINENO: result: no" >&5
5315 echo "${ECHO_T}no" >&6
5319 if test -z "$ac_cv_prog_AR"; then
5320 ac_ct_AR=$AR
5321 # Extract the first word of "ar", so it can be a program name with args.
5322 set dummy ar; ac_word=$2
5323 echo "$as_me:$LINENO: checking for $ac_word" >&5
5324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5325 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5326 echo $ECHO_N "(cached) $ECHO_C" >&6
5327 else
5328 if test -n "$ac_ct_AR"; then
5329 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5330 else
5331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332 for as_dir in $PATH
5334 IFS=$as_save_IFS
5335 test -z "$as_dir" && as_dir=.
5336 for ac_exec_ext in '' $ac_executable_extensions; do
5337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5338 ac_cv_prog_ac_ct_AR="ar"
5339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5340 break 2
5342 done
5343 done
5347 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5348 if test -n "$ac_ct_AR"; then
5349 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5350 echo "${ECHO_T}$ac_ct_AR" >&6
5351 else
5352 echo "$as_me:$LINENO: result: no" >&5
5353 echo "${ECHO_T}no" >&6
5356 AR=$ac_ct_AR
5357 else
5358 AR="$ac_cv_prog_AR"
5361 if test -n "$ac_tool_prefix"; then
5362 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5363 set dummy ${ac_tool_prefix}ld; ac_word=$2
5364 echo "$as_me:$LINENO: checking for $ac_word" >&5
5365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5366 if test "${ac_cv_prog_LD+set}" = set; then
5367 echo $ECHO_N "(cached) $ECHO_C" >&6
5368 else
5369 if test -n "$LD"; then
5370 ac_cv_prog_LD="$LD" # Let the user override the test.
5371 else
5372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373 for as_dir in $PATH
5375 IFS=$as_save_IFS
5376 test -z "$as_dir" && as_dir=.
5377 for ac_exec_ext in '' $ac_executable_extensions; do
5378 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5379 ac_cv_prog_LD="${ac_tool_prefix}ld"
5380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5381 break 2
5383 done
5384 done
5388 LD=$ac_cv_prog_LD
5389 if test -n "$LD"; then
5390 echo "$as_me:$LINENO: result: $LD" >&5
5391 echo "${ECHO_T}$LD" >&6
5392 else
5393 echo "$as_me:$LINENO: result: no" >&5
5394 echo "${ECHO_T}no" >&6
5398 if test -z "$ac_cv_prog_LD"; then
5399 ac_ct_LD=$LD
5400 # Extract the first word of "ld", so it can be a program name with args.
5401 set dummy ld; ac_word=$2
5402 echo "$as_me:$LINENO: checking for $ac_word" >&5
5403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5404 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5405 echo $ECHO_N "(cached) $ECHO_C" >&6
5406 else
5407 if test -n "$ac_ct_LD"; then
5408 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5409 else
5410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5411 for as_dir in $PATH
5413 IFS=$as_save_IFS
5414 test -z "$as_dir" && as_dir=.
5415 for ac_exec_ext in '' $ac_executable_extensions; do
5416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5417 ac_cv_prog_ac_ct_LD="ld"
5418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5419 break 2
5421 done
5422 done
5426 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5427 if test -n "$ac_ct_LD"; then
5428 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5429 echo "${ECHO_T}$ac_ct_LD" >&6
5430 else
5431 echo "$as_me:$LINENO: result: no" >&5
5432 echo "${ECHO_T}no" >&6
5435 LD=$ac_ct_LD
5436 else
5437 LD="$ac_cv_prog_LD"
5441 # Check whether --enable-monolithic or --disable-monolithic was given.
5442 if test "${enable_monolithic+set}" = set; then
5443 enableval="$enable_monolithic"
5448 if test ${enable_monolithic:-yes} = yes; then
5449 MONOLITHIC_TRUE=
5450 MONOLITHIC_FALSE='#'
5451 else
5452 MONOLITHIC_TRUE='#'
5453 MONOLITHIC_FALSE=
5457 # Check whether --enable-amule-daemon or --disable-amule-daemon was given.
5458 if test "${enable_amule_daemon+set}" = set; then
5459 enableval="$enable_amule_daemon"
5464 if test ${enable_amule_daemon:-no} = yes; then
5465 AMULE_DAEMON_TRUE=
5466 AMULE_DAEMON_FALSE='#'
5467 else
5468 AMULE_DAEMON_TRUE='#'
5469 AMULE_DAEMON_FALSE=
5473 # Check whether --enable-amulecmd or --disable-amulecmd was given.
5474 if test "${enable_amulecmd+set}" = set; then
5475 enableval="$enable_amulecmd"
5480 if test ${enable_amulecmd:-no} = yes; then
5481 COMPILE_CMD_TRUE=
5482 COMPILE_CMD_FALSE='#'
5483 else
5484 COMPILE_CMD_TRUE='#'
5485 COMPILE_CMD_FALSE=
5489 # Check whether --enable-webserver or --disable-webserver was given.
5490 if test "${enable_webserver+set}" = set; then
5491 enableval="$enable_webserver"
5496 if test ${enable_webserver:-no} = yes; then
5497 WEB_TRUE=
5498 WEB_FALSE='#'
5499 else
5500 WEB_TRUE='#'
5501 WEB_FALSE=
5505 # Check whether --enable-amule-gui or --disable-amule-gui was given.
5506 if test "${enable_amule_gui+set}" = set; then
5507 enableval="$enable_amule_gui"
5512 if test ${enable_amule_gui:-no} = yes; then
5513 AMULE_GUI_TRUE=
5514 AMULE_GUI_FALSE='#'
5515 else
5516 AMULE_GUI_TRUE='#'
5517 AMULE_GUI_FALSE=
5521 # Check whether --enable-cas or --disable-cas was given.
5522 if test "${enable_cas+set}" = set; then
5523 enableval="$enable_cas"
5528 if test ${enable_cas:-no} = yes; then
5529 CAS_TRUE=
5530 CAS_FALSE='#'
5531 else
5532 CAS_TRUE='#'
5533 CAS_FALSE=
5537 # Check whether --enable-wxcas or --disable-wxcas was given.
5538 if test "${enable_wxcas+set}" = set; then
5539 enableval="$enable_wxcas"
5544 if test ${enable_wxcas:-no} = yes; then
5545 WXCAS_TRUE=
5546 WXCAS_FALSE='#'
5547 else
5548 WXCAS_TRUE='#'
5549 WXCAS_FALSE=
5553 # Check whether --enable-ed2k or --disable-ed2k was given.
5554 if test "${enable_ed2k+set}" = set; then
5555 enableval="$enable_ed2k"
5560 if test ${enable_ed2k:-yes} = yes; then
5561 ED2K_TRUE=
5562 ED2K_FALSE='#'
5563 else
5564 ED2K_TRUE='#'
5565 ED2K_FALSE=
5569 # Check whether --enable-alc or --disable-alc was given.
5570 if test "${enable_alc+set}" = set; then
5571 enableval="$enable_alc"
5576 if test ${enable_alc:-no} = yes; then
5577 ALC_TRUE=
5578 ALC_FALSE='#'
5579 else
5580 ALC_TRUE='#'
5581 ALC_FALSE=
5585 # Check whether --enable-alcc or --disable-alcc was given.
5586 if test "${enable_alcc+set}" = set; then
5587 enableval="$enable_alcc"
5592 if test ${enable_alcc:-no} = yes; then
5593 ALCC_TRUE=
5594 ALCC_FALSE='#'
5595 else
5596 ALCC_TRUE='#'
5597 ALCC_FALSE=
5601 # Check whether --enable-xas or --disable-xas was given.
5602 if test "${enable_xas+set}" = set; then
5603 enableval="$enable_xas"
5608 if test ${enable_xas:-no} = yes; then
5609 XAS_TRUE=
5610 XAS_FALSE='#'
5611 else
5612 XAS_TRUE='#'
5613 XAS_FALSE=
5617 # Check whether --enable-fileview or --disable-fileview was given.
5618 if test "${enable_fileview+set}" = set; then
5619 enableval="$enable_fileview"
5624 if test ${enable_fileview:-no} = yes; then
5625 FILEVIEW_TRUE=
5626 FILEVIEW_FALSE='#'
5627 else
5628 FILEVIEW_TRUE='#'
5629 FILEVIEW_FALSE=
5633 # Check whether --enable-plasmamule or --disable-plasmamule was given.
5634 if test "${enable_plasmamule+set}" = set; then
5635 enableval="$enable_plasmamule"
5640 # Run all the tests with static linkage if we want a statically linked binary
5641 # Check whether --enable-static or --disable-static was given.
5642 if test "${enable_static+set}" = set; then
5643 enableval="$enable_static"
5647 if test ${enable_static:-no} = yes; then
5648 LDFLAGS="$LDFLAGS -static"
5654 # Check whether --with-kde4-config or --without-kde4-config was given.
5655 if test "${with_kde4_config+set}" = set; then
5656 withval="$with_kde4_config"
5657 KDE4_CONFIG=$withval
5658 else
5659 KDE4_CONFIG=""
5661 # Check whether --enable-kde-in-home or --disable-kde-in-home was given.
5662 if test "${enable_kde_in_home+set}" = set; then
5663 enableval="$enable_kde_in_home"
5664 KDE_IN_HOME=$enableval
5665 else
5666 KDE_IN_HOME=no
5671 # Check whether --with-moc or --without-moc was given.
5672 if test "${with_moc+set}" = set; then
5673 withval="$with_moc"
5674 QT_MOC=$withval
5675 else
5676 QT_MOC=""
5680 # Default is yes, because they're most likely compatible.
5681 # However, this is only used when cross-compiling.
5683 # Check whether --with-gnu-malloc or --without-gnu-malloc was given.
5684 if test "${with_gnu_malloc+set}" = set; then
5685 withval="$with_gnu_malloc"
5686 gnumalloc=$withval
5687 else
5688 gnumalloc=yes
5692 # Checking for libs before all other stuff to break
5693 # configure as soon as possible in case of a missing one
5694 # to avoid losing too much time
5696 # Check for zlib
5697 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_amule_gui:-no} = yes ; then
5700 # Check whether --with-zlib or --without-zlib was given.
5701 if test "${with_zlib+set}" = set; then
5702 withval="$with_zlib"
5706 case "${with_zlib:-yes}" in
5708 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5709 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5710 { (exit 1); exit 1; }; }
5712 yes | sys)
5715 zlib_prefix="$with_zlib"
5716 esac
5718 mule_backup_CPPFLAGS="$CPPFLAGS"
5719 mule_backup_LDFLAGS="$LDFLAGS"
5720 mule_backup_LIBS="$LIBS"
5721 if test -n "$zlib_prefix"; then
5723 ZLIB_CPPFLAGS="-I$zlib_prefix/include"
5724 ZLIB_LDFLAGS="-L$zlib_prefix/lib"
5725 CPPFLAGS="$CPPFLAGS $ZLIB_CPPFLAGS"
5726 LDFLAGS="$LDFLAGS $ZLIB_LDFLAGS"
5728 else
5730 ZLIB_CPPFLAGS=
5731 ZLIB_LDFLAGS=
5735 ZLIB_LIBS="-lz"
5736 LIBS="$ZLIB_LIBS $LIBS"
5738 echo "$as_me:$LINENO: checking for zlib >= 1.1.4" >&5
5739 echo $ECHO_N "checking for zlib >= 1.1.4... $ECHO_C" >&6
5740 if test "$cross_compiling" = yes; then
5742 result=no
5743 z_version=
5744 cat >conftest.$ac_ext <<_ACEOF
5746 /* confdefs.h. */
5747 _ACEOF
5748 cat confdefs.h >>conftest.$ac_ext
5749 cat >>conftest.$ac_ext <<_ACEOF
5750 /* end confdefs.h. */
5752 #include <zlib.h>
5753 #include <stdio.h>
5756 main ()
5759 printf("\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n\n");
5760 zlibVersion();
5763 return 0;
5766 _ACEOF
5767 rm -f conftest.$ac_objext conftest$ac_exeext
5768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5769 (eval $ac_link) 2>conftest.er1
5770 ac_status=$?
5771 grep -v '^ *+' conftest.er1 >conftest.err
5772 rm -f conftest.er1
5773 cat conftest.err >&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); } &&
5776 { ac_try='test -z "$ac_c_werror_flag"
5777 || test ! -s conftest.err'
5778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5779 (eval $ac_try) 2>&5
5780 ac_status=$?
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); }; } &&
5783 { ac_try='test -s conftest$ac_exeext'
5784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5785 (eval $ac_try) 2>&5
5786 ac_status=$?
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); }; }; then
5790 ZLIB_VERSION=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest$ac_exeext | sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'`
5791 cross_zver_max="`echo $ZLIB_VERSION | cut -d. -f1`"
5792 cross_zver_mid="`echo $ZLIB_VERSION | cut -d. -f2`"
5793 cross_zver_min="`echo $ZLIB_VERSION | cut -d. -f3`"
5794 if test "$cross_zver_max" -gt "1"; then
5795 result=yes
5796 elif test "$cross_zver_max" -eq "1"; then
5798 if test "$cross_zver_mid" -gt "1"; then
5799 result=yes
5800 elif test "$cross_zver_mid" -eq "1"; then
5801 if test "$cross_zver_min" -ge "4"; then
5802 result=yes
5810 if test ${result:-no} = yes; then
5811 z_version=" (version $ZLIB_VERSION)"
5815 else
5816 echo "$as_me: failed program was:" >&5
5817 sed 's/^/| /' conftest.$ac_ext >&5
5820 rm -f conftest.err conftest.$ac_objext \
5821 conftest$ac_exeext conftest.$ac_ext
5822 echo "$as_me:$LINENO: result: $result$z_version" >&5
5823 echo "${ECHO_T}$result$z_version" >&6
5825 else
5826 cat >conftest.$ac_ext <<_ACEOF
5828 /* confdefs.h. */
5829 _ACEOF
5830 cat confdefs.h >>conftest.$ac_ext
5831 cat >>conftest.$ac_ext <<_ACEOF
5832 /* end confdefs.h. */
5834 #include <zlib.h>
5835 #include <stdio.h>
5838 main ()
5840 char *zver = zlibVersion();
5841 FILE *f=fopen("conftestval", "w");
5842 if (!f) return 1;
5843 fprintf(f, "%s",
5844 zver[0] > '1' ||
5845 (zver[0] == '1' &&
5846 (zver[2] > '1' ||
5847 (zver[2] == '1' &&
5848 zver[4] >= '4'))) ? "yes" : "no");
5849 fclose(f);
5850 f=fopen("conftestver", "w");
5851 if (f) {
5852 fprintf(f, "%s", ZLIB_VERSION);
5853 fclose(f);
5857 return 0;
5860 _ACEOF
5861 rm -f conftest$ac_exeext
5862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5863 (eval $ac_link) 2>&5
5864 ac_status=$?
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5868 (eval $ac_try) 2>&5
5869 ac_status=$?
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); }; }; then
5873 if test -f conftestval; then
5874 result=`cat conftestval`
5875 else
5876 result=no
5879 if test ${result:-no} = yes; then
5881 if test -f conftestver; then
5883 ZLIB_VERSION=`cat conftestver`
5884 z_version=" (version $ZLIB_VERSION)"
5886 else
5887 z_version=
5893 echo "$as_me:$LINENO: result: $result$z_version" >&5
5894 echo "${ECHO_T}$result$z_version" >&6
5896 else
5897 echo "$as_me: program exited with status $ac_status" >&5
5898 echo "$as_me: failed program was:" >&5
5899 sed 's/^/| /' conftest.$ac_ext >&5
5901 ( exit $ac_status )
5903 result=no
5904 echo "$as_me:$LINENO: result: $result" >&5
5905 echo "${ECHO_T}$result" >&6
5908 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5911 CPPFLAGS="$mule_backup_CPPFLAGS"
5912 LDFLAGS="$mule_backup_LDFLAGS"
5913 LIBS="$mule_backup_LIBS"
5915 if test ${result:-no} = no; then
5917 ZLIB_CPPFLAGS=
5918 ZLIB_LDFLAGS=
5919 ZLIB_LIBS=
5920 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5921 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5922 { (exit 1); exit 1; }; }
5931 if test ${enable_cas:-no} = yes; then
5933 # Check for gd
5935 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5936 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5937 if test "${ac_cv_header_stdc+set}" = set; then
5938 echo $ECHO_N "(cached) $ECHO_C" >&6
5939 else
5940 cat >conftest.$ac_ext <<_ACEOF
5941 /* confdefs.h. */
5942 _ACEOF
5943 cat confdefs.h >>conftest.$ac_ext
5944 cat >>conftest.$ac_ext <<_ACEOF
5945 /* end confdefs.h. */
5946 #include <stdlib.h>
5947 #include <stdarg.h>
5948 #include <string.h>
5949 #include <float.h>
5952 main ()
5956 return 0;
5958 _ACEOF
5959 rm -f conftest.$ac_objext
5960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5961 (eval $ac_compile) 2>conftest.er1
5962 ac_status=$?
5963 grep -v '^ *+' conftest.er1 >conftest.err
5964 rm -f conftest.er1
5965 cat conftest.err >&5
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); } &&
5968 { ac_try='test -z "$ac_c_werror_flag"
5969 || test ! -s conftest.err'
5970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5971 (eval $ac_try) 2>&5
5972 ac_status=$?
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); }; } &&
5975 { ac_try='test -s conftest.$ac_objext'
5976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5977 (eval $ac_try) 2>&5
5978 ac_status=$?
5979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980 (exit $ac_status); }; }; then
5981 ac_cv_header_stdc=yes
5982 else
5983 echo "$as_me: failed program was:" >&5
5984 sed 's/^/| /' conftest.$ac_ext >&5
5986 ac_cv_header_stdc=no
5988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5990 if test $ac_cv_header_stdc = yes; then
5991 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5992 cat >conftest.$ac_ext <<_ACEOF
5993 /* confdefs.h. */
5994 _ACEOF
5995 cat confdefs.h >>conftest.$ac_ext
5996 cat >>conftest.$ac_ext <<_ACEOF
5997 /* end confdefs.h. */
5998 #include <string.h>
6000 _ACEOF
6001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6002 $EGREP "memchr" >/dev/null 2>&1; then
6004 else
6005 ac_cv_header_stdc=no
6007 rm -f conftest*
6011 if test $ac_cv_header_stdc = yes; then
6012 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6013 cat >conftest.$ac_ext <<_ACEOF
6014 /* confdefs.h. */
6015 _ACEOF
6016 cat confdefs.h >>conftest.$ac_ext
6017 cat >>conftest.$ac_ext <<_ACEOF
6018 /* end confdefs.h. */
6019 #include <stdlib.h>
6021 _ACEOF
6022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6023 $EGREP "free" >/dev/null 2>&1; then
6025 else
6026 ac_cv_header_stdc=no
6028 rm -f conftest*
6032 if test $ac_cv_header_stdc = yes; then
6033 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6034 if test "$cross_compiling" = yes; then
6036 else
6037 cat >conftest.$ac_ext <<_ACEOF
6038 /* confdefs.h. */
6039 _ACEOF
6040 cat confdefs.h >>conftest.$ac_ext
6041 cat >>conftest.$ac_ext <<_ACEOF
6042 /* end confdefs.h. */
6043 #include <ctype.h>
6044 #if ((' ' & 0x0FF) == 0x020)
6045 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6046 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6047 #else
6048 # define ISLOWER(c) \
6049 (('a' <= (c) && (c) <= 'i') \
6050 || ('j' <= (c) && (c) <= 'r') \
6051 || ('s' <= (c) && (c) <= 'z'))
6052 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6053 #endif
6055 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6057 main ()
6059 int i;
6060 for (i = 0; i < 256; i++)
6061 if (XOR (islower (i), ISLOWER (i))
6062 || toupper (i) != TOUPPER (i))
6063 exit(2);
6064 exit (0);
6066 _ACEOF
6067 rm -f conftest$ac_exeext
6068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6069 (eval $ac_link) 2>&5
6070 ac_status=$?
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6074 (eval $ac_try) 2>&5
6075 ac_status=$?
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); }; }; then
6079 else
6080 echo "$as_me: program exited with status $ac_status" >&5
6081 echo "$as_me: failed program was:" >&5
6082 sed 's/^/| /' conftest.$ac_ext >&5
6084 ( exit $ac_status )
6085 ac_cv_header_stdc=no
6087 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6091 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6092 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6093 if test $ac_cv_header_stdc = yes; then
6095 cat >>confdefs.h <<\_ACEOF
6096 #define STDC_HEADERS 1
6097 _ACEOF
6101 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6111 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6112 inttypes.h stdint.h unistd.h
6114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6115 echo "$as_me:$LINENO: checking for $ac_header" >&5
6116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6119 else
6120 cat >conftest.$ac_ext <<_ACEOF
6121 /* confdefs.h. */
6122 _ACEOF
6123 cat confdefs.h >>conftest.$ac_ext
6124 cat >>conftest.$ac_ext <<_ACEOF
6125 /* end confdefs.h. */
6126 $ac_includes_default
6128 #include <$ac_header>
6129 _ACEOF
6130 rm -f conftest.$ac_objext
6131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6132 (eval $ac_compile) 2>conftest.er1
6133 ac_status=$?
6134 grep -v '^ *+' conftest.er1 >conftest.err
6135 rm -f conftest.er1
6136 cat conftest.err >&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); } &&
6139 { ac_try='test -z "$ac_c_werror_flag"
6140 || test ! -s conftest.err'
6141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6142 (eval $ac_try) 2>&5
6143 ac_status=$?
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); }; } &&
6146 { ac_try='test -s conftest.$ac_objext'
6147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6148 (eval $ac_try) 2>&5
6149 ac_status=$?
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); }; }; then
6152 eval "$as_ac_Header=yes"
6153 else
6154 echo "$as_me: failed program was:" >&5
6155 sed 's/^/| /' conftest.$ac_ext >&5
6157 eval "$as_ac_Header=no"
6159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6164 cat >>confdefs.h <<_ACEOF
6165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6166 _ACEOF
6170 done
6175 # Check whether --with-gdlib-prefix or --without-gdlib-prefix was given.
6176 if test "${with_gdlib_prefix+set}" = set; then
6177 withval="$with_gdlib_prefix"
6181 # Check whether --with-gdlib-config or --without-gdlib-config was given.
6182 if test "${with_gdlib_config+set}" = set; then
6183 withval="$with_gdlib_config"
6187 GDLIB_VERSION=
6189 # do we have gdlib-config name: it can be gdlib-config or gd-config or ...
6190 if test x${GDLIB_CONFIG_NAME+set} != xset; then
6191 GDLIB_CONFIG_NAME=gdlib-config
6194 if test -n "$with_gdlib_config"; then
6195 GDLIB_CONFIG_NAME="$with_gdlib_config"
6199 # deal with optional prefix
6200 if test -n "$with_gdlib_prefix"; then
6201 GDLIB_LOOKUP_PATH="$with_gdlib_prefix/bin"
6205 # don't search the PATH if GDLIB_CONFIG_NAME is absolute filename
6206 if test -x "$GDLIB_CONFIG_NAME"; then
6208 echo "$as_me:$LINENO: checking for gdlib-config" >&5
6209 echo $ECHO_N "checking for gdlib-config... $ECHO_C" >&6
6210 GDLIB_CONFIG_PATH="$GDLIB_CONFIG_NAME"
6211 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6212 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6214 else
6215 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args.
6216 set dummy $GDLIB_CONFIG_NAME; ac_word=$2
6217 echo "$as_me:$LINENO: checking for $ac_word" >&5
6218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6219 if test "${ac_cv_path_GDLIB_CONFIG_PATH+set}" = set; then
6220 echo $ECHO_N "(cached) $ECHO_C" >&6
6221 else
6222 case $GDLIB_CONFIG_PATH in
6223 [\\/]* | ?:[\\/]*)
6224 ac_cv_path_GDLIB_CONFIG_PATH="$GDLIB_CONFIG_PATH" # Let the user override the test with a path.
6227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6228 as_dummy="$GDLIB_LOOKUP_PATH:$PATH"
6229 for as_dir in $as_dummy
6231 IFS=$as_save_IFS
6232 test -z "$as_dir" && as_dir=.
6233 for ac_exec_ext in '' $ac_executable_extensions; do
6234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6235 ac_cv_path_GDLIB_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
6236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6237 break 2
6239 done
6240 done
6242 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH="no"
6244 esac
6246 GDLIB_CONFIG_PATH=$ac_cv_path_GDLIB_CONFIG_PATH
6248 if test -n "$GDLIB_CONFIG_PATH"; then
6249 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6250 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6251 else
6252 echo "$as_me:$LINENO: result: no" >&5
6253 echo "${ECHO_T}no" >&6
6259 if test ${GDLIB_CONFIG_PATH:-no} != no; then
6261 echo "$as_me:$LINENO: checking for gdlib version >= 2.0.0" >&5
6262 echo $ECHO_N "checking for gdlib version >= 2.0.0... $ECHO_C" >&6
6263 GDLIB_CONFIG_WITH_ARGS="$GDLIB_CONFIG_PATH $gdlib_config_args"
6265 GDLIB_VERSION=`$GDLIB_CONFIG_WITH_ARGS --version`
6266 gdlib_config_major_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6267 gdlib_config_minor_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6268 gdlib_config_micro_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6270 gdlib_ver_ok=
6271 if test $gdlib_config_major_version -gt 2; then
6272 gdlib_ver_ok=yes
6273 elif test $gdlib_config_major_version -eq 2; then
6275 if test $gdlib_config_minor_version -gt 0; then
6276 gdlib_ver_ok=yes
6277 elif test $gdlib_config_minor_version -eq 0; then
6278 if test $gdlib_config_micro_version -ge 0; then
6279 gdlib_ver_ok=yes
6288 if test -z "$gdlib_ver_ok"; then
6290 if test -z "$GDLIB_VERSION"; then
6291 echo "$as_me:$LINENO: result: no" >&5
6292 echo "${ECHO_T}no" >&6
6293 else
6295 echo "$as_me:$LINENO: result: no (version $GDLIB_VERSION is not new enough)" >&5
6296 echo "${ECHO_T}no (version $GDLIB_VERSION is not new enough)" >&6
6297 GDLIB_VERSION=
6302 else
6304 echo "$as_me:$LINENO: result: yes (version $GDLIB_VERSION)" >&5
6305 echo "${ECHO_T}yes (version $GDLIB_VERSION)" >&6
6306 GDLIB_CFLAGS="`$GDLIB_CONFIG_WITH_ARGS --cflags`"
6307 GDLIB_LDFLAGS="`$GDLIB_CONFIG_WITH_ARGS --ldflags`"
6308 GDLIB_LIBS="`$GDLIB_CONFIG_WITH_ARGS --libs`"
6309 mule_backup_CFLAGS="$CFLAGS"
6310 CFLAGS="$CFLAGS $GDLIB_CFLAGS"
6311 if test "${ac_cv_header_gd_h+set}" = set; then
6312 echo "$as_me:$LINENO: checking for gd.h" >&5
6313 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6314 if test "${ac_cv_header_gd_h+set}" = set; then
6315 echo $ECHO_N "(cached) $ECHO_C" >&6
6317 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6318 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6319 else
6320 # Is the header compilable?
6321 echo "$as_me:$LINENO: checking gd.h usability" >&5
6322 echo $ECHO_N "checking gd.h usability... $ECHO_C" >&6
6323 cat >conftest.$ac_ext <<_ACEOF
6324 /* confdefs.h. */
6325 _ACEOF
6326 cat confdefs.h >>conftest.$ac_ext
6327 cat >>conftest.$ac_ext <<_ACEOF
6328 /* end confdefs.h. */
6329 $ac_includes_default
6330 #include <gd.h>
6331 _ACEOF
6332 rm -f conftest.$ac_objext
6333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6334 (eval $ac_compile) 2>conftest.er1
6335 ac_status=$?
6336 grep -v '^ *+' conftest.er1 >conftest.err
6337 rm -f conftest.er1
6338 cat conftest.err >&5
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); } &&
6341 { ac_try='test -z "$ac_c_werror_flag"
6342 || test ! -s conftest.err'
6343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6344 (eval $ac_try) 2>&5
6345 ac_status=$?
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); }; } &&
6348 { ac_try='test -s conftest.$ac_objext'
6349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6350 (eval $ac_try) 2>&5
6351 ac_status=$?
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }; }; then
6354 ac_header_compiler=yes
6355 else
6356 echo "$as_me: failed program was:" >&5
6357 sed 's/^/| /' conftest.$ac_ext >&5
6359 ac_header_compiler=no
6361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6362 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6363 echo "${ECHO_T}$ac_header_compiler" >&6
6365 # Is the header present?
6366 echo "$as_me:$LINENO: checking gd.h presence" >&5
6367 echo $ECHO_N "checking gd.h presence... $ECHO_C" >&6
6368 cat >conftest.$ac_ext <<_ACEOF
6369 /* confdefs.h. */
6370 _ACEOF
6371 cat confdefs.h >>conftest.$ac_ext
6372 cat >>conftest.$ac_ext <<_ACEOF
6373 /* end confdefs.h. */
6374 #include <gd.h>
6375 _ACEOF
6376 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6377 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6378 ac_status=$?
6379 grep -v '^ *+' conftest.er1 >conftest.err
6380 rm -f conftest.er1
6381 cat conftest.err >&5
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); } >/dev/null; then
6384 if test -s conftest.err; then
6385 ac_cpp_err=$ac_c_preproc_warn_flag
6386 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6387 else
6388 ac_cpp_err=
6390 else
6391 ac_cpp_err=yes
6393 if test -z "$ac_cpp_err"; then
6394 ac_header_preproc=yes
6395 else
6396 echo "$as_me: failed program was:" >&5
6397 sed 's/^/| /' conftest.$ac_ext >&5
6399 ac_header_preproc=no
6401 rm -f conftest.err conftest.$ac_ext
6402 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6403 echo "${ECHO_T}$ac_header_preproc" >&6
6405 # So? What about this header?
6406 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6407 yes:no: )
6408 { echo "$as_me:$LINENO: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&5
6409 echo "$as_me: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6410 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the compiler's result" >&5
6411 echo "$as_me: WARNING: gd.h: proceeding with the compiler's result" >&2;}
6412 ac_header_preproc=yes
6414 no:yes:* )
6415 { echo "$as_me:$LINENO: WARNING: gd.h: present but cannot be compiled" >&5
6416 echo "$as_me: WARNING: gd.h: present but cannot be compiled" >&2;}
6417 { echo "$as_me:$LINENO: WARNING: gd.h: check for missing prerequisite headers?" >&5
6418 echo "$as_me: WARNING: gd.h: check for missing prerequisite headers?" >&2;}
6419 { echo "$as_me:$LINENO: WARNING: gd.h: see the Autoconf documentation" >&5
6420 echo "$as_me: WARNING: gd.h: see the Autoconf documentation" >&2;}
6421 { echo "$as_me:$LINENO: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&5
6422 echo "$as_me: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&2;}
6423 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the preprocessor's result" >&5
6424 echo "$as_me: WARNING: gd.h: proceeding with the preprocessor's result" >&2;}
6425 { echo "$as_me:$LINENO: WARNING: gd.h: in the future, the compiler will take precedence" >&5
6426 echo "$as_me: WARNING: gd.h: in the future, the compiler will take precedence" >&2;}
6428 cat <<\_ASBOX
6429 ## ------------------------------ ##
6430 ## Report this to admin@amule.org ##
6431 ## ------------------------------ ##
6432 _ASBOX
6434 sed "s/^/$as_me: WARNING: /" >&2
6436 esac
6437 echo "$as_me:$LINENO: checking for gd.h" >&5
6438 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6439 if test "${ac_cv_header_gd_h+set}" = set; then
6440 echo $ECHO_N "(cached) $ECHO_C" >&6
6441 else
6442 ac_cv_header_gd_h=$ac_header_preproc
6444 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6445 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6448 if test $ac_cv_header_gd_h = yes; then
6450 else
6451 GDLIB_VERSION=
6455 CFLAGS="$mule_backup_CFLAGS"
6463 if test -n "$GDLIB_VERSION"; then
6465 CAS_DEFS="-D__GD__"
6466 GDLIB_LIBS="-lgd $GDLIB_LIBS"
6468 else
6469 CAS_DEFS=
6475 if test -z "$CAS_DEFS"; then
6476 { echo "$as_me:$LINENO: WARNING:
6477 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6478 Please check that gdlib-config is in your default path, check out
6479 LD_LIBRARY_PATH or equivalent variable.
6480 Or this might also be that your gdlib-config has other name.
6481 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6482 (replace /usr/bin/gdlib-config with a valid path to your
6483 gdlib-config).
6484 If you use compiled packages check if you have devel pack installed.
6485 To download the latest version check http://www.boutell.com/gd for
6486 sources." >&5
6487 echo "$as_me: WARNING:
6488 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6489 Please check that gdlib-config is in your default path, check out
6490 LD_LIBRARY_PATH or equivalent variable.
6491 Or this might also be that your gdlib-config has other name.
6492 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6493 (replace /usr/bin/gdlib-config with a valid path to your
6494 gdlib-config).
6495 If you use compiled packages check if you have devel pack installed.
6496 To download the latest version check http://www.boutell.com/gd for
6497 sources." >&2;}
6498 _mule_warning_0=yes
6499 _mule_has_warnings=yes
6507 if test ${enable_webserver:-no} = yes; then
6510 # Check whether --with-libpng-prefix or --without-libpng-prefix was given.
6511 if test "${with_libpng_prefix+set}" = set; then
6512 withval="$with_libpng_prefix"
6516 # Check whether --with-libpng-config or --without-libpng-config was given.
6517 if test "${with_libpng_config+set}" = set; then
6518 withval="$with_libpng_config"
6522 LIBPNG_VERSION=
6524 # do we have libpng-config name: it can be libpng-config or libpng12-config or ...
6525 if test x${LIBPNG_CONFIG_NAME+set} != xset; then
6526 LIBPNG_CONFIG_NAME=libpng-config
6529 if test -n "$with_libpng_config"; then
6530 LIBPNG_CONFIG_NAME="$with_libpng_config"
6534 # deal with optional prefix
6535 if test -n "$with_libpng_prefix"; then
6536 LIBPNG_LOOKUP_PATH="$with_libpng_prefix/bin"
6540 # don't search the PATH if LIBPNG_CONFIG_NAME is absolute filename
6541 if test -x "$LIBPNG_CONFIG_NAME"; then
6543 echo "$as_me:$LINENO: checking for libpng-config" >&5
6544 echo $ECHO_N "checking for libpng-config... $ECHO_C" >&6
6545 LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_NAME"
6546 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6547 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6549 else
6550 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
6551 set dummy $LIBPNG_CONFIG_NAME; ac_word=$2
6552 echo "$as_me:$LINENO: checking for $ac_word" >&5
6553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6554 if test "${ac_cv_path_LIBPNG_CONFIG_PATH+set}" = set; then
6555 echo $ECHO_N "(cached) $ECHO_C" >&6
6556 else
6557 case $LIBPNG_CONFIG_PATH in
6558 [\\/]* | ?:[\\/]*)
6559 ac_cv_path_LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
6562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6563 as_dummy="$LIBPNG_LOOKUP_PATH:$PATH"
6564 for as_dir in $as_dummy
6566 IFS=$as_save_IFS
6567 test -z "$as_dir" && as_dir=.
6568 for ac_exec_ext in '' $ac_executable_extensions; do
6569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6570 ac_cv_path_LIBPNG_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
6571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6572 break 2
6574 done
6575 done
6577 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH="no"
6579 esac
6581 LIBPNG_CONFIG_PATH=$ac_cv_path_LIBPNG_CONFIG_PATH
6583 if test -n "$LIBPNG_CONFIG_PATH"; then
6584 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6585 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6586 else
6587 echo "$as_me:$LINENO: result: no" >&5
6588 echo "${ECHO_T}no" >&6
6594 if test ${LIBPNG_CONFIG_PATH:-no} != no; then
6596 echo "$as_me:$LINENO: checking for libpng version >= 1.2.0" >&5
6597 echo $ECHO_N "checking for libpng version >= 1.2.0... $ECHO_C" >&6
6599 LIBPNG_CONFIG_WITH_ARGS="$LIBPNG_CONFIG_PATH $libpng_config_args"
6601 LIBPNG_VERSION=`$LIBPNG_CONFIG_WITH_ARGS --version`
6602 libpng_config_major_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6603 libpng_config_minor_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6604 libpng_config_micro_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6606 libpng_ver_ok=
6607 if test $libpng_config_major_version -gt 1; then
6608 libpng_ver_ok=yes
6609 elif test $libpng_config_major_version -eq 1; then
6611 if test $libpng_config_minor_version -gt 2; then
6612 libpng_ver_ok=yes
6613 elif test $libpng_config_minor_version -eq 2; then
6614 if test $libpng_config_micro_version -ge 0; then
6615 libpng_ver_ok=yes
6624 if test -z "$libpng_ver_ok"; then
6626 if test -z "$LIBPNG_VERSION"; then
6627 echo "$as_me:$LINENO: result: no" >&5
6628 echo "${ECHO_T}no" >&6
6629 else
6631 echo "$as_me:$LINENO: result: no (version $LIBPNG_VERSION is not new enough)" >&5
6632 echo "${ECHO_T}no (version $LIBPNG_VERSION is not new enough)" >&6
6633 LIBPNG_VERSION=
6638 else
6640 LIBPNG_LIBS=`$LIBPNG_CONFIG_WITH_ARGS --libs`
6641 LIBPNG_LDFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --ldflags | sed -e "s/ *${LIBPNG_LIBS}$//"`
6642 LIBPNG_CFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
6643 echo "$as_me:$LINENO: result: yes (version $LIBPNG_VERSION)" >&5
6644 echo "${ECHO_T}yes (version $LIBPNG_VERSION)" >&6
6652 if test -n "$LIBPNG_VERSION"; then
6653 AMULEWEB_DEFS="-DWITH_LIBPNG"
6654 else
6656 { echo "$as_me:$LINENO: WARNING:
6657 libpng >= 1.2.0 not found.
6658 amuleweb will be compiled but file download progress bar images will
6659 NOT be generated." >&5
6660 echo "$as_me: WARNING:
6661 libpng >= 1.2.0 not found.
6662 amuleweb will be compiled but file download progress bar images will
6663 NOT be generated." >&2;}
6664 _mule_warning_1=yes
6665 _mule_has_warnings=yes
6677 # Check for perl File::Copy
6678 echo "$as_me:$LINENO: checking for File::Copy" >&5
6679 echo $ECHO_N "checking for File::Copy... $ECHO_C" >&6
6680 if perl -e "require File::Copy" 2>/dev/null; then
6681 echo "$as_me:$LINENO: result: ok" >&5
6682 echo "${ECHO_T}ok" >&6
6683 else
6684 { echo "$as_me:$LINENO: WARNING:
6685 File::Copy perl module is required by the mldonkey_importer script.
6686 If you want to use this script please install File::Copy from CPAN." >&5
6687 echo "$as_me: WARNING:
6688 File::Copy perl module is required by the mldonkey_importer script.
6689 If you want to use this script please install File::Copy from CPAN." >&2;}
6690 _mule_warning_2=yes
6691 _mule_has_warnings=yes
6696 # Check if we need to install skins
6697 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then
6698 INSTALL_SKINS=yes
6699 else
6700 INSTALL_SKINS=no
6704 # Check for GeoIP (required for IP2Country capability)
6705 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then
6707 # Check whether --enable-geoip or --disable-geoip was given.
6708 if test "${enable_geoip+set}" = set; then
6709 enableval="$enable_geoip"
6714 if test ${enable_geoip:-no} = yes; then
6717 # Check whether --with-geoip-headers or --without-geoip-headers was given.
6718 if test "${with_geoip_headers+set}" = set; then
6719 withval="$with_geoip_headers"
6720 GEOIP_CPPFLAGS="-I$withval"
6723 # Check whether --with-geoip-lib or --without-geoip-lib was given.
6724 if test "${with_geoip_lib+set}" = set; then
6725 withval="$with_geoip_lib"
6726 GEOIP_LDFLAGS="-L$withval"
6729 mule_backup_CPPFLAGS="$CPPFLAGS"
6730 CPPFLAGS="$CPPFLAGS $GEOIP_CPPFLAGS"
6731 mule_backup_LDFLAGS="$LDFLAGS"
6732 LDFLAGS="$LDFLAGS $GEOIP_LDFLAGS"
6734 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6735 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
6736 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
6737 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6738 echo $ECHO_N "(cached) $ECHO_C" >&6
6740 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
6741 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
6742 else
6743 # Is the header compilable?
6744 echo "$as_me:$LINENO: checking GeoIP.h usability" >&5
6745 echo $ECHO_N "checking GeoIP.h usability... $ECHO_C" >&6
6746 cat >conftest.$ac_ext <<_ACEOF
6747 /* confdefs.h. */
6748 _ACEOF
6749 cat confdefs.h >>conftest.$ac_ext
6750 cat >>conftest.$ac_ext <<_ACEOF
6751 /* end confdefs.h. */
6752 $ac_includes_default
6753 #include <GeoIP.h>
6754 _ACEOF
6755 rm -f conftest.$ac_objext
6756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6757 (eval $ac_compile) 2>conftest.er1
6758 ac_status=$?
6759 grep -v '^ *+' conftest.er1 >conftest.err
6760 rm -f conftest.er1
6761 cat conftest.err >&5
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); } &&
6764 { ac_try='test -z "$ac_c_werror_flag"
6765 || test ! -s conftest.err'
6766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6767 (eval $ac_try) 2>&5
6768 ac_status=$?
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); }; } &&
6771 { ac_try='test -s conftest.$ac_objext'
6772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6773 (eval $ac_try) 2>&5
6774 ac_status=$?
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); }; }; then
6777 ac_header_compiler=yes
6778 else
6779 echo "$as_me: failed program was:" >&5
6780 sed 's/^/| /' conftest.$ac_ext >&5
6782 ac_header_compiler=no
6784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6785 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6786 echo "${ECHO_T}$ac_header_compiler" >&6
6788 # Is the header present?
6789 echo "$as_me:$LINENO: checking GeoIP.h presence" >&5
6790 echo $ECHO_N "checking GeoIP.h presence... $ECHO_C" >&6
6791 cat >conftest.$ac_ext <<_ACEOF
6792 /* confdefs.h. */
6793 _ACEOF
6794 cat confdefs.h >>conftest.$ac_ext
6795 cat >>conftest.$ac_ext <<_ACEOF
6796 /* end confdefs.h. */
6797 #include <GeoIP.h>
6798 _ACEOF
6799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6801 ac_status=$?
6802 grep -v '^ *+' conftest.er1 >conftest.err
6803 rm -f conftest.er1
6804 cat conftest.err >&5
6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); } >/dev/null; then
6807 if test -s conftest.err; then
6808 ac_cpp_err=$ac_c_preproc_warn_flag
6809 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6810 else
6811 ac_cpp_err=
6813 else
6814 ac_cpp_err=yes
6816 if test -z "$ac_cpp_err"; then
6817 ac_header_preproc=yes
6818 else
6819 echo "$as_me: failed program was:" >&5
6820 sed 's/^/| /' conftest.$ac_ext >&5
6822 ac_header_preproc=no
6824 rm -f conftest.err conftest.$ac_ext
6825 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6826 echo "${ECHO_T}$ac_header_preproc" >&6
6828 # So? What about this header?
6829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6830 yes:no: )
6831 { echo "$as_me:$LINENO: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&5
6832 echo "$as_me: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6833 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the compiler's result" >&5
6834 echo "$as_me: WARNING: GeoIP.h: proceeding with the compiler's result" >&2;}
6835 ac_header_preproc=yes
6837 no:yes:* )
6838 { echo "$as_me:$LINENO: WARNING: GeoIP.h: present but cannot be compiled" >&5
6839 echo "$as_me: WARNING: GeoIP.h: present but cannot be compiled" >&2;}
6840 { echo "$as_me:$LINENO: WARNING: GeoIP.h: check for missing prerequisite headers?" >&5
6841 echo "$as_me: WARNING: GeoIP.h: check for missing prerequisite headers?" >&2;}
6842 { echo "$as_me:$LINENO: WARNING: GeoIP.h: see the Autoconf documentation" >&5
6843 echo "$as_me: WARNING: GeoIP.h: see the Autoconf documentation" >&2;}
6844 { echo "$as_me:$LINENO: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&5
6845 echo "$as_me: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&2;}
6846 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&5
6847 echo "$as_me: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&2;}
6848 { echo "$as_me:$LINENO: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&5
6849 echo "$as_me: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&2;}
6851 cat <<\_ASBOX
6852 ## ------------------------------ ##
6853 ## Report this to admin@amule.org ##
6854 ## ------------------------------ ##
6855 _ASBOX
6857 sed "s/^/$as_me: WARNING: /" >&2
6859 esac
6860 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
6861 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
6862 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6863 echo $ECHO_N "(cached) $ECHO_C" >&6
6864 else
6865 ac_cv_header_GeoIP_h=$ac_header_preproc
6867 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
6868 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
6871 if test $ac_cv_header_GeoIP_h = yes; then
6873 if test x$SYS = xwin32; then
6875 echo "$as_me:$LINENO: checking for WinSock library needed by GeoIP" >&5
6876 echo $ECHO_N "checking for WinSock library needed by GeoIP... $ECHO_C" >&6
6877 # Actually, we might not need any if GeoIP is linked as a .dll
6878 # - but that's even harder to check for
6879 cat >conftest.$ac_ext <<_ACEOF
6881 /* confdefs.h. */
6882 _ACEOF
6883 cat confdefs.h >>conftest.$ac_ext
6884 cat >>conftest.$ac_ext <<_ACEOF
6885 /* end confdefs.h. */
6887 #include <GeoIP.h>
6888 #ifdef _WINSOCK2_H
6889 I do know it's not the best approach, but at least works with MinGW stock headers.
6890 (tested with w32api-3.12)
6891 #endif
6894 main ()
6898 return 0;
6901 _ACEOF
6902 rm -f conftest.$ac_objext
6903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6904 (eval $ac_compile) 2>conftest.er1
6905 ac_status=$?
6906 grep -v '^ *+' conftest.er1 >conftest.err
6907 rm -f conftest.er1
6908 cat conftest.err >&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); } &&
6911 { ac_try='test -z "$ac_c_werror_flag"
6912 || test ! -s conftest.err'
6913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6914 (eval $ac_try) 2>&5
6915 ac_status=$?
6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); }; } &&
6918 { ac_try='test -s conftest.$ac_objext'
6919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6920 (eval $ac_try) 2>&5
6921 ac_status=$?
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); }; }; then
6925 GEOIP_WINSOCK_LIB="-lwsock32"
6927 else
6928 echo "$as_me: failed program was:" >&5
6929 sed 's/^/| /' conftest.$ac_ext >&5
6932 GEOIP_WINSOCK_LIB="-lws2_32"
6935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6936 echo "$as_me:$LINENO: result: $GEOIP_WINSOCK_LIB" >&5
6937 echo "${ECHO_T}$GEOIP_WINSOCK_LIB" >&6
6941 echo "$as_me:$LINENO: checking for GeoIP_open in -lGeoIP" >&5
6942 echo $ECHO_N "checking for GeoIP_open in -lGeoIP... $ECHO_C" >&6
6943 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then
6944 echo $ECHO_N "(cached) $ECHO_C" >&6
6945 else
6946 ac_check_lib_save_LIBS=$LIBS
6947 LIBS="-lGeoIP ${GEOIP_WINSOCK_LIB:-} $LIBS"
6948 cat >conftest.$ac_ext <<_ACEOF
6949 /* confdefs.h. */
6950 _ACEOF
6951 cat confdefs.h >>conftest.$ac_ext
6952 cat >>conftest.$ac_ext <<_ACEOF
6953 /* end confdefs.h. */
6955 /* Override any gcc2 internal prototype to avoid an error. */
6956 #ifdef __cplusplus
6957 extern "C"
6958 #endif
6959 /* We use char because int might match the return type of a gcc2
6960 builtin and then its argument prototype would still apply. */
6961 char GeoIP_open ();
6963 main ()
6965 GeoIP_open ();
6967 return 0;
6969 _ACEOF
6970 rm -f conftest.$ac_objext conftest$ac_exeext
6971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6972 (eval $ac_link) 2>conftest.er1
6973 ac_status=$?
6974 grep -v '^ *+' conftest.er1 >conftest.err
6975 rm -f conftest.er1
6976 cat conftest.err >&5
6977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978 (exit $ac_status); } &&
6979 { ac_try='test -z "$ac_c_werror_flag"
6980 || test ! -s conftest.err'
6981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6982 (eval $ac_try) 2>&5
6983 ac_status=$?
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); }; } &&
6986 { ac_try='test -s conftest$ac_exeext'
6987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6988 (eval $ac_try) 2>&5
6989 ac_status=$?
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); }; }; then
6992 ac_cv_lib_GeoIP_GeoIP_open=yes
6993 else
6994 echo "$as_me: failed program was:" >&5
6995 sed 's/^/| /' conftest.$ac_ext >&5
6997 ac_cv_lib_GeoIP_GeoIP_open=no
6999 rm -f conftest.err conftest.$ac_objext \
7000 conftest$ac_exeext conftest.$ac_ext
7001 LIBS=$ac_check_lib_save_LIBS
7003 echo "$as_me:$LINENO: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
7004 echo "${ECHO_T}$ac_cv_lib_GeoIP_GeoIP_open" >&6
7005 if test $ac_cv_lib_GeoIP_GeoIP_open = yes; then
7008 cat >>confdefs.h <<\_ACEOF
7009 #define SUPPORT_GEOIP 1
7010 _ACEOF
7012 GEOIP_LIBS="-lGeoIP"
7013 if test x$SYS = xwin32; then
7014 GEOIP_LIBS="$GEOIP_LIBS $GEOIP_WINSOCK_LIB"
7017 GEOIP_CPPFLAGS="$GEOIP_CPPFLAGS -DENABLE_IP2COUNTRY=1"
7019 # Check whether --with-geoip-static or --without-geoip-static was given.
7020 if test "${with_geoip_static+set}" = set; then
7021 withval="$with_geoip_static"
7023 if test "$withval" != "no" -a ${enable_static:-no} = no; then
7025 mule_backup_LIBS="$LIBS"
7026 LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic $LIBS"
7027 cat >conftest.$ac_ext <<_ACEOF
7029 /* confdefs.h. */
7030 _ACEOF
7031 cat confdefs.h >>conftest.$ac_ext
7032 cat >>conftest.$ac_ext <<_ACEOF
7033 /* end confdefs.h. */
7035 #include <GeoIP.h>
7038 main ()
7041 GeoIP *g = GeoIP_new(GEOIP_STANDARD);
7044 return 0;
7047 _ACEOF
7048 rm -f conftest.$ac_objext conftest$ac_exeext
7049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7050 (eval $ac_link) 2>conftest.er1
7051 ac_status=$?
7052 grep -v '^ *+' conftest.er1 >conftest.err
7053 rm -f conftest.er1
7054 cat conftest.err >&5
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); } &&
7057 { ac_try='test -z "$ac_c_werror_flag"
7058 || test ! -s conftest.err'
7059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7060 (eval $ac_try) 2>&5
7061 ac_status=$?
7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063 (exit $ac_status); }; } &&
7064 { ac_try='test -s conftest$ac_exeext'
7065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7066 (eval $ac_try) 2>&5
7067 ac_status=$?
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); }; }; then
7071 GEOIP_LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic"
7073 else
7074 echo "$as_me: failed program was:" >&5
7075 sed 's/^/| /' conftest.$ac_ext >&5
7078 { echo "$as_me:$LINENO: WARNING:
7079 Cannot link GeoIP statically, because your linker ($LD) does not
7080 support it." >&5
7081 echo "$as_me: WARNING:
7082 Cannot link GeoIP statically, because your linker ($LD) does not
7083 support it." >&2;}
7084 _mule_warning_3=yes
7085 _mule_has_warnings=yes
7089 rm -f conftest.err conftest.$ac_objext \
7090 conftest$ac_exeext conftest.$ac_ext
7091 LIBS="$mule_backup_LIBS"
7098 else
7100 enable_geoip=disabled
7101 { echo "$as_me:$LINENO: WARNING:
7102 GeoIP support has been disabled because the GeoIP libraries were not
7103 found" >&5
7104 echo "$as_me: WARNING:
7105 GeoIP support has been disabled because the GeoIP libraries were not
7106 found" >&2;}
7107 _mule_warning_4=yes
7108 _mule_has_warnings=yes
7114 else
7116 enable_geoip=disabled
7117 { echo "$as_me:$LINENO: WARNING:
7118 GeoIP support has been disabled because the GeoIP header files were
7119 not found" >&5
7120 echo "$as_me: WARNING:
7121 GeoIP support has been disabled because the GeoIP header files were
7122 not found" >&2;}
7123 _mule_warning_5=yes
7124 _mule_has_warnings=yes
7131 CPPFLAGS="$mule_backup_CPPFLAGS"
7132 LDFLAGS="$mule_backup_LDFLAGS"
7140 # Check for wx
7141 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_alc:-no} = yes -o ${enable_alcc:-no} = yes -o ${enable_wxcas:-no} = yes -o ${enable_fileview:-no} = yes ; then
7144 # Check whether --with-wxdir or --without-wxdir was given.
7145 if test "${with_wxdir+set}" = set; then
7146 withval="$with_wxdir"
7147 wx_config_name="$withval/wx-config"
7148 wx_config_args="--inplace"
7151 # Check whether --with-wx-config or --without-wx-config was given.
7152 if test "${with_wx_config+set}" = set; then
7153 withval="$with_wx_config"
7154 wx_config_name="$withval"
7157 # Check whether --with-wx-prefix or --without-wx-prefix was given.
7158 if test "${with_wx_prefix+set}" = set; then
7159 withval="$with_wx_prefix"
7160 wx_config_prefix="$withval"
7161 else
7162 wx_config_prefix=""
7165 # Check whether --with-wx-exec-prefix or --without-wx-exec-prefix was given.
7166 if test "${with_wx_exec_prefix+set}" = set; then
7167 withval="$with_wx_exec_prefix"
7168 wx_config_exec_prefix="$withval"
7169 else
7170 wx_config_exec_prefix=""
7184 # Check whether --with-toolkit or --without-toolkit was given.
7185 if test "${with_toolkit+set}" = set; then
7186 withval="$with_toolkit"
7188 else
7189 withval="auto"
7192 echo "$as_me:$LINENO: checking for the --with-toolkit option" >&5
7193 echo $ECHO_N "checking for the --with-toolkit option... $ECHO_C" >&6
7194 if test "$withval" = "auto" ; then
7195 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7196 echo "${ECHO_T}will be automatically detected" >&6
7197 TOOLKIT="auto"
7198 else
7199 TOOLKIT="$withval"
7201 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a \
7202 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
7203 "$TOOLKIT" != "x11" -a "$TOOLKIT" != "mac" -a \
7204 "$TOOLKIT" != "mgl" -a "$TOOLKIT" != "dfb" -a \
7205 "$TOOLKIT" != "base" -a "$TOOLKIT" != "cocoa" -a \
7206 "$TOOLKIT" != "osx_cocoa"; then
7207 { { echo "$as_me:$LINENO: error:
7208 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa, osx_cocoa)
7209 " >&5
7210 echo "$as_me: error:
7211 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa, osx_cocoa)
7212 " >&2;}
7213 { (exit 1); exit 1; }; }
7216 echo "$as_me:$LINENO: result: $TOOLKIT" >&5
7217 echo "${ECHO_T}$TOOLKIT" >&6
7224 # Check whether --with-wxshared or --without-wxshared was given.
7225 if test "${with_wxshared+set}" = set; then
7226 withval="$with_wxshared"
7228 else
7229 withval="auto"
7232 echo "$as_me:$LINENO: checking for the --with-wxshared option" >&5
7233 echo $ECHO_N "checking for the --with-wxshared option... $ECHO_C" >&6
7234 if test "$withval" = "yes" ; then
7235 echo "$as_me:$LINENO: result: yes" >&5
7236 echo "${ECHO_T}yes" >&6
7237 WX_SHARED=1
7239 elif test "1" = "1" -a "$withval" = "no" ; then
7240 echo "$as_me:$LINENO: result: no" >&5
7241 echo "${ECHO_T}no" >&6
7242 WX_SHARED=0
7243 elif test "$withval" = "auto" ; then
7244 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7245 echo "${ECHO_T}will be automatically detected" >&6
7246 WX_SHARED="auto"
7247 else
7248 { { echo "$as_me:$LINENO: error:
7249 Unrecognized option value (allowed values: yes, auto)
7250 " >&5
7251 echo "$as_me: error:
7252 Unrecognized option value (allowed values: yes, auto)
7253 " >&2;}
7254 { (exit 1); exit 1; }; }
7261 # Check whether --with-wxdebug or --without-wxdebug was given.
7262 if test "${with_wxdebug+set}" = set; then
7263 withval="$with_wxdebug"
7265 else
7266 withval="auto"
7269 echo "$as_me:$LINENO: checking for the --with-wxdebug option" >&5
7270 echo $ECHO_N "checking for the --with-wxdebug option... $ECHO_C" >&6
7271 if test "$withval" = "yes" ; then
7272 echo "$as_me:$LINENO: result: yes" >&5
7273 echo "${ECHO_T}yes" >&6
7274 WX_DEBUG=1
7276 elif test "1" = "1" -a "$withval" = "no" ; then
7277 echo "$as_me:$LINENO: result: no" >&5
7278 echo "${ECHO_T}no" >&6
7279 WX_DEBUG=0
7280 elif test "$withval" = "auto" ; then
7281 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7282 echo "${ECHO_T}will be automatically detected" >&6
7283 WX_DEBUG="auto"
7284 else
7285 { { echo "$as_me:$LINENO: error:
7286 Unrecognized option value (allowed values: yes, auto)
7287 " >&5
7288 echo "$as_me: error:
7289 Unrecognized option value (allowed values: yes, auto)
7290 " >&2;}
7291 { (exit 1); exit 1; }; }
7298 # Check whether --with-wxversion or --without-wxversion was given.
7299 if test "${with_wxversion+set}" = set; then
7300 withval="$with_wxversion"
7302 else
7303 withval="auto"
7306 echo "$as_me:$LINENO: checking for the --with-wxversion option" >&5
7307 echo $ECHO_N "checking for the --with-wxversion option... $ECHO_C" >&6
7308 if test "$withval" = "auto" ; then
7309 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7310 echo "${ECHO_T}will be automatically detected" >&6
7311 WX_VERSION="auto"
7312 else
7314 wx_requested_major_version=`echo $withval | \
7315 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
7316 wx_requested_minor_version=`echo $withval | \
7317 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
7319 if test "${#wx_requested_major_version}" != "1" -o \
7320 "${#wx_requested_minor_version}" != "1" ; then
7321 { { echo "$as_me:$LINENO: error:
7322 Unrecognized option value (allowed values: auto, 2.8, 2.9)
7323 " >&5
7324 echo "$as_me: error:
7325 Unrecognized option value (allowed values: auto, 2.8, 2.9)
7326 " >&2;}
7327 { (exit 1); exit 1; }; }
7330 WX_VERSION="$wx_requested_major_version"".""$wx_requested_minor_version"
7331 echo "$as_me:$LINENO: result: $WX_VERSION" >&5
7332 echo "${ECHO_T}$WX_VERSION" >&6
7336 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7337 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
7338 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
7339 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
7340 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
7341 echo "[dbg] VERSION: $VERSION, WX_VERSION: $WX_VERSION"
7344 # Force using a static wxWidgets library if the executable is to be linked statically.
7345 if test ${enable_static:-no} = yes; then
7346 WX_SHARED=0
7349 # Force using a unicode build of the library
7350 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_fileview:-no} = yes ; then
7351 WX_UNICODE=1
7354 DEBUG=$WX_DEBUG
7356 if test "$WX_SHARED" = "1" ; then
7357 WXCONFIG_FLAGS="--static=no "
7358 elif test "$WX_SHARED" = "0" ; then
7359 WXCONFIG_FLAGS="--static=yes "
7362 if test "$WX_DEBUG" = "1" ; then
7363 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=yes "
7364 elif test "$WX_DEBUG" = "0" ; then
7365 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=no "
7368 if test "$WX_UNICODE" = "1" ; then
7369 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=yes "
7370 elif test "$WX_UNICODE" = "0" ; then
7371 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=no "
7374 if test "$TOOLKIT" != "auto" ; then
7375 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
7378 if test "$WX_VERSION" != "auto" ; then
7379 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--version=$WX_VERSION "
7382 WXCONFIG_FLAGS=${WXCONFIG_FLAGS% }
7384 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7385 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
7389 if test x${WX_CONFIG_NAME+set} != xset ; then
7390 WX_CONFIG_NAME=wx-config
7393 if test "x$wx_config_name" != x ; then
7394 WX_CONFIG_NAME="$wx_config_name"
7397 if test x$wx_config_exec_prefix != x ; then
7398 wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
7399 WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
7401 if test x$wx_config_prefix != x ; then
7402 wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
7403 WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
7405 if test "$cross_compiling" = "yes"; then
7406 wx_config_args="$wx_config_args --host=$host_alias"
7409 if test -x "$WX_CONFIG_NAME" ; then
7410 echo "$as_me:$LINENO: checking for wx-config" >&5
7411 echo $ECHO_N "checking for wx-config... $ECHO_C" >&6
7412 WX_CONFIG_PATH="$WX_CONFIG_NAME"
7413 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7414 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7415 else
7416 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
7417 set dummy $WX_CONFIG_NAME; ac_word=$2
7418 echo "$as_me:$LINENO: checking for $ac_word" >&5
7419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7420 if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7422 else
7423 case $WX_CONFIG_PATH in
7424 [\\/]* | ?:[\\/]*)
7425 ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path.
7428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7429 as_dummy=""$WX_LOOKUP_PATH:$PATH""
7430 for as_dir in $as_dummy
7432 IFS=$as_save_IFS
7433 test -z "$as_dir" && as_dir=.
7434 for ac_exec_ext in '' $ac_executable_extensions; do
7435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7436 ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7438 break 2
7440 done
7441 done
7443 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no"
7445 esac
7447 WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH
7449 if test -n "$WX_CONFIG_PATH"; then
7450 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7451 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7452 else
7453 echo "$as_me:$LINENO: result: no" >&5
7454 echo "${ECHO_T}no" >&6
7459 if test "$WX_CONFIG_PATH" != "no" ; then
7460 WX_VERSION_FULL=""
7462 min_wx_version=2.8.8
7463 if test -z "$WXCONFIG_FLAGS" ; then
7464 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version" >&5
7465 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version... $ECHO_C" >&6
7466 else
7467 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
7468 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... $ECHO_C" >&6
7471 WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS "
7473 WX_VERSION_FULL=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
7474 wx_config_major_version=`echo $WX_VERSION_FULL | \
7475 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7476 wx_config_minor_version=`echo $WX_VERSION_FULL | \
7477 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7478 wx_config_micro_version=`echo $WX_VERSION_FULL | \
7479 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7481 wx_requested_major_version=`echo $min_wx_version | \
7482 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7483 wx_requested_minor_version=`echo $min_wx_version | \
7484 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7485 wx_requested_micro_version=`echo $min_wx_version | \
7486 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7489 wx_ver_ok=""
7490 if test "x$WX_VERSION_FULL" != x ; then
7491 if test $wx_config_major_version -gt $wx_requested_major_version; then
7492 wx_ver_ok=yes
7493 else
7494 if test $wx_config_major_version -eq $wx_requested_major_version; then
7495 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
7496 wx_ver_ok=yes
7497 else
7498 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
7499 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
7500 wx_ver_ok=yes
7509 if test -n "$wx_ver_ok"; then
7511 echo "$as_me:$LINENO: result: yes (version $WX_VERSION_FULL)" >&5
7512 echo "${ECHO_T}yes (version $WX_VERSION_FULL)" >&6
7513 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs`
7515 WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
7517 WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags`
7518 WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags`
7519 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
7521 WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
7522 WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
7524 wxWin=1
7526 else
7528 if test "x$WX_VERSION_FULL" = x; then
7529 echo "$as_me:$LINENO: result: no" >&5
7530 echo "${ECHO_T}no" >&6
7531 else
7532 echo "$as_me:$LINENO: result: no (version $WX_VERSION_FULL is not new enough)" >&5
7533 echo "${ECHO_T}no (version $WX_VERSION_FULL is not new enough)" >&6
7536 WX_CFLAGS=""
7537 WX_CPPFLAGS=""
7538 WX_CXXFLAGS=""
7539 WX_LIBS=""
7540 WX_RESCOMP=""
7542 if test ! -z "$WXCONFIG_FLAGS"; then
7544 wx_error_message="
7545 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
7546 build with the following settings:
7547 $WXCONFIG_FLAGS
7548 but such build is not available.
7550 To see the wxWidgets builds available on this system, please use
7551 'wx-config --list' command. To use the default build, returned by
7552 'wx-config --selected-config', use the options with their 'auto'
7553 default values."
7557 wx_error_message="
7558 The requested wxWidgets build couldn't be found.
7559 $wx_error_message
7561 If you still get this error, then check that 'wx-config' is
7562 in path, the directory where wxWidgets libraries are installed
7563 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
7564 or equivalent variable and wxWidgets version is 2.8.8 or above."
7566 { { echo "$as_me:$LINENO: error: $wx_error_message" >&5
7567 echo "$as_me: error: $wx_error_message" >&2;}
7568 { (exit 1); exit 1; }; }
7571 else
7573 WX_CFLAGS=""
7574 WX_CPPFLAGS=""
7575 WX_CXXFLAGS=""
7576 WX_LIBS=""
7577 WX_RESCOMP=""
7592 WX_VERSION_MAJOR="$wx_config_major_version"
7593 WX_VERSION_MINOR="$wx_config_minor_version"
7597 if test "$wxWin" != 1; then
7598 { { echo "$as_me:$LINENO: error:
7599 wxWidgets must be installed on your system but wx-config
7600 script couldn't be found. Please check that wx-config is
7601 in path or specified by --with-wx-config=path flag, the
7602 directory where wxWidgets libraries are installed (returned
7603 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7604 equivalent variable and wxWidgets version is 2.8.8 or above.
7605 " >&5
7606 echo "$as_me: error:
7607 wxWidgets must be installed on your system but wx-config
7608 script couldn't be found. Please check that wx-config is
7609 in path or specified by --with-wx-config=path flag, the
7610 directory where wxWidgets libraries are installed (returned
7611 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7612 equivalent variable and wxWidgets version is 2.8.8 or above.
7613 " >&2;}
7614 { (exit 1); exit 1; }; }
7618 if test "${WX_VERSION_FULL}" = "2.9.0"; then
7619 { { echo "$as_me:$LINENO: error:
7620 This version of wxWidgets is known to not work with aMule.
7621 Please upgrade to a newer version.
7622 " >&5
7623 echo "$as_me: error:
7624 This version of wxWidgets is known to not work with aMule.
7625 Please upgrade to a newer version.
7626 " >&2;}
7627 { (exit 1); exit 1; }; }
7632 WX_VERSION="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
7634 WX_SELECTEDCONFIG=$($WX_CONFIG_WITH_ARGS --selected_config)
7636 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7637 echo "[dbg] Using wx-config --selected-config"
7638 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
7642 if test $WX_SHARED = "1"; then
7643 STATIC=0
7644 elif test $WX_SHARED = "0"; then
7645 STATIC=1
7646 elif test $WX_SHARED = "auto"; then
7647 STATIC="auto"
7651 if test "$UNICODE" = "auto" ; then
7653 echo "$as_me:$LINENO: checking if wxWidgets was built with UNICODE enabled" >&5
7654 echo $ECHO_N "checking if wxWidgets was built with UNICODE enabled... $ECHO_C" >&6
7656 WX_UNICODE=$(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
7658 if test "$WX_UNICODE" != "0"; then
7659 WX_UNICODE=1
7660 echo "$as_me:$LINENO: result: yes" >&5
7661 echo "${ECHO_T}yes" >&6
7663 else
7664 WX_UNICODE=0
7665 echo "$as_me:$LINENO: result: no" >&5
7666 echo "${ECHO_T}no" >&6
7669 else
7671 WX_UNICODE=$UNICODE
7675 if test "$DEBUG" = "auto" ; then
7677 echo "$as_me:$LINENO: checking if wxWidgets was built in DEBUG mode" >&5
7678 echo $ECHO_N "checking if wxWidgets was built in DEBUG mode... $ECHO_C" >&6
7680 WX_DEBUG=$(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
7682 if test "$WX_DEBUG" != "0"; then
7683 WX_DEBUG=1
7684 echo "$as_me:$LINENO: result: yes" >&5
7685 echo "${ECHO_T}yes" >&6
7687 else
7688 WX_DEBUG=0
7689 echo "$as_me:$LINENO: result: no" >&5
7690 echo "${ECHO_T}no" >&6
7693 else
7695 WX_DEBUG=$DEBUG
7699 if test "$STATIC" = "auto" ; then
7701 echo "$as_me:$LINENO: checking if wxWidgets was built in STATIC mode" >&5
7702 echo $ECHO_N "checking if wxWidgets was built in STATIC mode... $ECHO_C" >&6
7704 WX_STATIC=$(expr "$WX_SELECTEDCONFIG" : ".*static.*")
7706 if test "$WX_STATIC" != "0"; then
7707 WX_STATIC=1
7708 echo "$as_me:$LINENO: result: yes" >&5
7709 echo "${ECHO_T}yes" >&6
7711 else
7712 WX_STATIC=0
7713 echo "$as_me:$LINENO: result: no" >&5
7714 echo "${ECHO_T}no" >&6
7717 else
7719 WX_STATIC=$STATIC
7723 if test "$WX_STATIC" != "0"; then
7724 WX_SHARED=0
7725 else
7726 WX_SHARED=1
7733 if test "$TOOLKIT" = "auto" ; then
7735 echo "$as_me:$LINENO: checking which wxWidgets toolkit was selected" >&5
7736 echo $ECHO_N "checking which wxWidgets toolkit was selected... $ECHO_C" >&6
7738 WX_GTKPORT1=$(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
7739 WX_GTKPORT2=$(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
7740 WX_MSWPORT=$(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
7741 WX_MOTIFPORT=$(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
7742 WX_MACPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
7743 WX_X11PORT=$(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
7744 WX_MGLPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mgl.*")
7745 WX_DFBPORT=$(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
7746 WX_BASEPORT=$(expr "$WX_SELECTEDCONFIG" : ".*base.*")
7747 WX_COCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*cocoa.*")
7748 WX_OSXCOCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*osx_cocoa.*")
7750 WX_PORT="unknown"
7751 if test "$WX_GTKPORT1" != "0"; then WX_PORT="gtk1"; fi
7752 if test "$WX_GTKPORT2" != "0"; then WX_PORT="gtk2"; fi
7753 if test "$WX_MSWPORT" != "0"; then WX_PORT="msw"; fi
7754 if test "$WX_MOTIFPORT" != "0"; then WX_PORT="motif"; fi
7755 if test "$WX_MACPORT" != "0"; then WX_PORT="mac"; fi
7756 if test "$WX_X11PORT" != "0"; then WX_PORT="x11"; fi
7757 if test "$WX_MGLPORT" != "0"; then WX_PORT="mgl"; fi
7758 if test "$WX_DFBPORT" != "0"; then WX_PORT="dfb"; fi
7759 if test "$WX_BASEPORT" != "0"; then WX_PORT="base"; fi
7760 if test "$WX_COCOAPORT" != "0"; then WX_PORT="cocoa"; fi
7761 if test "$WX_OSXCOCOAPORT" != "0"; then WX_PORT="osx_cocoa"; fi
7764 if test "$WX_PORT" = "unknown" ; then
7765 { { echo "$as_me:$LINENO: error:
7766 Cannot detect the currently installed wxWidgets port !
7767 Please check your 'wx-config --cxxflags'...
7768 " >&5
7769 echo "$as_me: error:
7770 Cannot detect the currently installed wxWidgets port !
7771 Please check your 'wx-config --cxxflags'...
7772 " >&2;}
7773 { (exit 1); exit 1; }; }
7776 echo "$as_me:$LINENO: result: $WX_PORT" >&5
7777 echo "${ECHO_T}$WX_PORT" >&6
7778 else
7780 if test -n "$TOOLKIT" ; then
7781 WX_PORT=$TOOLKIT
7782 else
7783 WX_PORT=$PORT
7789 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7790 echo "[dbg] Values of all WX_* options after final detection:"
7791 echo "[dbg] WX_DEBUG: $WX_DEBUG"
7792 echo "[dbg] WX_UNICODE: $WX_UNICODE"
7793 echo "[dbg] WX_SHARED: $WX_SHARED"
7794 echo "[dbg] WX_VERSION: $WX_VERSION"
7795 echo "[dbg] WX_PORT: $WX_PORT"
7798 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
7799 { { echo "$as_me:$LINENO: error:
7800 Cannot build shared library against a static build of wxWidgets !
7801 This error happens because the wxWidgets build which was selected
7802 has been detected as static while you asked to build $PACKAGE_NAME
7803 as shared library and this is not possible.
7804 Use the '--disable-shared' option to build $PACKAGE_NAME
7805 as static library or '--with-wxshared' to use wxWidgets as shared library.
7806 " >&5
7807 echo "$as_me: error:
7808 Cannot build shared library against a static build of wxWidgets !
7809 This error happens because the wxWidgets build which was selected
7810 has been detected as static while you asked to build $PACKAGE_NAME
7811 as shared library and this is not possible.
7812 Use the '--disable-shared' option to build $PACKAGE_NAME
7813 as static library or '--with-wxshared' to use wxWidgets as shared library.
7814 " >&2;}
7815 { (exit 1); exit 1; }; }
7818 if test "$DEBUG" = "auto"; then
7819 DEBUG=$WX_DEBUG
7821 if test "$DEBUG" = "1"; then
7822 BUILD="debug"
7823 elif test "$DEBUG" = ""; then
7824 BUILD="release"
7827 if test "$UNICODE" = "auto"; then
7828 UNICODE=$WX_UNICODE
7830 if test "$SHARED" = "auto"; then
7831 SHARED=$WX_SHARED
7833 if test "$TOOLKIT" = "auto"; then
7834 TOOLKIT=$WX_PORT
7838 # We also need wxBase
7839 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs adv,core,net`
7840 WXBASE_LIBS=`$WX_CONFIG_WITH_ARGS --libs net`
7841 WXBASE_CPPFLAGS="$WX_CPPFLAGS -DwxUSE_GUI=0"
7843 MULERCFLAGS=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
7848 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_wxcas:-no} = yes -o ${enable_alc:-no} = yes ; then
7849 if test "${WX_PORT}" = base; then
7850 { { echo "$as_me:$LINENO: error:
7851 The selected components need a wxWidgets library with GUI,
7852 but your installation is base-only. Please install a GUI
7853 enabled version of wxWidgets and then retry.
7854 " >&5
7855 echo "$as_me: error:
7856 The selected components need a wxWidgets library with GUI,
7857 but your installation is base-only. Please install a GUI
7858 enabled version of wxWidgets and then retry.
7859 " >&2;}
7860 { (exit 1); exit 1; }; }
7867 if test ${SYS:-unknown} = win32; then
7868 if test -n "$ac_tool_prefix"; then
7869 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7870 set dummy ${ac_tool_prefix}windres; ac_word=$2
7871 echo "$as_me:$LINENO: checking for $ac_word" >&5
7872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7873 if test "${ac_cv_prog_RC+set}" = set; then
7874 echo $ECHO_N "(cached) $ECHO_C" >&6
7875 else
7876 if test -n "$RC"; then
7877 ac_cv_prog_RC="$RC" # Let the user override the test.
7878 else
7879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7880 for as_dir in $PATH
7882 IFS=$as_save_IFS
7883 test -z "$as_dir" && as_dir=.
7884 for ac_exec_ext in '' $ac_executable_extensions; do
7885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7886 ac_cv_prog_RC="${ac_tool_prefix}windres"
7887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7888 break 2
7890 done
7891 done
7895 RC=$ac_cv_prog_RC
7896 if test -n "$RC"; then
7897 echo "$as_me:$LINENO: result: $RC" >&5
7898 echo "${ECHO_T}$RC" >&6
7899 else
7900 echo "$as_me:$LINENO: result: no" >&5
7901 echo "${ECHO_T}no" >&6
7905 if test -z "$ac_cv_prog_RC"; then
7906 ac_ct_RC=$RC
7907 # Extract the first word of "windres", so it can be a program name with args.
7908 set dummy windres; ac_word=$2
7909 echo "$as_me:$LINENO: checking for $ac_word" >&5
7910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7911 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then
7912 echo $ECHO_N "(cached) $ECHO_C" >&6
7913 else
7914 if test -n "$ac_ct_RC"; then
7915 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
7916 else
7917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7918 for as_dir in $PATH
7920 IFS=$as_save_IFS
7921 test -z "$as_dir" && as_dir=.
7922 for ac_exec_ext in '' $ac_executable_extensions; do
7923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7924 ac_cv_prog_ac_ct_RC="windres"
7925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7926 break 2
7928 done
7929 done
7931 test -z "$ac_cv_prog_ac_ct_RC" && ac_cv_prog_ac_ct_RC=":"
7934 ac_ct_RC=$ac_cv_prog_ac_ct_RC
7935 if test -n "$ac_ct_RC"; then
7936 echo "$as_me:$LINENO: result: $ac_ct_RC" >&5
7937 echo "${ECHO_T}$ac_ct_RC" >&6
7938 else
7939 echo "$as_me:$LINENO: result: no" >&5
7940 echo "${ECHO_T}no" >&6
7943 RC=$ac_ct_RC
7944 else
7945 RC="$ac_cv_prog_RC"
7952 # Check for libupnp
7953 # Check whether --enable-upnp or --disable-upnp was given.
7954 if test "${enable_upnp+set}" = set; then
7955 enableval="$enable_upnp"
7959 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then
7961 else
7962 enable_upnp=no
7965 if test ${enable_upnp:-yes} = yes; then
7969 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7970 if test -n "$ac_tool_prefix"; then
7971 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7972 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7973 echo "$as_me:$LINENO: checking for $ac_word" >&5
7974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7975 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7976 echo $ECHO_N "(cached) $ECHO_C" >&6
7977 else
7978 case $PKG_CONFIG in
7979 [\\/]* | ?:[\\/]*)
7980 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984 for as_dir in $PATH
7986 IFS=$as_save_IFS
7987 test -z "$as_dir" && as_dir=.
7988 for ac_exec_ext in '' $ac_executable_extensions; do
7989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7990 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7992 break 2
7994 done
7995 done
7998 esac
8000 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8002 if test -n "$PKG_CONFIG"; then
8003 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8004 echo "${ECHO_T}$PKG_CONFIG" >&6
8005 else
8006 echo "$as_me:$LINENO: result: no" >&5
8007 echo "${ECHO_T}no" >&6
8011 if test -z "$ac_cv_path_PKG_CONFIG"; then
8012 ac_pt_PKG_CONFIG=$PKG_CONFIG
8013 # Extract the first word of "pkg-config", so it can be a program name with args.
8014 set dummy pkg-config; ac_word=$2
8015 echo "$as_me:$LINENO: checking for $ac_word" >&5
8016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8017 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
8018 echo $ECHO_N "(cached) $ECHO_C" >&6
8019 else
8020 case $ac_pt_PKG_CONFIG in
8021 [\\/]* | ?:[\\/]*)
8022 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8026 for as_dir in $PATH
8028 IFS=$as_save_IFS
8029 test -z "$as_dir" && as_dir=.
8030 for ac_exec_ext in '' $ac_executable_extensions; do
8031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8032 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8034 break 2
8036 done
8037 done
8040 esac
8042 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8044 if test -n "$ac_pt_PKG_CONFIG"; then
8045 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
8046 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
8047 else
8048 echo "$as_me:$LINENO: result: no" >&5
8049 echo "${ECHO_T}no" >&6
8052 PKG_CONFIG=$ac_pt_PKG_CONFIG
8053 else
8054 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8058 if test -n "$PKG_CONFIG"; then
8059 _pkg_min_version=0.9.0
8060 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
8061 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
8062 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8063 echo "$as_me:$LINENO: result: yes" >&5
8064 echo "${ECHO_T}yes" >&6
8065 else
8066 echo "$as_me:$LINENO: result: no" >&5
8067 echo "${ECHO_T}no" >&6
8068 PKG_CONFIG=""
8074 # Check whether --with-libupnp-prefix or --without-libupnp-prefix was given.
8075 if test "${with_libupnp_prefix+set}" = set; then
8076 withval="$with_libupnp_prefix"
8077 export PKG_CONFIG_PATH=$withval/lib/pkgconfig
8080 if test $cross_compiling = no; then
8082 echo "$as_me:$LINENO: checking for libupnp version >= 1.6.6" >&5
8083 echo $ECHO_N "checking for libupnp version >= 1.6.6... $ECHO_C" >&6
8084 if test -n "$PKG_CONFIG"; then
8086 if $PKG_CONFIG libupnp --exists; then
8088 LIBUPNP_VERSION=`$PKG_CONFIG libupnp --modversion`
8089 if $PKG_CONFIG libupnp --atleast-version=1.6.6; then
8091 result=yes
8092 resultstr=" (version $LIBUPNP_VERSION)"
8093 LIBUPNP_CPPFLAGS=`$PKG_CONFIG libupnp --cflags-only-I`
8094 LIBUPNP_CFLAGS=`$PKG_CONFIG libupnp --cflags-only-other`
8095 LIBUPNP_LDFLAGS=`$PKG_CONFIG libupnp --libs-only-L`
8096 LIBUPNP_LIBS=`$PKG_CONFIG libupnp --libs-only-other`
8097 LIBUPNP_LIBS="$LIBUPNP_LIBS `$PKG_CONFIG libupnp --libs-only-l`"
8099 else
8101 result=no
8102 resultstr=" (version $LIBUPNP_VERSION is not new enough)"
8107 else
8109 result=no
8110 resultstr=" (try to use --with-libupnp-prefix=PREFIX)"
8115 else
8117 result=no
8118 resultstr=" (pkg-config not found)"
8122 echo "$as_me:$LINENO: result: $result$resultstr" >&5
8123 echo "${ECHO_T}$result$resultstr" >&6
8124 libupnp_error="libupnp >= 1.6.6 not found$resultstr"
8126 else
8128 result=no
8129 libupnp_error="cross compiling"
8134 if test ${result:-no} = yes; then
8135 LIBUPNP_CPPFLAGS="$LIBUPNP_CPPFLAGS -DENABLE_UPNP=1"
8136 else
8137 enable_upnp=disabled
8138 { echo "$as_me:$LINENO: WARNING:
8139 UPnP code has been disabled because ${libupnp_error}." >&5
8140 echo "$as_me: WARNING:
8141 UPnP code has been disabled because ${libupnp_error}." >&2;}
8142 _mule_warning_6=yes
8143 _mule_has_warnings=yes
8154 # Check for Crypto++
8155 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then
8158 # Check whether --with-crypto-prefix or --without-crypto-prefix was given.
8159 if test "${with_crypto_prefix+set}" = set; then
8160 withval="$with_crypto_prefix"
8164 echo "$as_me:$LINENO: checking for crypto++ version >= 5.1" >&5
8165 echo $ECHO_N "checking for crypto++ version >= 5.1... $ECHO_C" >&6
8167 cryptopp_file_with_version="cryptlib.h"
8169 CRYPTOPP_STYLE="unknown"
8170 CRYPTOPP_LIB_NAME="unknown"
8171 cryptopp_includedir="unknown"
8172 CRYPTOPP_INCLUDE_PREFIX="unknown"
8173 cryptopp_libdir="unknown"
8175 if test -n "$with_crypto_prefix"; then
8177 CRYPTOPP_PREFIX="$with_crypto_prefix"
8178 # Find the Cryptopp header in the user-provided location
8179 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8181 CRYPTOPP_STYLE="sources"
8182 CRYPTOPP_LIB_NAME="cryptopp"
8183 cryptopp_includedir=
8184 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
8185 cryptopp_libdir=
8187 elif test -f $CRYPTOPP_PREFIX/include/cryptopp/$cryptopp_file_with_version; then
8189 CRYPTOPP_STYLE="installed"
8190 CRYPTOPP_LIB_NAME="cryptopp"
8191 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8192 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8193 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8195 elif test -f $CRYPTOPP_PREFIX/include/crypto++/$cryptopp_file_with_version; then
8197 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8198 CRYPTOPP_STYLE="gentoo_debian"
8199 CRYPTOPP_LIB_NAME="crypto++"
8200 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8201 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8202 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8207 else
8209 for CRYPTOPP_PREFIX in /usr /usr/local /opt /opt/local /usr/pkg /mingw ; do
8210 # Find the Cryptopp header in system locations
8211 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8213 CRYPTOPP_STYLE="sources"
8214 CRYPTOPP_LIB_NAME="cryptopp"
8215 cryptopp_includedir=
8216 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
8217 cryptopp_libdir=
8218 break
8220 elif test -f $CRYPTOPP_PREFIX/include/cryptopp/$cryptopp_file_with_version; then
8222 CRYPTOPP_STYLE="installed"
8223 CRYPTOPP_LIB_NAME="cryptopp"
8224 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8225 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8226 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8227 break
8229 elif test -f $CRYPTOPP_PREFIX/include/crypto++/$cryptopp_file_with_version; then
8231 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8232 CRYPTOPP_STYLE="gentoo_debian"
8233 CRYPTOPP_LIB_NAME="crypto++"
8234 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8235 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8236 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8237 break
8241 done
8246 if test $CRYPTOPP_STYLE = "unknown"; then
8247 result=no; resultstr=""
8248 else
8250 # Find out the crypto++ version and check against the minimum required
8251 cryptopp_header_path="${cryptopp_includedir+$cryptopp_includedir/}$CRYPTOPP_INCLUDE_PREFIX/$cryptopp_file_with_version"
8252 CRYPTOPP_VERSION_STRING=`$EGREP "Reference Manual|API Reference" $cryptopp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
8253 CRYPTOPP_VERSION_NUMBER=`echo $CRYPTOPP_VERSION_STRING | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8254 minvers=`echo 5.1 | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8256 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then
8258 result=yes
8259 resultstr=" (version $CRYPTOPP_VERSION_STRING, $CRYPTOPP_STYLE)"
8260 if test -n "$cryptopp_includedir"; then
8261 CRYPTOPP_CPPFLAGS="-I$cryptopp_includedir"
8262 else
8263 CRYPTOPP_CPPFLAGS=
8266 if test -n "$cryptopp_libdir"; then
8268 CRYPTOPP_LDFLAGS="-L$cryptopp_libdir"
8269 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME"
8271 else
8273 CRYPTOPP_LDFLAGS=
8274 CRYPTOPP_LIBS="${CRYPTOPP_INCLUDE_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a"
8280 cat >>confdefs.h <<_ACEOF
8281 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX
8282 _ACEOF
8285 else
8287 result=no
8288 resultstr=" (version $CRYPTOPP_VERSION_STRING is not new enough)"
8296 echo "$as_me:$LINENO: result: $result$resultstr" >&5
8297 echo "${ECHO_T}$result$resultstr" >&6
8299 if test ${result:-no} = yes; then
8301 # Check for CryptoPP >= 5.5
8302 if test $CRYPTOPP_VERSION_NUMBER -ge "5005000"; then
8303 CRYPTOPP_CPPFLAGS="$CRYPTOPP_CPPFLAGS -D__WEAK_CRYPTO__"
8307 else
8309 { { echo "$as_me:$LINENO: error:
8310 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8311 Please try again with --with-crypto-prefix=/my_crypto_prefix
8312 (replace /my_crypto_prefix with a valid path to your crypto++
8313 installation directory)." >&5
8314 echo "$as_me: error:
8315 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8316 Please try again with --with-crypto-prefix=/my_crypto_prefix
8317 (replace /my_crypto_prefix with a valid path to your crypto++
8318 installation directory)." >&2;}
8319 { (exit 1); exit 1; }; }
8328 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_ed2k:-yes} = yes -o ${enable_alc:-no} = yes -o ${enable_alcc:-no} = yes -o ${enable_wxcas:-no} = yes -o ${enable_fileview:-no} = yes ; then
8329 ac_ext=cc
8330 ac_cpp='$CXXCPP $CPPFLAGS'
8331 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8332 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8333 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8338 echo "$as_me:$LINENO: checking if we're using the GNU C++ library" >&5
8339 echo $ECHO_N "checking if we're using the GNU C++ library... $ECHO_C" >&6
8340 cat >conftest.$ac_ext <<_ACEOF
8342 /* confdefs.h. */
8343 _ACEOF
8344 cat confdefs.h >>conftest.$ac_ext
8345 cat >>conftest.$ac_ext <<_ACEOF
8346 /* end confdefs.h. */
8348 #include <string>
8349 #ifndef __GLIBCXX__
8350 #error Non-GNU C++ library found.
8351 #endif
8354 _ACEOF
8355 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8356 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8357 ac_status=$?
8358 grep -v '^ *+' conftest.er1 >conftest.err
8359 rm -f conftest.er1
8360 cat conftest.err >&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); } >/dev/null; then
8363 if test -s conftest.err; then
8364 ac_cpp_err=$ac_cxx_preproc_warn_flag
8365 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8366 else
8367 ac_cpp_err=
8369 else
8370 ac_cpp_err=yes
8372 if test -z "$ac_cpp_err"; then
8373 GLIBCXX=yes
8374 else
8375 echo "$as_me: failed program was:" >&5
8376 sed 's/^/| /' conftest.$ac_ext >&5
8378 GLIBCXX=no
8380 rm -f conftest.err conftest.$ac_ext
8381 echo "$as_me:$LINENO: result: $GLIBCXX" >&5
8382 echo "${ECHO_T}$GLIBCXX" >&6
8384 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_alc:-no} = yes -o ${enable_alcc:-no} = yes ; then
8386 mule_backup_CPPFLAGS="$CPPFLAGS"
8387 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
8389 echo "$as_me:$LINENO: checking that wxWidgets has support for large files" >&5
8390 echo $ECHO_N "checking that wxWidgets has support for large files... $ECHO_C" >&6
8391 cat >conftest.$ac_ext <<_ACEOF
8393 /* confdefs.h. */
8394 _ACEOF
8395 cat confdefs.h >>conftest.$ac_ext
8396 cat >>conftest.$ac_ext <<_ACEOF
8397 /* end confdefs.h. */
8399 #include <wx/wx.h>
8400 #include <wx/filefn.h>
8401 #ifndef wxHAS_LARGE_FILES
8402 #error No LargeFile support!
8403 #endif
8406 _ACEOF
8407 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8408 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8409 ac_status=$?
8410 grep -v '^ *+' conftest.er1 >conftest.err
8411 rm -f conftest.er1
8412 cat conftest.err >&5
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); } >/dev/null; then
8415 if test -s conftest.err; then
8416 ac_cpp_err=$ac_cxx_preproc_warn_flag
8417 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8418 else
8419 ac_cpp_err=
8421 else
8422 ac_cpp_err=yes
8424 if test -z "$ac_cpp_err"; then
8426 echo "$as_me:$LINENO: result: yes" >&5
8427 echo "${ECHO_T}yes" >&6
8429 else
8430 echo "$as_me: failed program was:" >&5
8431 sed 's/^/| /' conftest.$ac_ext >&5
8434 echo "$as_me:$LINENO: result: no" >&5
8435 echo "${ECHO_T}no" >&6
8436 { { echo "$as_me:$LINENO: error:
8437 Support for large files in wxWidgets is required by aMule.
8438 To continue you must recompile wxWidgets with support for
8439 large files enabled." >&5
8440 echo "$as_me: error:
8441 Support for large files in wxWidgets is required by aMule.
8442 To continue you must recompile wxWidgets with support for
8443 large files enabled." >&2;}
8444 { (exit 1); exit 1; }; }
8447 rm -f conftest.err conftest.$ac_ext
8449 CPPFLAGS="$mule_backup_CPPFLAGS"
8454 # Check if the compiler is broken, wrt. exceptions.
8456 echo "$as_me:$LINENO: checking for exception-handling" >&5
8457 echo $ECHO_N "checking for exception-handling... $ECHO_C" >&6
8458 if test "$cross_compiling" = yes; then
8460 echo "$as_me:$LINENO: result: undeterminable" >&5
8461 echo "${ECHO_T}undeterminable" >&6
8462 { echo "$as_me:$LINENO: WARNING:
8463 Cross-compilation detected, so exception handling cannot be tested.
8464 Note that broken exception handling in your compiler may lead to
8465 unexpected crashes." >&5
8466 echo "$as_me: WARNING:
8467 Cross-compilation detected, so exception handling cannot be tested.
8468 Note that broken exception handling in your compiler may lead to
8469 unexpected crashes." >&2;}
8470 _mule_warning_7=yes
8471 _mule_has_warnings=yes
8474 else
8475 cat >conftest.$ac_ext <<_ACEOF
8477 /* confdefs.h. */
8478 _ACEOF
8479 cat confdefs.h >>conftest.$ac_ext
8480 cat >>conftest.$ac_ext <<_ACEOF
8481 /* end confdefs.h. */
8484 main ()
8487 try {
8488 throw 1;
8489 } catch (int) {
8490 return 0;
8492 return 1;
8495 return 0;
8498 _ACEOF
8499 rm -f conftest$ac_exeext
8500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8501 (eval $ac_link) 2>&5
8502 ac_status=$?
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); } && { ac_try='./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
8511 echo "$as_me:$LINENO: result: yes" >&5
8512 echo "${ECHO_T}yes" >&6
8514 else
8515 echo "$as_me: program exited with status $ac_status" >&5
8516 echo "$as_me: failed program was:" >&5
8517 sed 's/^/| /' conftest.$ac_ext >&5
8519 ( exit $ac_status )
8521 echo "$as_me:$LINENO: result: no" >&5
8522 echo "${ECHO_T}no" >&6
8523 { { echo "$as_me:$LINENO: error: Exception handling does not work. Broken compiler?" >&5
8524 echo "$as_me: error: Exception handling does not work. Broken compiler?" >&2;}
8525 { (exit 1); exit 1; }; }
8528 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8533 echo "$as_me:$LINENO: checking for <cxxabi.h> and __cxa_demangle()" >&5
8534 echo $ECHO_N "checking for <cxxabi.h> and __cxa_demangle()... $ECHO_C" >&6
8535 cat >conftest.$ac_ext <<_ACEOF
8537 /* confdefs.h. */
8538 _ACEOF
8539 cat confdefs.h >>conftest.$ac_ext
8540 cat >>conftest.$ac_ext <<_ACEOF
8541 /* end confdefs.h. */
8543 #include <cxxabi.h>
8546 main ()
8549 int status;
8550 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
8551 std::type_info *ti = abi::__cxa_current_exception_type();
8554 return 0;
8557 _ACEOF
8558 rm -f conftest.$ac_objext conftest$ac_exeext
8559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8560 (eval $ac_link) 2>conftest.er1
8561 ac_status=$?
8562 grep -v '^ *+' conftest.er1 >conftest.err
8563 rm -f conftest.er1
8564 cat conftest.err >&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); } &&
8567 { ac_try='test -z "$ac_cxx_werror_flag"
8568 || test ! -s conftest.err'
8569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8570 (eval $ac_try) 2>&5
8571 ac_status=$?
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); }; } &&
8574 { ac_try='test -s conftest$ac_exeext'
8575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8576 (eval $ac_try) 2>&5
8577 ac_status=$?
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); }; }; then
8583 cat >>confdefs.h <<\_ACEOF
8584 #define HAVE_CXXABI 1
8585 _ACEOF
8587 echo "$as_me:$LINENO: result: yes" >&5
8588 echo "${ECHO_T}yes" >&6
8590 else
8591 echo "$as_me: failed program was:" >&5
8592 sed 's/^/| /' conftest.$ac_ext >&5
8595 echo "$as_me:$LINENO: result: no" >&5
8596 echo "${ECHO_T}no" >&6
8599 rm -f conftest.err conftest.$ac_objext \
8600 conftest$ac_exeext conftest.$ac_ext
8602 ac_ext=c
8603 ac_cpp='$CPP $CPPFLAGS'
8604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8612 # Ok, we have all needed libs, now checking for other stuff
8613 if test "$LEX" = "flex"; then
8615 echo "$as_me:$LINENO: checking for extended flex capabilities" >&5
8616 echo $ECHO_N "checking for extended flex capabilities... $ECHO_C" >&6
8618 extended_flex=`flex --help | grep header-file`
8619 if test -n "$extended_flex"; then
8620 HAVE_FLEX_EXTENDED=yes
8621 else
8622 HAVE_FLEX_EXTENDED=no
8625 echo "$as_me:$LINENO: result: $HAVE_FLEX_EXTENDED" >&5
8626 echo "${ECHO_T}$HAVE_FLEX_EXTENDED" >&6
8628 if test $HAVE_FLEX_EXTENDED = no; then
8629 { echo "$as_me:$LINENO: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&5
8630 echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&6;}
8634 else
8635 HAVE_FLEX_EXTENDED=no
8639 # Flush standard test results for speeding cache
8640 cat >confcache <<\_ACEOF
8641 # This file is a shell script that caches the results of configure
8642 # tests run on this system so they can be shared between configure
8643 # scripts and configure runs, see configure's option --config-cache.
8644 # It is not useful on other systems. If it contains results you don't
8645 # want to keep, you may remove or edit it.
8647 # config.status only pays attention to the cache file if you give it
8648 # the --recheck option to rerun configure.
8650 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8651 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8652 # following values.
8654 _ACEOF
8656 # The following way of writing the cache mishandles newlines in values,
8657 # but we know of no workaround that is simple, portable, and efficient.
8658 # So, don't put newlines in cache variables' values.
8659 # Ultrix sh set writes to stderr and can't be redirected directly,
8660 # and sets the high bit in the cache file unless we assign to the vars.
8662 (set) 2>&1 |
8663 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8664 *ac_space=\ *)
8665 # `set' does not quote correctly, so add quotes (double-quote
8666 # substitution turns \\\\ into \\, and sed turns \\ into \).
8667 sed -n \
8668 "s/'/'\\\\''/g;
8669 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8672 # `set' quotes correctly as required by POSIX, so do not add quotes.
8673 sed -n \
8674 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8676 esac;
8678 sed '
8679 t clear
8680 : clear
8681 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8682 t end
8683 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8684 : end' >>confcache
8685 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8686 if test -w $cache_file; then
8687 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8688 cat confcache >$cache_file
8689 else
8690 echo "not updating unwritable cache $cache_file"
8693 rm -f confcache
8695 # Checks for header files.
8696 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8697 # for constant arguments. Useless!
8698 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8699 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8700 if test "${ac_cv_working_alloca_h+set}" = set; then
8701 echo $ECHO_N "(cached) $ECHO_C" >&6
8702 else
8703 cat >conftest.$ac_ext <<_ACEOF
8704 /* confdefs.h. */
8705 _ACEOF
8706 cat confdefs.h >>conftest.$ac_ext
8707 cat >>conftest.$ac_ext <<_ACEOF
8708 /* end confdefs.h. */
8709 #include <alloca.h>
8711 main ()
8713 char *p = (char *) alloca (2 * sizeof (int));
8715 return 0;
8717 _ACEOF
8718 rm -f conftest.$ac_objext conftest$ac_exeext
8719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8720 (eval $ac_link) 2>conftest.er1
8721 ac_status=$?
8722 grep -v '^ *+' conftest.er1 >conftest.err
8723 rm -f conftest.er1
8724 cat conftest.err >&5
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); } &&
8727 { ac_try='test -z "$ac_c_werror_flag"
8728 || test ! -s conftest.err'
8729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8730 (eval $ac_try) 2>&5
8731 ac_status=$?
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); }; } &&
8734 { ac_try='test -s conftest$ac_exeext'
8735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8736 (eval $ac_try) 2>&5
8737 ac_status=$?
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); }; }; then
8740 ac_cv_working_alloca_h=yes
8741 else
8742 echo "$as_me: failed program was:" >&5
8743 sed 's/^/| /' conftest.$ac_ext >&5
8745 ac_cv_working_alloca_h=no
8747 rm -f conftest.err conftest.$ac_objext \
8748 conftest$ac_exeext conftest.$ac_ext
8750 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8751 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8752 if test $ac_cv_working_alloca_h = yes; then
8754 cat >>confdefs.h <<\_ACEOF
8755 #define HAVE_ALLOCA_H 1
8756 _ACEOF
8760 echo "$as_me:$LINENO: checking for alloca" >&5
8761 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8762 if test "${ac_cv_func_alloca_works+set}" = set; then
8763 echo $ECHO_N "(cached) $ECHO_C" >&6
8764 else
8765 cat >conftest.$ac_ext <<_ACEOF
8766 /* confdefs.h. */
8767 _ACEOF
8768 cat confdefs.h >>conftest.$ac_ext
8769 cat >>conftest.$ac_ext <<_ACEOF
8770 /* end confdefs.h. */
8771 #ifdef __GNUC__
8772 # define alloca __builtin_alloca
8773 #else
8774 # ifdef _MSC_VER
8775 # include <malloc.h>
8776 # define alloca _alloca
8777 # else
8778 # if HAVE_ALLOCA_H
8779 # include <alloca.h>
8780 # else
8781 # ifdef _AIX
8782 #pragma alloca
8783 # else
8784 # ifndef alloca /* predefined by HP cc +Olibcalls */
8785 char *alloca ();
8786 # endif
8787 # endif
8788 # endif
8789 # endif
8790 #endif
8793 main ()
8795 char *p = (char *) alloca (1);
8797 return 0;
8799 _ACEOF
8800 rm -f conftest.$ac_objext conftest$ac_exeext
8801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8802 (eval $ac_link) 2>conftest.er1
8803 ac_status=$?
8804 grep -v '^ *+' conftest.er1 >conftest.err
8805 rm -f conftest.er1
8806 cat conftest.err >&5
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); } &&
8809 { ac_try='test -z "$ac_c_werror_flag"
8810 || test ! -s conftest.err'
8811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8812 (eval $ac_try) 2>&5
8813 ac_status=$?
8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815 (exit $ac_status); }; } &&
8816 { ac_try='test -s conftest$ac_exeext'
8817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8818 (eval $ac_try) 2>&5
8819 ac_status=$?
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); }; }; then
8822 ac_cv_func_alloca_works=yes
8823 else
8824 echo "$as_me: failed program was:" >&5
8825 sed 's/^/| /' conftest.$ac_ext >&5
8827 ac_cv_func_alloca_works=no
8829 rm -f conftest.err conftest.$ac_objext \
8830 conftest$ac_exeext conftest.$ac_ext
8832 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8833 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8835 if test $ac_cv_func_alloca_works = yes; then
8837 cat >>confdefs.h <<\_ACEOF
8838 #define HAVE_ALLOCA 1
8839 _ACEOF
8841 else
8842 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8843 # that cause trouble. Some versions do not even contain alloca or
8844 # contain a buggy version. If you still want to use their alloca,
8845 # use ar to extract alloca.o from them instead of compiling alloca.c.
8847 ALLOCA=alloca.$ac_objext
8849 cat >>confdefs.h <<\_ACEOF
8850 #define C_ALLOCA 1
8851 _ACEOF
8854 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8855 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8856 if test "${ac_cv_os_cray+set}" = set; then
8857 echo $ECHO_N "(cached) $ECHO_C" >&6
8858 else
8859 cat >conftest.$ac_ext <<_ACEOF
8860 /* confdefs.h. */
8861 _ACEOF
8862 cat confdefs.h >>conftest.$ac_ext
8863 cat >>conftest.$ac_ext <<_ACEOF
8864 /* end confdefs.h. */
8865 #if defined(CRAY) && ! defined(CRAY2)
8866 webecray
8867 #else
8868 wenotbecray
8869 #endif
8871 _ACEOF
8872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8873 $EGREP "webecray" >/dev/null 2>&1; then
8874 ac_cv_os_cray=yes
8875 else
8876 ac_cv_os_cray=no
8878 rm -f conftest*
8881 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8882 echo "${ECHO_T}$ac_cv_os_cray" >&6
8883 if test $ac_cv_os_cray = yes; then
8884 for ac_func in _getb67 GETB67 getb67; do
8885 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8886 echo "$as_me:$LINENO: checking for $ac_func" >&5
8887 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8888 if eval "test \"\${$as_ac_var+set}\" = set"; then
8889 echo $ECHO_N "(cached) $ECHO_C" >&6
8890 else
8891 cat >conftest.$ac_ext <<_ACEOF
8892 /* confdefs.h. */
8893 _ACEOF
8894 cat confdefs.h >>conftest.$ac_ext
8895 cat >>conftest.$ac_ext <<_ACEOF
8896 /* end confdefs.h. */
8897 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8899 #define $ac_func innocuous_$ac_func
8901 /* System header to define __stub macros and hopefully few prototypes,
8902 which can conflict with char $ac_func (); below.
8903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8904 <limits.h> exists even on freestanding compilers. */
8906 #ifdef __STDC__
8907 # include <limits.h>
8908 #else
8909 # include <assert.h>
8910 #endif
8912 #undef $ac_func
8914 /* Override any gcc2 internal prototype to avoid an error. */
8915 #ifdef __cplusplus
8916 extern "C"
8918 #endif
8919 /* We use char because int might match the return type of a gcc2
8920 builtin and then its argument prototype would still apply. */
8921 char $ac_func ();
8922 /* The GNU C library defines this for functions which it implements
8923 to always fail with ENOSYS. Some functions are actually named
8924 something starting with __ and the normal name is an alias. */
8925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8926 choke me
8927 #else
8928 char (*f) () = $ac_func;
8929 #endif
8930 #ifdef __cplusplus
8932 #endif
8935 main ()
8937 return f != $ac_func;
8939 return 0;
8941 _ACEOF
8942 rm -f conftest.$ac_objext conftest$ac_exeext
8943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8944 (eval $ac_link) 2>conftest.er1
8945 ac_status=$?
8946 grep -v '^ *+' conftest.er1 >conftest.err
8947 rm -f conftest.er1
8948 cat conftest.err >&5
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); } &&
8951 { ac_try='test -z "$ac_c_werror_flag"
8952 || test ! -s conftest.err'
8953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8954 (eval $ac_try) 2>&5
8955 ac_status=$?
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); }; } &&
8958 { ac_try='test -s conftest$ac_exeext'
8959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8960 (eval $ac_try) 2>&5
8961 ac_status=$?
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 (exit $ac_status); }; }; then
8964 eval "$as_ac_var=yes"
8965 else
8966 echo "$as_me: failed program was:" >&5
8967 sed 's/^/| /' conftest.$ac_ext >&5
8969 eval "$as_ac_var=no"
8971 rm -f conftest.err conftest.$ac_objext \
8972 conftest$ac_exeext conftest.$ac_ext
8974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8975 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8976 if test `eval echo '${'$as_ac_var'}'` = yes; then
8978 cat >>confdefs.h <<_ACEOF
8979 #define CRAY_STACKSEG_END $ac_func
8980 _ACEOF
8982 break
8985 done
8988 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8989 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8990 if test "${ac_cv_c_stack_direction+set}" = set; then
8991 echo $ECHO_N "(cached) $ECHO_C" >&6
8992 else
8993 if test "$cross_compiling" = yes; then
8994 ac_cv_c_stack_direction=0
8995 else
8996 cat >conftest.$ac_ext <<_ACEOF
8997 /* confdefs.h. */
8998 _ACEOF
8999 cat confdefs.h >>conftest.$ac_ext
9000 cat >>conftest.$ac_ext <<_ACEOF
9001 /* end confdefs.h. */
9003 find_stack_direction ()
9005 static char *addr = 0;
9006 auto char dummy;
9007 if (addr == 0)
9009 addr = &dummy;
9010 return find_stack_direction ();
9012 else
9013 return (&dummy > addr) ? 1 : -1;
9017 main ()
9019 exit (find_stack_direction () < 0);
9021 _ACEOF
9022 rm -f conftest$ac_exeext
9023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9024 (eval $ac_link) 2>&5
9025 ac_status=$?
9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9029 (eval $ac_try) 2>&5
9030 ac_status=$?
9031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032 (exit $ac_status); }; }; then
9033 ac_cv_c_stack_direction=1
9034 else
9035 echo "$as_me: program exited with status $ac_status" >&5
9036 echo "$as_me: failed program was:" >&5
9037 sed 's/^/| /' conftest.$ac_ext >&5
9039 ( exit $ac_status )
9040 ac_cv_c_stack_direction=-1
9042 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9045 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9046 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9048 cat >>confdefs.h <<_ACEOF
9049 #define STACK_DIRECTION $ac_cv_c_stack_direction
9050 _ACEOF
9060 ac_header_dirent=no
9061 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9062 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9063 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9064 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9066 echo $ECHO_N "(cached) $ECHO_C" >&6
9067 else
9068 cat >conftest.$ac_ext <<_ACEOF
9069 /* confdefs.h. */
9070 _ACEOF
9071 cat confdefs.h >>conftest.$ac_ext
9072 cat >>conftest.$ac_ext <<_ACEOF
9073 /* end confdefs.h. */
9074 #include <sys/types.h>
9075 #include <$ac_hdr>
9078 main ()
9080 if ((DIR *) 0)
9081 return 0;
9083 return 0;
9085 _ACEOF
9086 rm -f conftest.$ac_objext
9087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9088 (eval $ac_compile) 2>conftest.er1
9089 ac_status=$?
9090 grep -v '^ *+' conftest.er1 >conftest.err
9091 rm -f conftest.er1
9092 cat conftest.err >&5
9093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094 (exit $ac_status); } &&
9095 { ac_try='test -z "$ac_c_werror_flag"
9096 || test ! -s conftest.err'
9097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9098 (eval $ac_try) 2>&5
9099 ac_status=$?
9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 (exit $ac_status); }; } &&
9102 { ac_try='test -s conftest.$ac_objext'
9103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9104 (eval $ac_try) 2>&5
9105 ac_status=$?
9106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107 (exit $ac_status); }; }; then
9108 eval "$as_ac_Header=yes"
9109 else
9110 echo "$as_me: failed program was:" >&5
9111 sed 's/^/| /' conftest.$ac_ext >&5
9113 eval "$as_ac_Header=no"
9115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9118 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9120 cat >>confdefs.h <<_ACEOF
9121 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9122 _ACEOF
9124 ac_header_dirent=$ac_hdr; break
9127 done
9128 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9129 if test $ac_header_dirent = dirent.h; then
9130 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9131 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9132 if test "${ac_cv_search_opendir+set}" = set; then
9133 echo $ECHO_N "(cached) $ECHO_C" >&6
9134 else
9135 ac_func_search_save_LIBS=$LIBS
9136 ac_cv_search_opendir=no
9137 cat >conftest.$ac_ext <<_ACEOF
9138 /* confdefs.h. */
9139 _ACEOF
9140 cat confdefs.h >>conftest.$ac_ext
9141 cat >>conftest.$ac_ext <<_ACEOF
9142 /* end confdefs.h. */
9144 /* Override any gcc2 internal prototype to avoid an error. */
9145 #ifdef __cplusplus
9146 extern "C"
9147 #endif
9148 /* We use char because int might match the return type of a gcc2
9149 builtin and then its argument prototype would still apply. */
9150 char opendir ();
9152 main ()
9154 opendir ();
9156 return 0;
9158 _ACEOF
9159 rm -f conftest.$ac_objext conftest$ac_exeext
9160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9161 (eval $ac_link) 2>conftest.er1
9162 ac_status=$?
9163 grep -v '^ *+' conftest.er1 >conftest.err
9164 rm -f conftest.er1
9165 cat conftest.err >&5
9166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167 (exit $ac_status); } &&
9168 { ac_try='test -z "$ac_c_werror_flag"
9169 || test ! -s conftest.err'
9170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9171 (eval $ac_try) 2>&5
9172 ac_status=$?
9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174 (exit $ac_status); }; } &&
9175 { ac_try='test -s conftest$ac_exeext'
9176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9177 (eval $ac_try) 2>&5
9178 ac_status=$?
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 (exit $ac_status); }; }; then
9181 ac_cv_search_opendir="none required"
9182 else
9183 echo "$as_me: failed program was:" >&5
9184 sed 's/^/| /' conftest.$ac_ext >&5
9187 rm -f conftest.err conftest.$ac_objext \
9188 conftest$ac_exeext conftest.$ac_ext
9189 if test "$ac_cv_search_opendir" = no; then
9190 for ac_lib in dir; do
9191 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9192 cat >conftest.$ac_ext <<_ACEOF
9193 /* confdefs.h. */
9194 _ACEOF
9195 cat confdefs.h >>conftest.$ac_ext
9196 cat >>conftest.$ac_ext <<_ACEOF
9197 /* end confdefs.h. */
9199 /* Override any gcc2 internal prototype to avoid an error. */
9200 #ifdef __cplusplus
9201 extern "C"
9202 #endif
9203 /* We use char because int might match the return type of a gcc2
9204 builtin and then its argument prototype would still apply. */
9205 char opendir ();
9207 main ()
9209 opendir ();
9211 return 0;
9213 _ACEOF
9214 rm -f conftest.$ac_objext conftest$ac_exeext
9215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9216 (eval $ac_link) 2>conftest.er1
9217 ac_status=$?
9218 grep -v '^ *+' conftest.er1 >conftest.err
9219 rm -f conftest.er1
9220 cat conftest.err >&5
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); } &&
9223 { ac_try='test -z "$ac_c_werror_flag"
9224 || test ! -s conftest.err'
9225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9226 (eval $ac_try) 2>&5
9227 ac_status=$?
9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229 (exit $ac_status); }; } &&
9230 { ac_try='test -s conftest$ac_exeext'
9231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9232 (eval $ac_try) 2>&5
9233 ac_status=$?
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); }; }; then
9236 ac_cv_search_opendir="-l$ac_lib"
9237 break
9238 else
9239 echo "$as_me: failed program was:" >&5
9240 sed 's/^/| /' conftest.$ac_ext >&5
9243 rm -f conftest.err conftest.$ac_objext \
9244 conftest$ac_exeext conftest.$ac_ext
9245 done
9247 LIBS=$ac_func_search_save_LIBS
9249 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9250 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9251 if test "$ac_cv_search_opendir" != no; then
9252 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9256 else
9257 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9258 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9259 if test "${ac_cv_search_opendir+set}" = set; then
9260 echo $ECHO_N "(cached) $ECHO_C" >&6
9261 else
9262 ac_func_search_save_LIBS=$LIBS
9263 ac_cv_search_opendir=no
9264 cat >conftest.$ac_ext <<_ACEOF
9265 /* confdefs.h. */
9266 _ACEOF
9267 cat confdefs.h >>conftest.$ac_ext
9268 cat >>conftest.$ac_ext <<_ACEOF
9269 /* end confdefs.h. */
9271 /* Override any gcc2 internal prototype to avoid an error. */
9272 #ifdef __cplusplus
9273 extern "C"
9274 #endif
9275 /* We use char because int might match the return type of a gcc2
9276 builtin and then its argument prototype would still apply. */
9277 char opendir ();
9279 main ()
9281 opendir ();
9283 return 0;
9285 _ACEOF
9286 rm -f conftest.$ac_objext conftest$ac_exeext
9287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9288 (eval $ac_link) 2>conftest.er1
9289 ac_status=$?
9290 grep -v '^ *+' conftest.er1 >conftest.err
9291 rm -f conftest.er1
9292 cat conftest.err >&5
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); } &&
9295 { ac_try='test -z "$ac_c_werror_flag"
9296 || test ! -s conftest.err'
9297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9298 (eval $ac_try) 2>&5
9299 ac_status=$?
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); }; } &&
9302 { ac_try='test -s conftest$ac_exeext'
9303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9304 (eval $ac_try) 2>&5
9305 ac_status=$?
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); }; }; then
9308 ac_cv_search_opendir="none required"
9309 else
9310 echo "$as_me: failed program was:" >&5
9311 sed 's/^/| /' conftest.$ac_ext >&5
9314 rm -f conftest.err conftest.$ac_objext \
9315 conftest$ac_exeext conftest.$ac_ext
9316 if test "$ac_cv_search_opendir" = no; then
9317 for ac_lib in x; do
9318 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9319 cat >conftest.$ac_ext <<_ACEOF
9320 /* confdefs.h. */
9321 _ACEOF
9322 cat confdefs.h >>conftest.$ac_ext
9323 cat >>conftest.$ac_ext <<_ACEOF
9324 /* end confdefs.h. */
9326 /* Override any gcc2 internal prototype to avoid an error. */
9327 #ifdef __cplusplus
9328 extern "C"
9329 #endif
9330 /* We use char because int might match the return type of a gcc2
9331 builtin and then its argument prototype would still apply. */
9332 char opendir ();
9334 main ()
9336 opendir ();
9338 return 0;
9340 _ACEOF
9341 rm -f conftest.$ac_objext conftest$ac_exeext
9342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9343 (eval $ac_link) 2>conftest.er1
9344 ac_status=$?
9345 grep -v '^ *+' conftest.er1 >conftest.err
9346 rm -f conftest.er1
9347 cat conftest.err >&5
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); } &&
9350 { ac_try='test -z "$ac_c_werror_flag"
9351 || test ! -s conftest.err'
9352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9353 (eval $ac_try) 2>&5
9354 ac_status=$?
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); }; } &&
9357 { ac_try='test -s conftest$ac_exeext'
9358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9359 (eval $ac_try) 2>&5
9360 ac_status=$?
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); }; }; then
9363 ac_cv_search_opendir="-l$ac_lib"
9364 break
9365 else
9366 echo "$as_me: failed program was:" >&5
9367 sed 's/^/| /' conftest.$ac_ext >&5
9370 rm -f conftest.err conftest.$ac_objext \
9371 conftest$ac_exeext conftest.$ac_ext
9372 done
9374 LIBS=$ac_func_search_save_LIBS
9376 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9377 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9378 if test "$ac_cv_search_opendir" != no; then
9379 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9385 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9386 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9387 if test "${ac_cv_header_stdc+set}" = set; then
9388 echo $ECHO_N "(cached) $ECHO_C" >&6
9389 else
9390 cat >conftest.$ac_ext <<_ACEOF
9391 /* confdefs.h. */
9392 _ACEOF
9393 cat confdefs.h >>conftest.$ac_ext
9394 cat >>conftest.$ac_ext <<_ACEOF
9395 /* end confdefs.h. */
9396 #include <stdlib.h>
9397 #include <stdarg.h>
9398 #include <string.h>
9399 #include <float.h>
9402 main ()
9406 return 0;
9408 _ACEOF
9409 rm -f conftest.$ac_objext
9410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9411 (eval $ac_compile) 2>conftest.er1
9412 ac_status=$?
9413 grep -v '^ *+' conftest.er1 >conftest.err
9414 rm -f conftest.er1
9415 cat conftest.err >&5
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); } &&
9418 { ac_try='test -z "$ac_c_werror_flag"
9419 || test ! -s conftest.err'
9420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9421 (eval $ac_try) 2>&5
9422 ac_status=$?
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); }; } &&
9425 { ac_try='test -s conftest.$ac_objext'
9426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9427 (eval $ac_try) 2>&5
9428 ac_status=$?
9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); }; }; then
9431 ac_cv_header_stdc=yes
9432 else
9433 echo "$as_me: failed program was:" >&5
9434 sed 's/^/| /' conftest.$ac_ext >&5
9436 ac_cv_header_stdc=no
9438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9440 if test $ac_cv_header_stdc = yes; then
9441 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9442 cat >conftest.$ac_ext <<_ACEOF
9443 /* confdefs.h. */
9444 _ACEOF
9445 cat confdefs.h >>conftest.$ac_ext
9446 cat >>conftest.$ac_ext <<_ACEOF
9447 /* end confdefs.h. */
9448 #include <string.h>
9450 _ACEOF
9451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9452 $EGREP "memchr" >/dev/null 2>&1; then
9454 else
9455 ac_cv_header_stdc=no
9457 rm -f conftest*
9461 if test $ac_cv_header_stdc = yes; then
9462 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9463 cat >conftest.$ac_ext <<_ACEOF
9464 /* confdefs.h. */
9465 _ACEOF
9466 cat confdefs.h >>conftest.$ac_ext
9467 cat >>conftest.$ac_ext <<_ACEOF
9468 /* end confdefs.h. */
9469 #include <stdlib.h>
9471 _ACEOF
9472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9473 $EGREP "free" >/dev/null 2>&1; then
9475 else
9476 ac_cv_header_stdc=no
9478 rm -f conftest*
9482 if test $ac_cv_header_stdc = yes; then
9483 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9484 if test "$cross_compiling" = yes; then
9486 else
9487 cat >conftest.$ac_ext <<_ACEOF
9488 /* confdefs.h. */
9489 _ACEOF
9490 cat confdefs.h >>conftest.$ac_ext
9491 cat >>conftest.$ac_ext <<_ACEOF
9492 /* end confdefs.h. */
9493 #include <ctype.h>
9494 #if ((' ' & 0x0FF) == 0x020)
9495 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9496 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9497 #else
9498 # define ISLOWER(c) \
9499 (('a' <= (c) && (c) <= 'i') \
9500 || ('j' <= (c) && (c) <= 'r') \
9501 || ('s' <= (c) && (c) <= 'z'))
9502 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9503 #endif
9505 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9507 main ()
9509 int i;
9510 for (i = 0; i < 256; i++)
9511 if (XOR (islower (i), ISLOWER (i))
9512 || toupper (i) != TOUPPER (i))
9513 exit(2);
9514 exit (0);
9516 _ACEOF
9517 rm -f conftest$ac_exeext
9518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9519 (eval $ac_link) 2>&5
9520 ac_status=$?
9521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9524 (eval $ac_try) 2>&5
9525 ac_status=$?
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); }; }; then
9529 else
9530 echo "$as_me: program exited with status $ac_status" >&5
9531 echo "$as_me: failed program was:" >&5
9532 sed 's/^/| /' conftest.$ac_ext >&5
9534 ( exit $ac_status )
9535 ac_cv_header_stdc=no
9537 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9541 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9542 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9543 if test $ac_cv_header_stdc = yes; then
9545 cat >>confdefs.h <<\_ACEOF
9546 #define STDC_HEADERS 1
9547 _ACEOF
9585 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
9587 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9589 echo "$as_me:$LINENO: checking for $ac_header" >&5
9590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9592 echo $ECHO_N "(cached) $ECHO_C" >&6
9594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9595 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9596 else
9597 # Is the header compilable?
9598 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9599 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9600 cat >conftest.$ac_ext <<_ACEOF
9601 /* confdefs.h. */
9602 _ACEOF
9603 cat confdefs.h >>conftest.$ac_ext
9604 cat >>conftest.$ac_ext <<_ACEOF
9605 /* end confdefs.h. */
9606 $ac_includes_default
9607 #include <$ac_header>
9608 _ACEOF
9609 rm -f conftest.$ac_objext
9610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9611 (eval $ac_compile) 2>conftest.er1
9612 ac_status=$?
9613 grep -v '^ *+' conftest.er1 >conftest.err
9614 rm -f conftest.er1
9615 cat conftest.err >&5
9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 (exit $ac_status); } &&
9618 { ac_try='test -z "$ac_c_werror_flag"
9619 || test ! -s conftest.err'
9620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9621 (eval $ac_try) 2>&5
9622 ac_status=$?
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); }; } &&
9625 { ac_try='test -s conftest.$ac_objext'
9626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9627 (eval $ac_try) 2>&5
9628 ac_status=$?
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); }; }; then
9631 ac_header_compiler=yes
9632 else
9633 echo "$as_me: failed program was:" >&5
9634 sed 's/^/| /' conftest.$ac_ext >&5
9636 ac_header_compiler=no
9638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9639 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9640 echo "${ECHO_T}$ac_header_compiler" >&6
9642 # Is the header present?
9643 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9644 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9645 cat >conftest.$ac_ext <<_ACEOF
9646 /* confdefs.h. */
9647 _ACEOF
9648 cat confdefs.h >>conftest.$ac_ext
9649 cat >>conftest.$ac_ext <<_ACEOF
9650 /* end confdefs.h. */
9651 #include <$ac_header>
9652 _ACEOF
9653 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9654 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9655 ac_status=$?
9656 grep -v '^ *+' conftest.er1 >conftest.err
9657 rm -f conftest.er1
9658 cat conftest.err >&5
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); } >/dev/null; then
9661 if test -s conftest.err; then
9662 ac_cpp_err=$ac_c_preproc_warn_flag
9663 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9664 else
9665 ac_cpp_err=
9667 else
9668 ac_cpp_err=yes
9670 if test -z "$ac_cpp_err"; then
9671 ac_header_preproc=yes
9672 else
9673 echo "$as_me: failed program was:" >&5
9674 sed 's/^/| /' conftest.$ac_ext >&5
9676 ac_header_preproc=no
9678 rm -f conftest.err conftest.$ac_ext
9679 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9680 echo "${ECHO_T}$ac_header_preproc" >&6
9682 # So? What about this header?
9683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9684 yes:no: )
9685 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9686 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9688 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9689 ac_header_preproc=yes
9691 no:yes:* )
9692 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9693 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9694 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9695 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9696 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9697 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9698 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9699 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9701 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9702 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9703 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9705 cat <<\_ASBOX
9706 ## ------------------------------ ##
9707 ## Report this to admin@amule.org ##
9708 ## ------------------------------ ##
9709 _ASBOX
9711 sed "s/^/$as_me: WARNING: /" >&2
9713 esac
9714 echo "$as_me:$LINENO: checking for $ac_header" >&5
9715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9717 echo $ECHO_N "(cached) $ECHO_C" >&6
9718 else
9719 eval "$as_ac_Header=\$ac_header_preproc"
9721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9722 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9726 cat >>confdefs.h <<_ACEOF
9727 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9728 _ACEOF
9732 done
9734 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9735 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9736 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9737 echo $ECHO_N "(cached) $ECHO_C" >&6
9738 else
9739 cat >conftest.$ac_ext <<_ACEOF
9740 /* confdefs.h. */
9741 _ACEOF
9742 cat confdefs.h >>conftest.$ac_ext
9743 cat >>conftest.$ac_ext <<_ACEOF
9744 /* end confdefs.h. */
9745 #include <sys/types.h>
9746 #include <sys/wait.h>
9747 #ifndef WEXITSTATUS
9748 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9749 #endif
9750 #ifndef WIFEXITED
9751 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9752 #endif
9755 main ()
9757 int s;
9758 wait (&s);
9759 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9761 return 0;
9763 _ACEOF
9764 rm -f conftest.$ac_objext
9765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9766 (eval $ac_compile) 2>conftest.er1
9767 ac_status=$?
9768 grep -v '^ *+' conftest.er1 >conftest.err
9769 rm -f conftest.er1
9770 cat conftest.err >&5
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); } &&
9773 { ac_try='test -z "$ac_c_werror_flag"
9774 || test ! -s conftest.err'
9775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9776 (eval $ac_try) 2>&5
9777 ac_status=$?
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); }; } &&
9780 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
9786 ac_cv_header_sys_wait_h=yes
9787 else
9788 echo "$as_me: failed program was:" >&5
9789 sed 's/^/| /' conftest.$ac_ext >&5
9791 ac_cv_header_sys_wait_h=no
9793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9795 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9796 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9797 if test $ac_cv_header_sys_wait_h = yes; then
9799 cat >>confdefs.h <<\_ACEOF
9800 #define HAVE_SYS_WAIT_H 1
9801 _ACEOF
9806 # Checks for typedefs, structures, and compiler characteristics.
9807 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
9808 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
9809 if test "${ac_cv_header_stdbool_h+set}" = set; then
9810 echo $ECHO_N "(cached) $ECHO_C" >&6
9811 else
9812 cat >conftest.$ac_ext <<_ACEOF
9813 /* confdefs.h. */
9814 _ACEOF
9815 cat confdefs.h >>conftest.$ac_ext
9816 cat >>conftest.$ac_ext <<_ACEOF
9817 /* end confdefs.h. */
9819 #include <stdbool.h>
9820 #ifndef bool
9821 # error bool is not defined
9822 #endif
9823 #ifndef false
9824 # error false is not defined
9825 #endif
9826 #if false
9827 # error false is not 0
9828 #endif
9829 #ifndef true
9830 # error true is not defined
9831 #endif
9832 #if true != 1
9833 # error true is not 1
9834 #endif
9835 #ifndef __bool_true_false_are_defined
9836 # error __bool_true_false_are_defined is not defined
9837 #endif
9839 struct s { _Bool s: 1; _Bool t; } s;
9841 char a[true == 1 ? 1 : -1];
9842 char b[false == 0 ? 1 : -1];
9843 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9844 char d[(bool) -0.5 == true ? 1 : -1];
9845 bool e = &s;
9846 char f[(_Bool) -0.0 == false ? 1 : -1];
9847 char g[true];
9848 char h[sizeof (_Bool)];
9849 char i[sizeof s.t];
9852 main ()
9854 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
9856 return 0;
9858 _ACEOF
9859 rm -f conftest.$ac_objext
9860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9861 (eval $ac_compile) 2>conftest.er1
9862 ac_status=$?
9863 grep -v '^ *+' conftest.er1 >conftest.err
9864 rm -f conftest.er1
9865 cat conftest.err >&5
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); } &&
9868 { ac_try='test -z "$ac_c_werror_flag"
9869 || test ! -s conftest.err'
9870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9871 (eval $ac_try) 2>&5
9872 ac_status=$?
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); }; } &&
9875 { ac_try='test -s conftest.$ac_objext'
9876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9877 (eval $ac_try) 2>&5
9878 ac_status=$?
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); }; }; then
9881 ac_cv_header_stdbool_h=yes
9882 else
9883 echo "$as_me: failed program was:" >&5
9884 sed 's/^/| /' conftest.$ac_ext >&5
9886 ac_cv_header_stdbool_h=no
9888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9890 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
9891 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
9892 echo "$as_me:$LINENO: checking for _Bool" >&5
9893 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
9894 if test "${ac_cv_type__Bool+set}" = set; then
9895 echo $ECHO_N "(cached) $ECHO_C" >&6
9896 else
9897 cat >conftest.$ac_ext <<_ACEOF
9898 /* confdefs.h. */
9899 _ACEOF
9900 cat confdefs.h >>conftest.$ac_ext
9901 cat >>conftest.$ac_ext <<_ACEOF
9902 /* end confdefs.h. */
9903 $ac_includes_default
9905 main ()
9907 if ((_Bool *) 0)
9908 return 0;
9909 if (sizeof (_Bool))
9910 return 0;
9912 return 0;
9914 _ACEOF
9915 rm -f conftest.$ac_objext
9916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9917 (eval $ac_compile) 2>conftest.er1
9918 ac_status=$?
9919 grep -v '^ *+' conftest.er1 >conftest.err
9920 rm -f conftest.er1
9921 cat conftest.err >&5
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); } &&
9924 { ac_try='test -z "$ac_c_werror_flag"
9925 || test ! -s conftest.err'
9926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9927 (eval $ac_try) 2>&5
9928 ac_status=$?
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); }; } &&
9931 { ac_try='test -s conftest.$ac_objext'
9932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9933 (eval $ac_try) 2>&5
9934 ac_status=$?
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); }; }; then
9937 ac_cv_type__Bool=yes
9938 else
9939 echo "$as_me: failed program was:" >&5
9940 sed 's/^/| /' conftest.$ac_ext >&5
9942 ac_cv_type__Bool=no
9944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9946 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
9947 echo "${ECHO_T}$ac_cv_type__Bool" >&6
9948 if test $ac_cv_type__Bool = yes; then
9950 cat >>confdefs.h <<_ACEOF
9951 #define HAVE__BOOL 1
9952 _ACEOF
9957 if test $ac_cv_header_stdbool_h = yes; then
9959 cat >>confdefs.h <<\_ACEOF
9960 #define HAVE_STDBOOL_H 1
9961 _ACEOF
9965 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9966 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9967 if test "${ac_cv_c_const+set}" = set; then
9968 echo $ECHO_N "(cached) $ECHO_C" >&6
9969 else
9970 cat >conftest.$ac_ext <<_ACEOF
9971 /* confdefs.h. */
9972 _ACEOF
9973 cat confdefs.h >>conftest.$ac_ext
9974 cat >>conftest.$ac_ext <<_ACEOF
9975 /* end confdefs.h. */
9978 main ()
9980 /* FIXME: Include the comments suggested by Paul. */
9981 #ifndef __cplusplus
9982 /* Ultrix mips cc rejects this. */
9983 typedef int charset[2];
9984 const charset x;
9985 /* SunOS 4.1.1 cc rejects this. */
9986 char const *const *ccp;
9987 char **p;
9988 /* NEC SVR4.0.2 mips cc rejects this. */
9989 struct point {int x, y;};
9990 static struct point const zero = {0,0};
9991 /* AIX XL C 1.02.0.0 rejects this.
9992 It does not let you subtract one const X* pointer from another in
9993 an arm of an if-expression whose if-part is not a constant
9994 expression */
9995 const char *g = "string";
9996 ccp = &g + (g ? g-g : 0);
9997 /* HPUX 7.0 cc rejects these. */
9998 ++ccp;
9999 p = (char**) ccp;
10000 ccp = (char const *const *) p;
10001 { /* SCO 3.2v4 cc rejects this. */
10002 char *t;
10003 char const *s = 0 ? (char *) 0 : (char const *) 0;
10005 *t++ = 0;
10007 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10008 int x[] = {25, 17};
10009 const int *foo = &x[0];
10010 ++foo;
10012 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10013 typedef const int *iptr;
10014 iptr p = 0;
10015 ++p;
10017 { /* AIX XL C 1.02.0.0 rejects this saying
10018 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10019 struct s { int j; const int *ap[3]; };
10020 struct s *b; b->j = 5;
10022 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10023 const int foo = 10;
10025 #endif
10028 return 0;
10030 _ACEOF
10031 rm -f conftest.$ac_objext
10032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10033 (eval $ac_compile) 2>conftest.er1
10034 ac_status=$?
10035 grep -v '^ *+' conftest.er1 >conftest.err
10036 rm -f conftest.er1
10037 cat conftest.err >&5
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); } &&
10040 { ac_try='test -z "$ac_c_werror_flag"
10041 || test ! -s conftest.err'
10042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10043 (eval $ac_try) 2>&5
10044 ac_status=$?
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); }; } &&
10047 { ac_try='test -s conftest.$ac_objext'
10048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10049 (eval $ac_try) 2>&5
10050 ac_status=$?
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); }; }; then
10053 ac_cv_c_const=yes
10054 else
10055 echo "$as_me: failed program was:" >&5
10056 sed 's/^/| /' conftest.$ac_ext >&5
10058 ac_cv_c_const=no
10060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10062 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10063 echo "${ECHO_T}$ac_cv_c_const" >&6
10064 if test $ac_cv_c_const = no; then
10066 cat >>confdefs.h <<\_ACEOF
10067 #define const
10068 _ACEOF
10072 echo "$as_me:$LINENO: checking for inline" >&5
10073 echo $ECHO_N "checking for inline... $ECHO_C" >&6
10074 if test "${ac_cv_c_inline+set}" = set; then
10075 echo $ECHO_N "(cached) $ECHO_C" >&6
10076 else
10077 ac_cv_c_inline=no
10078 for ac_kw in inline __inline__ __inline; do
10079 cat >conftest.$ac_ext <<_ACEOF
10080 /* confdefs.h. */
10081 _ACEOF
10082 cat confdefs.h >>conftest.$ac_ext
10083 cat >>conftest.$ac_ext <<_ACEOF
10084 /* end confdefs.h. */
10085 #ifndef __cplusplus
10086 typedef int foo_t;
10087 static $ac_kw foo_t static_foo () {return 0; }
10088 $ac_kw foo_t foo () {return 0; }
10089 #endif
10091 _ACEOF
10092 rm -f conftest.$ac_objext
10093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10094 (eval $ac_compile) 2>conftest.er1
10095 ac_status=$?
10096 grep -v '^ *+' conftest.er1 >conftest.err
10097 rm -f conftest.er1
10098 cat conftest.err >&5
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); } &&
10101 { ac_try='test -z "$ac_c_werror_flag"
10102 || test ! -s conftest.err'
10103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10104 (eval $ac_try) 2>&5
10105 ac_status=$?
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); }; } &&
10108 { ac_try='test -s conftest.$ac_objext'
10109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10110 (eval $ac_try) 2>&5
10111 ac_status=$?
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); }; }; then
10114 ac_cv_c_inline=$ac_kw; break
10115 else
10116 echo "$as_me: failed program was:" >&5
10117 sed 's/^/| /' conftest.$ac_ext >&5
10120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10121 done
10124 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10125 echo "${ECHO_T}$ac_cv_c_inline" >&6
10128 case $ac_cv_c_inline in
10129 inline | yes) ;;
10131 case $ac_cv_c_inline in
10132 no) ac_val=;;
10133 *) ac_val=$ac_cv_c_inline;;
10134 esac
10135 cat >>confdefs.h <<_ACEOF
10136 #ifndef __cplusplus
10137 #define inline $ac_val
10138 #endif
10139 _ACEOF
10141 esac
10143 echo "$as_me:$LINENO: checking for mode_t" >&5
10144 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10145 if test "${ac_cv_type_mode_t+set}" = set; then
10146 echo $ECHO_N "(cached) $ECHO_C" >&6
10147 else
10148 cat >conftest.$ac_ext <<_ACEOF
10149 /* confdefs.h. */
10150 _ACEOF
10151 cat confdefs.h >>conftest.$ac_ext
10152 cat >>conftest.$ac_ext <<_ACEOF
10153 /* end confdefs.h. */
10154 $ac_includes_default
10156 main ()
10158 if ((mode_t *) 0)
10159 return 0;
10160 if (sizeof (mode_t))
10161 return 0;
10163 return 0;
10165 _ACEOF
10166 rm -f conftest.$ac_objext
10167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10168 (eval $ac_compile) 2>conftest.er1
10169 ac_status=$?
10170 grep -v '^ *+' conftest.er1 >conftest.err
10171 rm -f conftest.er1
10172 cat conftest.err >&5
10173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174 (exit $ac_status); } &&
10175 { ac_try='test -z "$ac_c_werror_flag"
10176 || test ! -s conftest.err'
10177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10178 (eval $ac_try) 2>&5
10179 ac_status=$?
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); }; } &&
10182 { ac_try='test -s conftest.$ac_objext'
10183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10184 (eval $ac_try) 2>&5
10185 ac_status=$?
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); }; }; then
10188 ac_cv_type_mode_t=yes
10189 else
10190 echo "$as_me: failed program was:" >&5
10191 sed 's/^/| /' conftest.$ac_ext >&5
10193 ac_cv_type_mode_t=no
10195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10197 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10198 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10199 if test $ac_cv_type_mode_t = yes; then
10201 else
10203 cat >>confdefs.h <<_ACEOF
10204 #define mode_t int
10205 _ACEOF
10209 echo "$as_me:$LINENO: checking for off_t" >&5
10210 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10211 if test "${ac_cv_type_off_t+set}" = set; then
10212 echo $ECHO_N "(cached) $ECHO_C" >&6
10213 else
10214 cat >conftest.$ac_ext <<_ACEOF
10215 /* confdefs.h. */
10216 _ACEOF
10217 cat confdefs.h >>conftest.$ac_ext
10218 cat >>conftest.$ac_ext <<_ACEOF
10219 /* end confdefs.h. */
10220 $ac_includes_default
10222 main ()
10224 if ((off_t *) 0)
10225 return 0;
10226 if (sizeof (off_t))
10227 return 0;
10229 return 0;
10231 _ACEOF
10232 rm -f conftest.$ac_objext
10233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10234 (eval $ac_compile) 2>conftest.er1
10235 ac_status=$?
10236 grep -v '^ *+' conftest.er1 >conftest.err
10237 rm -f conftest.er1
10238 cat conftest.err >&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); } &&
10241 { ac_try='test -z "$ac_c_werror_flag"
10242 || test ! -s conftest.err'
10243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10244 (eval $ac_try) 2>&5
10245 ac_status=$?
10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247 (exit $ac_status); }; } &&
10248 { ac_try='test -s conftest.$ac_objext'
10249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10250 (eval $ac_try) 2>&5
10251 ac_status=$?
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); }; }; then
10254 ac_cv_type_off_t=yes
10255 else
10256 echo "$as_me: failed program was:" >&5
10257 sed 's/^/| /' conftest.$ac_ext >&5
10259 ac_cv_type_off_t=no
10261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10263 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10264 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10265 if test $ac_cv_type_off_t = yes; then
10267 else
10269 cat >>confdefs.h <<_ACEOF
10270 #define off_t long
10271 _ACEOF
10275 echo "$as_me:$LINENO: checking for size_t" >&5
10276 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10277 if test "${ac_cv_type_size_t+set}" = set; then
10278 echo $ECHO_N "(cached) $ECHO_C" >&6
10279 else
10280 cat >conftest.$ac_ext <<_ACEOF
10281 /* confdefs.h. */
10282 _ACEOF
10283 cat confdefs.h >>conftest.$ac_ext
10284 cat >>conftest.$ac_ext <<_ACEOF
10285 /* end confdefs.h. */
10286 $ac_includes_default
10288 main ()
10290 if ((size_t *) 0)
10291 return 0;
10292 if (sizeof (size_t))
10293 return 0;
10295 return 0;
10297 _ACEOF
10298 rm -f conftest.$ac_objext
10299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10300 (eval $ac_compile) 2>conftest.er1
10301 ac_status=$?
10302 grep -v '^ *+' conftest.er1 >conftest.err
10303 rm -f conftest.er1
10304 cat conftest.err >&5
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); } &&
10307 { ac_try='test -z "$ac_c_werror_flag"
10308 || test ! -s conftest.err'
10309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10310 (eval $ac_try) 2>&5
10311 ac_status=$?
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); }; } &&
10314 { ac_try='test -s conftest.$ac_objext'
10315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10316 (eval $ac_try) 2>&5
10317 ac_status=$?
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); }; }; then
10320 ac_cv_type_size_t=yes
10321 else
10322 echo "$as_me: failed program was:" >&5
10323 sed 's/^/| /' conftest.$ac_ext >&5
10325 ac_cv_type_size_t=no
10327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10329 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10330 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10331 if test $ac_cv_type_size_t = yes; then
10333 else
10335 cat >>confdefs.h <<_ACEOF
10336 #define size_t unsigned
10337 _ACEOF
10341 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10342 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10343 if test "${ac_cv_header_time+set}" = set; then
10344 echo $ECHO_N "(cached) $ECHO_C" >&6
10345 else
10346 cat >conftest.$ac_ext <<_ACEOF
10347 /* confdefs.h. */
10348 _ACEOF
10349 cat confdefs.h >>conftest.$ac_ext
10350 cat >>conftest.$ac_ext <<_ACEOF
10351 /* end confdefs.h. */
10352 #include <sys/types.h>
10353 #include <sys/time.h>
10354 #include <time.h>
10357 main ()
10359 if ((struct tm *) 0)
10360 return 0;
10362 return 0;
10364 _ACEOF
10365 rm -f conftest.$ac_objext
10366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10367 (eval $ac_compile) 2>conftest.er1
10368 ac_status=$?
10369 grep -v '^ *+' conftest.er1 >conftest.err
10370 rm -f conftest.er1
10371 cat conftest.err >&5
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); } &&
10374 { ac_try='test -z "$ac_c_werror_flag"
10375 || test ! -s conftest.err'
10376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10377 (eval $ac_try) 2>&5
10378 ac_status=$?
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); }; } &&
10381 { ac_try='test -s conftest.$ac_objext'
10382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10383 (eval $ac_try) 2>&5
10384 ac_status=$?
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); }; }; then
10387 ac_cv_header_time=yes
10388 else
10389 echo "$as_me: failed program was:" >&5
10390 sed 's/^/| /' conftest.$ac_ext >&5
10392 ac_cv_header_time=no
10394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10396 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10397 echo "${ECHO_T}$ac_cv_header_time" >&6
10398 if test $ac_cv_header_time = yes; then
10400 cat >>confdefs.h <<\_ACEOF
10401 #define TIME_WITH_SYS_TIME 1
10402 _ACEOF
10406 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10407 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10408 if test "${ac_cv_struct_tm+set}" = set; then
10409 echo $ECHO_N "(cached) $ECHO_C" >&6
10410 else
10411 cat >conftest.$ac_ext <<_ACEOF
10412 /* confdefs.h. */
10413 _ACEOF
10414 cat confdefs.h >>conftest.$ac_ext
10415 cat >>conftest.$ac_ext <<_ACEOF
10416 /* end confdefs.h. */
10417 #include <sys/types.h>
10418 #include <time.h>
10421 main ()
10423 struct tm *tp; tp->tm_sec;
10425 return 0;
10427 _ACEOF
10428 rm -f conftest.$ac_objext
10429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10430 (eval $ac_compile) 2>conftest.er1
10431 ac_status=$?
10432 grep -v '^ *+' conftest.er1 >conftest.err
10433 rm -f conftest.er1
10434 cat conftest.err >&5
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); } &&
10437 { ac_try='test -z "$ac_c_werror_flag"
10438 || test ! -s conftest.err'
10439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10440 (eval $ac_try) 2>&5
10441 ac_status=$?
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); }; } &&
10444 { ac_try='test -s conftest.$ac_objext'
10445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10446 (eval $ac_try) 2>&5
10447 ac_status=$?
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); }; }; then
10450 ac_cv_struct_tm=time.h
10451 else
10452 echo "$as_me: failed program was:" >&5
10453 sed 's/^/| /' conftest.$ac_ext >&5
10455 ac_cv_struct_tm=sys/time.h
10457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10459 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10460 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10461 if test $ac_cv_struct_tm = sys/time.h; then
10463 cat >>confdefs.h <<\_ACEOF
10464 #define TM_IN_SYS_TIME 1
10465 _ACEOF
10469 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10470 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10471 if test "${ac_cv_type_uid_t+set}" = set; then
10472 echo $ECHO_N "(cached) $ECHO_C" >&6
10473 else
10474 cat >conftest.$ac_ext <<_ACEOF
10475 /* confdefs.h. */
10476 _ACEOF
10477 cat confdefs.h >>conftest.$ac_ext
10478 cat >>conftest.$ac_ext <<_ACEOF
10479 /* end confdefs.h. */
10480 #include <sys/types.h>
10482 _ACEOF
10483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10484 $EGREP "uid_t" >/dev/null 2>&1; then
10485 ac_cv_type_uid_t=yes
10486 else
10487 ac_cv_type_uid_t=no
10489 rm -f conftest*
10492 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10493 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10494 if test $ac_cv_type_uid_t = no; then
10496 cat >>confdefs.h <<\_ACEOF
10497 #define uid_t int
10498 _ACEOF
10501 cat >>confdefs.h <<\_ACEOF
10502 #define gid_t int
10503 _ACEOF
10507 echo "$as_me:$LINENO: checking for working volatile" >&5
10508 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
10509 if test "${ac_cv_c_volatile+set}" = set; then
10510 echo $ECHO_N "(cached) $ECHO_C" >&6
10511 else
10512 cat >conftest.$ac_ext <<_ACEOF
10513 /* confdefs.h. */
10514 _ACEOF
10515 cat confdefs.h >>conftest.$ac_ext
10516 cat >>conftest.$ac_ext <<_ACEOF
10517 /* end confdefs.h. */
10520 main ()
10523 volatile int x;
10524 int * volatile y;
10526 return 0;
10528 _ACEOF
10529 rm -f conftest.$ac_objext
10530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10531 (eval $ac_compile) 2>conftest.er1
10532 ac_status=$?
10533 grep -v '^ *+' conftest.er1 >conftest.err
10534 rm -f conftest.er1
10535 cat conftest.err >&5
10536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537 (exit $ac_status); } &&
10538 { ac_try='test -z "$ac_c_werror_flag"
10539 || test ! -s conftest.err'
10540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10541 (eval $ac_try) 2>&5
10542 ac_status=$?
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); }; } &&
10545 { ac_try='test -s conftest.$ac_objext'
10546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10547 (eval $ac_try) 2>&5
10548 ac_status=$?
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); }; }; then
10551 ac_cv_c_volatile=yes
10552 else
10553 echo "$as_me: failed program was:" >&5
10554 sed 's/^/| /' conftest.$ac_ext >&5
10556 ac_cv_c_volatile=no
10558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10560 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
10561 echo "${ECHO_T}$ac_cv_c_volatile" >&6
10562 if test $ac_cv_c_volatile = no; then
10564 cat >>confdefs.h <<\_ACEOF
10565 #define volatile
10566 _ACEOF
10570 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10571 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10572 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10573 echo $ECHO_N "(cached) $ECHO_C" >&6
10574 else
10575 cat >conftest.$ac_ext <<_ACEOF
10576 /* confdefs.h. */
10577 _ACEOF
10578 cat confdefs.h >>conftest.$ac_ext
10579 cat >>conftest.$ac_ext <<_ACEOF
10580 /* end confdefs.h. */
10581 $ac_includes_default
10583 main ()
10585 if ((ptrdiff_t *) 0)
10586 return 0;
10587 if (sizeof (ptrdiff_t))
10588 return 0;
10590 return 0;
10592 _ACEOF
10593 rm -f conftest.$ac_objext
10594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10595 (eval $ac_compile) 2>conftest.er1
10596 ac_status=$?
10597 grep -v '^ *+' conftest.er1 >conftest.err
10598 rm -f conftest.er1
10599 cat conftest.err >&5
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); } &&
10602 { ac_try='test -z "$ac_c_werror_flag"
10603 || test ! -s conftest.err'
10604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10605 (eval $ac_try) 2>&5
10606 ac_status=$?
10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); }; } &&
10609 { ac_try='test -s conftest.$ac_objext'
10610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10611 (eval $ac_try) 2>&5
10612 ac_status=$?
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); }; }; then
10615 ac_cv_type_ptrdiff_t=yes
10616 else
10617 echo "$as_me: failed program was:" >&5
10618 sed 's/^/| /' conftest.$ac_ext >&5
10620 ac_cv_type_ptrdiff_t=no
10622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10624 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10625 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10626 if test $ac_cv_type_ptrdiff_t = yes; then
10628 cat >>confdefs.h <<_ACEOF
10629 #define HAVE_PTRDIFF_T 1
10630 _ACEOF
10636 # Checks for library functions.
10637 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
10638 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
10639 if test "${ac_cv_func_closedir_void+set}" = set; then
10640 echo $ECHO_N "(cached) $ECHO_C" >&6
10641 else
10642 if test "$cross_compiling" = yes; then
10643 ac_cv_func_closedir_void=yes
10644 else
10645 cat >conftest.$ac_ext <<_ACEOF
10646 /* confdefs.h. */
10647 _ACEOF
10648 cat confdefs.h >>conftest.$ac_ext
10649 cat >>conftest.$ac_ext <<_ACEOF
10650 /* end confdefs.h. */
10651 $ac_includes_default
10652 #include <$ac_header_dirent>
10653 #ifndef __cplusplus
10654 int closedir ();
10655 #endif
10658 main ()
10660 exit (closedir (opendir (".")) != 0);
10662 return 0;
10664 _ACEOF
10665 rm -f conftest$ac_exeext
10666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10667 (eval $ac_link) 2>&5
10668 ac_status=$?
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10672 (eval $ac_try) 2>&5
10673 ac_status=$?
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); }; }; then
10676 ac_cv_func_closedir_void=no
10677 else
10678 echo "$as_me: program exited with status $ac_status" >&5
10679 echo "$as_me: failed program was:" >&5
10680 sed 's/^/| /' conftest.$ac_ext >&5
10682 ( exit $ac_status )
10683 ac_cv_func_closedir_void=yes
10685 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10688 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
10689 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
10690 if test $ac_cv_func_closedir_void = yes; then
10692 cat >>confdefs.h <<\_ACEOF
10693 #define CLOSEDIR_VOID 1
10694 _ACEOF
10698 if test $ac_cv_c_compiler_gnu = yes; then
10699 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10700 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10701 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10702 echo $ECHO_N "(cached) $ECHO_C" >&6
10703 else
10704 ac_pattern="Autoconf.*'x'"
10705 cat >conftest.$ac_ext <<_ACEOF
10706 /* confdefs.h. */
10707 _ACEOF
10708 cat confdefs.h >>conftest.$ac_ext
10709 cat >>conftest.$ac_ext <<_ACEOF
10710 /* end confdefs.h. */
10711 #include <sgtty.h>
10712 Autoconf TIOCGETP
10713 _ACEOF
10714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10715 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10716 ac_cv_prog_gcc_traditional=yes
10717 else
10718 ac_cv_prog_gcc_traditional=no
10720 rm -f conftest*
10723 if test $ac_cv_prog_gcc_traditional = no; then
10724 cat >conftest.$ac_ext <<_ACEOF
10725 /* confdefs.h. */
10726 _ACEOF
10727 cat confdefs.h >>conftest.$ac_ext
10728 cat >>conftest.$ac_ext <<_ACEOF
10729 /* end confdefs.h. */
10730 #include <termio.h>
10731 Autoconf TCGETA
10732 _ACEOF
10733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10734 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10735 ac_cv_prog_gcc_traditional=yes
10737 rm -f conftest*
10741 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10742 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10743 if test $ac_cv_prog_gcc_traditional = yes; then
10744 CC="$CC -traditional"
10748 echo "$as_me:$LINENO: checking for pid_t" >&5
10749 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10750 if test "${ac_cv_type_pid_t+set}" = set; then
10751 echo $ECHO_N "(cached) $ECHO_C" >&6
10752 else
10753 cat >conftest.$ac_ext <<_ACEOF
10754 /* confdefs.h. */
10755 _ACEOF
10756 cat confdefs.h >>conftest.$ac_ext
10757 cat >>conftest.$ac_ext <<_ACEOF
10758 /* end confdefs.h. */
10759 $ac_includes_default
10761 main ()
10763 if ((pid_t *) 0)
10764 return 0;
10765 if (sizeof (pid_t))
10766 return 0;
10768 return 0;
10770 _ACEOF
10771 rm -f conftest.$ac_objext
10772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10773 (eval $ac_compile) 2>conftest.er1
10774 ac_status=$?
10775 grep -v '^ *+' conftest.er1 >conftest.err
10776 rm -f conftest.er1
10777 cat conftest.err >&5
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); } &&
10780 { ac_try='test -z "$ac_c_werror_flag"
10781 || test ! -s conftest.err'
10782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10783 (eval $ac_try) 2>&5
10784 ac_status=$?
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); }; } &&
10787 { ac_try='test -s conftest.$ac_objext'
10788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10789 (eval $ac_try) 2>&5
10790 ac_status=$?
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); }; }; then
10793 ac_cv_type_pid_t=yes
10794 else
10795 echo "$as_me: failed program was:" >&5
10796 sed 's/^/| /' conftest.$ac_ext >&5
10798 ac_cv_type_pid_t=no
10800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10802 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10803 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10804 if test $ac_cv_type_pid_t = yes; then
10806 else
10808 cat >>confdefs.h <<_ACEOF
10809 #define pid_t int
10810 _ACEOF
10816 for ac_header in unistd.h vfork.h
10818 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10819 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10820 echo "$as_me:$LINENO: checking for $ac_header" >&5
10821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10823 echo $ECHO_N "(cached) $ECHO_C" >&6
10825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10826 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10827 else
10828 # Is the header compilable?
10829 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10830 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10831 cat >conftest.$ac_ext <<_ACEOF
10832 /* confdefs.h. */
10833 _ACEOF
10834 cat confdefs.h >>conftest.$ac_ext
10835 cat >>conftest.$ac_ext <<_ACEOF
10836 /* end confdefs.h. */
10837 $ac_includes_default
10838 #include <$ac_header>
10839 _ACEOF
10840 rm -f conftest.$ac_objext
10841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10842 (eval $ac_compile) 2>conftest.er1
10843 ac_status=$?
10844 grep -v '^ *+' conftest.er1 >conftest.err
10845 rm -f conftest.er1
10846 cat conftest.err >&5
10847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848 (exit $ac_status); } &&
10849 { ac_try='test -z "$ac_c_werror_flag"
10850 || test ! -s conftest.err'
10851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10852 (eval $ac_try) 2>&5
10853 ac_status=$?
10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); }; } &&
10856 { ac_try='test -s conftest.$ac_objext'
10857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10858 (eval $ac_try) 2>&5
10859 ac_status=$?
10860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861 (exit $ac_status); }; }; then
10862 ac_header_compiler=yes
10863 else
10864 echo "$as_me: failed program was:" >&5
10865 sed 's/^/| /' conftest.$ac_ext >&5
10867 ac_header_compiler=no
10869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10870 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10871 echo "${ECHO_T}$ac_header_compiler" >&6
10873 # Is the header present?
10874 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10875 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10876 cat >conftest.$ac_ext <<_ACEOF
10877 /* confdefs.h. */
10878 _ACEOF
10879 cat confdefs.h >>conftest.$ac_ext
10880 cat >>conftest.$ac_ext <<_ACEOF
10881 /* end confdefs.h. */
10882 #include <$ac_header>
10883 _ACEOF
10884 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10885 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10886 ac_status=$?
10887 grep -v '^ *+' conftest.er1 >conftest.err
10888 rm -f conftest.er1
10889 cat conftest.err >&5
10890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891 (exit $ac_status); } >/dev/null; then
10892 if test -s conftest.err; then
10893 ac_cpp_err=$ac_c_preproc_warn_flag
10894 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10895 else
10896 ac_cpp_err=
10898 else
10899 ac_cpp_err=yes
10901 if test -z "$ac_cpp_err"; then
10902 ac_header_preproc=yes
10903 else
10904 echo "$as_me: failed program was:" >&5
10905 sed 's/^/| /' conftest.$ac_ext >&5
10907 ac_header_preproc=no
10909 rm -f conftest.err conftest.$ac_ext
10910 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10911 echo "${ECHO_T}$ac_header_preproc" >&6
10913 # So? What about this header?
10914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10915 yes:no: )
10916 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10917 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10919 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10920 ac_header_preproc=yes
10922 no:yes:* )
10923 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10924 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10925 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10926 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10927 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10928 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10929 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10930 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10932 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10933 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10934 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10936 cat <<\_ASBOX
10937 ## ------------------------------ ##
10938 ## Report this to admin@amule.org ##
10939 ## ------------------------------ ##
10940 _ASBOX
10942 sed "s/^/$as_me: WARNING: /" >&2
10944 esac
10945 echo "$as_me:$LINENO: checking for $ac_header" >&5
10946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10947 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10948 echo $ECHO_N "(cached) $ECHO_C" >&6
10949 else
10950 eval "$as_ac_Header=\$ac_header_preproc"
10952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10953 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10956 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10957 cat >>confdefs.h <<_ACEOF
10958 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10959 _ACEOF
10963 done
10967 for ac_func in fork vfork
10969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10970 echo "$as_me:$LINENO: checking for $ac_func" >&5
10971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10972 if eval "test \"\${$as_ac_var+set}\" = set"; then
10973 echo $ECHO_N "(cached) $ECHO_C" >&6
10974 else
10975 cat >conftest.$ac_ext <<_ACEOF
10976 /* confdefs.h. */
10977 _ACEOF
10978 cat confdefs.h >>conftest.$ac_ext
10979 cat >>conftest.$ac_ext <<_ACEOF
10980 /* end confdefs.h. */
10981 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10983 #define $ac_func innocuous_$ac_func
10985 /* System header to define __stub macros and hopefully few prototypes,
10986 which can conflict with char $ac_func (); below.
10987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10988 <limits.h> exists even on freestanding compilers. */
10990 #ifdef __STDC__
10991 # include <limits.h>
10992 #else
10993 # include <assert.h>
10994 #endif
10996 #undef $ac_func
10998 /* Override any gcc2 internal prototype to avoid an error. */
10999 #ifdef __cplusplus
11000 extern "C"
11002 #endif
11003 /* We use char because int might match the return type of a gcc2
11004 builtin and then its argument prototype would still apply. */
11005 char $ac_func ();
11006 /* The GNU C library defines this for functions which it implements
11007 to always fail with ENOSYS. Some functions are actually named
11008 something starting with __ and the normal name is an alias. */
11009 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11010 choke me
11011 #else
11012 char (*f) () = $ac_func;
11013 #endif
11014 #ifdef __cplusplus
11016 #endif
11019 main ()
11021 return f != $ac_func;
11023 return 0;
11025 _ACEOF
11026 rm -f conftest.$ac_objext conftest$ac_exeext
11027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11028 (eval $ac_link) 2>conftest.er1
11029 ac_status=$?
11030 grep -v '^ *+' conftest.er1 >conftest.err
11031 rm -f conftest.er1
11032 cat conftest.err >&5
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); } &&
11035 { ac_try='test -z "$ac_c_werror_flag"
11036 || test ! -s conftest.err'
11037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11038 (eval $ac_try) 2>&5
11039 ac_status=$?
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); }; } &&
11042 { ac_try='test -s conftest$ac_exeext'
11043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11044 (eval $ac_try) 2>&5
11045 ac_status=$?
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); }; }; then
11048 eval "$as_ac_var=yes"
11049 else
11050 echo "$as_me: failed program was:" >&5
11051 sed 's/^/| /' conftest.$ac_ext >&5
11053 eval "$as_ac_var=no"
11055 rm -f conftest.err conftest.$ac_objext \
11056 conftest$ac_exeext conftest.$ac_ext
11058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11059 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11060 if test `eval echo '${'$as_ac_var'}'` = yes; then
11061 cat >>confdefs.h <<_ACEOF
11062 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11063 _ACEOF
11066 done
11068 if test "x$ac_cv_func_fork" = xyes; then
11069 echo "$as_me:$LINENO: checking for working fork" >&5
11070 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
11071 if test "${ac_cv_func_fork_works+set}" = set; then
11072 echo $ECHO_N "(cached) $ECHO_C" >&6
11073 else
11074 if test "$cross_compiling" = yes; then
11075 ac_cv_func_fork_works=cross
11076 else
11077 cat >conftest.$ac_ext <<_ACEOF
11078 /* By Ruediger Kuhlmann. */
11079 #include <sys/types.h>
11080 #if HAVE_UNISTD_H
11081 # include <unistd.h>
11082 #endif
11083 /* Some systems only have a dummy stub for fork() */
11084 int main ()
11086 if (fork() < 0)
11087 exit (1);
11088 exit (0);
11090 _ACEOF
11091 rm -f conftest$ac_exeext
11092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11093 (eval $ac_link) 2>&5
11094 ac_status=$?
11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11098 (eval $ac_try) 2>&5
11099 ac_status=$?
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); }; }; then
11102 ac_cv_func_fork_works=yes
11103 else
11104 echo "$as_me: program exited with status $ac_status" >&5
11105 echo "$as_me: failed program was:" >&5
11106 sed 's/^/| /' conftest.$ac_ext >&5
11108 ( exit $ac_status )
11109 ac_cv_func_fork_works=no
11111 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11114 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11115 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11117 else
11118 ac_cv_func_fork_works=$ac_cv_func_fork
11120 if test "x$ac_cv_func_fork_works" = xcross; then
11121 case $host in
11122 *-*-amigaos* | *-*-msdosdjgpp*)
11123 # Override, as these systems have only a dummy fork() stub
11124 ac_cv_func_fork_works=no
11127 ac_cv_func_fork_works=yes
11129 esac
11130 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11131 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11133 ac_cv_func_vfork_works=$ac_cv_func_vfork
11134 if test "x$ac_cv_func_vfork" = xyes; then
11135 echo "$as_me:$LINENO: checking for working vfork" >&5
11136 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11137 if test "${ac_cv_func_vfork_works+set}" = set; then
11138 echo $ECHO_N "(cached) $ECHO_C" >&6
11139 else
11140 if test "$cross_compiling" = yes; then
11141 ac_cv_func_vfork_works=cross
11142 else
11143 cat >conftest.$ac_ext <<_ACEOF
11144 /* confdefs.h. */
11145 _ACEOF
11146 cat confdefs.h >>conftest.$ac_ext
11147 cat >>conftest.$ac_ext <<_ACEOF
11148 /* end confdefs.h. */
11149 /* Thanks to Paul Eggert for this test. */
11150 #include <stdio.h>
11151 #include <stdlib.h>
11152 #include <sys/types.h>
11153 #include <sys/stat.h>
11154 #include <sys/wait.h>
11155 #if HAVE_UNISTD_H
11156 # include <unistd.h>
11157 #endif
11158 #if HAVE_VFORK_H
11159 # include <vfork.h>
11160 #endif
11161 /* On some sparc systems, changes by the child to local and incoming
11162 argument registers are propagated back to the parent. The compiler
11163 is told about this with #include <vfork.h>, but some compilers
11164 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11165 static variable whose address is put into a register that is
11166 clobbered by the vfork. */
11167 static void
11168 #ifdef __cplusplus
11169 sparc_address_test (int arg)
11170 # else
11171 sparc_address_test (arg) int arg;
11172 #endif
11174 static pid_t child;
11175 if (!child) {
11176 child = vfork ();
11177 if (child < 0) {
11178 perror ("vfork");
11179 _exit(2);
11181 if (!child) {
11182 arg = getpid();
11183 write(-1, "", 0);
11184 _exit (arg);
11190 main ()
11192 pid_t parent = getpid ();
11193 pid_t child;
11195 sparc_address_test (0);
11197 child = vfork ();
11199 if (child == 0) {
11200 /* Here is another test for sparc vfork register problems. This
11201 test uses lots of local variables, at least as many local
11202 variables as main has allocated so far including compiler
11203 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11204 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11205 reuse the register of parent for one of the local variables,
11206 since it will think that parent can't possibly be used any more
11207 in this routine. Assigning to the local variable will thus
11208 munge parent in the parent process. */
11209 pid_t
11210 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11211 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11212 /* Convince the compiler that p..p7 are live; otherwise, it might
11213 use the same hardware register for all 8 local variables. */
11214 if (p != p1 || p != p2 || p != p3 || p != p4
11215 || p != p5 || p != p6 || p != p7)
11216 _exit(1);
11218 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11219 from child file descriptors. If the child closes a descriptor
11220 before it execs or exits, this munges the parent's descriptor
11221 as well. Test for this by closing stdout in the child. */
11222 _exit(close(fileno(stdout)) != 0);
11223 } else {
11224 int status;
11225 struct stat st;
11227 while (wait(&status) != child)
11229 exit(
11230 /* Was there some problem with vforking? */
11231 child < 0
11233 /* Did the child fail? (This shouldn't happen.) */
11234 || status
11236 /* Did the vfork/compiler bug occur? */
11237 || parent != getpid()
11239 /* Did the file descriptor bug occur? */
11240 || fstat(fileno(stdout), &st) != 0
11244 _ACEOF
11245 rm -f conftest$ac_exeext
11246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11247 (eval $ac_link) 2>&5
11248 ac_status=$?
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11252 (eval $ac_try) 2>&5
11253 ac_status=$?
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); }; }; then
11256 ac_cv_func_vfork_works=yes
11257 else
11258 echo "$as_me: program exited with status $ac_status" >&5
11259 echo "$as_me: failed program was:" >&5
11260 sed 's/^/| /' conftest.$ac_ext >&5
11262 ( exit $ac_status )
11263 ac_cv_func_vfork_works=no
11265 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11268 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11269 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11272 if test "x$ac_cv_func_fork_works" = xcross; then
11273 ac_cv_func_vfork_works=$ac_cv_func_vfork
11274 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11275 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11278 if test "x$ac_cv_func_vfork_works" = xyes; then
11280 cat >>confdefs.h <<\_ACEOF
11281 #define HAVE_WORKING_VFORK 1
11282 _ACEOF
11284 else
11286 cat >>confdefs.h <<\_ACEOF
11287 #define vfork fork
11288 _ACEOF
11291 if test "x$ac_cv_func_fork_works" = xyes; then
11293 cat >>confdefs.h <<\_ACEOF
11294 #define HAVE_WORKING_FORK 1
11295 _ACEOF
11299 if test x$SYS != xwin32; then
11301 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
11302 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
11303 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
11304 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
11305 echo $ECHO_N "(cached) $ECHO_C" >&6
11306 else
11307 ac_check_lib_save_LIBS=$LIBS
11308 LIBS="-lsun $LIBS"
11309 cat >conftest.$ac_ext <<_ACEOF
11310 /* confdefs.h. */
11311 _ACEOF
11312 cat confdefs.h >>conftest.$ac_ext
11313 cat >>conftest.$ac_ext <<_ACEOF
11314 /* end confdefs.h. */
11316 /* Override any gcc2 internal prototype to avoid an error. */
11317 #ifdef __cplusplus
11318 extern "C"
11319 #endif
11320 /* We use char because int might match the return type of a gcc2
11321 builtin and then its argument prototype would still apply. */
11322 char getmntent ();
11324 main ()
11326 getmntent ();
11328 return 0;
11330 _ACEOF
11331 rm -f conftest.$ac_objext conftest$ac_exeext
11332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11333 (eval $ac_link) 2>conftest.er1
11334 ac_status=$?
11335 grep -v '^ *+' conftest.er1 >conftest.err
11336 rm -f conftest.er1
11337 cat conftest.err >&5
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); } &&
11340 { ac_try='test -z "$ac_c_werror_flag"
11341 || test ! -s conftest.err'
11342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11343 (eval $ac_try) 2>&5
11344 ac_status=$?
11345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346 (exit $ac_status); }; } &&
11347 { ac_try='test -s conftest$ac_exeext'
11348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11349 (eval $ac_try) 2>&5
11350 ac_status=$?
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); }; }; then
11353 ac_cv_lib_sun_getmntent=yes
11354 else
11355 echo "$as_me: failed program was:" >&5
11356 sed 's/^/| /' conftest.$ac_ext >&5
11358 ac_cv_lib_sun_getmntent=no
11360 rm -f conftest.err conftest.$ac_objext \
11361 conftest$ac_exeext conftest.$ac_ext
11362 LIBS=$ac_check_lib_save_LIBS
11364 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
11365 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
11366 if test $ac_cv_lib_sun_getmntent = yes; then
11367 LIBS="-lsun $LIBS"
11368 else
11369 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
11370 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
11371 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
11372 echo $ECHO_N "(cached) $ECHO_C" >&6
11373 else
11374 ac_check_lib_save_LIBS=$LIBS
11375 LIBS="-lseq $LIBS"
11376 cat >conftest.$ac_ext <<_ACEOF
11377 /* confdefs.h. */
11378 _ACEOF
11379 cat confdefs.h >>conftest.$ac_ext
11380 cat >>conftest.$ac_ext <<_ACEOF
11381 /* end confdefs.h. */
11383 /* Override any gcc2 internal prototype to avoid an error. */
11384 #ifdef __cplusplus
11385 extern "C"
11386 #endif
11387 /* We use char because int might match the return type of a gcc2
11388 builtin and then its argument prototype would still apply. */
11389 char getmntent ();
11391 main ()
11393 getmntent ();
11395 return 0;
11397 _ACEOF
11398 rm -f conftest.$ac_objext conftest$ac_exeext
11399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11400 (eval $ac_link) 2>conftest.er1
11401 ac_status=$?
11402 grep -v '^ *+' conftest.er1 >conftest.err
11403 rm -f conftest.er1
11404 cat conftest.err >&5
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); } &&
11407 { ac_try='test -z "$ac_c_werror_flag"
11408 || test ! -s conftest.err'
11409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11410 (eval $ac_try) 2>&5
11411 ac_status=$?
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); }; } &&
11414 { ac_try='test -s conftest$ac_exeext'
11415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11416 (eval $ac_try) 2>&5
11417 ac_status=$?
11418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419 (exit $ac_status); }; }; then
11420 ac_cv_lib_seq_getmntent=yes
11421 else
11422 echo "$as_me: failed program was:" >&5
11423 sed 's/^/| /' conftest.$ac_ext >&5
11425 ac_cv_lib_seq_getmntent=no
11427 rm -f conftest.err conftest.$ac_objext \
11428 conftest$ac_exeext conftest.$ac_ext
11429 LIBS=$ac_check_lib_save_LIBS
11431 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
11432 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
11433 if test $ac_cv_lib_seq_getmntent = yes; then
11434 LIBS="-lseq $LIBS"
11435 else
11436 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
11437 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
11438 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
11439 echo $ECHO_N "(cached) $ECHO_C" >&6
11440 else
11441 ac_check_lib_save_LIBS=$LIBS
11442 LIBS="-lgen $LIBS"
11443 cat >conftest.$ac_ext <<_ACEOF
11444 /* confdefs.h. */
11445 _ACEOF
11446 cat confdefs.h >>conftest.$ac_ext
11447 cat >>conftest.$ac_ext <<_ACEOF
11448 /* end confdefs.h. */
11450 /* Override any gcc2 internal prototype to avoid an error. */
11451 #ifdef __cplusplus
11452 extern "C"
11453 #endif
11454 /* We use char because int might match the return type of a gcc2
11455 builtin and then its argument prototype would still apply. */
11456 char getmntent ();
11458 main ()
11460 getmntent ();
11462 return 0;
11464 _ACEOF
11465 rm -f conftest.$ac_objext conftest$ac_exeext
11466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11467 (eval $ac_link) 2>conftest.er1
11468 ac_status=$?
11469 grep -v '^ *+' conftest.er1 >conftest.err
11470 rm -f conftest.er1
11471 cat conftest.err >&5
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); } &&
11474 { ac_try='test -z "$ac_c_werror_flag"
11475 || test ! -s conftest.err'
11476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11477 (eval $ac_try) 2>&5
11478 ac_status=$?
11479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480 (exit $ac_status); }; } &&
11481 { ac_try='test -s conftest$ac_exeext'
11482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11483 (eval $ac_try) 2>&5
11484 ac_status=$?
11485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486 (exit $ac_status); }; }; then
11487 ac_cv_lib_gen_getmntent=yes
11488 else
11489 echo "$as_me: failed program was:" >&5
11490 sed 's/^/| /' conftest.$ac_ext >&5
11492 ac_cv_lib_gen_getmntent=no
11494 rm -f conftest.err conftest.$ac_objext \
11495 conftest$ac_exeext conftest.$ac_ext
11496 LIBS=$ac_check_lib_save_LIBS
11498 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
11499 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
11500 if test $ac_cv_lib_gen_getmntent = yes; then
11501 LIBS="-lgen $LIBS"
11509 for ac_func in getmntent
11511 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11512 echo "$as_me:$LINENO: checking for $ac_func" >&5
11513 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11514 if eval "test \"\${$as_ac_var+set}\" = set"; then
11515 echo $ECHO_N "(cached) $ECHO_C" >&6
11516 else
11517 cat >conftest.$ac_ext <<_ACEOF
11518 /* confdefs.h. */
11519 _ACEOF
11520 cat confdefs.h >>conftest.$ac_ext
11521 cat >>conftest.$ac_ext <<_ACEOF
11522 /* end confdefs.h. */
11523 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11525 #define $ac_func innocuous_$ac_func
11527 /* System header to define __stub macros and hopefully few prototypes,
11528 which can conflict with char $ac_func (); below.
11529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11530 <limits.h> exists even on freestanding compilers. */
11532 #ifdef __STDC__
11533 # include <limits.h>
11534 #else
11535 # include <assert.h>
11536 #endif
11538 #undef $ac_func
11540 /* Override any gcc2 internal prototype to avoid an error. */
11541 #ifdef __cplusplus
11542 extern "C"
11544 #endif
11545 /* We use char because int might match the return type of a gcc2
11546 builtin and then its argument prototype would still apply. */
11547 char $ac_func ();
11548 /* The GNU C library defines this for functions which it implements
11549 to always fail with ENOSYS. Some functions are actually named
11550 something starting with __ and the normal name is an alias. */
11551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11552 choke me
11553 #else
11554 char (*f) () = $ac_func;
11555 #endif
11556 #ifdef __cplusplus
11558 #endif
11561 main ()
11563 return f != $ac_func;
11565 return 0;
11567 _ACEOF
11568 rm -f conftest.$ac_objext conftest$ac_exeext
11569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11570 (eval $ac_link) 2>conftest.er1
11571 ac_status=$?
11572 grep -v '^ *+' conftest.er1 >conftest.err
11573 rm -f conftest.er1
11574 cat conftest.err >&5
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); } &&
11577 { ac_try='test -z "$ac_c_werror_flag"
11578 || test ! -s conftest.err'
11579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11580 (eval $ac_try) 2>&5
11581 ac_status=$?
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); }; } &&
11584 { ac_try='test -s conftest$ac_exeext'
11585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11586 (eval $ac_try) 2>&5
11587 ac_status=$?
11588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589 (exit $ac_status); }; }; then
11590 eval "$as_ac_var=yes"
11591 else
11592 echo "$as_me: failed program was:" >&5
11593 sed 's/^/| /' conftest.$ac_ext >&5
11595 eval "$as_ac_var=no"
11597 rm -f conftest.err conftest.$ac_objext \
11598 conftest$ac_exeext conftest.$ac_ext
11600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11601 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11602 if test `eval echo '${'$as_ac_var'}'` = yes; then
11603 cat >>confdefs.h <<_ACEOF
11604 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11605 _ACEOF
11608 done
11611 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
11612 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
11613 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
11614 echo $ECHO_N "(cached) $ECHO_C" >&6
11615 else
11616 rm -f conftest.sym conftest.file
11617 echo >conftest.file
11618 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
11619 if test "$cross_compiling" = yes; then
11620 ac_cv_func_lstat_dereferences_slashed_symlink=no
11621 else
11622 cat >conftest.$ac_ext <<_ACEOF
11623 /* confdefs.h. */
11624 _ACEOF
11625 cat confdefs.h >>conftest.$ac_ext
11626 cat >>conftest.$ac_ext <<_ACEOF
11627 /* end confdefs.h. */
11628 $ac_includes_default
11630 main ()
11632 struct stat sbuf;
11633 /* Linux will dereference the symlink and fail.
11634 That is better in the sense that it means we will not
11635 have to compile and use the lstat wrapper. */
11636 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
11638 return 0;
11640 _ACEOF
11641 rm -f conftest$ac_exeext
11642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11643 (eval $ac_link) 2>&5
11644 ac_status=$?
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11648 (eval $ac_try) 2>&5
11649 ac_status=$?
11650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); }; }; then
11652 ac_cv_func_lstat_dereferences_slashed_symlink=yes
11653 else
11654 echo "$as_me: program exited with status $ac_status" >&5
11655 echo "$as_me: failed program was:" >&5
11656 sed 's/^/| /' conftest.$ac_ext >&5
11658 ( exit $ac_status )
11659 ac_cv_func_lstat_dereferences_slashed_symlink=no
11661 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11663 else
11664 # If the `ln -s' command failed, then we probably don't even
11665 # have an lstat function.
11666 ac_cv_func_lstat_dereferences_slashed_symlink=no
11668 rm -f conftest.sym conftest.file
11671 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11672 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
11674 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11676 cat >>confdefs.h <<_ACEOF
11677 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11678 _ACEOF
11681 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
11682 case $LIBOBJS in
11683 "lstat.$ac_objext" | \
11684 *" lstat.$ac_objext" | \
11685 "lstat.$ac_objext "* | \
11686 *" lstat.$ac_objext "* ) ;;
11687 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
11688 esac
11692 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
11693 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
11694 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
11695 echo $ECHO_N "(cached) $ECHO_C" >&6
11696 else
11697 if test "$cross_compiling" = yes; then
11698 ac_cv_func_lstat_empty_string_bug=yes
11699 else
11700 cat >conftest.$ac_ext <<_ACEOF
11701 /* confdefs.h. */
11702 _ACEOF
11703 cat confdefs.h >>conftest.$ac_ext
11704 cat >>conftest.$ac_ext <<_ACEOF
11705 /* end confdefs.h. */
11706 $ac_includes_default
11708 main ()
11710 struct stat sbuf;
11711 exit (lstat ("", &sbuf) ? 1 : 0);
11713 return 0;
11715 _ACEOF
11716 rm -f conftest$ac_exeext
11717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11718 (eval $ac_link) 2>&5
11719 ac_status=$?
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11723 (eval $ac_try) 2>&5
11724 ac_status=$?
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); }; }; then
11727 ac_cv_func_lstat_empty_string_bug=yes
11728 else
11729 echo "$as_me: program exited with status $ac_status" >&5
11730 echo "$as_me: failed program was:" >&5
11731 sed 's/^/| /' conftest.$ac_ext >&5
11733 ( exit $ac_status )
11734 ac_cv_func_lstat_empty_string_bug=no
11736 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11739 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
11740 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
11741 if test $ac_cv_func_lstat_empty_string_bug = yes; then
11742 case $LIBOBJS in
11743 "lstat.$ac_objext" | \
11744 *" lstat.$ac_objext" | \
11745 "lstat.$ac_objext "* | \
11746 *" lstat.$ac_objext "* ) ;;
11747 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
11748 esac
11751 cat >>confdefs.h <<_ACEOF
11752 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
11753 _ACEOF
11757 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
11758 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
11759 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
11760 echo $ECHO_N "(cached) $ECHO_C" >&6
11761 else
11762 rm -f conftest.sym conftest.file
11763 echo >conftest.file
11764 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
11765 if test "$cross_compiling" = yes; then
11766 ac_cv_func_lstat_dereferences_slashed_symlink=no
11767 else
11768 cat >conftest.$ac_ext <<_ACEOF
11769 /* confdefs.h. */
11770 _ACEOF
11771 cat confdefs.h >>conftest.$ac_ext
11772 cat >>conftest.$ac_ext <<_ACEOF
11773 /* end confdefs.h. */
11774 $ac_includes_default
11776 main ()
11778 struct stat sbuf;
11779 /* Linux will dereference the symlink and fail.
11780 That is better in the sense that it means we will not
11781 have to compile and use the lstat wrapper. */
11782 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
11784 return 0;
11786 _ACEOF
11787 rm -f conftest$ac_exeext
11788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11789 (eval $ac_link) 2>&5
11790 ac_status=$?
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11794 (eval $ac_try) 2>&5
11795 ac_status=$?
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); }; }; then
11798 ac_cv_func_lstat_dereferences_slashed_symlink=yes
11799 else
11800 echo "$as_me: program exited with status $ac_status" >&5
11801 echo "$as_me: failed program was:" >&5
11802 sed 's/^/| /' conftest.$ac_ext >&5
11804 ( exit $ac_status )
11805 ac_cv_func_lstat_dereferences_slashed_symlink=no
11807 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11809 else
11810 # If the `ln -s' command failed, then we probably don't even
11811 # have an lstat function.
11812 ac_cv_func_lstat_dereferences_slashed_symlink=no
11814 rm -f conftest.sym conftest.file
11817 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11818 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
11820 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11822 cat >>confdefs.h <<_ACEOF
11823 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11824 _ACEOF
11827 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
11828 case $LIBOBJS in
11829 "lstat.$ac_objext" | \
11830 *" lstat.$ac_objext" | \
11831 "lstat.$ac_objext "* | \
11832 *" lstat.$ac_objext "* ) ;;
11833 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
11834 esac
11841 echo "$as_me:$LINENO: checking for working memcmp" >&5
11842 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
11843 if test "${ac_cv_func_memcmp_working+set}" = set; then
11844 echo $ECHO_N "(cached) $ECHO_C" >&6
11845 else
11846 if test "$cross_compiling" = yes; then
11847 ac_cv_func_memcmp_working=no
11848 else
11849 cat >conftest.$ac_ext <<_ACEOF
11850 /* confdefs.h. */
11851 _ACEOF
11852 cat confdefs.h >>conftest.$ac_ext
11853 cat >>conftest.$ac_ext <<_ACEOF
11854 /* end confdefs.h. */
11855 $ac_includes_default
11857 main ()
11860 /* Some versions of memcmp are not 8-bit clean. */
11861 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
11862 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11863 exit (1);
11865 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11866 or more and with at least one buffer not starting on a 4-byte boundary.
11867 William Lewis provided this test program. */
11869 char foo[21];
11870 char bar[21];
11871 int i;
11872 for (i = 0; i < 4; i++)
11874 char *a = foo + i;
11875 char *b = bar + i;
11876 strcpy (a, "--------01111111");
11877 strcpy (b, "--------10000000");
11878 if (memcmp (a, b, 16) >= 0)
11879 exit (1);
11881 exit (0);
11885 return 0;
11887 _ACEOF
11888 rm -f conftest$ac_exeext
11889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11890 (eval $ac_link) 2>&5
11891 ac_status=$?
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895 (eval $ac_try) 2>&5
11896 ac_status=$?
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); }; }; then
11899 ac_cv_func_memcmp_working=yes
11900 else
11901 echo "$as_me: program exited with status $ac_status" >&5
11902 echo "$as_me: failed program was:" >&5
11903 sed 's/^/| /' conftest.$ac_ext >&5
11905 ( exit $ac_status )
11906 ac_cv_func_memcmp_working=no
11908 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11911 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
11912 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
11913 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
11914 "memcmp.$ac_objext" | \
11915 *" memcmp.$ac_objext" | \
11916 "memcmp.$ac_objext "* | \
11917 *" memcmp.$ac_objext "* ) ;;
11918 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
11919 esac
11924 for ac_header in sys/select.h sys/socket.h
11926 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11928 echo "$as_me:$LINENO: checking for $ac_header" >&5
11929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11931 echo $ECHO_N "(cached) $ECHO_C" >&6
11933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11934 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11935 else
11936 # Is the header compilable?
11937 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11938 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11939 cat >conftest.$ac_ext <<_ACEOF
11940 /* confdefs.h. */
11941 _ACEOF
11942 cat confdefs.h >>conftest.$ac_ext
11943 cat >>conftest.$ac_ext <<_ACEOF
11944 /* end confdefs.h. */
11945 $ac_includes_default
11946 #include <$ac_header>
11947 _ACEOF
11948 rm -f conftest.$ac_objext
11949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11950 (eval $ac_compile) 2>conftest.er1
11951 ac_status=$?
11952 grep -v '^ *+' conftest.er1 >conftest.err
11953 rm -f conftest.er1
11954 cat conftest.err >&5
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); } &&
11957 { ac_try='test -z "$ac_c_werror_flag"
11958 || test ! -s conftest.err'
11959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11960 (eval $ac_try) 2>&5
11961 ac_status=$?
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); }; } &&
11964 { ac_try='test -s conftest.$ac_objext'
11965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11966 (eval $ac_try) 2>&5
11967 ac_status=$?
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); }; }; then
11970 ac_header_compiler=yes
11971 else
11972 echo "$as_me: failed program was:" >&5
11973 sed 's/^/| /' conftest.$ac_ext >&5
11975 ac_header_compiler=no
11977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11978 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11979 echo "${ECHO_T}$ac_header_compiler" >&6
11981 # Is the header present?
11982 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11983 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11984 cat >conftest.$ac_ext <<_ACEOF
11985 /* confdefs.h. */
11986 _ACEOF
11987 cat confdefs.h >>conftest.$ac_ext
11988 cat >>conftest.$ac_ext <<_ACEOF
11989 /* end confdefs.h. */
11990 #include <$ac_header>
11991 _ACEOF
11992 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11993 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11994 ac_status=$?
11995 grep -v '^ *+' conftest.er1 >conftest.err
11996 rm -f conftest.er1
11997 cat conftest.err >&5
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); } >/dev/null; then
12000 if test -s conftest.err; then
12001 ac_cpp_err=$ac_c_preproc_warn_flag
12002 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12003 else
12004 ac_cpp_err=
12006 else
12007 ac_cpp_err=yes
12009 if test -z "$ac_cpp_err"; then
12010 ac_header_preproc=yes
12011 else
12012 echo "$as_me: failed program was:" >&5
12013 sed 's/^/| /' conftest.$ac_ext >&5
12015 ac_header_preproc=no
12017 rm -f conftest.err conftest.$ac_ext
12018 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12019 echo "${ECHO_T}$ac_header_preproc" >&6
12021 # So? What about this header?
12022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12023 yes:no: )
12024 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12025 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12027 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12028 ac_header_preproc=yes
12030 no:yes:* )
12031 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12032 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12033 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12034 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12035 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12036 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12037 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12038 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12040 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12041 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12042 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12044 cat <<\_ASBOX
12045 ## ------------------------------ ##
12046 ## Report this to admin@amule.org ##
12047 ## ------------------------------ ##
12048 _ASBOX
12050 sed "s/^/$as_me: WARNING: /" >&2
12052 esac
12053 echo "$as_me:$LINENO: checking for $ac_header" >&5
12054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12056 echo $ECHO_N "(cached) $ECHO_C" >&6
12057 else
12058 eval "$as_ac_Header=\$ac_header_preproc"
12060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12061 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12065 cat >>confdefs.h <<_ACEOF
12066 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12067 _ACEOF
12071 done
12073 echo "$as_me:$LINENO: checking types of arguments for select" >&5
12074 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
12075 if test "${ac_cv_func_select_args+set}" = set; then
12076 echo $ECHO_N "(cached) $ECHO_C" >&6
12077 else
12078 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
12079 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
12080 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
12081 cat >conftest.$ac_ext <<_ACEOF
12082 /* confdefs.h. */
12083 _ACEOF
12084 cat confdefs.h >>conftest.$ac_ext
12085 cat >>conftest.$ac_ext <<_ACEOF
12086 /* end confdefs.h. */
12087 $ac_includes_default
12088 #if HAVE_SYS_SELECT_H
12089 # include <sys/select.h>
12090 #endif
12091 #if HAVE_SYS_SOCKET_H
12092 # include <sys/socket.h>
12093 #endif
12096 main ()
12098 extern int select ($ac_arg1,
12099 $ac_arg234, $ac_arg234, $ac_arg234,
12100 $ac_arg5);
12102 return 0;
12104 _ACEOF
12105 rm -f conftest.$ac_objext
12106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12107 (eval $ac_compile) 2>conftest.er1
12108 ac_status=$?
12109 grep -v '^ *+' conftest.er1 >conftest.err
12110 rm -f conftest.er1
12111 cat conftest.err >&5
12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); } &&
12114 { ac_try='test -z "$ac_c_werror_flag"
12115 || test ! -s conftest.err'
12116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12117 (eval $ac_try) 2>&5
12118 ac_status=$?
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); }; } &&
12121 { ac_try='test -s conftest.$ac_objext'
12122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12123 (eval $ac_try) 2>&5
12124 ac_status=$?
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); }; }; then
12127 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12128 else
12129 echo "$as_me: failed program was:" >&5
12130 sed 's/^/| /' conftest.$ac_ext >&5
12133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12134 done
12135 done
12136 done
12137 # Provide a safe default value.
12138 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
12141 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
12142 echo "${ECHO_T}$ac_cv_func_select_args" >&6
12143 ac_save_IFS=$IFS; IFS=','
12144 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12145 IFS=$ac_save_IFS
12146 shift
12148 cat >>confdefs.h <<_ACEOF
12149 #define SELECT_TYPE_ARG1 $1
12150 _ACEOF
12153 cat >>confdefs.h <<_ACEOF
12154 #define SELECT_TYPE_ARG234 ($2)
12155 _ACEOF
12158 cat >>confdefs.h <<_ACEOF
12159 #define SELECT_TYPE_ARG5 ($3)
12160 _ACEOF
12162 rm -f conftest*
12164 echo "$as_me:$LINENO: checking for function prototypes" >&5
12165 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
12166 if test "$ac_cv_prog_cc_stdc" != no; then
12167 echo "$as_me:$LINENO: result: yes" >&5
12168 echo "${ECHO_T}yes" >&6
12170 cat >>confdefs.h <<\_ACEOF
12171 #define PROTOTYPES 1
12172 _ACEOF
12175 cat >>confdefs.h <<\_ACEOF
12176 #define __PROTOTYPES 1
12177 _ACEOF
12179 else
12180 echo "$as_me:$LINENO: result: no" >&5
12181 echo "${ECHO_T}no" >&6
12184 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
12185 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
12186 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
12187 echo $ECHO_N "(cached) $ECHO_C" >&6
12188 else
12189 ac_cv_func_setvbuf_reversed=no
12190 cat >conftest.$ac_ext <<_ACEOF
12191 /* confdefs.h. */
12192 _ACEOF
12193 cat confdefs.h >>conftest.$ac_ext
12194 cat >>conftest.$ac_ext <<_ACEOF
12195 /* end confdefs.h. */
12196 #include <stdio.h>
12197 # if PROTOTYPES
12198 int (setvbuf) (FILE *, int, char *, size_t);
12199 # endif
12201 main ()
12203 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
12205 return 0;
12207 _ACEOF
12208 rm -f conftest.$ac_objext conftest$ac_exeext
12209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12210 (eval $ac_link) 2>conftest.er1
12211 ac_status=$?
12212 grep -v '^ *+' conftest.er1 >conftest.err
12213 rm -f conftest.er1
12214 cat conftest.err >&5
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); } &&
12217 { ac_try='test -z "$ac_c_werror_flag"
12218 || test ! -s conftest.err'
12219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12220 (eval $ac_try) 2>&5
12221 ac_status=$?
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); }; } &&
12224 { ac_try='test -s conftest$ac_exeext'
12225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12226 (eval $ac_try) 2>&5
12227 ac_status=$?
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); }; }; then
12230 cat >conftest.$ac_ext <<_ACEOF
12231 /* confdefs.h. */
12232 _ACEOF
12233 cat confdefs.h >>conftest.$ac_ext
12234 cat >>conftest.$ac_ext <<_ACEOF
12235 /* end confdefs.h. */
12236 #include <stdio.h>
12237 # if PROTOTYPES
12238 int (setvbuf) (FILE *, int, char *, size_t);
12239 # endif
12241 main ()
12243 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
12245 return 0;
12247 _ACEOF
12248 rm -f conftest.$ac_objext conftest$ac_exeext
12249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12250 (eval $ac_link) 2>conftest.er1
12251 ac_status=$?
12252 grep -v '^ *+' conftest.er1 >conftest.err
12253 rm -f conftest.er1
12254 cat conftest.err >&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); } &&
12257 { ac_try='test -z "$ac_c_werror_flag"
12258 || test ! -s conftest.err'
12259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12260 (eval $ac_try) 2>&5
12261 ac_status=$?
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); }; } &&
12264 { ac_try='test -s conftest$ac_exeext'
12265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12266 (eval $ac_try) 2>&5
12267 ac_status=$?
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); }; }; then
12270 # It compiles and links either way, so it must not be declared
12271 # with a prototype and most likely this is a K&R C compiler.
12272 # Try running it.
12273 if test "$cross_compiling" = yes; then
12274 : # Assume setvbuf is not reversed when cross-compiling.
12275 else
12276 cat >conftest.$ac_ext <<_ACEOF
12277 /* confdefs.h. */
12278 _ACEOF
12279 cat confdefs.h >>conftest.$ac_ext
12280 cat >>conftest.$ac_ext <<_ACEOF
12281 /* end confdefs.h. */
12282 #include <stdio.h>
12284 main ()
12286 /* This call has the arguments reversed.
12287 A reversed system may check and see that the address of buf
12288 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
12289 char buf;
12290 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
12291 exit (1);
12292 putchar ('\r');
12293 exit (0); /* Non-reversed systems SEGV here. */
12295 return 0;
12297 _ACEOF
12298 rm -f conftest$ac_exeext
12299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12300 (eval $ac_link) 2>&5
12301 ac_status=$?
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12305 (eval $ac_try) 2>&5
12306 ac_status=$?
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); }; }; then
12309 ac_cv_func_setvbuf_reversed=yes
12310 else
12311 echo "$as_me: program exited with status $ac_status" >&5
12312 echo "$as_me: failed program was:" >&5
12313 sed 's/^/| /' conftest.$ac_ext >&5
12315 ( exit $ac_status )
12316 rm -f core *.core
12318 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12320 ac_cv_func_setvbuf_reversed=yes
12321 else
12322 echo "$as_me: failed program was:" >&5
12323 sed 's/^/| /' conftest.$ac_ext >&5
12326 rm -f conftest.err conftest.$ac_objext \
12327 conftest$ac_exeext conftest.$ac_ext
12328 else
12329 echo "$as_me: failed program was:" >&5
12330 sed 's/^/| /' conftest.$ac_ext >&5
12333 rm -f conftest.err conftest.$ac_objext \
12334 conftest$ac_exeext conftest.$ac_ext
12336 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
12337 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
12338 if test $ac_cv_func_setvbuf_reversed = yes; then
12340 cat >>confdefs.h <<\_ACEOF
12341 #define SETVBUF_REVERSED 1
12342 _ACEOF
12346 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12347 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12348 if test "${ac_cv_type_signal+set}" = set; then
12349 echo $ECHO_N "(cached) $ECHO_C" >&6
12350 else
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 <sys/types.h>
12358 #include <signal.h>
12359 #ifdef signal
12360 # undef signal
12361 #endif
12362 #ifdef __cplusplus
12363 extern "C" void (*signal (int, void (*)(int)))(int);
12364 #else
12365 void (*signal ()) ();
12366 #endif
12369 main ()
12371 int i;
12373 return 0;
12375 _ACEOF
12376 rm -f conftest.$ac_objext
12377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12378 (eval $ac_compile) 2>conftest.er1
12379 ac_status=$?
12380 grep -v '^ *+' conftest.er1 >conftest.err
12381 rm -f conftest.er1
12382 cat conftest.err >&5
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); } &&
12385 { ac_try='test -z "$ac_c_werror_flag"
12386 || test ! -s conftest.err'
12387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12388 (eval $ac_try) 2>&5
12389 ac_status=$?
12390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); }; } &&
12392 { ac_try='test -s conftest.$ac_objext'
12393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12394 (eval $ac_try) 2>&5
12395 ac_status=$?
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); }; }; then
12398 ac_cv_type_signal=void
12399 else
12400 echo "$as_me: failed program was:" >&5
12401 sed 's/^/| /' conftest.$ac_ext >&5
12403 ac_cv_type_signal=int
12405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12407 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12408 echo "${ECHO_T}$ac_cv_type_signal" >&6
12410 cat >>confdefs.h <<_ACEOF
12411 #define RETSIGTYPE $ac_cv_type_signal
12412 _ACEOF
12415 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
12416 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
12417 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
12418 echo $ECHO_N "(cached) $ECHO_C" >&6
12419 else
12420 if test "$cross_compiling" = yes; then
12421 ac_cv_func_stat_empty_string_bug=yes
12422 else
12423 cat >conftest.$ac_ext <<_ACEOF
12424 /* confdefs.h. */
12425 _ACEOF
12426 cat confdefs.h >>conftest.$ac_ext
12427 cat >>conftest.$ac_ext <<_ACEOF
12428 /* end confdefs.h. */
12429 $ac_includes_default
12431 main ()
12433 struct stat sbuf;
12434 exit (stat ("", &sbuf) ? 1 : 0);
12436 return 0;
12438 _ACEOF
12439 rm -f conftest$ac_exeext
12440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12441 (eval $ac_link) 2>&5
12442 ac_status=$?
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12446 (eval $ac_try) 2>&5
12447 ac_status=$?
12448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449 (exit $ac_status); }; }; then
12450 ac_cv_func_stat_empty_string_bug=yes
12451 else
12452 echo "$as_me: program exited with status $ac_status" >&5
12453 echo "$as_me: failed program was:" >&5
12454 sed 's/^/| /' conftest.$ac_ext >&5
12456 ( exit $ac_status )
12457 ac_cv_func_stat_empty_string_bug=no
12459 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12462 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
12463 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
12464 if test $ac_cv_func_stat_empty_string_bug = yes; then
12465 case $LIBOBJS in
12466 "stat.$ac_objext" | \
12467 *" stat.$ac_objext" | \
12468 "stat.$ac_objext "* | \
12469 *" stat.$ac_objext "* ) ;;
12470 *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
12471 esac
12474 cat >>confdefs.h <<_ACEOF
12475 #define HAVE_STAT_EMPTY_STRING_BUG 1
12476 _ACEOF
12481 for ac_func in strftime
12483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12484 echo "$as_me:$LINENO: checking for $ac_func" >&5
12485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12486 if eval "test \"\${$as_ac_var+set}\" = set"; then
12487 echo $ECHO_N "(cached) $ECHO_C" >&6
12488 else
12489 cat >conftest.$ac_ext <<_ACEOF
12490 /* confdefs.h. */
12491 _ACEOF
12492 cat confdefs.h >>conftest.$ac_ext
12493 cat >>conftest.$ac_ext <<_ACEOF
12494 /* end confdefs.h. */
12495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12497 #define $ac_func innocuous_$ac_func
12499 /* System header to define __stub macros and hopefully few prototypes,
12500 which can conflict with char $ac_func (); below.
12501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12502 <limits.h> exists even on freestanding compilers. */
12504 #ifdef __STDC__
12505 # include <limits.h>
12506 #else
12507 # include <assert.h>
12508 #endif
12510 #undef $ac_func
12512 /* Override any gcc2 internal prototype to avoid an error. */
12513 #ifdef __cplusplus
12514 extern "C"
12516 #endif
12517 /* We use char because int might match the return type of a gcc2
12518 builtin and then its argument prototype would still apply. */
12519 char $ac_func ();
12520 /* The GNU C library defines this for functions which it implements
12521 to always fail with ENOSYS. Some functions are actually named
12522 something starting with __ and the normal name is an alias. */
12523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12524 choke me
12525 #else
12526 char (*f) () = $ac_func;
12527 #endif
12528 #ifdef __cplusplus
12530 #endif
12533 main ()
12535 return f != $ac_func;
12537 return 0;
12539 _ACEOF
12540 rm -f conftest.$ac_objext conftest$ac_exeext
12541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12542 (eval $ac_link) 2>conftest.er1
12543 ac_status=$?
12544 grep -v '^ *+' conftest.er1 >conftest.err
12545 rm -f conftest.er1
12546 cat conftest.err >&5
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); } &&
12549 { ac_try='test -z "$ac_c_werror_flag"
12550 || test ! -s conftest.err'
12551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12552 (eval $ac_try) 2>&5
12553 ac_status=$?
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }; } &&
12556 { ac_try='test -s conftest$ac_exeext'
12557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12558 (eval $ac_try) 2>&5
12559 ac_status=$?
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); }; }; then
12562 eval "$as_ac_var=yes"
12563 else
12564 echo "$as_me: failed program was:" >&5
12565 sed 's/^/| /' conftest.$ac_ext >&5
12567 eval "$as_ac_var=no"
12569 rm -f conftest.err conftest.$ac_objext \
12570 conftest$ac_exeext conftest.$ac_ext
12572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12573 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12574 if test `eval echo '${'$as_ac_var'}'` = yes; then
12575 cat >>confdefs.h <<_ACEOF
12576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12577 _ACEOF
12579 else
12580 # strftime is in -lintl on SCO UNIX.
12581 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
12582 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
12583 if test "${ac_cv_lib_intl_strftime+set}" = set; then
12584 echo $ECHO_N "(cached) $ECHO_C" >&6
12585 else
12586 ac_check_lib_save_LIBS=$LIBS
12587 LIBS="-lintl $LIBS"
12588 cat >conftest.$ac_ext <<_ACEOF
12589 /* confdefs.h. */
12590 _ACEOF
12591 cat confdefs.h >>conftest.$ac_ext
12592 cat >>conftest.$ac_ext <<_ACEOF
12593 /* end confdefs.h. */
12595 /* Override any gcc2 internal prototype to avoid an error. */
12596 #ifdef __cplusplus
12597 extern "C"
12598 #endif
12599 /* We use char because int might match the return type of a gcc2
12600 builtin and then its argument prototype would still apply. */
12601 char strftime ();
12603 main ()
12605 strftime ();
12607 return 0;
12609 _ACEOF
12610 rm -f conftest.$ac_objext conftest$ac_exeext
12611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12612 (eval $ac_link) 2>conftest.er1
12613 ac_status=$?
12614 grep -v '^ *+' conftest.er1 >conftest.err
12615 rm -f conftest.er1
12616 cat conftest.err >&5
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); } &&
12619 { ac_try='test -z "$ac_c_werror_flag"
12620 || test ! -s conftest.err'
12621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12622 (eval $ac_try) 2>&5
12623 ac_status=$?
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); }; } &&
12626 { ac_try='test -s conftest$ac_exeext'
12627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12628 (eval $ac_try) 2>&5
12629 ac_status=$?
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); }; }; then
12632 ac_cv_lib_intl_strftime=yes
12633 else
12634 echo "$as_me: failed program was:" >&5
12635 sed 's/^/| /' conftest.$ac_ext >&5
12637 ac_cv_lib_intl_strftime=no
12639 rm -f conftest.err conftest.$ac_objext \
12640 conftest$ac_exeext conftest.$ac_ext
12641 LIBS=$ac_check_lib_save_LIBS
12643 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
12644 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
12645 if test $ac_cv_lib_intl_strftime = yes; then
12646 cat >>confdefs.h <<\_ACEOF
12647 #define HAVE_STRFTIME 1
12648 _ACEOF
12650 LIBS="-lintl $LIBS"
12654 done
12656 echo "$as_me:$LINENO: checking for working strtod" >&5
12657 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
12658 if test "${ac_cv_func_strtod+set}" = set; then
12659 echo $ECHO_N "(cached) $ECHO_C" >&6
12660 else
12661 if test "$cross_compiling" = yes; then
12662 ac_cv_func_strtod=no
12663 else
12664 cat >conftest.$ac_ext <<_ACEOF
12665 /* confdefs.h. */
12666 _ACEOF
12667 cat confdefs.h >>conftest.$ac_ext
12668 cat >>conftest.$ac_ext <<_ACEOF
12669 /* end confdefs.h. */
12671 double strtod ();
12673 main()
12676 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
12677 char *string = " +69";
12678 char *term;
12679 double value;
12680 value = strtod (string, &term);
12681 if (value != 69 || term != (string + 4))
12682 exit (1);
12686 /* Under Solaris 2.4, strtod returns the wrong value for the
12687 terminating character under some conditions. */
12688 char *string = "NaN";
12689 char *term;
12690 strtod (string, &term);
12691 if (term != string && *(term - 1) == 0)
12692 exit (1);
12694 exit (0);
12697 _ACEOF
12698 rm -f conftest$ac_exeext
12699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12700 (eval $ac_link) 2>&5
12701 ac_status=$?
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12705 (eval $ac_try) 2>&5
12706 ac_status=$?
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); }; }; then
12709 ac_cv_func_strtod=yes
12710 else
12711 echo "$as_me: program exited with status $ac_status" >&5
12712 echo "$as_me: failed program was:" >&5
12713 sed 's/^/| /' conftest.$ac_ext >&5
12715 ( exit $ac_status )
12716 ac_cv_func_strtod=no
12718 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12721 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
12722 echo "${ECHO_T}$ac_cv_func_strtod" >&6
12723 if test $ac_cv_func_strtod = no; then
12724 case $LIBOBJS in
12725 "strtod.$ac_objext" | \
12726 *" strtod.$ac_objext" | \
12727 "strtod.$ac_objext "* | \
12728 *" strtod.$ac_objext "* ) ;;
12729 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;;
12730 esac
12732 echo "$as_me:$LINENO: checking for pow" >&5
12733 echo $ECHO_N "checking for pow... $ECHO_C" >&6
12734 if test "${ac_cv_func_pow+set}" = set; then
12735 echo $ECHO_N "(cached) $ECHO_C" >&6
12736 else
12737 cat >conftest.$ac_ext <<_ACEOF
12738 /* confdefs.h. */
12739 _ACEOF
12740 cat confdefs.h >>conftest.$ac_ext
12741 cat >>conftest.$ac_ext <<_ACEOF
12742 /* end confdefs.h. */
12743 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
12744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12745 #define pow innocuous_pow
12747 /* System header to define __stub macros and hopefully few prototypes,
12748 which can conflict with char pow (); below.
12749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12750 <limits.h> exists even on freestanding compilers. */
12752 #ifdef __STDC__
12753 # include <limits.h>
12754 #else
12755 # include <assert.h>
12756 #endif
12758 #undef pow
12760 /* Override any gcc2 internal prototype to avoid an error. */
12761 #ifdef __cplusplus
12762 extern "C"
12764 #endif
12765 /* We use char because int might match the return type of a gcc2
12766 builtin and then its argument prototype would still apply. */
12767 char pow ();
12768 /* The GNU C library defines this for functions which it implements
12769 to always fail with ENOSYS. Some functions are actually named
12770 something starting with __ and the normal name is an alias. */
12771 #if defined (__stub_pow) || defined (__stub___pow)
12772 choke me
12773 #else
12774 char (*f) () = pow;
12775 #endif
12776 #ifdef __cplusplus
12778 #endif
12781 main ()
12783 return f != pow;
12785 return 0;
12787 _ACEOF
12788 rm -f conftest.$ac_objext conftest$ac_exeext
12789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12790 (eval $ac_link) 2>conftest.er1
12791 ac_status=$?
12792 grep -v '^ *+' conftest.er1 >conftest.err
12793 rm -f conftest.er1
12794 cat conftest.err >&5
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); } &&
12797 { ac_try='test -z "$ac_c_werror_flag"
12798 || test ! -s conftest.err'
12799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12800 (eval $ac_try) 2>&5
12801 ac_status=$?
12802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803 (exit $ac_status); }; } &&
12804 { ac_try='test -s conftest$ac_exeext'
12805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12806 (eval $ac_try) 2>&5
12807 ac_status=$?
12808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809 (exit $ac_status); }; }; then
12810 ac_cv_func_pow=yes
12811 else
12812 echo "$as_me: failed program was:" >&5
12813 sed 's/^/| /' conftest.$ac_ext >&5
12815 ac_cv_func_pow=no
12817 rm -f conftest.err conftest.$ac_objext \
12818 conftest$ac_exeext conftest.$ac_ext
12820 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
12821 echo "${ECHO_T}$ac_cv_func_pow" >&6
12823 if test $ac_cv_func_pow = no; then
12824 echo "$as_me:$LINENO: checking for pow in -lm" >&5
12825 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
12826 if test "${ac_cv_lib_m_pow+set}" = set; then
12827 echo $ECHO_N "(cached) $ECHO_C" >&6
12828 else
12829 ac_check_lib_save_LIBS=$LIBS
12830 LIBS="-lm $LIBS"
12831 cat >conftest.$ac_ext <<_ACEOF
12832 /* confdefs.h. */
12833 _ACEOF
12834 cat confdefs.h >>conftest.$ac_ext
12835 cat >>conftest.$ac_ext <<_ACEOF
12836 /* end confdefs.h. */
12838 /* Override any gcc2 internal prototype to avoid an error. */
12839 #ifdef __cplusplus
12840 extern "C"
12841 #endif
12842 /* We use char because int might match the return type of a gcc2
12843 builtin and then its argument prototype would still apply. */
12844 char pow ();
12846 main ()
12848 pow ();
12850 return 0;
12852 _ACEOF
12853 rm -f conftest.$ac_objext conftest$ac_exeext
12854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12855 (eval $ac_link) 2>conftest.er1
12856 ac_status=$?
12857 grep -v '^ *+' conftest.er1 >conftest.err
12858 rm -f conftest.er1
12859 cat conftest.err >&5
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); } &&
12862 { ac_try='test -z "$ac_c_werror_flag"
12863 || test ! -s conftest.err'
12864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12865 (eval $ac_try) 2>&5
12866 ac_status=$?
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); }; } &&
12869 { ac_try='test -s conftest$ac_exeext'
12870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12871 (eval $ac_try) 2>&5
12872 ac_status=$?
12873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); }; }; then
12875 ac_cv_lib_m_pow=yes
12876 else
12877 echo "$as_me: failed program was:" >&5
12878 sed 's/^/| /' conftest.$ac_ext >&5
12880 ac_cv_lib_m_pow=no
12882 rm -f conftest.err conftest.$ac_objext \
12883 conftest$ac_exeext conftest.$ac_ext
12884 LIBS=$ac_check_lib_save_LIBS
12886 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
12887 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
12888 if test $ac_cv_lib_m_pow = yes; then
12889 POW_LIB=-lm
12890 else
12891 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
12892 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
12900 for ac_func in vprintf
12902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12903 echo "$as_me:$LINENO: checking for $ac_func" >&5
12904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12905 if eval "test \"\${$as_ac_var+set}\" = set"; then
12906 echo $ECHO_N "(cached) $ECHO_C" >&6
12907 else
12908 cat >conftest.$ac_ext <<_ACEOF
12909 /* confdefs.h. */
12910 _ACEOF
12911 cat confdefs.h >>conftest.$ac_ext
12912 cat >>conftest.$ac_ext <<_ACEOF
12913 /* end confdefs.h. */
12914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12916 #define $ac_func innocuous_$ac_func
12918 /* System header to define __stub macros and hopefully few prototypes,
12919 which can conflict with char $ac_func (); below.
12920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12921 <limits.h> exists even on freestanding compilers. */
12923 #ifdef __STDC__
12924 # include <limits.h>
12925 #else
12926 # include <assert.h>
12927 #endif
12929 #undef $ac_func
12931 /* Override any gcc2 internal prototype to avoid an error. */
12932 #ifdef __cplusplus
12933 extern "C"
12935 #endif
12936 /* We use char because int might match the return type of a gcc2
12937 builtin and then its argument prototype would still apply. */
12938 char $ac_func ();
12939 /* The GNU C library defines this for functions which it implements
12940 to always fail with ENOSYS. Some functions are actually named
12941 something starting with __ and the normal name is an alias. */
12942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12943 choke me
12944 #else
12945 char (*f) () = $ac_func;
12946 #endif
12947 #ifdef __cplusplus
12949 #endif
12952 main ()
12954 return f != $ac_func;
12956 return 0;
12958 _ACEOF
12959 rm -f conftest.$ac_objext conftest$ac_exeext
12960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12961 (eval $ac_link) 2>conftest.er1
12962 ac_status=$?
12963 grep -v '^ *+' conftest.er1 >conftest.err
12964 rm -f conftest.er1
12965 cat conftest.err >&5
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); } &&
12968 { ac_try='test -z "$ac_c_werror_flag"
12969 || test ! -s conftest.err'
12970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12971 (eval $ac_try) 2>&5
12972 ac_status=$?
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); }; } &&
12975 { ac_try='test -s conftest$ac_exeext'
12976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12977 (eval $ac_try) 2>&5
12978 ac_status=$?
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); }; }; then
12981 eval "$as_ac_var=yes"
12982 else
12983 echo "$as_me: failed program was:" >&5
12984 sed 's/^/| /' conftest.$ac_ext >&5
12986 eval "$as_ac_var=no"
12988 rm -f conftest.err conftest.$ac_objext \
12989 conftest$ac_exeext conftest.$ac_ext
12991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12992 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12993 if test `eval echo '${'$as_ac_var'}'` = yes; then
12994 cat >>confdefs.h <<_ACEOF
12995 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12996 _ACEOF
12998 echo "$as_me:$LINENO: checking for _doprnt" >&5
12999 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
13000 if test "${ac_cv_func__doprnt+set}" = set; then
13001 echo $ECHO_N "(cached) $ECHO_C" >&6
13002 else
13003 cat >conftest.$ac_ext <<_ACEOF
13004 /* confdefs.h. */
13005 _ACEOF
13006 cat confdefs.h >>conftest.$ac_ext
13007 cat >>conftest.$ac_ext <<_ACEOF
13008 /* end confdefs.h. */
13009 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
13010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13011 #define _doprnt innocuous__doprnt
13013 /* System header to define __stub macros and hopefully few prototypes,
13014 which can conflict with char _doprnt (); below.
13015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13016 <limits.h> exists even on freestanding compilers. */
13018 #ifdef __STDC__
13019 # include <limits.h>
13020 #else
13021 # include <assert.h>
13022 #endif
13024 #undef _doprnt
13026 /* Override any gcc2 internal prototype to avoid an error. */
13027 #ifdef __cplusplus
13028 extern "C"
13030 #endif
13031 /* We use char because int might match the return type of a gcc2
13032 builtin and then its argument prototype would still apply. */
13033 char _doprnt ();
13034 /* The GNU C library defines this for functions which it implements
13035 to always fail with ENOSYS. Some functions are actually named
13036 something starting with __ and the normal name is an alias. */
13037 #if defined (__stub__doprnt) || defined (__stub____doprnt)
13038 choke me
13039 #else
13040 char (*f) () = _doprnt;
13041 #endif
13042 #ifdef __cplusplus
13044 #endif
13047 main ()
13049 return f != _doprnt;
13051 return 0;
13053 _ACEOF
13054 rm -f conftest.$ac_objext conftest$ac_exeext
13055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13056 (eval $ac_link) 2>conftest.er1
13057 ac_status=$?
13058 grep -v '^ *+' conftest.er1 >conftest.err
13059 rm -f conftest.er1
13060 cat conftest.err >&5
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); } &&
13063 { ac_try='test -z "$ac_c_werror_flag"
13064 || test ! -s conftest.err'
13065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13066 (eval $ac_try) 2>&5
13067 ac_status=$?
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); }; } &&
13070 { ac_try='test -s conftest$ac_exeext'
13071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13072 (eval $ac_try) 2>&5
13073 ac_status=$?
13074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075 (exit $ac_status); }; }; then
13076 ac_cv_func__doprnt=yes
13077 else
13078 echo "$as_me: failed program was:" >&5
13079 sed 's/^/| /' conftest.$ac_ext >&5
13081 ac_cv_func__doprnt=no
13083 rm -f conftest.err conftest.$ac_objext \
13084 conftest$ac_exeext conftest.$ac_ext
13086 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13087 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
13088 if test $ac_cv_func__doprnt = yes; then
13090 cat >>confdefs.h <<\_ACEOF
13091 #define HAVE_DOPRNT 1
13092 _ACEOF
13097 done
13100 if test $cross_compiling = yes -a $gnumalloc = yes; then
13102 { echo "$as_me:$LINENO: WARNING:
13103 configure cannot check whether malloc() and realloc() are GNU libc
13104 compatible. You have to be ABSOLUTELY sure that they are, otherwise
13105 run configure with the --without-gnu-malloc switch." >&5
13106 echo "$as_me: WARNING:
13107 configure cannot check whether malloc() and realloc() are GNU libc
13108 compatible. You have to be ABSOLUTELY sure that they are, otherwise
13109 run configure with the --without-gnu-malloc switch." >&2;}
13110 _mule_warning_8=yes
13111 _mule_has_warnings=yes
13113 ac_cv_func_malloc_0_nonnull=yes
13114 ac_cv_func_realloc_0_nonnull=yes
13119 for ac_header in stdlib.h
13121 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13123 echo "$as_me:$LINENO: checking for $ac_header" >&5
13124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13126 echo $ECHO_N "(cached) $ECHO_C" >&6
13128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13129 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13130 else
13131 # Is the header compilable?
13132 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13133 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13134 cat >conftest.$ac_ext <<_ACEOF
13135 /* confdefs.h. */
13136 _ACEOF
13137 cat confdefs.h >>conftest.$ac_ext
13138 cat >>conftest.$ac_ext <<_ACEOF
13139 /* end confdefs.h. */
13140 $ac_includes_default
13141 #include <$ac_header>
13142 _ACEOF
13143 rm -f conftest.$ac_objext
13144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13145 (eval $ac_compile) 2>conftest.er1
13146 ac_status=$?
13147 grep -v '^ *+' conftest.er1 >conftest.err
13148 rm -f conftest.er1
13149 cat conftest.err >&5
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); } &&
13152 { ac_try='test -z "$ac_c_werror_flag"
13153 || test ! -s conftest.err'
13154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13155 (eval $ac_try) 2>&5
13156 ac_status=$?
13157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158 (exit $ac_status); }; } &&
13159 { ac_try='test -s conftest.$ac_objext'
13160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13161 (eval $ac_try) 2>&5
13162 ac_status=$?
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); }; }; then
13165 ac_header_compiler=yes
13166 else
13167 echo "$as_me: failed program was:" >&5
13168 sed 's/^/| /' conftest.$ac_ext >&5
13170 ac_header_compiler=no
13172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13173 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13174 echo "${ECHO_T}$ac_header_compiler" >&6
13176 # Is the header present?
13177 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13178 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13179 cat >conftest.$ac_ext <<_ACEOF
13180 /* confdefs.h. */
13181 _ACEOF
13182 cat confdefs.h >>conftest.$ac_ext
13183 cat >>conftest.$ac_ext <<_ACEOF
13184 /* end confdefs.h. */
13185 #include <$ac_header>
13186 _ACEOF
13187 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13188 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13189 ac_status=$?
13190 grep -v '^ *+' conftest.er1 >conftest.err
13191 rm -f conftest.er1
13192 cat conftest.err >&5
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); } >/dev/null; then
13195 if test -s conftest.err; then
13196 ac_cpp_err=$ac_c_preproc_warn_flag
13197 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13198 else
13199 ac_cpp_err=
13201 else
13202 ac_cpp_err=yes
13204 if test -z "$ac_cpp_err"; then
13205 ac_header_preproc=yes
13206 else
13207 echo "$as_me: failed program was:" >&5
13208 sed 's/^/| /' conftest.$ac_ext >&5
13210 ac_header_preproc=no
13212 rm -f conftest.err conftest.$ac_ext
13213 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13214 echo "${ECHO_T}$ac_header_preproc" >&6
13216 # So? What about this header?
13217 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13218 yes:no: )
13219 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13220 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13222 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13223 ac_header_preproc=yes
13225 no:yes:* )
13226 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13227 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13228 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13229 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13230 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13231 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13232 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13233 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13235 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13236 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13237 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13239 cat <<\_ASBOX
13240 ## ------------------------------ ##
13241 ## Report this to admin@amule.org ##
13242 ## ------------------------------ ##
13243 _ASBOX
13245 sed "s/^/$as_me: WARNING: /" >&2
13247 esac
13248 echo "$as_me:$LINENO: checking for $ac_header" >&5
13249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13251 echo $ECHO_N "(cached) $ECHO_C" >&6
13252 else
13253 eval "$as_ac_Header=\$ac_header_preproc"
13255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13256 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13259 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13260 cat >>confdefs.h <<_ACEOF
13261 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13262 _ACEOF
13266 done
13268 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
13269 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
13270 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
13271 echo $ECHO_N "(cached) $ECHO_C" >&6
13272 else
13273 if test "$cross_compiling" = yes; then
13274 ac_cv_func_malloc_0_nonnull=no
13275 else
13276 cat >conftest.$ac_ext <<_ACEOF
13277 /* confdefs.h. */
13278 _ACEOF
13279 cat confdefs.h >>conftest.$ac_ext
13280 cat >>conftest.$ac_ext <<_ACEOF
13281 /* end confdefs.h. */
13282 #if STDC_HEADERS || HAVE_STDLIB_H
13283 # include <stdlib.h>
13284 #else
13285 char *malloc ();
13286 #endif
13289 main ()
13291 exit (malloc (0) ? 0 : 1);
13293 return 0;
13295 _ACEOF
13296 rm -f conftest$ac_exeext
13297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13298 (eval $ac_link) 2>&5
13299 ac_status=$?
13300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13303 (eval $ac_try) 2>&5
13304 ac_status=$?
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); }; }; then
13307 ac_cv_func_malloc_0_nonnull=yes
13308 else
13309 echo "$as_me: program exited with status $ac_status" >&5
13310 echo "$as_me: failed program was:" >&5
13311 sed 's/^/| /' conftest.$ac_ext >&5
13313 ( exit $ac_status )
13314 ac_cv_func_malloc_0_nonnull=no
13316 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13319 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
13320 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
13321 if test $ac_cv_func_malloc_0_nonnull = yes; then
13323 cat >>confdefs.h <<\_ACEOF
13324 #define HAVE_MALLOC 1
13325 _ACEOF
13327 else
13328 cat >>confdefs.h <<\_ACEOF
13329 #define HAVE_MALLOC 0
13330 _ACEOF
13332 case $LIBOBJS in
13333 "malloc.$ac_objext" | \
13334 *" malloc.$ac_objext" | \
13335 "malloc.$ac_objext "* | \
13336 *" malloc.$ac_objext "* ) ;;
13337 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
13338 esac
13341 cat >>confdefs.h <<\_ACEOF
13342 #define malloc rpl_malloc
13343 _ACEOF
13350 for ac_header in stdlib.h
13352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13354 echo "$as_me:$LINENO: checking for $ac_header" >&5
13355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13357 echo $ECHO_N "(cached) $ECHO_C" >&6
13359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13360 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13361 else
13362 # Is the header compilable?
13363 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13364 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13365 cat >conftest.$ac_ext <<_ACEOF
13366 /* confdefs.h. */
13367 _ACEOF
13368 cat confdefs.h >>conftest.$ac_ext
13369 cat >>conftest.$ac_ext <<_ACEOF
13370 /* end confdefs.h. */
13371 $ac_includes_default
13372 #include <$ac_header>
13373 _ACEOF
13374 rm -f conftest.$ac_objext
13375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13376 (eval $ac_compile) 2>conftest.er1
13377 ac_status=$?
13378 grep -v '^ *+' conftest.er1 >conftest.err
13379 rm -f conftest.er1
13380 cat conftest.err >&5
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); } &&
13383 { ac_try='test -z "$ac_c_werror_flag"
13384 || test ! -s conftest.err'
13385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13386 (eval $ac_try) 2>&5
13387 ac_status=$?
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); }; } &&
13390 { ac_try='test -s conftest.$ac_objext'
13391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13392 (eval $ac_try) 2>&5
13393 ac_status=$?
13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); }; }; then
13396 ac_header_compiler=yes
13397 else
13398 echo "$as_me: failed program was:" >&5
13399 sed 's/^/| /' conftest.$ac_ext >&5
13401 ac_header_compiler=no
13403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13404 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13405 echo "${ECHO_T}$ac_header_compiler" >&6
13407 # Is the header present?
13408 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13409 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13410 cat >conftest.$ac_ext <<_ACEOF
13411 /* confdefs.h. */
13412 _ACEOF
13413 cat confdefs.h >>conftest.$ac_ext
13414 cat >>conftest.$ac_ext <<_ACEOF
13415 /* end confdefs.h. */
13416 #include <$ac_header>
13417 _ACEOF
13418 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13419 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13420 ac_status=$?
13421 grep -v '^ *+' conftest.er1 >conftest.err
13422 rm -f conftest.er1
13423 cat conftest.err >&5
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); } >/dev/null; then
13426 if test -s conftest.err; then
13427 ac_cpp_err=$ac_c_preproc_warn_flag
13428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13429 else
13430 ac_cpp_err=
13432 else
13433 ac_cpp_err=yes
13435 if test -z "$ac_cpp_err"; then
13436 ac_header_preproc=yes
13437 else
13438 echo "$as_me: failed program was:" >&5
13439 sed 's/^/| /' conftest.$ac_ext >&5
13441 ac_header_preproc=no
13443 rm -f conftest.err conftest.$ac_ext
13444 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13445 echo "${ECHO_T}$ac_header_preproc" >&6
13447 # So? What about this header?
13448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13449 yes:no: )
13450 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13451 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13453 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13454 ac_header_preproc=yes
13456 no:yes:* )
13457 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13458 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13459 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13460 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13461 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13462 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13463 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13464 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13466 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13467 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13468 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13470 cat <<\_ASBOX
13471 ## ------------------------------ ##
13472 ## Report this to admin@amule.org ##
13473 ## ------------------------------ ##
13474 _ASBOX
13476 sed "s/^/$as_me: WARNING: /" >&2
13478 esac
13479 echo "$as_me:$LINENO: checking for $ac_header" >&5
13480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13482 echo $ECHO_N "(cached) $ECHO_C" >&6
13483 else
13484 eval "$as_ac_Header=\$ac_header_preproc"
13486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13491 cat >>confdefs.h <<_ACEOF
13492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13493 _ACEOF
13497 done
13499 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
13500 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
13501 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
13502 echo $ECHO_N "(cached) $ECHO_C" >&6
13503 else
13504 if test "$cross_compiling" = yes; then
13505 ac_cv_func_realloc_0_nonnull=no
13506 else
13507 cat >conftest.$ac_ext <<_ACEOF
13508 /* confdefs.h. */
13509 _ACEOF
13510 cat confdefs.h >>conftest.$ac_ext
13511 cat >>conftest.$ac_ext <<_ACEOF
13512 /* end confdefs.h. */
13513 #if STDC_HEADERS || HAVE_STDLIB_H
13514 # include <stdlib.h>
13515 #else
13516 char *realloc ();
13517 #endif
13520 main ()
13522 exit (realloc (0, 0) ? 0 : 1);
13524 return 0;
13526 _ACEOF
13527 rm -f conftest$ac_exeext
13528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13529 (eval $ac_link) 2>&5
13530 ac_status=$?
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13534 (eval $ac_try) 2>&5
13535 ac_status=$?
13536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537 (exit $ac_status); }; }; then
13538 ac_cv_func_realloc_0_nonnull=yes
13539 else
13540 echo "$as_me: program exited with status $ac_status" >&5
13541 echo "$as_me: failed program was:" >&5
13542 sed 's/^/| /' conftest.$ac_ext >&5
13544 ( exit $ac_status )
13545 ac_cv_func_realloc_0_nonnull=no
13547 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13550 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
13551 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
13552 if test $ac_cv_func_realloc_0_nonnull = yes; then
13554 cat >>confdefs.h <<\_ACEOF
13555 #define HAVE_REALLOC 1
13556 _ACEOF
13558 else
13559 cat >>confdefs.h <<\_ACEOF
13560 #define HAVE_REALLOC 0
13561 _ACEOF
13563 case $LIBOBJS in
13564 "realloc.$ac_objext" | \
13565 *" realloc.$ac_objext" | \
13566 "realloc.$ac_objext "* | \
13567 *" realloc.$ac_objext "* ) ;;
13568 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
13569 esac
13572 cat >>confdefs.h <<\_ACEOF
13573 #define realloc rpl_realloc
13574 _ACEOF
13613 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
13615 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13616 echo "$as_me:$LINENO: checking for $ac_func" >&5
13617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13618 if eval "test \"\${$as_ac_var+set}\" = set"; then
13619 echo $ECHO_N "(cached) $ECHO_C" >&6
13620 else
13621 cat >conftest.$ac_ext <<_ACEOF
13622 /* confdefs.h. */
13623 _ACEOF
13624 cat confdefs.h >>conftest.$ac_ext
13625 cat >>conftest.$ac_ext <<_ACEOF
13626 /* end confdefs.h. */
13627 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13629 #define $ac_func innocuous_$ac_func
13631 /* System header to define __stub macros and hopefully few prototypes,
13632 which can conflict with char $ac_func (); below.
13633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13634 <limits.h> exists even on freestanding compilers. */
13636 #ifdef __STDC__
13637 # include <limits.h>
13638 #else
13639 # include <assert.h>
13640 #endif
13642 #undef $ac_func
13644 /* Override any gcc2 internal prototype to avoid an error. */
13645 #ifdef __cplusplus
13646 extern "C"
13648 #endif
13649 /* We use char because int might match the return type of a gcc2
13650 builtin and then its argument prototype would still apply. */
13651 char $ac_func ();
13652 /* The GNU C library defines this for functions which it implements
13653 to always fail with ENOSYS. Some functions are actually named
13654 something starting with __ and the normal name is an alias. */
13655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13656 choke me
13657 #else
13658 char (*f) () = $ac_func;
13659 #endif
13660 #ifdef __cplusplus
13662 #endif
13665 main ()
13667 return f != $ac_func;
13669 return 0;
13671 _ACEOF
13672 rm -f conftest.$ac_objext conftest$ac_exeext
13673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13674 (eval $ac_link) 2>conftest.er1
13675 ac_status=$?
13676 grep -v '^ *+' conftest.er1 >conftest.err
13677 rm -f conftest.er1
13678 cat conftest.err >&5
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); } &&
13681 { ac_try='test -z "$ac_c_werror_flag"
13682 || test ! -s conftest.err'
13683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13684 (eval $ac_try) 2>&5
13685 ac_status=$?
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); }; } &&
13688 { ac_try='test -s conftest$ac_exeext'
13689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13690 (eval $ac_try) 2>&5
13691 ac_status=$?
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); }; }; then
13694 eval "$as_ac_var=yes"
13695 else
13696 echo "$as_me: failed program was:" >&5
13697 sed 's/^/| /' conftest.$ac_ext >&5
13699 eval "$as_ac_var=no"
13701 rm -f conftest.err conftest.$ac_objext \
13702 conftest$ac_exeext conftest.$ac_ext
13704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13705 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13706 if test `eval echo '${'$as_ac_var'}'` = yes; then
13707 cat >>confdefs.h <<_ACEOF
13708 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13709 _ACEOF
13712 done
13714 #-------------------------------------------------------------------------------
13715 # End of autoscan stuff
13716 #-------------------------------------------------------------------------------
13722 for ac_func in mkdir getrlimit setrlimit getopt_long
13724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13725 echo "$as_me:$LINENO: checking for $ac_func" >&5
13726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13727 if eval "test \"\${$as_ac_var+set}\" = set"; then
13728 echo $ECHO_N "(cached) $ECHO_C" >&6
13729 else
13730 cat >conftest.$ac_ext <<_ACEOF
13731 /* confdefs.h. */
13732 _ACEOF
13733 cat confdefs.h >>conftest.$ac_ext
13734 cat >>conftest.$ac_ext <<_ACEOF
13735 /* end confdefs.h. */
13736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13738 #define $ac_func innocuous_$ac_func
13740 /* System header to define __stub macros and hopefully few prototypes,
13741 which can conflict with char $ac_func (); below.
13742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13743 <limits.h> exists even on freestanding compilers. */
13745 #ifdef __STDC__
13746 # include <limits.h>
13747 #else
13748 # include <assert.h>
13749 #endif
13751 #undef $ac_func
13753 /* Override any gcc2 internal prototype to avoid an error. */
13754 #ifdef __cplusplus
13755 extern "C"
13757 #endif
13758 /* We use char because int might match the return type of a gcc2
13759 builtin and then its argument prototype would still apply. */
13760 char $ac_func ();
13761 /* The GNU C library defines this for functions which it implements
13762 to always fail with ENOSYS. Some functions are actually named
13763 something starting with __ and the normal name is an alias. */
13764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13765 choke me
13766 #else
13767 char (*f) () = $ac_func;
13768 #endif
13769 #ifdef __cplusplus
13771 #endif
13774 main ()
13776 return f != $ac_func;
13778 return 0;
13780 _ACEOF
13781 rm -f conftest.$ac_objext conftest$ac_exeext
13782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13783 (eval $ac_link) 2>conftest.er1
13784 ac_status=$?
13785 grep -v '^ *+' conftest.er1 >conftest.err
13786 rm -f conftest.er1
13787 cat conftest.err >&5
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); } &&
13790 { ac_try='test -z "$ac_c_werror_flag"
13791 || test ! -s conftest.err'
13792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13793 (eval $ac_try) 2>&5
13794 ac_status=$?
13795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796 (exit $ac_status); }; } &&
13797 { ac_try='test -s conftest$ac_exeext'
13798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13799 (eval $ac_try) 2>&5
13800 ac_status=$?
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); }; }; then
13803 eval "$as_ac_var=yes"
13804 else
13805 echo "$as_me: failed program was:" >&5
13806 sed 's/^/| /' conftest.$ac_ext >&5
13808 eval "$as_ac_var=no"
13810 rm -f conftest.err conftest.$ac_objext \
13811 conftest$ac_exeext conftest.$ac_ext
13813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13814 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13815 if test `eval echo '${'$as_ac_var'}'` = yes; then
13816 cat >>confdefs.h <<_ACEOF
13817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13818 _ACEOF
13821 done
13824 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then
13826 # Check whether --enable-mmap or --disable-mmap was given.
13827 if test "${enable_mmap+set}" = set; then
13828 enableval="$enable_mmap"
13833 if test ${enable_mmap:-no} = yes; then
13836 for ac_header in sys/mman.h
13838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13840 echo "$as_me:$LINENO: checking for $ac_header" >&5
13841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13843 echo $ECHO_N "(cached) $ECHO_C" >&6
13845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13847 else
13848 # Is the header compilable?
13849 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13851 cat >conftest.$ac_ext <<_ACEOF
13852 /* confdefs.h. */
13853 _ACEOF
13854 cat confdefs.h >>conftest.$ac_ext
13855 cat >>conftest.$ac_ext <<_ACEOF
13856 /* end confdefs.h. */
13857 $ac_includes_default
13858 #include <$ac_header>
13859 _ACEOF
13860 rm -f conftest.$ac_objext
13861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13862 (eval $ac_compile) 2>conftest.er1
13863 ac_status=$?
13864 grep -v '^ *+' conftest.er1 >conftest.err
13865 rm -f conftest.er1
13866 cat conftest.err >&5
13867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868 (exit $ac_status); } &&
13869 { ac_try='test -z "$ac_c_werror_flag"
13870 || test ! -s conftest.err'
13871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13872 (eval $ac_try) 2>&5
13873 ac_status=$?
13874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875 (exit $ac_status); }; } &&
13876 { ac_try='test -s conftest.$ac_objext'
13877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13878 (eval $ac_try) 2>&5
13879 ac_status=$?
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); }; }; then
13882 ac_header_compiler=yes
13883 else
13884 echo "$as_me: failed program was:" >&5
13885 sed 's/^/| /' conftest.$ac_ext >&5
13887 ac_header_compiler=no
13889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13890 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13891 echo "${ECHO_T}$ac_header_compiler" >&6
13893 # Is the header present?
13894 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13895 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13896 cat >conftest.$ac_ext <<_ACEOF
13897 /* confdefs.h. */
13898 _ACEOF
13899 cat confdefs.h >>conftest.$ac_ext
13900 cat >>conftest.$ac_ext <<_ACEOF
13901 /* end confdefs.h. */
13902 #include <$ac_header>
13903 _ACEOF
13904 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13905 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13906 ac_status=$?
13907 grep -v '^ *+' conftest.er1 >conftest.err
13908 rm -f conftest.er1
13909 cat conftest.err >&5
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); } >/dev/null; then
13912 if test -s conftest.err; then
13913 ac_cpp_err=$ac_c_preproc_warn_flag
13914 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13915 else
13916 ac_cpp_err=
13918 else
13919 ac_cpp_err=yes
13921 if test -z "$ac_cpp_err"; then
13922 ac_header_preproc=yes
13923 else
13924 echo "$as_me: failed program was:" >&5
13925 sed 's/^/| /' conftest.$ac_ext >&5
13927 ac_header_preproc=no
13929 rm -f conftest.err conftest.$ac_ext
13930 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13931 echo "${ECHO_T}$ac_header_preproc" >&6
13933 # So? What about this header?
13934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13935 yes:no: )
13936 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13937 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13939 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13940 ac_header_preproc=yes
13942 no:yes:* )
13943 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13944 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13945 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13946 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13947 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13948 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13949 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13950 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13952 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13953 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13954 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13956 cat <<\_ASBOX
13957 ## ------------------------------ ##
13958 ## Report this to admin@amule.org ##
13959 ## ------------------------------ ##
13960 _ASBOX
13962 sed "s/^/$as_me: WARNING: /" >&2
13964 esac
13965 echo "$as_me:$LINENO: checking for $ac_header" >&5
13966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13968 echo $ECHO_N "(cached) $ECHO_C" >&6
13969 else
13970 eval "$as_ac_Header=\$ac_header_preproc"
13972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13973 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13977 cat >>confdefs.h <<_ACEOF
13978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13979 _ACEOF
13983 done
13987 for ac_header in stdlib.h unistd.h
13989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13991 echo "$as_me:$LINENO: checking for $ac_header" >&5
13992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13994 echo $ECHO_N "(cached) $ECHO_C" >&6
13996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13998 else
13999 # Is the header compilable?
14000 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14001 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14002 cat >conftest.$ac_ext <<_ACEOF
14003 /* confdefs.h. */
14004 _ACEOF
14005 cat confdefs.h >>conftest.$ac_ext
14006 cat >>conftest.$ac_ext <<_ACEOF
14007 /* end confdefs.h. */
14008 $ac_includes_default
14009 #include <$ac_header>
14010 _ACEOF
14011 rm -f conftest.$ac_objext
14012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14013 (eval $ac_compile) 2>conftest.er1
14014 ac_status=$?
14015 grep -v '^ *+' conftest.er1 >conftest.err
14016 rm -f conftest.er1
14017 cat conftest.err >&5
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); } &&
14020 { ac_try='test -z "$ac_c_werror_flag"
14021 || test ! -s conftest.err'
14022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14023 (eval $ac_try) 2>&5
14024 ac_status=$?
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); }; } &&
14027 { ac_try='test -s conftest.$ac_objext'
14028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14029 (eval $ac_try) 2>&5
14030 ac_status=$?
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); }; }; then
14033 ac_header_compiler=yes
14034 else
14035 echo "$as_me: failed program was:" >&5
14036 sed 's/^/| /' conftest.$ac_ext >&5
14038 ac_header_compiler=no
14040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14041 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14042 echo "${ECHO_T}$ac_header_compiler" >&6
14044 # Is the header present?
14045 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14046 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14047 cat >conftest.$ac_ext <<_ACEOF
14048 /* confdefs.h. */
14049 _ACEOF
14050 cat confdefs.h >>conftest.$ac_ext
14051 cat >>conftest.$ac_ext <<_ACEOF
14052 /* end confdefs.h. */
14053 #include <$ac_header>
14054 _ACEOF
14055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14057 ac_status=$?
14058 grep -v '^ *+' conftest.er1 >conftest.err
14059 rm -f conftest.er1
14060 cat conftest.err >&5
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); } >/dev/null; then
14063 if test -s conftest.err; then
14064 ac_cpp_err=$ac_c_preproc_warn_flag
14065 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14066 else
14067 ac_cpp_err=
14069 else
14070 ac_cpp_err=yes
14072 if test -z "$ac_cpp_err"; then
14073 ac_header_preproc=yes
14074 else
14075 echo "$as_me: failed program was:" >&5
14076 sed 's/^/| /' conftest.$ac_ext >&5
14078 ac_header_preproc=no
14080 rm -f conftest.err conftest.$ac_ext
14081 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14082 echo "${ECHO_T}$ac_header_preproc" >&6
14084 # So? What about this header?
14085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14086 yes:no: )
14087 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14088 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14090 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14091 ac_header_preproc=yes
14093 no:yes:* )
14094 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14095 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14096 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14097 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14098 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14099 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14100 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14101 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14103 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14104 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14105 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14107 cat <<\_ASBOX
14108 ## ------------------------------ ##
14109 ## Report this to admin@amule.org ##
14110 ## ------------------------------ ##
14111 _ASBOX
14113 sed "s/^/$as_me: WARNING: /" >&2
14115 esac
14116 echo "$as_me:$LINENO: checking for $ac_header" >&5
14117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14119 echo $ECHO_N "(cached) $ECHO_C" >&6
14120 else
14121 eval "$as_ac_Header=\$ac_header_preproc"
14123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14128 cat >>confdefs.h <<_ACEOF
14129 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14130 _ACEOF
14134 done
14137 for ac_func in getpagesize
14139 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14140 echo "$as_me:$LINENO: checking for $ac_func" >&5
14141 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14142 if eval "test \"\${$as_ac_var+set}\" = set"; then
14143 echo $ECHO_N "(cached) $ECHO_C" >&6
14144 else
14145 cat >conftest.$ac_ext <<_ACEOF
14146 /* confdefs.h. */
14147 _ACEOF
14148 cat confdefs.h >>conftest.$ac_ext
14149 cat >>conftest.$ac_ext <<_ACEOF
14150 /* end confdefs.h. */
14151 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14153 #define $ac_func innocuous_$ac_func
14155 /* System header to define __stub macros and hopefully few prototypes,
14156 which can conflict with char $ac_func (); below.
14157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14158 <limits.h> exists even on freestanding compilers. */
14160 #ifdef __STDC__
14161 # include <limits.h>
14162 #else
14163 # include <assert.h>
14164 #endif
14166 #undef $ac_func
14168 /* Override any gcc2 internal prototype to avoid an error. */
14169 #ifdef __cplusplus
14170 extern "C"
14172 #endif
14173 /* We use char because int might match the return type of a gcc2
14174 builtin and then its argument prototype would still apply. */
14175 char $ac_func ();
14176 /* The GNU C library defines this for functions which it implements
14177 to always fail with ENOSYS. Some functions are actually named
14178 something starting with __ and the normal name is an alias. */
14179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14180 choke me
14181 #else
14182 char (*f) () = $ac_func;
14183 #endif
14184 #ifdef __cplusplus
14186 #endif
14189 main ()
14191 return f != $ac_func;
14193 return 0;
14195 _ACEOF
14196 rm -f conftest.$ac_objext conftest$ac_exeext
14197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14198 (eval $ac_link) 2>conftest.er1
14199 ac_status=$?
14200 grep -v '^ *+' conftest.er1 >conftest.err
14201 rm -f conftest.er1
14202 cat conftest.err >&5
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); } &&
14205 { ac_try='test -z "$ac_c_werror_flag"
14206 || test ! -s conftest.err'
14207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14208 (eval $ac_try) 2>&5
14209 ac_status=$?
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); }; } &&
14212 { ac_try='test -s conftest$ac_exeext'
14213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14214 (eval $ac_try) 2>&5
14215 ac_status=$?
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); }; }; then
14218 eval "$as_ac_var=yes"
14219 else
14220 echo "$as_me: failed program was:" >&5
14221 sed 's/^/| /' conftest.$ac_ext >&5
14223 eval "$as_ac_var=no"
14225 rm -f conftest.err conftest.$ac_objext \
14226 conftest$ac_exeext conftest.$ac_ext
14228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14229 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14230 if test `eval echo '${'$as_ac_var'}'` = yes; then
14231 cat >>confdefs.h <<_ACEOF
14232 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14233 _ACEOF
14236 done
14238 echo "$as_me:$LINENO: checking for working mmap" >&5
14239 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14240 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14241 echo $ECHO_N "(cached) $ECHO_C" >&6
14242 else
14243 if test "$cross_compiling" = yes; then
14244 ac_cv_func_mmap_fixed_mapped=no
14245 else
14246 cat >conftest.$ac_ext <<_ACEOF
14247 /* confdefs.h. */
14248 _ACEOF
14249 cat confdefs.h >>conftest.$ac_ext
14250 cat >>conftest.$ac_ext <<_ACEOF
14251 /* end confdefs.h. */
14252 $ac_includes_default
14253 /* malloc might have been renamed as rpl_malloc. */
14254 #undef malloc
14256 /* Thanks to Mike Haertel and Jim Avera for this test.
14257 Here is a matrix of mmap possibilities:
14258 mmap private not fixed
14259 mmap private fixed at somewhere currently unmapped
14260 mmap private fixed at somewhere already mapped
14261 mmap shared not fixed
14262 mmap shared fixed at somewhere currently unmapped
14263 mmap shared fixed at somewhere already mapped
14264 For private mappings, we should verify that changes cannot be read()
14265 back from the file, nor mmap's back from the file at a different
14266 address. (There have been systems where private was not correctly
14267 implemented like the infamous i386 svr4.0, and systems where the
14268 VM page cache was not coherent with the file system buffer cache
14269 like early versions of FreeBSD and possibly contemporary NetBSD.)
14270 For shared mappings, we should conversely verify that changes get
14271 propagated back to all the places they're supposed to be.
14273 Grep wants private fixed already mapped.
14274 The main things grep needs to know about mmap are:
14275 * does it exist and is it safe to write into the mmap'd area
14276 * how to use it (BSD variants) */
14278 #include <fcntl.h>
14279 #include <sys/mman.h>
14281 #if !STDC_HEADERS && !HAVE_STDLIB_H
14282 char *malloc ();
14283 #endif
14285 /* This mess was copied from the GNU getpagesize.h. */
14286 #if !HAVE_GETPAGESIZE
14287 /* Assume that all systems that can run configure have sys/param.h. */
14288 # if !HAVE_SYS_PARAM_H
14289 # define HAVE_SYS_PARAM_H 1
14290 # endif
14292 # ifdef _SC_PAGESIZE
14293 # define getpagesize() sysconf(_SC_PAGESIZE)
14294 # else /* no _SC_PAGESIZE */
14295 # if HAVE_SYS_PARAM_H
14296 # include <sys/param.h>
14297 # ifdef EXEC_PAGESIZE
14298 # define getpagesize() EXEC_PAGESIZE
14299 # else /* no EXEC_PAGESIZE */
14300 # ifdef NBPG
14301 # define getpagesize() NBPG * CLSIZE
14302 # ifndef CLSIZE
14303 # define CLSIZE 1
14304 # endif /* no CLSIZE */
14305 # else /* no NBPG */
14306 # ifdef NBPC
14307 # define getpagesize() NBPC
14308 # else /* no NBPC */
14309 # ifdef PAGESIZE
14310 # define getpagesize() PAGESIZE
14311 # endif /* PAGESIZE */
14312 # endif /* no NBPC */
14313 # endif /* no NBPG */
14314 # endif /* no EXEC_PAGESIZE */
14315 # else /* no HAVE_SYS_PARAM_H */
14316 # define getpagesize() 8192 /* punt totally */
14317 # endif /* no HAVE_SYS_PARAM_H */
14318 # endif /* no _SC_PAGESIZE */
14320 #endif /* no HAVE_GETPAGESIZE */
14323 main ()
14325 char *data, *data2, *data3;
14326 int i, pagesize;
14327 int fd;
14329 pagesize = getpagesize ();
14331 /* First, make a file with some known garbage in it. */
14332 data = (char *) malloc (pagesize);
14333 if (!data)
14334 exit (1);
14335 for (i = 0; i < pagesize; ++i)
14336 *(data + i) = rand ();
14337 umask (0);
14338 fd = creat ("conftest.mmap", 0600);
14339 if (fd < 0)
14340 exit (1);
14341 if (write (fd, data, pagesize) != pagesize)
14342 exit (1);
14343 close (fd);
14345 /* Next, try to mmap the file at a fixed address which already has
14346 something else allocated at it. If we can, also make sure that
14347 we see the same garbage. */
14348 fd = open ("conftest.mmap", O_RDWR);
14349 if (fd < 0)
14350 exit (1);
14351 data2 = (char *) malloc (2 * pagesize);
14352 if (!data2)
14353 exit (1);
14354 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14355 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14356 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14357 exit (1);
14358 for (i = 0; i < pagesize; ++i)
14359 if (*(data + i) != *(data2 + i))
14360 exit (1);
14362 /* Finally, make sure that changes to the mapped area do not
14363 percolate back to the file as seen by read(). (This is a bug on
14364 some variants of i386 svr4.0.) */
14365 for (i = 0; i < pagesize; ++i)
14366 *(data2 + i) = *(data2 + i) + 1;
14367 data3 = (char *) malloc (pagesize);
14368 if (!data3)
14369 exit (1);
14370 if (read (fd, data3, pagesize) != pagesize)
14371 exit (1);
14372 for (i = 0; i < pagesize; ++i)
14373 if (*(data + i) != *(data3 + i))
14374 exit (1);
14375 close (fd);
14376 exit (0);
14378 _ACEOF
14379 rm -f conftest$ac_exeext
14380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14381 (eval $ac_link) 2>&5
14382 ac_status=$?
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14386 (eval $ac_try) 2>&5
14387 ac_status=$?
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); }; }; then
14390 ac_cv_func_mmap_fixed_mapped=yes
14391 else
14392 echo "$as_me: program exited with status $ac_status" >&5
14393 echo "$as_me: failed program was:" >&5
14394 sed 's/^/| /' conftest.$ac_ext >&5
14396 ( exit $ac_status )
14397 ac_cv_func_mmap_fixed_mapped=no
14399 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14402 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14403 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14404 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14406 cat >>confdefs.h <<\_ACEOF
14407 #define HAVE_MMAP 1
14408 _ACEOF
14411 rm -f conftest.mmap
14415 for ac_func in munmap sysconf
14417 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14418 echo "$as_me:$LINENO: checking for $ac_func" >&5
14419 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14420 if eval "test \"\${$as_ac_var+set}\" = set"; then
14421 echo $ECHO_N "(cached) $ECHO_C" >&6
14422 else
14423 cat >conftest.$ac_ext <<_ACEOF
14424 /* confdefs.h. */
14425 _ACEOF
14426 cat confdefs.h >>conftest.$ac_ext
14427 cat >>conftest.$ac_ext <<_ACEOF
14428 /* end confdefs.h. */
14429 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14431 #define $ac_func innocuous_$ac_func
14433 /* System header to define __stub macros and hopefully few prototypes,
14434 which can conflict with char $ac_func (); below.
14435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14436 <limits.h> exists even on freestanding compilers. */
14438 #ifdef __STDC__
14439 # include <limits.h>
14440 #else
14441 # include <assert.h>
14442 #endif
14444 #undef $ac_func
14446 /* Override any gcc2 internal prototype to avoid an error. */
14447 #ifdef __cplusplus
14448 extern "C"
14450 #endif
14451 /* We use char because int might match the return type of a gcc2
14452 builtin and then its argument prototype would still apply. */
14453 char $ac_func ();
14454 /* The GNU C library defines this for functions which it implements
14455 to always fail with ENOSYS. Some functions are actually named
14456 something starting with __ and the normal name is an alias. */
14457 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14458 choke me
14459 #else
14460 char (*f) () = $ac_func;
14461 #endif
14462 #ifdef __cplusplus
14464 #endif
14467 main ()
14469 return f != $ac_func;
14471 return 0;
14473 _ACEOF
14474 rm -f conftest.$ac_objext conftest$ac_exeext
14475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14476 (eval $ac_link) 2>conftest.er1
14477 ac_status=$?
14478 grep -v '^ *+' conftest.er1 >conftest.err
14479 rm -f conftest.er1
14480 cat conftest.err >&5
14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); } &&
14483 { ac_try='test -z "$ac_c_werror_flag"
14484 || test ! -s conftest.err'
14485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14486 (eval $ac_try) 2>&5
14487 ac_status=$?
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); }; } &&
14490 { ac_try='test -s conftest$ac_exeext'
14491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14492 (eval $ac_try) 2>&5
14493 ac_status=$?
14494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); }; }; then
14496 eval "$as_ac_var=yes"
14497 else
14498 echo "$as_me: failed program was:" >&5
14499 sed 's/^/| /' conftest.$ac_ext >&5
14501 eval "$as_ac_var=no"
14503 rm -f conftest.err conftest.$ac_objext \
14504 conftest$ac_exeext conftest.$ac_ext
14506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14507 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14508 if test `eval echo '${'$as_ac_var'}'` = yes; then
14509 cat >>confdefs.h <<_ACEOF
14510 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14511 _ACEOF
14514 done
14516 if test $ac_cv_func_sysconf = yes; then
14518 echo "$as_me:$LINENO: checking for pagesize constant for sysconf" >&5
14519 echo $ECHO_N "checking for pagesize constant for sysconf... $ECHO_C" >&6
14520 cat >conftest.$ac_ext <<_ACEOF
14522 /* confdefs.h. */
14523 _ACEOF
14524 cat confdefs.h >>conftest.$ac_ext
14525 cat >>conftest.$ac_ext <<_ACEOF
14526 /* end confdefs.h. */
14528 #include <unistd.h>
14531 main ()
14534 return sysconf(_SC_PAGESIZE);
14537 return 0;
14540 _ACEOF
14541 rm -f conftest.$ac_objext conftest$ac_exeext
14542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14543 (eval $ac_link) 2>conftest.er1
14544 ac_status=$?
14545 grep -v '^ *+' conftest.er1 >conftest.err
14546 rm -f conftest.er1
14547 cat conftest.err >&5
14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 (exit $ac_status); } &&
14550 { ac_try='test -z "$ac_c_werror_flag"
14551 || test ! -s conftest.err'
14552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14553 (eval $ac_try) 2>&5
14554 ac_status=$?
14555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556 (exit $ac_status); }; } &&
14557 { ac_try='test -s conftest$ac_exeext'
14558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14559 (eval $ac_try) 2>&5
14560 ac_status=$?
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); }; }; then
14564 echo "$as_me:$LINENO: result: _SC_PAGESIZE" >&5
14565 echo "${ECHO_T}_SC_PAGESIZE" >&6
14567 cat >>confdefs.h <<\_ACEOF
14568 #define HAVE__SC_PAGESIZE 1
14569 _ACEOF
14572 else
14573 echo "$as_me: failed program was:" >&5
14574 sed 's/^/| /' conftest.$ac_ext >&5
14577 cat >conftest.$ac_ext <<_ACEOF
14579 /* confdefs.h. */
14580 _ACEOF
14581 cat confdefs.h >>conftest.$ac_ext
14582 cat >>conftest.$ac_ext <<_ACEOF
14583 /* end confdefs.h. */
14585 #include <unistd.h>
14588 main ()
14591 return sysconf(_SC_PAGE_SIZE);
14594 return 0;
14597 _ACEOF
14598 rm -f conftest.$ac_objext conftest$ac_exeext
14599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14600 (eval $ac_link) 2>conftest.er1
14601 ac_status=$?
14602 grep -v '^ *+' conftest.er1 >conftest.err
14603 rm -f conftest.er1
14604 cat conftest.err >&5
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); } &&
14607 { ac_try='test -z "$ac_c_werror_flag"
14608 || test ! -s conftest.err'
14609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14610 (eval $ac_try) 2>&5
14611 ac_status=$?
14612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613 (exit $ac_status); }; } &&
14614 { ac_try='test -s conftest$ac_exeext'
14615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14616 (eval $ac_try) 2>&5
14617 ac_status=$?
14618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619 (exit $ac_status); }; }; then
14621 echo "$as_me:$LINENO: result: _SC_PAGE_SIZE" >&5
14622 echo "${ECHO_T}_SC_PAGE_SIZE" >&6
14624 cat >>confdefs.h <<\_ACEOF
14625 #define HAVE__SC_PAGE_SIZE 1
14626 _ACEOF
14629 else
14630 echo "$as_me: failed program was:" >&5
14631 sed 's/^/| /' conftest.$ac_ext >&5
14634 echo "$as_me:$LINENO: result: none" >&5
14635 echo "${ECHO_T}none" >&6
14638 rm -f conftest.err conftest.$ac_objext \
14639 conftest$ac_exeext conftest.$ac_ext
14642 rm -f conftest.err conftest.$ac_objext \
14643 conftest$ac_exeext conftest.$ac_ext
14648 else
14650 # fake the result of the test for munmap() for the gettext macros
14651 ac_cv_func_munmap=no
14659 mule_backup_CPPFLAGS="$CPPFLAGS"
14660 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600"
14661 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
14662 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
14663 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
14664 echo $ECHO_N "(cached) $ECHO_C" >&6
14665 else
14666 cat >conftest.$ac_ext <<_ACEOF
14667 /* confdefs.h. */
14668 _ACEOF
14669 cat confdefs.h >>conftest.$ac_ext
14670 cat >>conftest.$ac_ext <<_ACEOF
14671 /* end confdefs.h. */
14672 $ac_includes_default
14674 main ()
14676 #ifndef strerror_r
14677 char *p = (char *) strerror_r;
14678 #endif
14681 return 0;
14683 _ACEOF
14684 rm -f conftest.$ac_objext
14685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14686 (eval $ac_compile) 2>conftest.er1
14687 ac_status=$?
14688 grep -v '^ *+' conftest.er1 >conftest.err
14689 rm -f conftest.er1
14690 cat conftest.err >&5
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); } &&
14693 { ac_try='test -z "$ac_c_werror_flag"
14694 || test ! -s conftest.err'
14695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14696 (eval $ac_try) 2>&5
14697 ac_status=$?
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); }; } &&
14700 { ac_try='test -s conftest.$ac_objext'
14701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14702 (eval $ac_try) 2>&5
14703 ac_status=$?
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); }; }; then
14706 ac_cv_have_decl_strerror_r=yes
14707 else
14708 echo "$as_me: failed program was:" >&5
14709 sed 's/^/| /' conftest.$ac_ext >&5
14711 ac_cv_have_decl_strerror_r=no
14713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14715 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
14716 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
14717 if test $ac_cv_have_decl_strerror_r = yes; then
14719 cat >>confdefs.h <<_ACEOF
14720 #define HAVE_DECL_STRERROR_R 1
14721 _ACEOF
14724 else
14725 cat >>confdefs.h <<_ACEOF
14726 #define HAVE_DECL_STRERROR_R 0
14727 _ACEOF
14734 for ac_func in strerror_r
14736 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14737 echo "$as_me:$LINENO: checking for $ac_func" >&5
14738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14739 if eval "test \"\${$as_ac_var+set}\" = set"; then
14740 echo $ECHO_N "(cached) $ECHO_C" >&6
14741 else
14742 cat >conftest.$ac_ext <<_ACEOF
14743 /* confdefs.h. */
14744 _ACEOF
14745 cat confdefs.h >>conftest.$ac_ext
14746 cat >>conftest.$ac_ext <<_ACEOF
14747 /* end confdefs.h. */
14748 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14750 #define $ac_func innocuous_$ac_func
14752 /* System header to define __stub macros and hopefully few prototypes,
14753 which can conflict with char $ac_func (); below.
14754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14755 <limits.h> exists even on freestanding compilers. */
14757 #ifdef __STDC__
14758 # include <limits.h>
14759 #else
14760 # include <assert.h>
14761 #endif
14763 #undef $ac_func
14765 /* Override any gcc2 internal prototype to avoid an error. */
14766 #ifdef __cplusplus
14767 extern "C"
14769 #endif
14770 /* We use char because int might match the return type of a gcc2
14771 builtin and then its argument prototype would still apply. */
14772 char $ac_func ();
14773 /* The GNU C library defines this for functions which it implements
14774 to always fail with ENOSYS. Some functions are actually named
14775 something starting with __ and the normal name is an alias. */
14776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14777 choke me
14778 #else
14779 char (*f) () = $ac_func;
14780 #endif
14781 #ifdef __cplusplus
14783 #endif
14786 main ()
14788 return f != $ac_func;
14790 return 0;
14792 _ACEOF
14793 rm -f conftest.$ac_objext conftest$ac_exeext
14794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14795 (eval $ac_link) 2>conftest.er1
14796 ac_status=$?
14797 grep -v '^ *+' conftest.er1 >conftest.err
14798 rm -f conftest.er1
14799 cat conftest.err >&5
14800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801 (exit $ac_status); } &&
14802 { ac_try='test -z "$ac_c_werror_flag"
14803 || test ! -s conftest.err'
14804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14805 (eval $ac_try) 2>&5
14806 ac_status=$?
14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); }; } &&
14809 { ac_try='test -s conftest$ac_exeext'
14810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14811 (eval $ac_try) 2>&5
14812 ac_status=$?
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); }; }; then
14815 eval "$as_ac_var=yes"
14816 else
14817 echo "$as_me: failed program was:" >&5
14818 sed 's/^/| /' conftest.$ac_ext >&5
14820 eval "$as_ac_var=no"
14822 rm -f conftest.err conftest.$ac_objext \
14823 conftest$ac_exeext conftest.$ac_ext
14825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14826 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14827 if test `eval echo '${'$as_ac_var'}'` = yes; then
14828 cat >>confdefs.h <<_ACEOF
14829 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14830 _ACEOF
14833 done
14835 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
14836 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
14837 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
14838 echo $ECHO_N "(cached) $ECHO_C" >&6
14839 else
14841 ac_cv_func_strerror_r_char_p=no
14842 if test $ac_cv_have_decl_strerror_r = yes; then
14843 cat >conftest.$ac_ext <<_ACEOF
14844 /* confdefs.h. */
14845 _ACEOF
14846 cat confdefs.h >>conftest.$ac_ext
14847 cat >>conftest.$ac_ext <<_ACEOF
14848 /* end confdefs.h. */
14849 $ac_includes_default
14851 main ()
14854 char buf[100];
14855 char x = *strerror_r (0, buf, sizeof buf);
14856 char *p = strerror_r (0, buf, sizeof buf);
14859 return 0;
14861 _ACEOF
14862 rm -f conftest.$ac_objext
14863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14864 (eval $ac_compile) 2>conftest.er1
14865 ac_status=$?
14866 grep -v '^ *+' conftest.er1 >conftest.err
14867 rm -f conftest.er1
14868 cat conftest.err >&5
14869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14870 (exit $ac_status); } &&
14871 { ac_try='test -z "$ac_c_werror_flag"
14872 || test ! -s conftest.err'
14873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14874 (eval $ac_try) 2>&5
14875 ac_status=$?
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); }; } &&
14878 { ac_try='test -s conftest.$ac_objext'
14879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14880 (eval $ac_try) 2>&5
14881 ac_status=$?
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); }; }; then
14884 ac_cv_func_strerror_r_char_p=yes
14885 else
14886 echo "$as_me: failed program was:" >&5
14887 sed 's/^/| /' conftest.$ac_ext >&5
14890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14891 else
14892 # strerror_r is not declared. Choose between
14893 # systems that have relatively inaccessible declarations for the
14894 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
14895 # former has a strerror_r that returns char*, while the latter
14896 # has a strerror_r that returns `int'.
14897 # This test should segfault on the DEC system.
14898 if test "$cross_compiling" = yes; then
14900 else
14901 cat >conftest.$ac_ext <<_ACEOF
14902 /* confdefs.h. */
14903 _ACEOF
14904 cat confdefs.h >>conftest.$ac_ext
14905 cat >>conftest.$ac_ext <<_ACEOF
14906 /* end confdefs.h. */
14907 $ac_includes_default
14908 extern char *strerror_r ();
14910 main ()
14912 char buf[100];
14913 char x = *strerror_r (0, buf, sizeof buf);
14914 exit (!isalpha (x));
14916 return 0;
14918 _ACEOF
14919 rm -f conftest$ac_exeext
14920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14921 (eval $ac_link) 2>&5
14922 ac_status=$?
14923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14926 (eval $ac_try) 2>&5
14927 ac_status=$?
14928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929 (exit $ac_status); }; }; then
14930 ac_cv_func_strerror_r_char_p=yes
14931 else
14932 echo "$as_me: program exited with status $ac_status" >&5
14933 echo "$as_me: failed program was:" >&5
14934 sed 's/^/| /' conftest.$ac_ext >&5
14937 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14942 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
14943 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
14944 if test $ac_cv_func_strerror_r_char_p = yes; then
14946 cat >>confdefs.h <<\_ACEOF
14947 #define STRERROR_R_CHAR_P 1
14948 _ACEOF
14952 CPPFLAGS="$mule_backup_CPPFLAGS"
14954 # Look for a way to preallocate disk space for files.
14955 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then
14957 echo "$as_me:$LINENO: checking for fallocate" >&5
14958 echo $ECHO_N "checking for fallocate... $ECHO_C" >&6
14959 mule_backup_CPPFLAGS="$CPPFLAGS"
14960 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
14961 cat >conftest.$ac_ext <<_ACEOF
14963 /* confdefs.h. */
14964 _ACEOF
14965 cat confdefs.h >>conftest.$ac_ext
14966 cat >>conftest.$ac_ext <<_ACEOF
14967 /* end confdefs.h. */
14969 #define _GNU_SOURCE
14970 #ifdef HAVE_FCNTL_H
14971 # include <fcntl.h>
14972 #endif
14973 #include <linux/falloc.h>
14976 main ()
14979 fallocate(0, 0, 0, 0);
14982 return 0;
14985 _ACEOF
14986 rm -f conftest.$ac_objext conftest$ac_exeext
14987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14988 (eval $ac_link) 2>conftest.er1
14989 ac_status=$?
14990 grep -v '^ *+' conftest.er1 >conftest.err
14991 rm -f conftest.er1
14992 cat conftest.err >&5
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); } &&
14995 { ac_try='test -z "$ac_c_werror_flag"
14996 || test ! -s conftest.err'
14997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14998 (eval $ac_try) 2>&5
14999 ac_status=$?
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); }; } &&
15002 { ac_try='test -s conftest$ac_exeext'
15003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15004 (eval $ac_try) 2>&5
15005 ac_status=$?
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); }; }; then
15011 cat >>confdefs.h <<\_ACEOF
15012 #define HAVE_FALLOCATE 1
15013 _ACEOF
15015 echo "$as_me:$LINENO: result: yes" >&5
15016 echo "${ECHO_T}yes" >&6
15018 else
15019 echo "$as_me: failed program was:" >&5
15020 sed 's/^/| /' conftest.$ac_ext >&5
15023 echo "$as_me:$LINENO: result: no" >&5
15024 echo "${ECHO_T}no" >&6
15027 rm -f conftest.err conftest.$ac_objext \
15028 conftest$ac_exeext conftest.$ac_ext
15029 CPPFLAGS="$mule_backup_CPPFLAGS"
15032 echo "$as_me:$LINENO: checking for SYS_fallocate" >&5
15033 echo $ECHO_N "checking for SYS_fallocate... $ECHO_C" >&6
15034 cat >conftest.$ac_ext <<_ACEOF
15036 /* confdefs.h. */
15037 _ACEOF
15038 cat confdefs.h >>conftest.$ac_ext
15039 cat >>conftest.$ac_ext <<_ACEOF
15040 /* end confdefs.h. */
15042 #include <sys/syscall.h>
15043 #include <sys/types.h>
15044 #include <unistd.h>
15047 main ()
15050 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0);
15053 return 0;
15056 _ACEOF
15057 rm -f conftest.$ac_objext conftest$ac_exeext
15058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15059 (eval $ac_link) 2>conftest.er1
15060 ac_status=$?
15061 grep -v '^ *+' conftest.er1 >conftest.err
15062 rm -f conftest.er1
15063 cat conftest.err >&5
15064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065 (exit $ac_status); } &&
15066 { ac_try='test -z "$ac_c_werror_flag"
15067 || test ! -s conftest.err'
15068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15069 (eval $ac_try) 2>&5
15070 ac_status=$?
15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072 (exit $ac_status); }; } &&
15073 { ac_try='test -s conftest$ac_exeext'
15074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15075 (eval $ac_try) 2>&5
15076 ac_status=$?
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); }; }; then
15082 cat >>confdefs.h <<\_ACEOF
15083 #define HAVE_SYS_FALLOCATE 1
15084 _ACEOF
15086 echo "$as_me:$LINENO: result: yes" >&5
15087 echo "${ECHO_T}yes" >&6
15089 else
15090 echo "$as_me: failed program was:" >&5
15091 sed 's/^/| /' conftest.$ac_ext >&5
15094 echo "$as_me:$LINENO: result: no" >&5
15095 echo "${ECHO_T}no" >&6
15098 rm -f conftest.err conftest.$ac_objext \
15099 conftest$ac_exeext conftest.$ac_ext
15101 echo "$as_me:$LINENO: checking for posix_fallocate" >&5
15102 echo $ECHO_N "checking for posix_fallocate... $ECHO_C" >&6
15103 cat >conftest.$ac_ext <<_ACEOF
15105 /* confdefs.h. */
15106 _ACEOF
15107 cat confdefs.h >>conftest.$ac_ext
15108 cat >>conftest.$ac_ext <<_ACEOF
15109 /* end confdefs.h. */
15111 #define _XOPEN_SOURCE 600
15112 #include <stdlib.h>
15113 #ifdef HAVE_FCNTL_H
15114 # include <fcntl.h>
15115 #endif
15118 main ()
15121 posix_fallocate(0, 0, 0);
15124 return 0;
15127 _ACEOF
15128 rm -f conftest.$ac_objext conftest$ac_exeext
15129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15130 (eval $ac_link) 2>conftest.er1
15131 ac_status=$?
15132 grep -v '^ *+' conftest.er1 >conftest.err
15133 rm -f conftest.er1
15134 cat conftest.err >&5
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); } &&
15137 { ac_try='test -z "$ac_c_werror_flag"
15138 || test ! -s conftest.err'
15139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15140 (eval $ac_try) 2>&5
15141 ac_status=$?
15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); }; } &&
15144 { ac_try='test -s conftest$ac_exeext'
15145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15146 (eval $ac_try) 2>&5
15147 ac_status=$?
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); }; }; then
15153 cat >>confdefs.h <<\_ACEOF
15154 #define HAVE_POSIX_FALLOCATE 1
15155 _ACEOF
15157 echo "$as_me:$LINENO: result: yes" >&5
15158 echo "${ECHO_T}yes" >&6
15160 else
15161 echo "$as_me: failed program was:" >&5
15162 sed 's/^/| /' conftest.$ac_ext >&5
15165 echo "$as_me:$LINENO: result: no" >&5
15166 echo "${ECHO_T}no" >&6
15169 rm -f conftest.err conftest.$ac_objext \
15170 conftest$ac_exeext conftest.$ac_ext
15175 # Checking Native Language Support
15178 MKINSTALLDIRS=
15179 if test -n "$ac_aux_dir"; then
15180 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
15182 if test -z "$MKINSTALLDIRS"; then
15183 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15190 # Extract the first word of "msgfmt", so it can be a program name with args.
15191 set dummy msgfmt; ac_word=$2
15192 echo "$as_me:$LINENO: checking for $ac_word" >&5
15193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15194 if test "${ac_cv_path_MSGFMT+set}" = set; then
15195 echo $ECHO_N "(cached) $ECHO_C" >&6
15196 else
15197 case "$MSGFMT" in
15199 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15202 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15203 for ac_dir in $PATH; do
15204 test -z "$ac_dir" && ac_dir=.
15205 if test -f $ac_dir/$ac_word; then
15206 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
15207 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15208 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
15209 break
15212 done
15213 IFS="$ac_save_ifs"
15214 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15216 esac
15218 MSGFMT="$ac_cv_path_MSGFMT"
15219 if test "$MSGFMT" != ":"; then
15220 echo "$as_me:$LINENO: result: $MSGFMT" >&5
15221 echo "${ECHO_T}$MSGFMT" >&6
15222 else
15223 echo "$as_me:$LINENO: result: no" >&5
15224 echo "${ECHO_T}no" >&6
15227 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15228 set dummy gmsgfmt; ac_word=$2
15229 echo "$as_me:$LINENO: checking for $ac_word" >&5
15230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15231 if test "${ac_cv_path_GMSGFMT+set}" = set; then
15232 echo $ECHO_N "(cached) $ECHO_C" >&6
15233 else
15234 case $GMSGFMT in
15235 [\\/]* | ?:[\\/]*)
15236 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15240 for as_dir in $PATH
15242 IFS=$as_save_IFS
15243 test -z "$as_dir" && as_dir=.
15244 for ac_exec_ext in '' $ac_executable_extensions; do
15245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15246 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15248 break 2
15250 done
15251 done
15253 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15255 esac
15257 GMSGFMT=$ac_cv_path_GMSGFMT
15259 if test -n "$GMSGFMT"; then
15260 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
15261 echo "${ECHO_T}$GMSGFMT" >&6
15262 else
15263 echo "$as_me:$LINENO: result: no" >&5
15264 echo "${ECHO_T}no" >&6
15268 # Extract the first word of "xgettext", so it can be a program name with args.
15269 set dummy xgettext; ac_word=$2
15270 echo "$as_me:$LINENO: checking for $ac_word" >&5
15271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15272 if test "${ac_cv_path_XGETTEXT+set}" = set; then
15273 echo $ECHO_N "(cached) $ECHO_C" >&6
15274 else
15275 case "$XGETTEXT" in
15277 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15280 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15281 for ac_dir in $PATH; do
15282 test -z "$ac_dir" && ac_dir=.
15283 if test -f $ac_dir/$ac_word; then
15284 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
15285 (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
15286 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
15287 break
15290 done
15291 IFS="$ac_save_ifs"
15292 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15294 esac
15296 XGETTEXT="$ac_cv_path_XGETTEXT"
15297 if test "$XGETTEXT" != ":"; then
15298 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15299 echo "${ECHO_T}$XGETTEXT" >&6
15300 else
15301 echo "$as_me:$LINENO: result: no" >&5
15302 echo "${ECHO_T}no" >&6
15305 rm -f messages.po
15307 # Extract the first word of "msgmerge", so it can be a program name with args.
15308 set dummy msgmerge; ac_word=$2
15309 echo "$as_me:$LINENO: checking for $ac_word" >&5
15310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15311 if test "${ac_cv_path_MSGMERGE+set}" = set; then
15312 echo $ECHO_N "(cached) $ECHO_C" >&6
15313 else
15314 case "$MSGMERGE" in
15316 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15319 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15320 for ac_dir in $PATH; do
15321 test -z "$ac_dir" && ac_dir=.
15322 if test -f $ac_dir/$ac_word; then
15323 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
15324 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
15325 break
15328 done
15329 IFS="$ac_save_ifs"
15330 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
15332 esac
15334 MSGMERGE="$ac_cv_path_MSGMERGE"
15335 if test "$MSGMERGE" != ":"; then
15336 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15337 echo "${ECHO_T}$MSGMERGE" >&6
15338 else
15339 echo "$as_me:$LINENO: result: no" >&5
15340 echo "${ECHO_T}no" >&6
15344 if test "$GMSGFMT" != ":"; then
15345 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
15346 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15348 else
15349 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
15350 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
15351 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
15352 GMSGFMT=":"
15356 if test "$XGETTEXT" != ":"; then
15357 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
15358 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15360 else
15361 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
15362 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
15363 XGETTEXT=":"
15365 rm -f messages.po
15368 ac_config_commands="$ac_config_commands default-1"
15371 echo "$as_me:$LINENO: checking for library containing strerror" >&5
15372 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
15373 if test "${ac_cv_search_strerror+set}" = set; then
15374 echo $ECHO_N "(cached) $ECHO_C" >&6
15375 else
15376 ac_func_search_save_LIBS=$LIBS
15377 ac_cv_search_strerror=no
15378 cat >conftest.$ac_ext <<_ACEOF
15379 /* confdefs.h. */
15380 _ACEOF
15381 cat confdefs.h >>conftest.$ac_ext
15382 cat >>conftest.$ac_ext <<_ACEOF
15383 /* end confdefs.h. */
15385 /* Override any gcc2 internal prototype to avoid an error. */
15386 #ifdef __cplusplus
15387 extern "C"
15388 #endif
15389 /* We use char because int might match the return type of a gcc2
15390 builtin and then its argument prototype would still apply. */
15391 char strerror ();
15393 main ()
15395 strerror ();
15397 return 0;
15399 _ACEOF
15400 rm -f conftest.$ac_objext conftest$ac_exeext
15401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15402 (eval $ac_link) 2>conftest.er1
15403 ac_status=$?
15404 grep -v '^ *+' conftest.er1 >conftest.err
15405 rm -f conftest.er1
15406 cat conftest.err >&5
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); } &&
15409 { ac_try='test -z "$ac_c_werror_flag"
15410 || test ! -s conftest.err'
15411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15412 (eval $ac_try) 2>&5
15413 ac_status=$?
15414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415 (exit $ac_status); }; } &&
15416 { ac_try='test -s conftest$ac_exeext'
15417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15418 (eval $ac_try) 2>&5
15419 ac_status=$?
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); }; }; then
15422 ac_cv_search_strerror="none required"
15423 else
15424 echo "$as_me: failed program was:" >&5
15425 sed 's/^/| /' conftest.$ac_ext >&5
15428 rm -f conftest.err conftest.$ac_objext \
15429 conftest$ac_exeext conftest.$ac_ext
15430 if test "$ac_cv_search_strerror" = no; then
15431 for ac_lib in cposix; do
15432 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15433 cat >conftest.$ac_ext <<_ACEOF
15434 /* confdefs.h. */
15435 _ACEOF
15436 cat confdefs.h >>conftest.$ac_ext
15437 cat >>conftest.$ac_ext <<_ACEOF
15438 /* end confdefs.h. */
15440 /* Override any gcc2 internal prototype to avoid an error. */
15441 #ifdef __cplusplus
15442 extern "C"
15443 #endif
15444 /* We use char because int might match the return type of a gcc2
15445 builtin and then its argument prototype would still apply. */
15446 char strerror ();
15448 main ()
15450 strerror ();
15452 return 0;
15454 _ACEOF
15455 rm -f conftest.$ac_objext conftest$ac_exeext
15456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15457 (eval $ac_link) 2>conftest.er1
15458 ac_status=$?
15459 grep -v '^ *+' conftest.er1 >conftest.err
15460 rm -f conftest.er1
15461 cat conftest.err >&5
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); } &&
15464 { ac_try='test -z "$ac_c_werror_flag"
15465 || test ! -s conftest.err'
15466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15467 (eval $ac_try) 2>&5
15468 ac_status=$?
15469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470 (exit $ac_status); }; } &&
15471 { ac_try='test -s conftest$ac_exeext'
15472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15473 (eval $ac_try) 2>&5
15474 ac_status=$?
15475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476 (exit $ac_status); }; }; then
15477 ac_cv_search_strerror="-l$ac_lib"
15478 break
15479 else
15480 echo "$as_me: failed program was:" >&5
15481 sed 's/^/| /' conftest.$ac_ext >&5
15484 rm -f conftest.err conftest.$ac_objext \
15485 conftest$ac_exeext conftest.$ac_ext
15486 done
15488 LIBS=$ac_func_search_save_LIBS
15490 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
15491 echo "${ECHO_T}$ac_cv_search_strerror" >&6
15492 if test "$ac_cv_search_strerror" != no; then
15493 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
15498 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
15499 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
15500 if test "${ac_cv_gnu_library_2_1+set}" = set; then
15501 echo $ECHO_N "(cached) $ECHO_C" >&6
15502 else
15503 cat >conftest.$ac_ext <<_ACEOF
15504 /* confdefs.h. */
15505 _ACEOF
15506 cat confdefs.h >>conftest.$ac_ext
15507 cat >>conftest.$ac_ext <<_ACEOF
15508 /* end confdefs.h. */
15510 #include <features.h>
15511 #ifdef __GNU_LIBRARY__
15512 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
15513 Lucky GNU user
15514 #endif
15515 #endif
15517 _ACEOF
15518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15519 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
15520 ac_cv_gnu_library_2_1=yes
15521 else
15522 ac_cv_gnu_library_2_1=no
15524 rm -f conftest*
15529 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
15530 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
15532 GLIBC21="$ac_cv_gnu_library_2_1"
15537 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
15538 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
15539 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
15540 echo $ECHO_N "(cached) $ECHO_C" >&6
15541 else
15543 if test "$cross_compiling" = yes; then
15545 # Guess based on the CPU.
15546 case "$host_cpu" in
15547 alpha* | i3456786 | m68k | s390*)
15548 gt_cv_int_divbyzero_sigfpe="guessing yes";;
15550 gt_cv_int_divbyzero_sigfpe="guessing no";;
15551 esac
15553 else
15554 cat >conftest.$ac_ext <<_ACEOF
15555 /* confdefs.h. */
15556 _ACEOF
15557 cat confdefs.h >>conftest.$ac_ext
15558 cat >>conftest.$ac_ext <<_ACEOF
15559 /* end confdefs.h. */
15561 #include <stdlib.h>
15562 #include <signal.h>
15564 static void
15565 #ifdef __cplusplus
15566 sigfpe_handler (int sig)
15567 #else
15568 sigfpe_handler (sig) int sig;
15569 #endif
15571 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
15572 exit (sig != SIGFPE);
15575 int x = 1;
15576 int y = 0;
15577 int z;
15578 int nan;
15580 int main ()
15582 signal (SIGFPE, sigfpe_handler);
15583 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
15584 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
15585 signal (SIGTRAP, sigfpe_handler);
15586 #endif
15587 /* Linux/SPARC yields signal SIGILL. */
15588 #if defined (__sparc__) && defined (__linux__)
15589 signal (SIGILL, sigfpe_handler);
15590 #endif
15592 z = x / y;
15593 nan = y / y;
15594 exit (1);
15597 _ACEOF
15598 rm -f conftest$ac_exeext
15599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15600 (eval $ac_link) 2>&5
15601 ac_status=$?
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15605 (eval $ac_try) 2>&5
15606 ac_status=$?
15607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608 (exit $ac_status); }; }; then
15609 gt_cv_int_divbyzero_sigfpe=yes
15610 else
15611 echo "$as_me: program exited with status $ac_status" >&5
15612 echo "$as_me: failed program was:" >&5
15613 sed 's/^/| /' conftest.$ac_ext >&5
15615 ( exit $ac_status )
15616 gt_cv_int_divbyzero_sigfpe=no
15618 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15622 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
15623 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
15624 case "$gt_cv_int_divbyzero_sigfpe" in
15625 *yes) value=1;;
15626 *) value=0;;
15627 esac
15629 cat >>confdefs.h <<_ACEOF
15630 #define INTDIV0_RAISES_SIGFPE $value
15631 _ACEOF
15635 echo "$as_me:$LINENO: checking for inttypes.h" >&5
15636 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
15637 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
15638 echo $ECHO_N "(cached) $ECHO_C" >&6
15639 else
15640 cat >conftest.$ac_ext <<_ACEOF
15641 /* confdefs.h. */
15642 _ACEOF
15643 cat confdefs.h >>conftest.$ac_ext
15644 cat >>conftest.$ac_ext <<_ACEOF
15645 /* end confdefs.h. */
15646 #include <sys/types.h>
15647 #include <inttypes.h>
15649 main ()
15651 uintmax_t i = (uintmax_t) -1;
15653 return 0;
15655 _ACEOF
15656 rm -f conftest.$ac_objext
15657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15658 (eval $ac_compile) 2>conftest.er1
15659 ac_status=$?
15660 grep -v '^ *+' conftest.er1 >conftest.err
15661 rm -f conftest.er1
15662 cat conftest.err >&5
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); } &&
15665 { ac_try='test -z "$ac_c_werror_flag"
15666 || test ! -s conftest.err'
15667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15668 (eval $ac_try) 2>&5
15669 ac_status=$?
15670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671 (exit $ac_status); }; } &&
15672 { ac_try='test -s conftest.$ac_objext'
15673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15674 (eval $ac_try) 2>&5
15675 ac_status=$?
15676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677 (exit $ac_status); }; }; then
15678 jm_ac_cv_header_inttypes_h=yes
15679 else
15680 echo "$as_me: failed program was:" >&5
15681 sed 's/^/| /' conftest.$ac_ext >&5
15683 jm_ac_cv_header_inttypes_h=no
15685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15687 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
15688 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
15689 if test $jm_ac_cv_header_inttypes_h = yes; then
15691 cat >>confdefs.h <<_ACEOF
15692 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
15693 _ACEOF
15698 echo "$as_me:$LINENO: checking for stdint.h" >&5
15699 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
15700 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
15701 echo $ECHO_N "(cached) $ECHO_C" >&6
15702 else
15703 cat >conftest.$ac_ext <<_ACEOF
15704 /* confdefs.h. */
15705 _ACEOF
15706 cat confdefs.h >>conftest.$ac_ext
15707 cat >>conftest.$ac_ext <<_ACEOF
15708 /* end confdefs.h. */
15709 #include <sys/types.h>
15710 #include <stdint.h>
15712 main ()
15714 uintmax_t i = (uintmax_t) -1;
15716 return 0;
15718 _ACEOF
15719 rm -f conftest.$ac_objext
15720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15721 (eval $ac_compile) 2>conftest.er1
15722 ac_status=$?
15723 grep -v '^ *+' conftest.er1 >conftest.err
15724 rm -f conftest.er1
15725 cat conftest.err >&5
15726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727 (exit $ac_status); } &&
15728 { ac_try='test -z "$ac_c_werror_flag"
15729 || test ! -s conftest.err'
15730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15731 (eval $ac_try) 2>&5
15732 ac_status=$?
15733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734 (exit $ac_status); }; } &&
15735 { ac_try='test -s conftest.$ac_objext'
15736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15737 (eval $ac_try) 2>&5
15738 ac_status=$?
15739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740 (exit $ac_status); }; }; then
15741 jm_ac_cv_header_stdint_h=yes
15742 else
15743 echo "$as_me: failed program was:" >&5
15744 sed 's/^/| /' conftest.$ac_ext >&5
15746 jm_ac_cv_header_stdint_h=no
15748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15750 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
15751 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
15752 if test $jm_ac_cv_header_stdint_h = yes; then
15754 cat >>confdefs.h <<_ACEOF
15755 #define HAVE_STDINT_H_WITH_UINTMAX 1
15756 _ACEOF
15761 echo "$as_me:$LINENO: checking for unsigned long long" >&5
15762 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
15763 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
15764 echo $ECHO_N "(cached) $ECHO_C" >&6
15765 else
15766 cat >conftest.$ac_ext <<_ACEOF
15767 /* confdefs.h. */
15768 _ACEOF
15769 cat confdefs.h >>conftest.$ac_ext
15770 cat >>conftest.$ac_ext <<_ACEOF
15771 /* end confdefs.h. */
15772 unsigned long long ull = 1; int i = 63;
15774 main ()
15776 unsigned long long ullmax = (unsigned long long) -1;
15777 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
15779 return 0;
15781 _ACEOF
15782 rm -f conftest.$ac_objext conftest$ac_exeext
15783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15784 (eval $ac_link) 2>conftest.er1
15785 ac_status=$?
15786 grep -v '^ *+' conftest.er1 >conftest.err
15787 rm -f conftest.er1
15788 cat conftest.err >&5
15789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790 (exit $ac_status); } &&
15791 { ac_try='test -z "$ac_c_werror_flag"
15792 || test ! -s conftest.err'
15793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15794 (eval $ac_try) 2>&5
15795 ac_status=$?
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); }; } &&
15798 { ac_try='test -s conftest$ac_exeext'
15799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15800 (eval $ac_try) 2>&5
15801 ac_status=$?
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); }; }; then
15804 ac_cv_type_unsigned_long_long=yes
15805 else
15806 echo "$as_me: failed program was:" >&5
15807 sed 's/^/| /' conftest.$ac_ext >&5
15809 ac_cv_type_unsigned_long_long=no
15811 rm -f conftest.err conftest.$ac_objext \
15812 conftest$ac_exeext conftest.$ac_ext
15814 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
15815 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
15816 if test $ac_cv_type_unsigned_long_long = yes; then
15818 cat >>confdefs.h <<\_ACEOF
15819 #define HAVE_UNSIGNED_LONG_LONG 1
15820 _ACEOF
15827 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
15829 test $ac_cv_type_unsigned_long_long = yes \
15830 && ac_type='unsigned long long' \
15831 || ac_type='unsigned long'
15833 cat >>confdefs.h <<_ACEOF
15834 #define uintmax_t $ac_type
15835 _ACEOF
15840 echo "$as_me:$LINENO: checking for inttypes.h" >&5
15841 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
15842 if test "${gt_cv_header_inttypes_h+set}" = set; then
15843 echo $ECHO_N "(cached) $ECHO_C" >&6
15844 else
15846 cat >conftest.$ac_ext <<_ACEOF
15847 /* confdefs.h. */
15848 _ACEOF
15849 cat confdefs.h >>conftest.$ac_ext
15850 cat >>conftest.$ac_ext <<_ACEOF
15851 /* end confdefs.h. */
15852 #include <sys/types.h>
15853 #include <inttypes.h>
15855 main ()
15859 return 0;
15861 _ACEOF
15862 rm -f conftest.$ac_objext
15863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15864 (eval $ac_compile) 2>conftest.er1
15865 ac_status=$?
15866 grep -v '^ *+' conftest.er1 >conftest.err
15867 rm -f conftest.er1
15868 cat conftest.err >&5
15869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870 (exit $ac_status); } &&
15871 { ac_try='test -z "$ac_c_werror_flag"
15872 || test ! -s conftest.err'
15873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15874 (eval $ac_try) 2>&5
15875 ac_status=$?
15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); }; } &&
15878 { ac_try='test -s conftest.$ac_objext'
15879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15880 (eval $ac_try) 2>&5
15881 ac_status=$?
15882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15883 (exit $ac_status); }; }; then
15884 gt_cv_header_inttypes_h=yes
15885 else
15886 echo "$as_me: failed program was:" >&5
15887 sed 's/^/| /' conftest.$ac_ext >&5
15889 gt_cv_header_inttypes_h=no
15891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15894 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
15895 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
15896 if test $gt_cv_header_inttypes_h = yes; then
15898 cat >>confdefs.h <<_ACEOF
15899 #define HAVE_INTTYPES_H 1
15900 _ACEOF
15906 if test $gt_cv_header_inttypes_h = yes; then
15907 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
15908 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
15909 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
15910 echo $ECHO_N "(cached) $ECHO_C" >&6
15911 else
15913 cat >conftest.$ac_ext <<_ACEOF
15914 /* confdefs.h. */
15915 _ACEOF
15916 cat confdefs.h >>conftest.$ac_ext
15917 cat >>conftest.$ac_ext <<_ACEOF
15918 /* end confdefs.h. */
15919 #include <inttypes.h>
15920 #ifdef PRId32
15921 char *p = PRId32;
15922 #endif
15925 main ()
15929 return 0;
15931 _ACEOF
15932 rm -f conftest.$ac_objext
15933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15934 (eval $ac_compile) 2>conftest.er1
15935 ac_status=$?
15936 grep -v '^ *+' conftest.er1 >conftest.err
15937 rm -f conftest.er1
15938 cat conftest.err >&5
15939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940 (exit $ac_status); } &&
15941 { ac_try='test -z "$ac_c_werror_flag"
15942 || test ! -s conftest.err'
15943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15944 (eval $ac_try) 2>&5
15945 ac_status=$?
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); }; } &&
15948 { ac_try='test -s conftest.$ac_objext'
15949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15950 (eval $ac_try) 2>&5
15951 ac_status=$?
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); }; }; then
15954 gt_cv_inttypes_pri_broken=no
15955 else
15956 echo "$as_me: failed program was:" >&5
15957 sed 's/^/| /' conftest.$ac_ext >&5
15959 gt_cv_inttypes_pri_broken=yes
15961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15964 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
15965 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
15967 if test "$gt_cv_inttypes_pri_broken" = yes; then
15969 cat >>confdefs.h <<_ACEOF
15970 #define PRI_MACROS_BROKEN 1
15971 _ACEOF
15976 if test "X$prefix" = "XNONE"; then
15977 acl_final_prefix="$ac_default_prefix"
15978 else
15979 acl_final_prefix="$prefix"
15981 if test "X$exec_prefix" = "XNONE"; then
15982 acl_final_exec_prefix='${prefix}'
15983 else
15984 acl_final_exec_prefix="$exec_prefix"
15986 acl_save_prefix="$prefix"
15987 prefix="$acl_final_prefix"
15988 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
15989 prefix="$acl_save_prefix"
15992 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15993 if test "${with_gnu_ld+set}" = set; then
15994 withval="$with_gnu_ld"
15995 test "$withval" = no || with_gnu_ld=yes
15996 else
15997 with_gnu_ld=no
15999 ac_prog=ld
16000 if test "$GCC" = yes; then
16001 # Check if gcc -print-prog-name=ld gives a path.
16002 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16003 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
16004 case $host in
16005 *-*-mingw*)
16006 # gcc leaves a trailing carriage return which upsets mingw
16007 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16009 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16010 esac
16011 case $ac_prog in
16012 # Accept absolute paths.
16013 [\\/]* | [A-Za-z]:[\\/]*)
16014 re_direlt='/[^/][^/]*/\.\./'
16015 # Canonicalize the path of ld
16016 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16017 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16018 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16019 done
16020 test -z "$LD" && LD="$ac_prog"
16023 # If it fails, then pretend we aren't using GCC.
16024 ac_prog=ld
16027 # If it is relative, then search for the first ld in PATH.
16028 with_gnu_ld=unknown
16030 esac
16031 elif test "$with_gnu_ld" = yes; then
16032 echo "$as_me:$LINENO: checking for GNU ld" >&5
16033 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
16034 else
16035 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16036 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
16038 if test "${acl_cv_path_LD+set}" = set; then
16039 echo $ECHO_N "(cached) $ECHO_C" >&6
16040 else
16041 if test -z "$LD"; then
16042 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16043 for ac_dir in $PATH; do
16044 test -z "$ac_dir" && ac_dir=.
16045 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16046 acl_cv_path_LD="$ac_dir/$ac_prog"
16047 # Check to see if the program is GNU ld. I'd rather use --version,
16048 # but apparently some GNU ld's only accept -v.
16049 # Break only if it was the GNU/non-GNU ld that we prefer.
16050 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
16051 test "$with_gnu_ld" != no && break
16052 else
16053 test "$with_gnu_ld" != yes && break
16056 done
16057 IFS="$ac_save_ifs"
16058 else
16059 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16063 LD="$acl_cv_path_LD"
16064 if test -n "$LD"; then
16065 echo "$as_me:$LINENO: result: $LD" >&5
16066 echo "${ECHO_T}$LD" >&6
16067 else
16068 echo "$as_me:$LINENO: result: no" >&5
16069 echo "${ECHO_T}no" >&6
16071 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16072 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16073 { (exit 1); exit 1; }; }
16074 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16075 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
16076 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16077 echo $ECHO_N "(cached) $ECHO_C" >&6
16078 else
16079 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16080 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
16081 acl_cv_prog_gnu_ld=yes
16082 else
16083 acl_cv_prog_gnu_ld=no
16086 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16087 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
16088 with_gnu_ld=$acl_cv_prog_gnu_ld
16092 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16093 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
16094 if test "${acl_cv_rpath+set}" = set; then
16095 echo $ECHO_N "(cached) $ECHO_C" >&6
16096 else
16098 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16099 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16100 . ./conftest.sh
16101 rm -f ./conftest.sh
16102 acl_cv_rpath=done
16105 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16106 echo "${ECHO_T}$acl_cv_rpath" >&6
16107 wl="$acl_cv_wl"
16108 libext="$acl_cv_libext"
16109 shlibext="$acl_cv_shlibext"
16110 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16111 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16112 hardcode_direct="$acl_cv_hardcode_direct"
16113 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16114 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
16115 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
16116 # Check whether --enable-rpath or --disable-rpath was given.
16117 if test "${enable_rpath+set}" = set; then
16118 enableval="$enable_rpath"
16120 else
16121 enable_rpath=yes
16130 use_additional=yes
16132 acl_save_prefix="$prefix"
16133 prefix="$acl_final_prefix"
16134 acl_save_exec_prefix="$exec_prefix"
16135 exec_prefix="$acl_final_exec_prefix"
16137 eval additional_includedir=\"$includedir\"
16138 eval additional_libdir=\"$libdir\"
16140 exec_prefix="$acl_save_exec_prefix"
16141 prefix="$acl_save_prefix"
16144 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
16145 if test "${with_libiconv_prefix+set}" = set; then
16146 withval="$with_libiconv_prefix"
16148 if test "X$withval" = "Xno"; then
16149 use_additional=no
16150 else
16151 if test "X$withval" = "X"; then
16153 acl_save_prefix="$prefix"
16154 prefix="$acl_final_prefix"
16155 acl_save_exec_prefix="$exec_prefix"
16156 exec_prefix="$acl_final_exec_prefix"
16158 eval additional_includedir=\"$includedir\"
16159 eval additional_libdir=\"$libdir\"
16161 exec_prefix="$acl_save_exec_prefix"
16162 prefix="$acl_save_prefix"
16164 else
16165 additional_includedir="$withval/include"
16166 additional_libdir="$withval/lib"
16171 LIBICONV=
16172 LTLIBICONV=
16173 INCICONV=
16174 rpathdirs=
16175 ltrpathdirs=
16176 names_already_handled=
16177 names_next_round='iconv '
16178 while test -n "$names_next_round"; do
16179 names_this_round="$names_next_round"
16180 names_next_round=
16181 for name in $names_this_round; do
16182 already_handled=
16183 for n in $names_already_handled; do
16184 if test "$n" = "$name"; then
16185 already_handled=yes
16186 break
16188 done
16189 if test -z "$already_handled"; then
16190 names_already_handled="$names_already_handled $name"
16191 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16192 eval value=\"\$HAVE_LIB$uppername\"
16193 if test -n "$value"; then
16194 if test "$value" = yes; then
16195 eval value=\"\$LIB$uppername\"
16196 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16197 eval value=\"\$LTLIB$uppername\"
16198 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16199 else
16202 else
16203 found_dir=
16204 found_la=
16205 found_so=
16206 found_a=
16207 if test $use_additional = yes; then
16208 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16209 found_dir="$additional_libdir"
16210 found_so="$additional_libdir/lib$name.$shlibext"
16211 if test -f "$additional_libdir/lib$name.la"; then
16212 found_la="$additional_libdir/lib$name.la"
16214 else
16215 if test -f "$additional_libdir/lib$name.$libext"; then
16216 found_dir="$additional_libdir"
16217 found_a="$additional_libdir/lib$name.$libext"
16218 if test -f "$additional_libdir/lib$name.la"; then
16219 found_la="$additional_libdir/lib$name.la"
16224 if test "X$found_dir" = "X"; then
16225 for x in $LDFLAGS $LTLIBICONV; do
16227 acl_save_prefix="$prefix"
16228 prefix="$acl_final_prefix"
16229 acl_save_exec_prefix="$exec_prefix"
16230 exec_prefix="$acl_final_exec_prefix"
16231 eval x=\"$x\"
16232 exec_prefix="$acl_save_exec_prefix"
16233 prefix="$acl_save_prefix"
16235 case "$x" in
16236 -L*)
16237 dir=`echo "X$x" | sed -e 's/^X-L//'`
16238 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16239 found_dir="$dir"
16240 found_so="$dir/lib$name.$shlibext"
16241 if test -f "$dir/lib$name.la"; then
16242 found_la="$dir/lib$name.la"
16244 else
16245 if test -f "$dir/lib$name.$libext"; then
16246 found_dir="$dir"
16247 found_a="$dir/lib$name.$libext"
16248 if test -f "$dir/lib$name.la"; then
16249 found_la="$dir/lib$name.la"
16254 esac
16255 if test "X$found_dir" != "X"; then
16256 break
16258 done
16260 if test "X$found_dir" != "X"; then
16261 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16262 if test "X$found_so" != "X"; then
16263 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16264 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16265 else
16266 haveit=
16267 for x in $ltrpathdirs; do
16268 if test "X$x" = "X$found_dir"; then
16269 haveit=yes
16270 break
16272 done
16273 if test -z "$haveit"; then
16274 ltrpathdirs="$ltrpathdirs $found_dir"
16276 if test "$hardcode_direct" = yes; then
16277 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16278 else
16279 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16280 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16281 haveit=
16282 for x in $rpathdirs; do
16283 if test "X$x" = "X$found_dir"; then
16284 haveit=yes
16285 break
16287 done
16288 if test -z "$haveit"; then
16289 rpathdirs="$rpathdirs $found_dir"
16291 else
16292 haveit=
16293 for x in $LDFLAGS $LIBICONV; do
16295 acl_save_prefix="$prefix"
16296 prefix="$acl_final_prefix"
16297 acl_save_exec_prefix="$exec_prefix"
16298 exec_prefix="$acl_final_exec_prefix"
16299 eval x=\"$x\"
16300 exec_prefix="$acl_save_exec_prefix"
16301 prefix="$acl_save_prefix"
16303 if test "X$x" = "X-L$found_dir"; then
16304 haveit=yes
16305 break
16307 done
16308 if test -z "$haveit"; then
16309 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16311 if test "$hardcode_minus_L" != no; then
16312 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16313 else
16314 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16319 else
16320 if test "X$found_a" != "X"; then
16321 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16322 else
16323 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16326 additional_includedir=
16327 case "$found_dir" in
16328 */lib | */lib/)
16329 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16330 additional_includedir="$basedir/include"
16332 esac
16333 if test "X$additional_includedir" != "X"; then
16334 if test "X$additional_includedir" != "X/usr/include"; then
16335 haveit=
16336 if test "X$additional_includedir" = "X/usr/local/include"; then
16337 if test -n "$GCC"; then
16338 case $host_os in
16339 linux*) haveit=yes;;
16340 esac
16343 if test -z "$haveit"; then
16344 for x in $CPPFLAGS $INCICONV; do
16346 acl_save_prefix="$prefix"
16347 prefix="$acl_final_prefix"
16348 acl_save_exec_prefix="$exec_prefix"
16349 exec_prefix="$acl_final_exec_prefix"
16350 eval x=\"$x\"
16351 exec_prefix="$acl_save_exec_prefix"
16352 prefix="$acl_save_prefix"
16354 if test "X$x" = "X-I$additional_includedir"; then
16355 haveit=yes
16356 break
16358 done
16359 if test -z "$haveit"; then
16360 if test -d "$additional_includedir"; then
16361 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16367 if test -n "$found_la"; then
16368 save_libdir="$libdir"
16369 case "$found_la" in
16370 */* | *\\*) . "$found_la" ;;
16371 *) . "./$found_la" ;;
16372 esac
16373 libdir="$save_libdir"
16374 for dep in $dependency_libs; do
16375 case "$dep" in
16376 -L*)
16377 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16378 if test "X$additional_libdir" != "X/usr/lib"; then
16379 haveit=
16380 if test "X$additional_libdir" = "X/usr/local/lib"; then
16381 if test -n "$GCC"; then
16382 case $host_os in
16383 linux*) haveit=yes;;
16384 esac
16387 if test -z "$haveit"; then
16388 haveit=
16389 for x in $LDFLAGS $LIBICONV; do
16391 acl_save_prefix="$prefix"
16392 prefix="$acl_final_prefix"
16393 acl_save_exec_prefix="$exec_prefix"
16394 exec_prefix="$acl_final_exec_prefix"
16395 eval x=\"$x\"
16396 exec_prefix="$acl_save_exec_prefix"
16397 prefix="$acl_save_prefix"
16399 if test "X$x" = "X-L$additional_libdir"; then
16400 haveit=yes
16401 break
16403 done
16404 if test -z "$haveit"; then
16405 if test -d "$additional_libdir"; then
16406 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16409 haveit=
16410 for x in $LDFLAGS $LTLIBICONV; do
16412 acl_save_prefix="$prefix"
16413 prefix="$acl_final_prefix"
16414 acl_save_exec_prefix="$exec_prefix"
16415 exec_prefix="$acl_final_exec_prefix"
16416 eval x=\"$x\"
16417 exec_prefix="$acl_save_exec_prefix"
16418 prefix="$acl_save_prefix"
16420 if test "X$x" = "X-L$additional_libdir"; then
16421 haveit=yes
16422 break
16424 done
16425 if test -z "$haveit"; then
16426 if test -d "$additional_libdir"; then
16427 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16433 -R*)
16434 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16435 if test "$enable_rpath" != no; then
16436 haveit=
16437 for x in $rpathdirs; do
16438 if test "X$x" = "X$dir"; then
16439 haveit=yes
16440 break
16442 done
16443 if test -z "$haveit"; then
16444 rpathdirs="$rpathdirs $dir"
16446 haveit=
16447 for x in $ltrpathdirs; do
16448 if test "X$x" = "X$dir"; then
16449 haveit=yes
16450 break
16452 done
16453 if test -z "$haveit"; then
16454 ltrpathdirs="$ltrpathdirs $dir"
16458 -l*)
16459 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16461 *.la)
16462 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16465 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16466 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16468 esac
16469 done
16471 else
16472 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16473 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16477 done
16478 done
16479 if test "X$rpathdirs" != "X"; then
16480 if test -n "$hardcode_libdir_separator"; then
16481 alldirs=
16482 for found_dir in $rpathdirs; do
16483 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16484 done
16485 acl_save_libdir="$libdir"
16486 libdir="$alldirs"
16487 eval flag=\"$hardcode_libdir_flag_spec\"
16488 libdir="$acl_save_libdir"
16489 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16490 else
16491 for found_dir in $rpathdirs; do
16492 acl_save_libdir="$libdir"
16493 libdir="$found_dir"
16494 eval flag=\"$hardcode_libdir_flag_spec\"
16495 libdir="$acl_save_libdir"
16496 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16497 done
16500 if test "X$ltrpathdirs" != "X"; then
16501 for found_dir in $ltrpathdirs; do
16502 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16503 done
16519 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
16520 stdlib.h string.h unistd.h sys/param.h
16522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16524 echo "$as_me:$LINENO: checking for $ac_header" >&5
16525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16527 echo $ECHO_N "(cached) $ECHO_C" >&6
16529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16531 else
16532 # Is the header compilable?
16533 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16534 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16535 cat >conftest.$ac_ext <<_ACEOF
16536 /* confdefs.h. */
16537 _ACEOF
16538 cat confdefs.h >>conftest.$ac_ext
16539 cat >>conftest.$ac_ext <<_ACEOF
16540 /* end confdefs.h. */
16541 $ac_includes_default
16542 #include <$ac_header>
16543 _ACEOF
16544 rm -f conftest.$ac_objext
16545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16546 (eval $ac_compile) 2>conftest.er1
16547 ac_status=$?
16548 grep -v '^ *+' conftest.er1 >conftest.err
16549 rm -f conftest.er1
16550 cat conftest.err >&5
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); } &&
16553 { ac_try='test -z "$ac_c_werror_flag"
16554 || test ! -s conftest.err'
16555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16556 (eval $ac_try) 2>&5
16557 ac_status=$?
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); }; } &&
16560 { ac_try='test -s conftest.$ac_objext'
16561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16562 (eval $ac_try) 2>&5
16563 ac_status=$?
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); }; }; then
16566 ac_header_compiler=yes
16567 else
16568 echo "$as_me: failed program was:" >&5
16569 sed 's/^/| /' conftest.$ac_ext >&5
16571 ac_header_compiler=no
16573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16574 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16575 echo "${ECHO_T}$ac_header_compiler" >&6
16577 # Is the header present?
16578 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16579 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16580 cat >conftest.$ac_ext <<_ACEOF
16581 /* confdefs.h. */
16582 _ACEOF
16583 cat confdefs.h >>conftest.$ac_ext
16584 cat >>conftest.$ac_ext <<_ACEOF
16585 /* end confdefs.h. */
16586 #include <$ac_header>
16587 _ACEOF
16588 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16590 ac_status=$?
16591 grep -v '^ *+' conftest.er1 >conftest.err
16592 rm -f conftest.er1
16593 cat conftest.err >&5
16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); } >/dev/null; then
16596 if test -s conftest.err; then
16597 ac_cpp_err=$ac_c_preproc_warn_flag
16598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16599 else
16600 ac_cpp_err=
16602 else
16603 ac_cpp_err=yes
16605 if test -z "$ac_cpp_err"; then
16606 ac_header_preproc=yes
16607 else
16608 echo "$as_me: failed program was:" >&5
16609 sed 's/^/| /' conftest.$ac_ext >&5
16611 ac_header_preproc=no
16613 rm -f conftest.err conftest.$ac_ext
16614 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16615 echo "${ECHO_T}$ac_header_preproc" >&6
16617 # So? What about this header?
16618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16619 yes:no: )
16620 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16621 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16623 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16624 ac_header_preproc=yes
16626 no:yes:* )
16627 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16628 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16629 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16630 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16631 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16632 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16633 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16634 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16636 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16637 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16638 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16640 cat <<\_ASBOX
16641 ## ------------------------------ ##
16642 ## Report this to admin@amule.org ##
16643 ## ------------------------------ ##
16644 _ASBOX
16646 sed "s/^/$as_me: WARNING: /" >&2
16648 esac
16649 echo "$as_me:$LINENO: checking for $ac_header" >&5
16650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16652 echo $ECHO_N "(cached) $ECHO_C" >&6
16653 else
16654 eval "$as_ac_Header=\$ac_header_preproc"
16656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16661 cat >>confdefs.h <<_ACEOF
16662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16663 _ACEOF
16667 done
16690 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
16691 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
16692 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
16694 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16695 echo "$as_me:$LINENO: checking for $ac_func" >&5
16696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16697 if eval "test \"\${$as_ac_var+set}\" = set"; then
16698 echo $ECHO_N "(cached) $ECHO_C" >&6
16699 else
16700 cat >conftest.$ac_ext <<_ACEOF
16701 /* confdefs.h. */
16702 _ACEOF
16703 cat confdefs.h >>conftest.$ac_ext
16704 cat >>conftest.$ac_ext <<_ACEOF
16705 /* end confdefs.h. */
16706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16708 #define $ac_func innocuous_$ac_func
16710 /* System header to define __stub macros and hopefully few prototypes,
16711 which can conflict with char $ac_func (); below.
16712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16713 <limits.h> exists even on freestanding compilers. */
16715 #ifdef __STDC__
16716 # include <limits.h>
16717 #else
16718 # include <assert.h>
16719 #endif
16721 #undef $ac_func
16723 /* Override any gcc2 internal prototype to avoid an error. */
16724 #ifdef __cplusplus
16725 extern "C"
16727 #endif
16728 /* We use char because int might match the return type of a gcc2
16729 builtin and then its argument prototype would still apply. */
16730 char $ac_func ();
16731 /* The GNU C library defines this for functions which it implements
16732 to always fail with ENOSYS. Some functions are actually named
16733 something starting with __ and the normal name is an alias. */
16734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16735 choke me
16736 #else
16737 char (*f) () = $ac_func;
16738 #endif
16739 #ifdef __cplusplus
16741 #endif
16744 main ()
16746 return f != $ac_func;
16748 return 0;
16750 _ACEOF
16751 rm -f conftest.$ac_objext conftest$ac_exeext
16752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16753 (eval $ac_link) 2>conftest.er1
16754 ac_status=$?
16755 grep -v '^ *+' conftest.er1 >conftest.err
16756 rm -f conftest.er1
16757 cat conftest.err >&5
16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); } &&
16760 { ac_try='test -z "$ac_c_werror_flag"
16761 || test ! -s conftest.err'
16762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16763 (eval $ac_try) 2>&5
16764 ac_status=$?
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); }; } &&
16767 { ac_try='test -s conftest$ac_exeext'
16768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16769 (eval $ac_try) 2>&5
16770 ac_status=$?
16771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772 (exit $ac_status); }; }; then
16773 eval "$as_ac_var=yes"
16774 else
16775 echo "$as_me: failed program was:" >&5
16776 sed 's/^/| /' conftest.$ac_ext >&5
16778 eval "$as_ac_var=no"
16780 rm -f conftest.err conftest.$ac_objext \
16781 conftest$ac_exeext conftest.$ac_ext
16783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16784 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16785 if test `eval echo '${'$as_ac_var'}'` = yes; then
16786 cat >>confdefs.h <<_ACEOF
16787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16788 _ACEOF
16791 done
16799 am_save_CPPFLAGS="$CPPFLAGS"
16801 for element in $INCICONV; do
16802 haveit=
16803 for x in $CPPFLAGS; do
16805 acl_save_prefix="$prefix"
16806 prefix="$acl_final_prefix"
16807 acl_save_exec_prefix="$exec_prefix"
16808 exec_prefix="$acl_final_exec_prefix"
16809 eval x=\"$x\"
16810 exec_prefix="$acl_save_exec_prefix"
16811 prefix="$acl_save_prefix"
16813 if test "X$x" = "X$element"; then
16814 haveit=yes
16815 break
16817 done
16818 if test -z "$haveit"; then
16819 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16821 done
16824 echo "$as_me:$LINENO: checking for iconv" >&5
16825 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
16826 if test "${am_cv_func_iconv+set}" = set; then
16827 echo $ECHO_N "(cached) $ECHO_C" >&6
16828 else
16830 am_cv_func_iconv="no, consider installing GNU libiconv"
16831 am_cv_lib_iconv=no
16832 cat >conftest.$ac_ext <<_ACEOF
16833 /* confdefs.h. */
16834 _ACEOF
16835 cat confdefs.h >>conftest.$ac_ext
16836 cat >>conftest.$ac_ext <<_ACEOF
16837 /* end confdefs.h. */
16838 #include <stdlib.h>
16839 #include <iconv.h>
16841 main ()
16843 iconv_t cd = iconv_open("","");
16844 iconv(cd,NULL,NULL,NULL,NULL);
16845 iconv_close(cd);
16847 return 0;
16849 _ACEOF
16850 rm -f conftest.$ac_objext conftest$ac_exeext
16851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16852 (eval $ac_link) 2>conftest.er1
16853 ac_status=$?
16854 grep -v '^ *+' conftest.er1 >conftest.err
16855 rm -f conftest.er1
16856 cat conftest.err >&5
16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); } &&
16859 { ac_try='test -z "$ac_c_werror_flag"
16860 || test ! -s conftest.err'
16861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16862 (eval $ac_try) 2>&5
16863 ac_status=$?
16864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865 (exit $ac_status); }; } &&
16866 { ac_try='test -s conftest$ac_exeext'
16867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16868 (eval $ac_try) 2>&5
16869 ac_status=$?
16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 (exit $ac_status); }; }; then
16872 am_cv_func_iconv=yes
16873 else
16874 echo "$as_me: failed program was:" >&5
16875 sed 's/^/| /' conftest.$ac_ext >&5
16878 rm -f conftest.err conftest.$ac_objext \
16879 conftest$ac_exeext conftest.$ac_ext
16880 if test "$am_cv_func_iconv" != yes; then
16881 am_save_LIBS="$LIBS"
16882 LIBS="$LIBS $LIBICONV"
16883 cat >conftest.$ac_ext <<_ACEOF
16884 /* confdefs.h. */
16885 _ACEOF
16886 cat confdefs.h >>conftest.$ac_ext
16887 cat >>conftest.$ac_ext <<_ACEOF
16888 /* end confdefs.h. */
16889 #include <stdlib.h>
16890 #include <iconv.h>
16892 main ()
16894 iconv_t cd = iconv_open("","");
16895 iconv(cd,NULL,NULL,NULL,NULL);
16896 iconv_close(cd);
16898 return 0;
16900 _ACEOF
16901 rm -f conftest.$ac_objext conftest$ac_exeext
16902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16903 (eval $ac_link) 2>conftest.er1
16904 ac_status=$?
16905 grep -v '^ *+' conftest.er1 >conftest.err
16906 rm -f conftest.er1
16907 cat conftest.err >&5
16908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 (exit $ac_status); } &&
16910 { ac_try='test -z "$ac_c_werror_flag"
16911 || test ! -s conftest.err'
16912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16913 (eval $ac_try) 2>&5
16914 ac_status=$?
16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); }; } &&
16917 { ac_try='test -s conftest$ac_exeext'
16918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16919 (eval $ac_try) 2>&5
16920 ac_status=$?
16921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922 (exit $ac_status); }; }; then
16923 am_cv_lib_iconv=yes
16924 am_cv_func_iconv=yes
16925 else
16926 echo "$as_me: failed program was:" >&5
16927 sed 's/^/| /' conftest.$ac_ext >&5
16930 rm -f conftest.err conftest.$ac_objext \
16931 conftest$ac_exeext conftest.$ac_ext
16932 LIBS="$am_save_LIBS"
16936 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
16937 echo "${ECHO_T}$am_cv_func_iconv" >&6
16938 if test "$am_cv_func_iconv" = yes; then
16940 cat >>confdefs.h <<\_ACEOF
16941 #define HAVE_ICONV 1
16942 _ACEOF
16945 if test "$am_cv_lib_iconv" = yes; then
16946 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
16947 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
16948 echo "$as_me:$LINENO: result: $LIBICONV" >&5
16949 echo "${ECHO_T}$LIBICONV" >&6
16950 else
16951 CPPFLAGS="$am_save_CPPFLAGS"
16952 LIBICONV=
16953 LTLIBICONV=
16958 if test "$am_cv_func_iconv" = yes; then
16959 echo "$as_me:$LINENO: checking for iconv declaration" >&5
16960 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
16961 if test "${am_cv_proto_iconv+set}" = set; then
16962 echo $ECHO_N "(cached) $ECHO_C" >&6
16963 else
16965 cat >conftest.$ac_ext <<_ACEOF
16966 /* confdefs.h. */
16967 _ACEOF
16968 cat confdefs.h >>conftest.$ac_ext
16969 cat >>conftest.$ac_ext <<_ACEOF
16970 /* end confdefs.h. */
16972 #include <stdlib.h>
16973 #include <iconv.h>
16974 extern
16975 #ifdef __cplusplus
16977 #endif
16978 #if defined(__STDC__) || defined(__cplusplus)
16979 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16980 #else
16981 size_t iconv();
16982 #endif
16985 main ()
16989 return 0;
16991 _ACEOF
16992 rm -f conftest.$ac_objext
16993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16994 (eval $ac_compile) 2>conftest.er1
16995 ac_status=$?
16996 grep -v '^ *+' conftest.er1 >conftest.err
16997 rm -f conftest.er1
16998 cat conftest.err >&5
16999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000 (exit $ac_status); } &&
17001 { ac_try='test -z "$ac_c_werror_flag"
17002 || test ! -s conftest.err'
17003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17004 (eval $ac_try) 2>&5
17005 ac_status=$?
17006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007 (exit $ac_status); }; } &&
17008 { ac_try='test -s conftest.$ac_objext'
17009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17010 (eval $ac_try) 2>&5
17011 ac_status=$?
17012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013 (exit $ac_status); }; }; then
17014 am_cv_proto_iconv_arg1=""
17015 else
17016 echo "$as_me: failed program was:" >&5
17017 sed 's/^/| /' conftest.$ac_ext >&5
17019 am_cv_proto_iconv_arg1="const"
17021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17022 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);"
17025 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
17026 echo "$as_me:$LINENO: result: ${ac_t:-
17027 }$am_cv_proto_iconv" >&5
17028 echo "${ECHO_T}${ac_t:-
17029 }$am_cv_proto_iconv" >&6
17031 cat >>confdefs.h <<_ACEOF
17032 #define ICONV_CONST $am_cv_proto_iconv_arg1
17033 _ACEOF
17038 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
17039 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
17040 if test "${am_cv_langinfo_codeset+set}" = set; then
17041 echo $ECHO_N "(cached) $ECHO_C" >&6
17042 else
17043 cat >conftest.$ac_ext <<_ACEOF
17044 /* confdefs.h. */
17045 _ACEOF
17046 cat confdefs.h >>conftest.$ac_ext
17047 cat >>conftest.$ac_ext <<_ACEOF
17048 /* end confdefs.h. */
17049 #include <langinfo.h>
17051 main ()
17053 char* cs = nl_langinfo(CODESET);
17055 return 0;
17057 _ACEOF
17058 rm -f conftest.$ac_objext conftest$ac_exeext
17059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17060 (eval $ac_link) 2>conftest.er1
17061 ac_status=$?
17062 grep -v '^ *+' conftest.er1 >conftest.err
17063 rm -f conftest.er1
17064 cat conftest.err >&5
17065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); } &&
17067 { ac_try='test -z "$ac_c_werror_flag"
17068 || test ! -s conftest.err'
17069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17070 (eval $ac_try) 2>&5
17071 ac_status=$?
17072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073 (exit $ac_status); }; } &&
17074 { ac_try='test -s conftest$ac_exeext'
17075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17076 (eval $ac_try) 2>&5
17077 ac_status=$?
17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); }; }; then
17080 am_cv_langinfo_codeset=yes
17081 else
17082 echo "$as_me: failed program was:" >&5
17083 sed 's/^/| /' conftest.$ac_ext >&5
17085 am_cv_langinfo_codeset=no
17087 rm -f conftest.err conftest.$ac_objext \
17088 conftest$ac_exeext conftest.$ac_ext
17091 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
17092 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
17093 if test $am_cv_langinfo_codeset = yes; then
17095 cat >>confdefs.h <<\_ACEOF
17096 #define HAVE_LANGINFO_CODESET 1
17097 _ACEOF
17101 if test $ac_cv_header_locale_h = yes; then
17103 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
17104 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
17105 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
17106 echo $ECHO_N "(cached) $ECHO_C" >&6
17107 else
17108 cat >conftest.$ac_ext <<_ACEOF
17109 /* confdefs.h. */
17110 _ACEOF
17111 cat confdefs.h >>conftest.$ac_ext
17112 cat >>conftest.$ac_ext <<_ACEOF
17113 /* end confdefs.h. */
17114 #include <locale.h>
17116 main ()
17118 return LC_MESSAGES
17120 return 0;
17122 _ACEOF
17123 rm -f conftest.$ac_objext conftest$ac_exeext
17124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17125 (eval $ac_link) 2>conftest.er1
17126 ac_status=$?
17127 grep -v '^ *+' conftest.er1 >conftest.err
17128 rm -f conftest.er1
17129 cat conftest.err >&5
17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); } &&
17132 { ac_try='test -z "$ac_c_werror_flag"
17133 || test ! -s conftest.err'
17134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17135 (eval $ac_try) 2>&5
17136 ac_status=$?
17137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138 (exit $ac_status); }; } &&
17139 { ac_try='test -s conftest$ac_exeext'
17140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17141 (eval $ac_try) 2>&5
17142 ac_status=$?
17143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); }; }; then
17145 am_cv_val_LC_MESSAGES=yes
17146 else
17147 echo "$as_me: failed program was:" >&5
17148 sed 's/^/| /' conftest.$ac_ext >&5
17150 am_cv_val_LC_MESSAGES=no
17152 rm -f conftest.err conftest.$ac_objext \
17153 conftest$ac_exeext conftest.$ac_ext
17155 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
17156 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
17157 if test $am_cv_val_LC_MESSAGES = yes; then
17159 cat >>confdefs.h <<\_ACEOF
17160 #define HAVE_LC_MESSAGES 1
17161 _ACEOF
17167 for ac_prog in bison
17169 # Extract the first word of "$ac_prog", so it can be a program name with args.
17170 set dummy $ac_prog; ac_word=$2
17171 echo "$as_me:$LINENO: checking for $ac_word" >&5
17172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17173 if test "${ac_cv_prog_INTLBISON+set}" = set; then
17174 echo $ECHO_N "(cached) $ECHO_C" >&6
17175 else
17176 if test -n "$INTLBISON"; then
17177 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
17178 else
17179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17180 for as_dir in $PATH
17182 IFS=$as_save_IFS
17183 test -z "$as_dir" && as_dir=.
17184 for ac_exec_ext in '' $ac_executable_extensions; do
17185 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17186 ac_cv_prog_INTLBISON="$ac_prog"
17187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17188 break 2
17190 done
17191 done
17195 INTLBISON=$ac_cv_prog_INTLBISON
17196 if test -n "$INTLBISON"; then
17197 echo "$as_me:$LINENO: result: $INTLBISON" >&5
17198 echo "${ECHO_T}$INTLBISON" >&6
17199 else
17200 echo "$as_me:$LINENO: result: no" >&5
17201 echo "${ECHO_T}no" >&6
17204 test -n "$INTLBISON" && break
17205 done
17207 if test -z "$INTLBISON"; then
17208 ac_verc_fail=yes
17209 else
17210 echo "$as_me:$LINENO: checking version of bison" >&5
17211 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
17212 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
17213 case $ac_prog_version in
17214 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
17215 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
17216 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
17217 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
17218 esac
17219 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
17220 echo "${ECHO_T}$ac_prog_version" >&6
17222 if test $ac_verc_fail = yes; then
17223 INTLBISON=:
17228 # Check whether --with-language or --without-language was given.
17229 if test "${with_language+set}" = set; then
17230 withval="$with_language"
17231 if test "$withval" != "all"; then
17232 LINGUAS="`echo $withval | sed -e 's/,/ /g'`"
17251 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17252 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
17253 # Check whether --enable-nls or --disable-nls was given.
17254 if test "${enable_nls+set}" = set; then
17255 enableval="$enable_nls"
17256 USE_NLS=$enableval
17257 else
17258 USE_NLS=yes
17260 echo "$as_me:$LINENO: result: $USE_NLS" >&5
17261 echo "${ECHO_T}$USE_NLS" >&6
17265 BUILD_INCLUDED_LIBINTL=no
17266 USE_INCLUDED_LIBINTL=no
17268 LIBINTL=
17269 LTLIBINTL=
17270 POSUB=
17272 if test "$USE_NLS" = "yes"; then
17273 gt_use_preinstalled_gnugettext=no
17275 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
17276 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
17278 # Check whether --with-included-gettext or --without-included-gettext was given.
17279 if test "${with_included_gettext+set}" = set; then
17280 withval="$with_included_gettext"
17281 nls_cv_force_use_gnu_gettext=$withval
17282 else
17283 nls_cv_force_use_gnu_gettext=no
17285 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
17286 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
17288 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
17289 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
17296 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17297 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
17298 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
17299 echo $ECHO_N "(cached) $ECHO_C" >&6
17300 else
17301 cat >conftest.$ac_ext <<_ACEOF
17302 /* confdefs.h. */
17303 _ACEOF
17304 cat confdefs.h >>conftest.$ac_ext
17305 cat >>conftest.$ac_ext <<_ACEOF
17306 /* end confdefs.h. */
17307 #include <libintl.h>
17308 extern int _nl_msg_cat_cntr;
17309 extern int *_nl_domain_bindings;
17311 main ()
17313 bindtextdomain ("", "");
17314 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
17316 return 0;
17318 _ACEOF
17319 rm -f conftest.$ac_objext conftest$ac_exeext
17320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17321 (eval $ac_link) 2>conftest.er1
17322 ac_status=$?
17323 grep -v '^ *+' conftest.er1 >conftest.err
17324 rm -f conftest.er1
17325 cat conftest.err >&5
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); } &&
17328 { ac_try='test -z "$ac_c_werror_flag"
17329 || test ! -s conftest.err'
17330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17331 (eval $ac_try) 2>&5
17332 ac_status=$?
17333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334 (exit $ac_status); }; } &&
17335 { ac_try='test -s conftest$ac_exeext'
17336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17337 (eval $ac_try) 2>&5
17338 ac_status=$?
17339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340 (exit $ac_status); }; }; then
17341 gt_cv_func_gnugettext2_libc=yes
17342 else
17343 echo "$as_me: failed program was:" >&5
17344 sed 's/^/| /' conftest.$ac_ext >&5
17346 gt_cv_func_gnugettext2_libc=no
17348 rm -f conftest.err conftest.$ac_objext \
17349 conftest$ac_exeext conftest.$ac_ext
17351 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
17352 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
17354 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
17358 use_additional=yes
17360 acl_save_prefix="$prefix"
17361 prefix="$acl_final_prefix"
17362 acl_save_exec_prefix="$exec_prefix"
17363 exec_prefix="$acl_final_exec_prefix"
17365 eval additional_includedir=\"$includedir\"
17366 eval additional_libdir=\"$libdir\"
17368 exec_prefix="$acl_save_exec_prefix"
17369 prefix="$acl_save_prefix"
17372 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
17373 if test "${with_libintl_prefix+set}" = set; then
17374 withval="$with_libintl_prefix"
17376 if test "X$withval" = "Xno"; then
17377 use_additional=no
17378 else
17379 if test "X$withval" = "X"; then
17381 acl_save_prefix="$prefix"
17382 prefix="$acl_final_prefix"
17383 acl_save_exec_prefix="$exec_prefix"
17384 exec_prefix="$acl_final_exec_prefix"
17386 eval additional_includedir=\"$includedir\"
17387 eval additional_libdir=\"$libdir\"
17389 exec_prefix="$acl_save_exec_prefix"
17390 prefix="$acl_save_prefix"
17392 else
17393 additional_includedir="$withval/include"
17394 additional_libdir="$withval/lib"
17399 LIBINTL=
17400 LTLIBINTL=
17401 INCINTL=
17402 rpathdirs=
17403 ltrpathdirs=
17404 names_already_handled=
17405 names_next_round='intl '
17406 while test -n "$names_next_round"; do
17407 names_this_round="$names_next_round"
17408 names_next_round=
17409 for name in $names_this_round; do
17410 already_handled=
17411 for n in $names_already_handled; do
17412 if test "$n" = "$name"; then
17413 already_handled=yes
17414 break
17416 done
17417 if test -z "$already_handled"; then
17418 names_already_handled="$names_already_handled $name"
17419 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17420 eval value=\"\$HAVE_LIB$uppername\"
17421 if test -n "$value"; then
17422 if test "$value" = yes; then
17423 eval value=\"\$LIB$uppername\"
17424 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17425 eval value=\"\$LTLIB$uppername\"
17426 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17427 else
17430 else
17431 found_dir=
17432 found_la=
17433 found_so=
17434 found_a=
17435 if test $use_additional = yes; then
17436 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17437 found_dir="$additional_libdir"
17438 found_so="$additional_libdir/lib$name.$shlibext"
17439 if test -f "$additional_libdir/lib$name.la"; then
17440 found_la="$additional_libdir/lib$name.la"
17442 else
17443 if test -f "$additional_libdir/lib$name.$libext"; then
17444 found_dir="$additional_libdir"
17445 found_a="$additional_libdir/lib$name.$libext"
17446 if test -f "$additional_libdir/lib$name.la"; then
17447 found_la="$additional_libdir/lib$name.la"
17452 if test "X$found_dir" = "X"; then
17453 for x in $LDFLAGS $LTLIBINTL; do
17455 acl_save_prefix="$prefix"
17456 prefix="$acl_final_prefix"
17457 acl_save_exec_prefix="$exec_prefix"
17458 exec_prefix="$acl_final_exec_prefix"
17459 eval x=\"$x\"
17460 exec_prefix="$acl_save_exec_prefix"
17461 prefix="$acl_save_prefix"
17463 case "$x" in
17464 -L*)
17465 dir=`echo "X$x" | sed -e 's/^X-L//'`
17466 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17467 found_dir="$dir"
17468 found_so="$dir/lib$name.$shlibext"
17469 if test -f "$dir/lib$name.la"; then
17470 found_la="$dir/lib$name.la"
17472 else
17473 if test -f "$dir/lib$name.$libext"; then
17474 found_dir="$dir"
17475 found_a="$dir/lib$name.$libext"
17476 if test -f "$dir/lib$name.la"; then
17477 found_la="$dir/lib$name.la"
17482 esac
17483 if test "X$found_dir" != "X"; then
17484 break
17486 done
17488 if test "X$found_dir" != "X"; then
17489 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17490 if test "X$found_so" != "X"; then
17491 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17492 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17493 else
17494 haveit=
17495 for x in $ltrpathdirs; do
17496 if test "X$x" = "X$found_dir"; then
17497 haveit=yes
17498 break
17500 done
17501 if test -z "$haveit"; then
17502 ltrpathdirs="$ltrpathdirs $found_dir"
17504 if test "$hardcode_direct" = yes; then
17505 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17506 else
17507 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17508 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17509 haveit=
17510 for x in $rpathdirs; do
17511 if test "X$x" = "X$found_dir"; then
17512 haveit=yes
17513 break
17515 done
17516 if test -z "$haveit"; then
17517 rpathdirs="$rpathdirs $found_dir"
17519 else
17520 haveit=
17521 for x in $LDFLAGS $LIBINTL; do
17523 acl_save_prefix="$prefix"
17524 prefix="$acl_final_prefix"
17525 acl_save_exec_prefix="$exec_prefix"
17526 exec_prefix="$acl_final_exec_prefix"
17527 eval x=\"$x\"
17528 exec_prefix="$acl_save_exec_prefix"
17529 prefix="$acl_save_prefix"
17531 if test "X$x" = "X-L$found_dir"; then
17532 haveit=yes
17533 break
17535 done
17536 if test -z "$haveit"; then
17537 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17539 if test "$hardcode_minus_L" != no; then
17540 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17541 else
17542 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17547 else
17548 if test "X$found_a" != "X"; then
17549 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17550 else
17551 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17554 additional_includedir=
17555 case "$found_dir" in
17556 */lib | */lib/)
17557 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17558 additional_includedir="$basedir/include"
17560 esac
17561 if test "X$additional_includedir" != "X"; then
17562 if test "X$additional_includedir" != "X/usr/include"; then
17563 haveit=
17564 if test "X$additional_includedir" = "X/usr/local/include"; then
17565 if test -n "$GCC"; then
17566 case $host_os in
17567 linux*) haveit=yes;;
17568 esac
17571 if test -z "$haveit"; then
17572 for x in $CPPFLAGS $INCINTL; do
17574 acl_save_prefix="$prefix"
17575 prefix="$acl_final_prefix"
17576 acl_save_exec_prefix="$exec_prefix"
17577 exec_prefix="$acl_final_exec_prefix"
17578 eval x=\"$x\"
17579 exec_prefix="$acl_save_exec_prefix"
17580 prefix="$acl_save_prefix"
17582 if test "X$x" = "X-I$additional_includedir"; then
17583 haveit=yes
17584 break
17586 done
17587 if test -z "$haveit"; then
17588 if test -d "$additional_includedir"; then
17589 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17595 if test -n "$found_la"; then
17596 save_libdir="$libdir"
17597 case "$found_la" in
17598 */* | *\\*) . "$found_la" ;;
17599 *) . "./$found_la" ;;
17600 esac
17601 libdir="$save_libdir"
17602 for dep in $dependency_libs; do
17603 case "$dep" in
17604 -L*)
17605 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17606 if test "X$additional_libdir" != "X/usr/lib"; then
17607 haveit=
17608 if test "X$additional_libdir" = "X/usr/local/lib"; then
17609 if test -n "$GCC"; then
17610 case $host_os in
17611 linux*) haveit=yes;;
17612 esac
17615 if test -z "$haveit"; then
17616 haveit=
17617 for x in $LDFLAGS $LIBINTL; do
17619 acl_save_prefix="$prefix"
17620 prefix="$acl_final_prefix"
17621 acl_save_exec_prefix="$exec_prefix"
17622 exec_prefix="$acl_final_exec_prefix"
17623 eval x=\"$x\"
17624 exec_prefix="$acl_save_exec_prefix"
17625 prefix="$acl_save_prefix"
17627 if test "X$x" = "X-L$additional_libdir"; then
17628 haveit=yes
17629 break
17631 done
17632 if test -z "$haveit"; then
17633 if test -d "$additional_libdir"; then
17634 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17637 haveit=
17638 for x in $LDFLAGS $LTLIBINTL; do
17640 acl_save_prefix="$prefix"
17641 prefix="$acl_final_prefix"
17642 acl_save_exec_prefix="$exec_prefix"
17643 exec_prefix="$acl_final_exec_prefix"
17644 eval x=\"$x\"
17645 exec_prefix="$acl_save_exec_prefix"
17646 prefix="$acl_save_prefix"
17648 if test "X$x" = "X-L$additional_libdir"; then
17649 haveit=yes
17650 break
17652 done
17653 if test -z "$haveit"; then
17654 if test -d "$additional_libdir"; then
17655 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17661 -R*)
17662 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17663 if test "$enable_rpath" != no; then
17664 haveit=
17665 for x in $rpathdirs; do
17666 if test "X$x" = "X$dir"; then
17667 haveit=yes
17668 break
17670 done
17671 if test -z "$haveit"; then
17672 rpathdirs="$rpathdirs $dir"
17674 haveit=
17675 for x in $ltrpathdirs; do
17676 if test "X$x" = "X$dir"; then
17677 haveit=yes
17678 break
17680 done
17681 if test -z "$haveit"; then
17682 ltrpathdirs="$ltrpathdirs $dir"
17686 -l*)
17687 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17689 *.la)
17690 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17693 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17694 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17696 esac
17697 done
17699 else
17700 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17701 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17705 done
17706 done
17707 if test "X$rpathdirs" != "X"; then
17708 if test -n "$hardcode_libdir_separator"; then
17709 alldirs=
17710 for found_dir in $rpathdirs; do
17711 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17712 done
17713 acl_save_libdir="$libdir"
17714 libdir="$alldirs"
17715 eval flag=\"$hardcode_libdir_flag_spec\"
17716 libdir="$acl_save_libdir"
17717 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17718 else
17719 for found_dir in $rpathdirs; do
17720 acl_save_libdir="$libdir"
17721 libdir="$found_dir"
17722 eval flag=\"$hardcode_libdir_flag_spec\"
17723 libdir="$acl_save_libdir"
17724 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17725 done
17728 if test "X$ltrpathdirs" != "X"; then
17729 for found_dir in $ltrpathdirs; do
17730 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17731 done
17734 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
17735 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
17736 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
17737 echo $ECHO_N "(cached) $ECHO_C" >&6
17738 else
17739 gt_save_CPPFLAGS="$CPPFLAGS"
17740 CPPFLAGS="$CPPFLAGS $INCINTL"
17741 gt_save_LIBS="$LIBS"
17742 LIBS="$LIBS $LIBINTL"
17743 cat >conftest.$ac_ext <<_ACEOF
17744 /* confdefs.h. */
17745 _ACEOF
17746 cat confdefs.h >>conftest.$ac_ext
17747 cat >>conftest.$ac_ext <<_ACEOF
17748 /* end confdefs.h. */
17749 #include <libintl.h>
17750 extern int _nl_msg_cat_cntr;
17751 extern
17752 #ifdef __cplusplus
17754 #endif
17755 const char *_nl_expand_alias ();
17757 main ()
17759 bindtextdomain ("", "");
17760 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17762 return 0;
17764 _ACEOF
17765 rm -f conftest.$ac_objext conftest$ac_exeext
17766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17767 (eval $ac_link) 2>conftest.er1
17768 ac_status=$?
17769 grep -v '^ *+' conftest.er1 >conftest.err
17770 rm -f conftest.er1
17771 cat conftest.err >&5
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); } &&
17774 { ac_try='test -z "$ac_c_werror_flag"
17775 || test ! -s conftest.err'
17776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17777 (eval $ac_try) 2>&5
17778 ac_status=$?
17779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780 (exit $ac_status); }; } &&
17781 { ac_try='test -s conftest$ac_exeext'
17782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17783 (eval $ac_try) 2>&5
17784 ac_status=$?
17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); }; }; then
17787 gt_cv_func_gnugettext2_libintl=yes
17788 else
17789 echo "$as_me: failed program was:" >&5
17790 sed 's/^/| /' conftest.$ac_ext >&5
17792 gt_cv_func_gnugettext2_libintl=no
17794 rm -f conftest.err conftest.$ac_objext \
17795 conftest$ac_exeext conftest.$ac_ext
17796 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
17797 LIBS="$LIBS $LIBICONV"
17798 cat >conftest.$ac_ext <<_ACEOF
17799 /* confdefs.h. */
17800 _ACEOF
17801 cat confdefs.h >>conftest.$ac_ext
17802 cat >>conftest.$ac_ext <<_ACEOF
17803 /* end confdefs.h. */
17804 #include <libintl.h>
17805 extern int _nl_msg_cat_cntr;
17806 extern
17807 #ifdef __cplusplus
17809 #endif
17810 const char *_nl_expand_alias ();
17812 main ()
17814 bindtextdomain ("", "");
17815 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17817 return 0;
17819 _ACEOF
17820 rm -f conftest.$ac_objext conftest$ac_exeext
17821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17822 (eval $ac_link) 2>conftest.er1
17823 ac_status=$?
17824 grep -v '^ *+' conftest.er1 >conftest.err
17825 rm -f conftest.er1
17826 cat conftest.err >&5
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); } &&
17829 { ac_try='test -z "$ac_c_werror_flag"
17830 || test ! -s conftest.err'
17831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17832 (eval $ac_try) 2>&5
17833 ac_status=$?
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); }; } &&
17836 { ac_try='test -s conftest$ac_exeext'
17837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17838 (eval $ac_try) 2>&5
17839 ac_status=$?
17840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841 (exit $ac_status); }; }; then
17842 LIBINTL="$LIBINTL $LIBICONV"
17843 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17844 gt_cv_func_gnugettext2_libintl=yes
17846 else
17847 echo "$as_me: failed program was:" >&5
17848 sed 's/^/| /' conftest.$ac_ext >&5
17851 rm -f conftest.err conftest.$ac_objext \
17852 conftest$ac_exeext conftest.$ac_ext
17854 CPPFLAGS="$gt_save_CPPFLAGS"
17855 LIBS="$gt_save_LIBS"
17857 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
17858 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
17861 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
17862 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
17863 && test "$PACKAGE" != gettext; }; then
17864 gt_use_preinstalled_gnugettext=yes
17865 else
17866 LIBINTL=
17867 LTLIBINTL=
17868 INCINTL=
17872 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
17873 nls_cv_use_gnu_gettext=yes
17877 if test "$nls_cv_use_gnu_gettext" = "yes"; then
17878 INTLOBJS="\$(GETTOBJS)"
17879 BUILD_INCLUDED_LIBINTL=yes
17880 USE_INCLUDED_LIBINTL=yes
17881 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
17882 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
17883 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
17886 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17887 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17888 CATOBJEXT=.gmo
17892 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17893 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17895 cat >>confdefs.h <<\_ACEOF
17896 #define ENABLE_NLS 1
17897 _ACEOF
17899 else
17900 USE_NLS=no
17904 if test "$USE_NLS" = "yes"; then
17906 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17907 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
17908 echo "$as_me:$LINENO: checking how to link with libintl" >&5
17909 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
17910 echo "$as_me:$LINENO: result: $LIBINTL" >&5
17911 echo "${ECHO_T}$LIBINTL" >&6
17913 for element in $INCINTL; do
17914 haveit=
17915 for x in $CPPFLAGS; do
17917 acl_save_prefix="$prefix"
17918 prefix="$acl_final_prefix"
17919 acl_save_exec_prefix="$exec_prefix"
17920 exec_prefix="$acl_final_exec_prefix"
17921 eval x=\"$x\"
17922 exec_prefix="$acl_save_exec_prefix"
17923 prefix="$acl_save_prefix"
17925 if test "X$x" = "X$element"; then
17926 haveit=yes
17927 break
17929 done
17930 if test -z "$haveit"; then
17931 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17933 done
17938 cat >>confdefs.h <<\_ACEOF
17939 #define HAVE_GETTEXT 1
17940 _ACEOF
17943 cat >>confdefs.h <<\_ACEOF
17944 #define HAVE_DCGETTEXT 1
17945 _ACEOF
17949 POSUB=po
17953 if test "$PACKAGE" = gettext; then
17954 BUILD_INCLUDED_LIBINTL=yes
17962 nls_cv_header_intl=
17963 nls_cv_header_libgt=
17965 DATADIRNAME=share
17968 INSTOBJEXT=.mo
17971 GENCAT=gencat
17974 INTL_LIBTOOL_SUFFIX_PREFIX=
17978 INTLLIBS="$LIBINTL"
17985 if test $USE_INCLUDED_LIBINTL = yes; then
17986 INCINTL=-I\${top_builddir}/intl
17990 if test x$USE_NLS = xyes; then
17992 echo "$as_me:$LINENO: checking for autopoint" >&5
17993 echo $ECHO_N "checking for autopoint... $ECHO_C" >&6
17994 autopoint_version=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
17995 if test -n "$autopoint_version"; then
17997 echo "$as_me:$LINENO: result: yes ($autopoint_version)" >&5
17998 echo "${ECHO_T}yes ($autopoint_version)" >&6
18001 else
18003 echo "$as_me:$LINENO: result: no" >&5
18004 echo "${ECHO_T}no" >&6
18005 USE_NLS=no
18012 if test x$USE_NLS = xno -a x${enable_nls:-yes} = xyes; then
18013 { echo "$as_me:$LINENO: WARNING:
18014 You need to install GNU gettext/gettext-tools to compile aMule with
18015 i18n support." >&5
18016 echo "$as_me: WARNING:
18017 You need to install GNU gettext/gettext-tools to compile aMule with
18018 i18n support." >&2;}
18019 _mule_warning_9=yes
18020 _mule_has_warnings=yes
18025 if test ${USE_NLS:-no} = yes; then
18027 echo "$as_me:$LINENO: checking for requested languages" >&5
18028 echo $ECHO_N "checking for requested languages... $ECHO_C" >&6
18029 Generate_Langs=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
18031 if test ${enable_amule_daemon:-no} = yes; then
18033 if test -z "$LINGUAS"; then
18034 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
18035 else
18037 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs`
18038 AMULE_DAEMON_MANPAGES="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
18042 AMULE_DAEMON_MANPAGES=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
18044 else
18045 AMULE_DAEMON_MANPAGES=
18051 if test ${enable_amulecmd:-no} = yes; then
18053 if test -z "$LINGUAS"; then
18054 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
18055 else
18057 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs`
18058 AMULECMD_MANPAGES="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
18062 AMULECMD_MANPAGES=`echo $AMULECMD_MANPAGES | tr -d '\n'`
18064 else
18065 AMULECMD_MANPAGES=
18071 if test ${enable_webserver:-no} = yes; then
18073 if test -z "$LINGUAS"; then
18074 WEBSERVER_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
18075 else
18077 WEBSERVER_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs`
18078 WEBSERVER_MANPAGES="`basename docs/man/amuleweb.1` $WEBSERVER_MANPAGES"
18082 WEBSERVER_MANPAGES=`echo $WEBSERVER_MANPAGES | tr -d '\n'`
18084 else
18085 WEBSERVER_MANPAGES=
18091 if test ${enable_amule_gui:-no} = yes; then
18093 if test -z "$LINGUAS"; then
18094 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
18095 else
18097 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs`
18098 AMULE_GUI_MANPAGES="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
18102 AMULE_GUI_MANPAGES=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
18104 else
18105 AMULE_GUI_MANPAGES=
18111 if test ${enable_cas:-no} = yes; then
18113 if test -z "$LINGUAS"; then
18114 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
18115 else
18117 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
18118 CAS_MANPAGES="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
18122 CAS_MANPAGES=`echo $CAS_MANPAGES | tr -d '\n'`
18124 else
18125 CAS_MANPAGES=
18131 if test ${enable_wxcas:-no} = yes; then
18133 if test -z "$LINGUAS"; then
18134 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
18135 else
18137 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
18138 WXCAS_MANPAGES="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
18142 WXCAS_MANPAGES=`echo $WXCAS_MANPAGES | tr -d '\n'`
18144 else
18145 WXCAS_MANPAGES=
18151 if test ${enable_ed2k:-yes} = yes; then
18153 if test -z "$LINGUAS"; then
18154 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
18155 else
18157 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs`
18158 ED2K_MANPAGES="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
18162 ED2K_MANPAGES=`echo $ED2K_MANPAGES | tr -d '\n'`
18164 else
18165 ED2K_MANPAGES=
18171 if test ${enable_alc:-no} = yes; then
18173 if test -z "$LINGUAS"; then
18174 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
18175 else
18177 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
18178 ALC_MANPAGES="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
18182 ALC_MANPAGES=`echo $ALC_MANPAGES | tr -d '\n'`
18184 else
18185 ALC_MANPAGES=
18191 if test ${enable_alcc:-no} = yes; then
18193 if test -z "$LINGUAS"; then
18194 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
18195 else
18197 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
18198 ALCC_MANPAGES="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
18202 ALCC_MANPAGES=`echo $ALCC_MANPAGES | tr -d '\n'`
18204 else
18205 ALCC_MANPAGES=
18211 if test ${enable_monolithic:-yes} = yes; then
18213 if test -z "$LINGUAS"; then
18214 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
18215 else
18217 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs`
18218 MONOLITHIC_MANPAGES="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
18222 MONOLITHIC_MANPAGES=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
18224 else
18225 MONOLITHIC_MANPAGES=
18230 echo "$as_me:$LINENO: result: ${LINGUAS:-all}" >&5
18231 echo "${ECHO_T}${LINGUAS:-all}" >&6
18238 # Check for bfd.h (to have proper backtraces without using wxExecute)
18240 echo "$as_me:$LINENO: checking for bfd" >&5
18241 echo $ECHO_N "checking for bfd... $ECHO_C" >&6
18242 result=no
18243 for bfd_ldadd in "" "${LIBINTL}"; do
18244 mule_backup_LIBS="$LIBS"
18245 mule_backup_LDFLAGS="$LDFLAGS"
18246 LIBS="-lbfd -liberty ${bfd_ldadd} ${ZLIB_LIBS} $LIBS"
18247 LDFLAGS="$LDFLAGS ${ZLIB_LDFLAGS}"
18248 cat >conftest.$ac_ext <<_ACEOF
18250 /* confdefs.h. */
18251 _ACEOF
18252 cat confdefs.h >>conftest.$ac_ext
18253 cat >>conftest.$ac_ext <<_ACEOF
18254 /* end confdefs.h. */
18256 #include <ansidecl.h>
18257 #include <bfd.h>
18260 main ()
18263 char *dummy = bfd_errmsg(bfd_get_error());
18266 return 0;
18269 _ACEOF
18270 rm -f conftest.$ac_objext conftest$ac_exeext
18271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18272 (eval $ac_link) 2>conftest.er1
18273 ac_status=$?
18274 grep -v '^ *+' conftest.er1 >conftest.err
18275 rm -f conftest.er1
18276 cat conftest.err >&5
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); } &&
18279 { ac_try='test -z "$ac_c_werror_flag"
18280 || test ! -s conftest.err'
18281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18282 (eval $ac_try) 2>&5
18283 ac_status=$?
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); }; } &&
18286 { ac_try='test -s conftest$ac_exeext'
18287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18288 (eval $ac_try) 2>&5
18289 ac_status=$?
18290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291 (exit $ac_status); }; }; then
18293 result=yes
18294 BFD_CPPFLAGS="-DHAVE_BFD"
18295 BFD_LIBS="-lbfd -liberty ${bfd_ldadd}"
18296 LIBS="$mule_backup_LIBS"
18297 LDFLAGS="$mule_backup_LDFLAGS"
18298 break
18300 else
18301 echo "$as_me: failed program was:" >&5
18302 sed 's/^/| /' conftest.$ac_ext >&5
18305 rm -f conftest.err conftest.$ac_objext \
18306 conftest$ac_exeext conftest.$ac_ext
18307 LIBS="$mule_backup_LIBS"
18308 LDFLAGS="$mule_backup_LDFLAGS"
18309 done
18311 echo "$as_me:$LINENO: result: $result" >&5
18312 echo "${ECHO_T}$result" >&6
18314 if test $result = no; then
18315 { echo "$as_me:$LINENO: WARNING:
18316 bfd.h not found or unusable, please install binutils development
18317 package if you are a developer or want to help testing aMule" >&5
18318 echo "$as_me: WARNING:
18319 bfd.h not found or unusable, please install binutils development
18320 package if you are a developer or want to help testing aMule" >&2;}
18321 _mule_warning_10=yes
18322 _mule_has_warnings=yes
18329 echo "$as_me:$LINENO: checking for <execinfo.h> and backtrace()" >&5
18330 echo $ECHO_N "checking for <execinfo.h> and backtrace()... $ECHO_C" >&6
18331 cat >conftest.$ac_ext <<_ACEOF
18333 /* confdefs.h. */
18334 _ACEOF
18335 cat confdefs.h >>conftest.$ac_ext
18336 cat >>conftest.$ac_ext <<_ACEOF
18337 /* end confdefs.h. */
18339 #include <execinfo.h>
18342 main ()
18345 void *bt[1];
18346 int n = backtrace(&bt, 1);
18347 const char **bt_syms = backtrace_symbols(bt, n);
18350 return 0;
18353 _ACEOF
18354 rm -f conftest.$ac_objext conftest$ac_exeext
18355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18356 (eval $ac_link) 2>conftest.er1
18357 ac_status=$?
18358 grep -v '^ *+' conftest.er1 >conftest.err
18359 rm -f conftest.er1
18360 cat conftest.err >&5
18361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362 (exit $ac_status); } &&
18363 { ac_try='test -z "$ac_c_werror_flag"
18364 || test ! -s conftest.err'
18365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18366 (eval $ac_try) 2>&5
18367 ac_status=$?
18368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369 (exit $ac_status); }; } &&
18370 { ac_try='test -s conftest$ac_exeext'
18371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18372 (eval $ac_try) 2>&5
18373 ac_status=$?
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); }; }; then
18379 cat >>confdefs.h <<\_ACEOF
18380 #define HAVE_EXECINFO 1
18381 _ACEOF
18383 echo "$as_me:$LINENO: result: yes" >&5
18384 echo "${ECHO_T}yes" >&6
18386 else
18387 echo "$as_me: failed program was:" >&5
18388 sed 's/^/| /' conftest.$ac_ext >&5
18391 echo "$as_me:$LINENO: result: no" >&5
18392 echo "${ECHO_T}no" >&6
18395 rm -f conftest.err conftest.$ac_objext \
18396 conftest$ac_exeext conftest.$ac_ext
18399 # Flush standard test results for speeding cache
18400 cat >confcache <<\_ACEOF
18401 # This file is a shell script that caches the results of configure
18402 # tests run on this system so they can be shared between configure
18403 # scripts and configure runs, see configure's option --config-cache.
18404 # It is not useful on other systems. If it contains results you don't
18405 # want to keep, you may remove or edit it.
18407 # config.status only pays attention to the cache file if you give it
18408 # the --recheck option to rerun configure.
18410 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18411 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18412 # following values.
18414 _ACEOF
18416 # The following way of writing the cache mishandles newlines in values,
18417 # but we know of no workaround that is simple, portable, and efficient.
18418 # So, don't put newlines in cache variables' values.
18419 # Ultrix sh set writes to stderr and can't be redirected directly,
18420 # and sets the high bit in the cache file unless we assign to the vars.
18422 (set) 2>&1 |
18423 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18424 *ac_space=\ *)
18425 # `set' does not quote correctly, so add quotes (double-quote
18426 # substitution turns \\\\ into \\, and sed turns \\ into \).
18427 sed -n \
18428 "s/'/'\\\\''/g;
18429 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18432 # `set' quotes correctly as required by POSIX, so do not add quotes.
18433 sed -n \
18434 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18436 esac;
18438 sed '
18439 t clear
18440 : clear
18441 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18442 t end
18443 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18444 : end' >>confcache
18445 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18446 if test -w $cache_file; then
18447 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18448 cat confcache >$cache_file
18449 else
18450 echo "not updating unwritable cache $cache_file"
18453 rm -f confcache
18455 # Other tests
18456 # aMule options
18458 # Check whether --enable-debug or --disable-debug was given.
18459 if test "${enable_debug+set}" = set; then
18460 enableval="$enable_debug"
18464 # Check whether --enable-profile or --disable-profile was given.
18465 if test "${enable_profile+set}" = set; then
18466 enableval="$enable_profile"
18470 # Check whether --enable-optimize or --disable-optimize was given.
18471 if test "${enable_optimize+set}" = set; then
18472 enableval="$enable_optimize"
18477 if test ${enable_debug:-yes} = yes; then
18479 MULECPPFLAGS="$MULECPPFLAGS -D__DEBUG__"
18481 MULECFLAGS="$MULECFLAGS -g"
18482 MULECXXFLAGS="$MULECXXFLAGS -g"
18484 if test ${GLIBCXX:-no} = yes; then
18485 MULECPPFLAGS="$MULECPPFLAGS -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC"
18488 if test ${GCC:-no} = yes; then
18490 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18491 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18495 if test ${SYS:-unknown} = win32; then
18496 MULERCFLAGS="$MULERCFLAGS -D__DEBUG__"
18500 else
18502 if test ${GCC:-no} = yes; then
18504 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef"
18505 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef"
18513 if test ${enable_profile:-no} = yes; then
18516 MULECFLAGS="$MULECFLAGS -pg"
18517 MULECXXFLAGS="$MULECXXFLAGS -pg"
18519 MULELDFLAGS="$MULELDFLAGS -pg"
18524 if test ${enable_optimize:-no} = yes; then
18526 MULECFLAGS="$MULECFLAGS -O2"
18527 MULECXXFLAGS="$MULECXXFLAGS -O2"
18532 MULECPPFLAGS="$MULECPPFLAGS -DUSE_WX_EXTENSIONS"
18535 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
18536 echo "$as_me:$LINENO: checking for docdir" >&5
18537 echo $ECHO_N "checking for docdir... $ECHO_C" >&6
18538 if test -z "$docdir"; then
18539 docdir="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}"
18542 echo "$as_me:$LINENO: result: $docdir" >&5
18543 echo "${ECHO_T}$docdir" >&6
18545 # Try to set the SVN checkout-date
18546 echo "$as_me:$LINENO: checking for SVNDATE" >&5
18547 echo $ECHO_N "checking for SVNDATE... $ECHO_C" >&6
18548 if test -f "$srcdir/.svn-revision" # SVNDATE for tarballs
18549 then
18550 svndate="rev. `cat $srcdir/.svn-revision`"
18551 elif test -d $srcdir/.svn # SVNDATE for svn
18552 then
18553 svndate="rev. `svnversion $srcdir | sed -e 's/[0-9][0-9]*:\(.*\)/\1/' -e 's/\([0-9][0-9]*\).*/\1/'`"
18555 echo "$as_me:$LINENO: result: ${svndate:-None required}" >&5
18556 echo "${ECHO_T}${svndate:-None required}" >&6
18557 if test -n "$svndate"; then
18560 cat >>confdefs.h <<_ACEOF
18561 #define SVNDATE "$svndate"
18562 _ACEOF
18564 MULERCFLAGS="$MULERCFLAGS -D__PRERELEASE__"
18568 SVNDATE=$svndate
18572 # Check whether --with-denoise-level or --without-denoise-level was given.
18573 if test "${with_denoise_level+set}" = set; then
18574 withval="$with_denoise_level"
18578 echo "$as_me:$LINENO: checking denoising level" >&5
18579 echo $ECHO_N "checking denoising level... $ECHO_C" >&6
18580 if test ${with_denoise_level:-5} = yes; then
18581 with_denoise_level=5
18584 if test ${with_denoise_level:-5} = no; then
18585 with_denoise_level=0
18588 if test ${with_denoise_level:-5} -gt 4; then
18589 if test "${svndate:+set}" = "set"; then
18590 with_denoise_level=0
18591 else
18592 with_denoise_level=4
18597 echo "$as_me:$LINENO: result: $with_denoise_level" >&5
18598 echo "${ECHO_T}$with_denoise_level" >&6
18600 ac_config_commands="$ac_config_commands denoiser"
18604 if test ${enable_plasmamule:-no} = yes; then
18607 if test -z ${QT_MOC}; then
18609 for ac_prog in moc-qt4 moc
18611 # Extract the first word of "$ac_prog", so it can be a program name with args.
18612 set dummy $ac_prog; ac_word=$2
18613 echo "$as_me:$LINENO: checking for $ac_word" >&5
18614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18615 if test "${ac_cv_path_QT_MOC+set}" = set; then
18616 echo $ECHO_N "(cached) $ECHO_C" >&6
18617 else
18618 case $QT_MOC in
18619 [\\/]* | ?:[\\/]*)
18620 ac_cv_path_QT_MOC="$QT_MOC" # Let the user override the test with a path.
18623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18624 for as_dir in $PATH
18626 IFS=$as_save_IFS
18627 test -z "$as_dir" && as_dir=.
18628 for ac_exec_ext in '' $ac_executable_extensions; do
18629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18630 ac_cv_path_QT_MOC="$as_dir/$ac_word$ac_exec_ext"
18631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18632 break 2
18634 done
18635 done
18638 esac
18640 QT_MOC=$ac_cv_path_QT_MOC
18642 if test -n "$QT_MOC"; then
18643 echo "$as_me:$LINENO: result: $QT_MOC" >&5
18644 echo "${ECHO_T}$QT_MOC" >&6
18645 else
18646 echo "$as_me:$LINENO: result: no" >&5
18647 echo "${ECHO_T}no" >&6
18650 test -n "$QT_MOC" && break
18651 done
18654 else
18656 echo "$as_me:$LINENO: checking for moc" >&5
18657 echo $ECHO_N "checking for moc... $ECHO_C" >&6
18658 if test -x ${QT_MOC}; then
18660 echo "$as_me:$LINENO: result: ${QT_MOC}" >&5
18661 echo "${ECHO_T}${QT_MOC}" >&6
18664 else
18666 echo "$as_me:$LINENO: result: \"not found\"" >&5
18667 echo "${ECHO_T}\"not found\"" >&6
18668 QT_MOC="not found"
18677 if test "${QT_MOC}" != "not found"; then
18679 echo "$as_me:$LINENO: checking for moc version >= 4" >&5
18680 echo $ECHO_N "checking for moc version >= 4... $ECHO_C" >&6
18681 QT_MOC_VERSION=`${QT_MOC} -v 2>&1 | sed -e 's/^.* (/(/'`
18682 if test `echo ${QT_MOC_VERSION} | sed -e 's/^.* //' -e 's/\..*$//'` = 4; then
18684 echo "$as_me:$LINENO: result: found ${QT_MOC_VERSION}" >&5
18685 echo "${ECHO_T}found ${QT_MOC_VERSION}" >&6
18687 else
18689 echo "$as_me:$LINENO: result: not found ${QT_MOC_VERSION} is too old" >&5
18690 echo "${ECHO_T}not found ${QT_MOC_VERSION} is too old" >&6
18691 QT_MOC="not found"
18699 if test "${QT_MOC}" = "not found"; then
18700 enable_plasmamule=disabled
18704 if test ${enable_plasmamule:-no} = yes; then
18708 echo "$as_me:$LINENO: checking for qt" >&5
18709 echo $ECHO_N "checking for qt... $ECHO_C" >&6
18710 if test `${PKG_CONFIG} QtCore` --exists && `${PKG_CONFIG} QtGui --exists`; then
18712 echo "$as_me:$LINENO: result: found" >&5
18713 echo "${ECHO_T}found" >&6
18714 echo "$as_me:$LINENO: checking for qt core cflags" >&5
18715 echo $ECHO_N "checking for qt core cflags... $ECHO_C" >&6
18716 QT_CORE_CXXFLAGS=`${PKG_CONFIG} --cflags QtCore`
18717 echo "$as_me:$LINENO: result: $QT_CORE_CFLAGS" >&5
18718 echo "${ECHO_T}$QT_CORE_CFLAGS" >&6
18719 echo "$as_me:$LINENO: checking for qt core libs" >&5
18720 echo $ECHO_N "checking for qt core libs... $ECHO_C" >&6
18721 QT_CORE_LIBS=`${PKG_CONFIG} --libs QtCore`
18722 echo "$as_me:$LINENO: result: $QT_CORE_LIBS" >&5
18723 echo "${ECHO_T}$QT_CORE_LIBS" >&6
18724 echo "$as_me:$LINENO: checking for qt gui cflags" >&5
18725 echo $ECHO_N "checking for qt gui cflags... $ECHO_C" >&6
18726 QT_GUI_CXXFLAGS=`${PKG_CONFIG} --cflags QtGui`
18727 echo "$as_me:$LINENO: result: $QT_GUI_CFLAGS" >&5
18728 echo "${ECHO_T}$QT_GUI_CFLAGS" >&6
18729 echo "$as_me:$LINENO: checking for qt gui libs" >&5
18730 echo $ECHO_N "checking for qt gui libs... $ECHO_C" >&6
18731 QT_GUI_LIBS=`${PKG_CONFIG} --libs QtGui`
18732 echo "$as_me:$LINENO: result: $QT_GUI_LIBS" >&5
18733 echo "${ECHO_T}$QT_GUI_LIBS" >&6
18735 else
18736 echo "$as_me:$LINENO: result: not found" >&5
18737 echo "${ECHO_T}not found" >&6
18746 if test -z "${QT_CORE_CXXFLAGS}"; then
18747 enable_plasmamule=disabled
18754 if test ${enable_plasmamule:-no} = yes; then
18757 if test -z ${KDE4_CONFIG}; then
18759 # Extract the first word of "kde4-config", so it can be a program name with args.
18760 set dummy kde4-config; ac_word=$2
18761 echo "$as_me:$LINENO: checking for $ac_word" >&5
18762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18763 if test "${ac_cv_path_KDE4_CONFIG+set}" = set; then
18764 echo $ECHO_N "(cached) $ECHO_C" >&6
18765 else
18766 case $KDE4_CONFIG in
18767 [\\/]* | ?:[\\/]*)
18768 ac_cv_path_KDE4_CONFIG="$KDE4_CONFIG" # Let the user override the test with a path.
18771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18772 for as_dir in $PATH
18774 IFS=$as_save_IFS
18775 test -z "$as_dir" && as_dir=.
18776 for ac_exec_ext in '' $ac_executable_extensions; do
18777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18778 ac_cv_path_KDE4_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18780 break 2
18782 done
18783 done
18786 esac
18788 KDE4_CONFIG=$ac_cv_path_KDE4_CONFIG
18790 if test -n "$KDE4_CONFIG"; then
18791 echo "$as_me:$LINENO: result: $KDE4_CONFIG" >&5
18792 echo "${ECHO_T}$KDE4_CONFIG" >&6
18793 else
18794 echo "$as_me:$LINENO: result: no" >&5
18795 echo "${ECHO_T}no" >&6
18799 else
18801 echo "$as_me:$LINENO: checking for kde4-config" >&5
18802 echo $ECHO_N "checking for kde4-config... $ECHO_C" >&6
18803 if test ! -x KDE4_CONFIG; then
18805 KDE4_CONFIG="not found"
18806 echo "$as_me:$LINENO: result: not found" >&5
18807 echo "${ECHO_T}not found" >&6
18815 if test "${KDE4_CONFIG}" != "not found"; then
18817 KDE_CONF_VER=`${KDE4_CONFIG} --version | grep KDE | sed -e 's/^.*: //' -e 's/ (.*$//'`
18818 if test `echo ${KDE_CONF_VER} | sed -e 's/\..*$//'` = 4; then
18820 echo "$as_me:$LINENO: result: found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&5
18821 echo "${ECHO_T}found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&6
18823 else
18825 echo "$as_me:$LINENO: result: not found" >&5
18826 echo "${ECHO_T}not found" >&6
18831 else
18833 echo "$as_me:$LINENO: result: not found" >&5
18834 echo "${ECHO_T}not found" >&6
18840 if test "${KDE4_CONFIG}" = "not found"; then
18841 enable_plasmamule=disabled
18848 if test ${enable_plasmamule:-no} = yes; then
18851 echo "$as_me:$LINENO: checking for kde4 headers" >&5
18852 echo $ECHO_N "checking for kde4 headers... $ECHO_C" >&6
18853 KDE_HEADER_DIR=`${KDE4_CONFIG} --path include`
18855 if test -f ${KDE_HEADER_DIR}kdirwatch.h; then
18857 if test -f ${KDE_HEADER_DIR}plasma/dataengine.h; then
18859 echo "$as_me:$LINENO: result: ${KDE_HEADER_DIR}" >&5
18860 echo "${ECHO_T}${KDE_HEADER_DIR}" >&6
18862 else
18864 echo "$as_me:$LINENO: result: not found" >&5
18865 echo "${ECHO_T}not found" >&6
18870 else
18872 echo "$as_me:$LINENO: result: not found2" >&5
18873 echo "${ECHO_T}not found2" >&6
18879 if test -z ${KDE_HEADER_DIR}; then
18880 enable_plasmamule=disabled
18887 if test ${enable_plasmamule:-no} = yes; then
18889 if test -e `$BUILD_CC -print-file-name=libplasma.so` &&
18890 test -e `$BUILD_CC -print-file-name=libkdecore.so`; then
18894 echo "$as_me:$LINENO: checking for kde4 applinks Path" >&5
18895 echo $ECHO_N "checking for kde4 applinks Path... $ECHO_C" >&6
18896 if test `echo ${prefix} | grep home | wc -l` == 1; then
18898 KDE_IN_HOME="yes"
18902 if test ${KDE_IN_HOME} = "yes"; then
18904 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
18906 else
18908 if test -n ${prefix}; then
18910 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep ${prefix} | head -1`
18911 if test -n ${KDE_APPLNK_PATH}; then
18913 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
18918 else
18920 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
18927 echo "$as_me:$LINENO: result: ${KDE_APPLNK_PATH}" >&5
18928 echo "${ECHO_T}${KDE_APPLNK_PATH}" >&6
18933 echo "$as_me:$LINENO: checking for kde4 services Path" >&5
18934 echo $ECHO_N "checking for kde4 services Path... $ECHO_C" >&6
18935 if test `echo ${prefix} | grep home | wc -l` == 1; then
18937 KDE_IN_HOME="yes"
18941 if test ${KDE_IN_HOME} = "yes"; then
18943 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
18945 else
18947 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | grep /usr | head -1`
18951 echo "$as_me:$LINENO: result: ${KDE_SERVICE_PATH}" >&5
18952 echo "${ECHO_T}${KDE_SERVICE_PATH}" >&6
18957 echo "$as_me:$LINENO: checking for kde4 plugins Path" >&5
18958 echo $ECHO_N "checking for kde4 plugins Path... $ECHO_C" >&6
18959 if test `echo ${prefix} | grep home | wc -l` == 1; then
18961 KDE_IN_HOME="yes"
18965 if test ${KDE_IN_HOME} = "yes"; then
18967 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
18969 else
18971 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | grep /usr | head -1`
18975 echo "$as_me:$LINENO: result: ${KDE_MODULE_PATH}" >&5
18976 echo "${ECHO_T}${KDE_MODULE_PATH}" >&6
18981 echo "$as_me:$LINENO: checking for kde4 icons Path" >&5
18982 echo $ECHO_N "checking for kde4 icons Path... $ECHO_C" >&6
18983 if test `echo ${prefix} | grep home | wc -l` == 1; then
18985 KDE_IN_HOME="yes"
18989 if test ${KDE_IN_HOME} = "yes"; then
18991 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
18993 else
18995 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | grep /usr | head -1`
18999 KDE_ICON_PATH=${KDE_ICON_PATH}hicolor/scalable/mimetypes/
19000 echo "$as_me:$LINENO: result: ${KDE_ICON_PATH}" >&5
19001 echo "${ECHO_T}${KDE_ICON_PATH}" >&6
19006 echo "$as_me:$LINENO: checking for location for mime-type installation" >&5
19007 echo $ECHO_N "checking for location for mime-type installation... $ECHO_C" >&6
19008 if test `echo ${prefix} | grep home | wc -l` == 1; then
19010 KDE_IN_HOME="yes"
19014 if test ${KDE_IN_HOME} = "yes"; then
19016 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
19018 else
19020 if test -n ${prefix}; then
19022 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | grep ${prefix} | head -1`
19023 if test -n ${KDE_MIME_PATH}; then
19025 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
19030 else
19032 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
19039 echo "$as_me:$LINENO: result: ${KDE_MIME_PATH}" >&5
19040 echo "${ECHO_T}${KDE_MIME_PATH}" >&6
19044 else
19045 enable_plasmamule=disabled
19057 if test x$SYS = xwin32; then
19058 SYS_WIN32_TRUE=
19059 SYS_WIN32_FALSE='#'
19060 else
19061 SYS_WIN32_TRUE='#'
19062 SYS_WIN32_FALSE=
19067 if test x$SYS = xwin32 -a "$RC" != ":"; then
19068 NEED_RC_TRUE=
19069 NEED_RC_FALSE='#'
19070 else
19071 NEED_RC_TRUE='#'
19072 NEED_RC_FALSE=
19077 if test x$SYS = xdarwin; then
19078 NEED_CORESERVICES_TRUE=
19079 NEED_CORESERVICES_FALSE='#'
19080 else
19081 NEED_CORESERVICES_TRUE='#'
19082 NEED_CORESERVICES_FALSE=
19087 if test x$USE_NLS = xyes; then
19088 COMPILE_NLS_TRUE=
19089 COMPILE_NLS_FALSE='#'
19090 else
19091 COMPILE_NLS_TRUE='#'
19092 COMPILE_NLS_FALSE=
19097 if test x$HAVE_FLEX_EXTENDED = xyes; then
19098 GENERATE_FLEX_HEADER_TRUE=
19099 GENERATE_FLEX_HEADER_FALSE='#'
19100 else
19101 GENERATE_FLEX_HEADER_TRUE='#'
19102 GENERATE_FLEX_HEADER_FALSE=
19107 if test x$INSTALL_SKINS = xyes; then
19108 INSTALL_SKINS_TRUE=
19109 INSTALL_SKINS_FALSE='#'
19110 else
19111 INSTALL_SKINS_TRUE='#'
19112 INSTALL_SKINS_FALSE=
19117 if test ${enable_plasmamule:-no} = yes; then
19118 PLASMAMULE_TRUE=
19119 PLASMAMULE_FALSE='#'
19120 else
19121 PLASMAMULE_TRUE='#'
19122 PLASMAMULE_FALSE=
19128 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then
19129 COMPILE_LIB_COMMON_TRUE=
19130 COMPILE_LIB_COMMON_FALSE='#'
19131 else
19132 COMPILE_LIB_COMMON_TRUE='#'
19133 COMPILE_LIB_COMMON_FALSE=
19138 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_amule_gui:-no} = yes ; then
19139 COMPILE_LIB_EC_TRUE=
19140 COMPILE_LIB_EC_FALSE='#'
19141 else
19142 COMPILE_LIB_EC_TRUE='#'
19143 COMPILE_LIB_EC_FALSE=
19147 # Check for readline library
19148 if test ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes ; then
19150 echo "$as_me:$LINENO: checking for a readline compatible library" >&5
19151 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6
19152 if test "${vl_cv_lib_readline+set}" = set; then
19153 echo $ECHO_N "(cached) $ECHO_C" >&6
19154 else
19156 ORIG_LIBS="$LIBS"
19157 for readline_lib in readline edit editline; do
19158 for termcap_lib in "" termcap curses ncurses; do
19159 if test -z "$termcap_lib"; then
19160 TRY_LIB="-l$readline_lib"
19161 else
19162 TRY_LIB="-l$readline_lib -l$termcap_lib"
19164 LIBS="$ORIG_LIBS $TRY_LIB"
19165 cat >conftest.$ac_ext <<_ACEOF
19166 /* confdefs.h. */
19167 _ACEOF
19168 cat confdefs.h >>conftest.$ac_ext
19169 cat >>conftest.$ac_ext <<_ACEOF
19170 /* end confdefs.h. */
19172 /* Override any gcc2 internal prototype to avoid an error. */
19173 #ifdef __cplusplus
19174 extern "C"
19175 #endif
19176 /* We use char because int might match the return type of a gcc2
19177 builtin and then its argument prototype would still apply. */
19178 char readline ();
19180 main ()
19182 readline ();
19184 return 0;
19186 _ACEOF
19187 rm -f conftest.$ac_objext conftest$ac_exeext
19188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19189 (eval $ac_link) 2>conftest.er1
19190 ac_status=$?
19191 grep -v '^ *+' conftest.er1 >conftest.err
19192 rm -f conftest.er1
19193 cat conftest.err >&5
19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195 (exit $ac_status); } &&
19196 { ac_try='test -z "$ac_c_werror_flag"
19197 || test ! -s conftest.err'
19198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19199 (eval $ac_try) 2>&5
19200 ac_status=$?
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); }; } &&
19203 { ac_try='test -s conftest$ac_exeext'
19204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19205 (eval $ac_try) 2>&5
19206 ac_status=$?
19207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208 (exit $ac_status); }; }; then
19209 vl_cv_lib_readline="$TRY_LIB"
19210 else
19211 echo "$as_me: failed program was:" >&5
19212 sed 's/^/| /' conftest.$ac_ext >&5
19215 rm -f conftest.err conftest.$ac_objext \
19216 conftest$ac_exeext conftest.$ac_ext
19217 if test -n "$vl_cv_lib_readline"; then
19218 break
19220 done
19221 if test -n "$vl_cv_lib_readline"; then
19222 break
19224 done
19225 if test -z "$vl_cv_lib_readline"; then
19226 vl_cv_lib_readline="no"
19227 LIBS="$ORIG_LIBS"
19228 READLINE_LIBS=""
19229 else
19230 READLINE_LIBS="$vl_cv_lib_readline"
19234 echo "$as_me:$LINENO: result: $vl_cv_lib_readline" >&5
19235 echo "${ECHO_T}$vl_cv_lib_readline" >&6
19237 if test "$vl_cv_lib_readline" != "no"; then
19239 cat >>confdefs.h <<\_ACEOF
19240 #define HAVE_LIBREADLINE 1
19241 _ACEOF
19245 for ac_header in readline.h readline/readline.h
19247 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19249 echo "$as_me:$LINENO: checking for $ac_header" >&5
19250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19252 echo $ECHO_N "(cached) $ECHO_C" >&6
19254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19255 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19256 else
19257 # Is the header compilable?
19258 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19259 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19260 cat >conftest.$ac_ext <<_ACEOF
19261 /* confdefs.h. */
19262 _ACEOF
19263 cat confdefs.h >>conftest.$ac_ext
19264 cat >>conftest.$ac_ext <<_ACEOF
19265 /* end confdefs.h. */
19266 $ac_includes_default
19267 #include <$ac_header>
19268 _ACEOF
19269 rm -f conftest.$ac_objext
19270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19271 (eval $ac_compile) 2>conftest.er1
19272 ac_status=$?
19273 grep -v '^ *+' conftest.er1 >conftest.err
19274 rm -f conftest.er1
19275 cat conftest.err >&5
19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); } &&
19278 { ac_try='test -z "$ac_c_werror_flag"
19279 || test ! -s conftest.err'
19280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19281 (eval $ac_try) 2>&5
19282 ac_status=$?
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); }; } &&
19285 { ac_try='test -s conftest.$ac_objext'
19286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19287 (eval $ac_try) 2>&5
19288 ac_status=$?
19289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290 (exit $ac_status); }; }; then
19291 ac_header_compiler=yes
19292 else
19293 echo "$as_me: failed program was:" >&5
19294 sed 's/^/| /' conftest.$ac_ext >&5
19296 ac_header_compiler=no
19298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19299 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19300 echo "${ECHO_T}$ac_header_compiler" >&6
19302 # Is the header present?
19303 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19304 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19305 cat >conftest.$ac_ext <<_ACEOF
19306 /* confdefs.h. */
19307 _ACEOF
19308 cat confdefs.h >>conftest.$ac_ext
19309 cat >>conftest.$ac_ext <<_ACEOF
19310 /* end confdefs.h. */
19311 #include <$ac_header>
19312 _ACEOF
19313 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19315 ac_status=$?
19316 grep -v '^ *+' conftest.er1 >conftest.err
19317 rm -f conftest.er1
19318 cat conftest.err >&5
19319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320 (exit $ac_status); } >/dev/null; then
19321 if test -s conftest.err; then
19322 ac_cpp_err=$ac_c_preproc_warn_flag
19323 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19324 else
19325 ac_cpp_err=
19327 else
19328 ac_cpp_err=yes
19330 if test -z "$ac_cpp_err"; then
19331 ac_header_preproc=yes
19332 else
19333 echo "$as_me: failed program was:" >&5
19334 sed 's/^/| /' conftest.$ac_ext >&5
19336 ac_header_preproc=no
19338 rm -f conftest.err conftest.$ac_ext
19339 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19340 echo "${ECHO_T}$ac_header_preproc" >&6
19342 # So? What about this header?
19343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19344 yes:no: )
19345 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19346 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19348 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19349 ac_header_preproc=yes
19351 no:yes:* )
19352 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19353 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19354 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19355 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19356 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19357 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19358 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19359 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19361 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19362 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19363 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19365 cat <<\_ASBOX
19366 ## ------------------------------ ##
19367 ## Report this to admin@amule.org ##
19368 ## ------------------------------ ##
19369 _ASBOX
19371 sed "s/^/$as_me: WARNING: /" >&2
19373 esac
19374 echo "$as_me:$LINENO: checking for $ac_header" >&5
19375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19377 echo $ECHO_N "(cached) $ECHO_C" >&6
19378 else
19379 eval "$as_ac_Header=\$ac_header_preproc"
19381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19382 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19385 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19386 cat >>confdefs.h <<_ACEOF
19387 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19388 _ACEOF
19392 done
19394 echo "$as_me:$LINENO: checking whether readline supports history" >&5
19395 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6
19396 if test "${vl_cv_lib_readline_history+set}" = set; then
19397 echo $ECHO_N "(cached) $ECHO_C" >&6
19398 else
19400 vl_cv_lib_readline_history="no"
19401 cat >conftest.$ac_ext <<_ACEOF
19402 /* confdefs.h. */
19403 _ACEOF
19404 cat confdefs.h >>conftest.$ac_ext
19405 cat >>conftest.$ac_ext <<_ACEOF
19406 /* end confdefs.h. */
19408 /* Override any gcc2 internal prototype to avoid an error. */
19409 #ifdef __cplusplus
19410 extern "C"
19411 #endif
19412 /* We use char because int might match the return type of a gcc2
19413 builtin and then its argument prototype would still apply. */
19414 char add_history ();
19416 main ()
19418 add_history ();
19420 return 0;
19422 _ACEOF
19423 rm -f conftest.$ac_objext conftest$ac_exeext
19424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19425 (eval $ac_link) 2>conftest.er1
19426 ac_status=$?
19427 grep -v '^ *+' conftest.er1 >conftest.err
19428 rm -f conftest.er1
19429 cat conftest.err >&5
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); } &&
19432 { ac_try='test -z "$ac_c_werror_flag"
19433 || test ! -s conftest.err'
19434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19435 (eval $ac_try) 2>&5
19436 ac_status=$?
19437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438 (exit $ac_status); }; } &&
19439 { ac_try='test -s conftest$ac_exeext'
19440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19441 (eval $ac_try) 2>&5
19442 ac_status=$?
19443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444 (exit $ac_status); }; }; then
19445 vl_cv_lib_readline_history="yes"
19446 else
19447 echo "$as_me: failed program was:" >&5
19448 sed 's/^/| /' conftest.$ac_ext >&5
19451 rm -f conftest.err conftest.$ac_objext \
19452 conftest$ac_exeext conftest.$ac_ext
19455 echo "$as_me:$LINENO: result: $vl_cv_lib_readline_history" >&5
19456 echo "${ECHO_T}$vl_cv_lib_readline_history" >&6
19457 if test "$vl_cv_lib_readline_history" = "yes"; then
19459 cat >>confdefs.h <<\_ACEOF
19460 #define HAVE_READLINE_HISTORY 1
19461 _ACEOF
19465 for ac_header in history.h readline/history.h
19467 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19469 echo "$as_me:$LINENO: checking for $ac_header" >&5
19470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19472 echo $ECHO_N "(cached) $ECHO_C" >&6
19474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19475 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19476 else
19477 # Is the header compilable?
19478 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19479 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19480 cat >conftest.$ac_ext <<_ACEOF
19481 /* confdefs.h. */
19482 _ACEOF
19483 cat confdefs.h >>conftest.$ac_ext
19484 cat >>conftest.$ac_ext <<_ACEOF
19485 /* end confdefs.h. */
19486 $ac_includes_default
19487 #include <$ac_header>
19488 _ACEOF
19489 rm -f conftest.$ac_objext
19490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19491 (eval $ac_compile) 2>conftest.er1
19492 ac_status=$?
19493 grep -v '^ *+' conftest.er1 >conftest.err
19494 rm -f conftest.er1
19495 cat conftest.err >&5
19496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497 (exit $ac_status); } &&
19498 { ac_try='test -z "$ac_c_werror_flag"
19499 || test ! -s conftest.err'
19500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19501 (eval $ac_try) 2>&5
19502 ac_status=$?
19503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 (exit $ac_status); }; } &&
19505 { ac_try='test -s conftest.$ac_objext'
19506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19507 (eval $ac_try) 2>&5
19508 ac_status=$?
19509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510 (exit $ac_status); }; }; then
19511 ac_header_compiler=yes
19512 else
19513 echo "$as_me: failed program was:" >&5
19514 sed 's/^/| /' conftest.$ac_ext >&5
19516 ac_header_compiler=no
19518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19519 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19520 echo "${ECHO_T}$ac_header_compiler" >&6
19522 # Is the header present?
19523 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19525 cat >conftest.$ac_ext <<_ACEOF
19526 /* confdefs.h. */
19527 _ACEOF
19528 cat confdefs.h >>conftest.$ac_ext
19529 cat >>conftest.$ac_ext <<_ACEOF
19530 /* end confdefs.h. */
19531 #include <$ac_header>
19532 _ACEOF
19533 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19534 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19535 ac_status=$?
19536 grep -v '^ *+' conftest.er1 >conftest.err
19537 rm -f conftest.er1
19538 cat conftest.err >&5
19539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540 (exit $ac_status); } >/dev/null; then
19541 if test -s conftest.err; then
19542 ac_cpp_err=$ac_c_preproc_warn_flag
19543 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19544 else
19545 ac_cpp_err=
19547 else
19548 ac_cpp_err=yes
19550 if test -z "$ac_cpp_err"; then
19551 ac_header_preproc=yes
19552 else
19553 echo "$as_me: failed program was:" >&5
19554 sed 's/^/| /' conftest.$ac_ext >&5
19556 ac_header_preproc=no
19558 rm -f conftest.err conftest.$ac_ext
19559 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19560 echo "${ECHO_T}$ac_header_preproc" >&6
19562 # So? What about this header?
19563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19564 yes:no: )
19565 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19566 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19568 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19569 ac_header_preproc=yes
19571 no:yes:* )
19572 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19573 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19574 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19575 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19576 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19577 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19578 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19579 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19581 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19582 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19583 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19585 cat <<\_ASBOX
19586 ## ------------------------------ ##
19587 ## Report this to admin@amule.org ##
19588 ## ------------------------------ ##
19589 _ASBOX
19591 sed "s/^/$as_me: WARNING: /" >&2
19593 esac
19594 echo "$as_me:$LINENO: checking for $ac_header" >&5
19595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19597 echo $ECHO_N "(cached) $ECHO_C" >&6
19598 else
19599 eval "$as_ac_Header=\$ac_header_preproc"
19601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19606 cat >>confdefs.h <<_ACEOF
19607 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19608 _ACEOF
19612 done
19617 LIBS="$ORIG_LIBS"
19622 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
19625 # Check whether --enable-ccache or --disable-ccache was given.
19626 if test "${enable_ccache+set}" = set; then
19627 enableval="$enable_ccache"
19633 # Check whether --with-ccache-prefix or --without-ccache-prefix was given.
19634 if test "${with_ccache_prefix+set}" = set; then
19635 withval="$with_ccache_prefix"
19639 echo "$as_me:$LINENO: checking whether ccache support should be added" >&5
19640 echo $ECHO_N "checking whether ccache support should be added... $ECHO_C" >&6
19641 echo "$as_me:$LINENO: result: ${enable_ccache:-no}" >&5
19642 echo "${ECHO_T}${enable_ccache:-no}" >&6
19644 if test ${enable_ccache:-no} = yes; then
19646 echo "$as_me:$LINENO: checking for ccache presence" >&5
19647 echo $ECHO_N "checking for ccache presence... $ECHO_C" >&6
19648 if test -z "$with_ccache_prefix"; then
19650 ccache_full=`which ccache`
19651 with_ccache_prefix=`dirname ${ccache_full}`
19655 if $with_ccache_prefix/ccache -V >/dev/null 2>&1; then
19657 CC="$with_ccache_prefix/ccache $CC"
19658 CXX="$with_ccache_prefix/ccache $CXX"
19659 BUILD_CC="$with_ccache_prefix/ccache $BUILD_CC"
19661 else
19662 enable_ccache=no
19665 echo "$as_me:$LINENO: result: ${enable_ccache:-no}" >&5
19666 echo "${ECHO_T}${enable_ccache:-no}" >&6
19672 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/plasmamule/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"
19674 ac_config_files="$ac_config_files po/Makefile.in Compilation.flags"
19676 if test x$SYS = xwin32; then
19677 ac_config_files="$ac_config_files version.rc"
19681 cat >confcache <<\_ACEOF
19682 # This file is a shell script that caches the results of configure
19683 # tests run on this system so they can be shared between configure
19684 # scripts and configure runs, see configure's option --config-cache.
19685 # It is not useful on other systems. If it contains results you don't
19686 # want to keep, you may remove or edit it.
19688 # config.status only pays attention to the cache file if you give it
19689 # the --recheck option to rerun configure.
19691 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19692 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19693 # following values.
19695 _ACEOF
19697 # The following way of writing the cache mishandles newlines in values,
19698 # but we know of no workaround that is simple, portable, and efficient.
19699 # So, don't put newlines in cache variables' values.
19700 # Ultrix sh set writes to stderr and can't be redirected directly,
19701 # and sets the high bit in the cache file unless we assign to the vars.
19703 (set) 2>&1 |
19704 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19705 *ac_space=\ *)
19706 # `set' does not quote correctly, so add quotes (double-quote
19707 # substitution turns \\\\ into \\, and sed turns \\ into \).
19708 sed -n \
19709 "s/'/'\\\\''/g;
19710 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19713 # `set' quotes correctly as required by POSIX, so do not add quotes.
19714 sed -n \
19715 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19717 esac;
19719 sed '
19720 t clear
19721 : clear
19722 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19723 t end
19724 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19725 : end' >>confcache
19726 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19727 if test -w $cache_file; then
19728 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19729 cat confcache >$cache_file
19730 else
19731 echo "not updating unwritable cache $cache_file"
19734 rm -f confcache
19736 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19737 # Let make expand exec_prefix.
19738 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19740 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19741 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19742 # trailing colons and then remove the whole line if VPATH becomes empty
19743 # (actually we leave an empty line to preserve line numbers).
19744 if test "x$srcdir" = x.; then
19745 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19746 s/:*\$(srcdir):*/:/;
19747 s/:*\${srcdir}:*/:/;
19748 s/:*@srcdir@:*/:/;
19749 s/^\([^=]*=[ ]*\):*/\1/;
19750 s/:*$//;
19751 s/^[^=]*=[ ]*$//;
19755 DEFS=-DHAVE_CONFIG_H
19757 ac_libobjs=
19758 ac_ltlibobjs=
19759 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19760 # 1. Remove the extension, and $U if already installed.
19761 ac_i=`echo "$ac_i" |
19762 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19763 # 2. Add them.
19764 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19765 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19766 done
19767 LIBOBJS=$ac_libobjs
19769 LTLIBOBJS=$ac_ltlibobjs
19772 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19773 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19774 Usually this means the macro was only invoked conditionally." >&5
19775 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19776 Usually this means the macro was only invoked conditionally." >&2;}
19777 { (exit 1); exit 1; }; }
19779 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19780 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19781 Usually this means the macro was only invoked conditionally." >&5
19782 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19783 Usually this means the macro was only invoked conditionally." >&2;}
19784 { (exit 1); exit 1; }; }
19786 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19787 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19788 Usually this means the macro was only invoked conditionally." >&5
19789 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19790 Usually this means the macro was only invoked conditionally." >&2;}
19791 { (exit 1); exit 1; }; }
19793 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19794 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19795 Usually this means the macro was only invoked conditionally." >&5
19796 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19797 Usually this means the macro was only invoked conditionally." >&2;}
19798 { (exit 1); exit 1; }; }
19800 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
19801 { { echo "$as_me:$LINENO: error: conditional \"MONOLITHIC\" was never defined.
19802 Usually this means the macro was only invoked conditionally." >&5
19803 echo "$as_me: error: conditional \"MONOLITHIC\" was never defined.
19804 Usually this means the macro was only invoked conditionally." >&2;}
19805 { (exit 1); exit 1; }; }
19807 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
19808 { { echo "$as_me:$LINENO: error: conditional \"AMULE_DAEMON\" was never defined.
19809 Usually this means the macro was only invoked conditionally." >&5
19810 echo "$as_me: error: conditional \"AMULE_DAEMON\" was never defined.
19811 Usually this means the macro was only invoked conditionally." >&2;}
19812 { (exit 1); exit 1; }; }
19814 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
19815 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_CMD\" was never defined.
19816 Usually this means the macro was only invoked conditionally." >&5
19817 echo "$as_me: error: conditional \"COMPILE_CMD\" was never defined.
19818 Usually this means the macro was only invoked conditionally." >&2;}
19819 { (exit 1); exit 1; }; }
19821 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
19822 { { echo "$as_me:$LINENO: error: conditional \"WEB\" was never defined.
19823 Usually this means the macro was only invoked conditionally." >&5
19824 echo "$as_me: error: conditional \"WEB\" was never defined.
19825 Usually this means the macro was only invoked conditionally." >&2;}
19826 { (exit 1); exit 1; }; }
19828 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
19829 { { echo "$as_me:$LINENO: error: conditional \"AMULE_GUI\" was never defined.
19830 Usually this means the macro was only invoked conditionally." >&5
19831 echo "$as_me: error: conditional \"AMULE_GUI\" was never defined.
19832 Usually this means the macro was only invoked conditionally." >&2;}
19833 { (exit 1); exit 1; }; }
19835 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
19836 { { echo "$as_me:$LINENO: error: conditional \"CAS\" was never defined.
19837 Usually this means the macro was only invoked conditionally." >&5
19838 echo "$as_me: error: conditional \"CAS\" was never defined.
19839 Usually this means the macro was only invoked conditionally." >&2;}
19840 { (exit 1); exit 1; }; }
19842 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
19843 { { echo "$as_me:$LINENO: error: conditional \"WXCAS\" was never defined.
19844 Usually this means the macro was only invoked conditionally." >&5
19845 echo "$as_me: error: conditional \"WXCAS\" was never defined.
19846 Usually this means the macro was only invoked conditionally." >&2;}
19847 { (exit 1); exit 1; }; }
19849 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
19850 { { echo "$as_me:$LINENO: error: conditional \"ED2K\" was never defined.
19851 Usually this means the macro was only invoked conditionally." >&5
19852 echo "$as_me: error: conditional \"ED2K\" was never defined.
19853 Usually this means the macro was only invoked conditionally." >&2;}
19854 { (exit 1); exit 1; }; }
19856 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
19857 { { echo "$as_me:$LINENO: error: conditional \"ALC\" was never defined.
19858 Usually this means the macro was only invoked conditionally." >&5
19859 echo "$as_me: error: conditional \"ALC\" was never defined.
19860 Usually this means the macro was only invoked conditionally." >&2;}
19861 { (exit 1); exit 1; }; }
19863 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
19864 { { echo "$as_me:$LINENO: error: conditional \"ALCC\" was never defined.
19865 Usually this means the macro was only invoked conditionally." >&5
19866 echo "$as_me: error: conditional \"ALCC\" was never defined.
19867 Usually this means the macro was only invoked conditionally." >&2;}
19868 { (exit 1); exit 1; }; }
19870 if test -z "${XAS_TRUE}" && test -z "${XAS_FALSE}"; then
19871 { { echo "$as_me:$LINENO: error: conditional \"XAS\" was never defined.
19872 Usually this means the macro was only invoked conditionally." >&5
19873 echo "$as_me: error: conditional \"XAS\" was never defined.
19874 Usually this means the macro was only invoked conditionally." >&2;}
19875 { (exit 1); exit 1; }; }
19877 if test -z "${FILEVIEW_TRUE}" && test -z "${FILEVIEW_FALSE}"; then
19878 { { echo "$as_me:$LINENO: error: conditional \"FILEVIEW\" was never defined.
19879 Usually this means the macro was only invoked conditionally." >&5
19880 echo "$as_me: error: conditional \"FILEVIEW\" was never defined.
19881 Usually this means the macro was only invoked conditionally." >&2;}
19882 { (exit 1); exit 1; }; }
19884 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
19885 { { echo "$as_me:$LINENO: error: conditional \"SYS_WIN32\" was never defined.
19886 Usually this means the macro was only invoked conditionally." >&5
19887 echo "$as_me: error: conditional \"SYS_WIN32\" was never defined.
19888 Usually this means the macro was only invoked conditionally." >&2;}
19889 { (exit 1); exit 1; }; }
19891 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
19892 { { echo "$as_me:$LINENO: error: conditional \"NEED_RC\" was never defined.
19893 Usually this means the macro was only invoked conditionally." >&5
19894 echo "$as_me: error: conditional \"NEED_RC\" was never defined.
19895 Usually this means the macro was only invoked conditionally." >&2;}
19896 { (exit 1); exit 1; }; }
19898 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
19899 { { echo "$as_me:$LINENO: error: conditional \"NEED_CORESERVICES\" was never defined.
19900 Usually this means the macro was only invoked conditionally." >&5
19901 echo "$as_me: error: conditional \"NEED_CORESERVICES\" was never defined.
19902 Usually this means the macro was only invoked conditionally." >&2;}
19903 { (exit 1); exit 1; }; }
19905 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
19906 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_NLS\" was never defined.
19907 Usually this means the macro was only invoked conditionally." >&5
19908 echo "$as_me: error: conditional \"COMPILE_NLS\" was never defined.
19909 Usually this means the macro was only invoked conditionally." >&2;}
19910 { (exit 1); exit 1; }; }
19912 if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then
19913 { { echo "$as_me:$LINENO: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19914 Usually this means the macro was only invoked conditionally." >&5
19915 echo "$as_me: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19916 Usually this means the macro was only invoked conditionally." >&2;}
19917 { (exit 1); exit 1; }; }
19919 if test -z "${INSTALL_SKINS_TRUE}" && test -z "${INSTALL_SKINS_FALSE}"; then
19920 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_SKINS\" was never defined.
19921 Usually this means the macro was only invoked conditionally." >&5
19922 echo "$as_me: error: conditional \"INSTALL_SKINS\" was never defined.
19923 Usually this means the macro was only invoked conditionally." >&2;}
19924 { (exit 1); exit 1; }; }
19926 if test -z "${PLASMAMULE_TRUE}" && test -z "${PLASMAMULE_FALSE}"; then
19927 { { echo "$as_me:$LINENO: error: conditional \"PLASMAMULE\" was never defined.
19928 Usually this means the macro was only invoked conditionally." >&5
19929 echo "$as_me: error: conditional \"PLASMAMULE\" was never defined.
19930 Usually this means the macro was only invoked conditionally." >&2;}
19931 { (exit 1); exit 1; }; }
19933 if test -z "${COMPILE_LIB_COMMON_TRUE}" && test -z "${COMPILE_LIB_COMMON_FALSE}"; then
19934 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_LIB_COMMON\" was never defined.
19935 Usually this means the macro was only invoked conditionally." >&5
19936 echo "$as_me: error: conditional \"COMPILE_LIB_COMMON\" was never defined.
19937 Usually this means the macro was only invoked conditionally." >&2;}
19938 { (exit 1); exit 1; }; }
19940 if test -z "${COMPILE_LIB_EC_TRUE}" && test -z "${COMPILE_LIB_EC_FALSE}"; then
19941 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_LIB_EC\" was never defined.
19942 Usually this means the macro was only invoked conditionally." >&5
19943 echo "$as_me: error: conditional \"COMPILE_LIB_EC\" was never defined.
19944 Usually this means the macro was only invoked conditionally." >&2;}
19945 { (exit 1); exit 1; }; }
19948 : ${CONFIG_STATUS=./config.status}
19949 ac_clean_files_save=$ac_clean_files
19950 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19951 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19952 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19953 cat >$CONFIG_STATUS <<_ACEOF
19954 #! $SHELL
19955 # Generated by $as_me.
19956 # Run this file to recreate the current configuration.
19957 # Compiler output produced by configure, useful for debugging
19958 # configure, is in config.log if it exists.
19960 debug=false
19961 ac_cs_recheck=false
19962 ac_cs_silent=false
19963 SHELL=\${CONFIG_SHELL-$SHELL}
19964 _ACEOF
19966 cat >>$CONFIG_STATUS <<\_ACEOF
19967 ## --------------------- ##
19968 ## M4sh Initialization. ##
19969 ## --------------------- ##
19971 # Be Bourne compatible
19972 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19973 emulate sh
19974 NULLCMD=:
19975 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19976 # is contrary to our usage. Disable this feature.
19977 alias -g '${1+"$@"}'='"$@"'
19978 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19979 set -o posix
19981 DUALCASE=1; export DUALCASE # for MKS sh
19983 # Support unset when possible.
19984 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19985 as_unset=unset
19986 else
19987 as_unset=false
19991 # Work around bugs in pre-3.0 UWIN ksh.
19992 $as_unset ENV MAIL MAILPATH
19993 PS1='$ '
19994 PS2='> '
19995 PS4='+ '
19997 # NLS nuisances.
19998 for as_var in \
19999 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20000 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20001 LC_TELEPHONE LC_TIME
20003 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20004 eval $as_var=C; export $as_var
20005 else
20006 $as_unset $as_var
20008 done
20010 # Required to use basename.
20011 if expr a : '\(a\)' >/dev/null 2>&1; then
20012 as_expr=expr
20013 else
20014 as_expr=false
20017 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20018 as_basename=basename
20019 else
20020 as_basename=false
20024 # Name of the executable.
20025 as_me=`$as_basename "$0" ||
20026 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20027 X"$0" : 'X\(//\)$' \| \
20028 X"$0" : 'X\(/\)$' \| \
20029 . : '\(.\)' 2>/dev/null ||
20030 echo X/"$0" |
20031 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20032 /^X\/\(\/\/\)$/{ s//\1/; q; }
20033 /^X\/\(\/\).*/{ s//\1/; q; }
20034 s/.*/./; q'`
20037 # PATH needs CR, and LINENO needs CR and PATH.
20038 # Avoid depending upon Character Ranges.
20039 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20040 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20041 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20042 as_cr_digits='0123456789'
20043 as_cr_alnum=$as_cr_Letters$as_cr_digits
20045 # The user is always right.
20046 if test "${PATH_SEPARATOR+set}" != set; then
20047 echo "#! /bin/sh" >conf$$.sh
20048 echo "exit 0" >>conf$$.sh
20049 chmod +x conf$$.sh
20050 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20051 PATH_SEPARATOR=';'
20052 else
20053 PATH_SEPARATOR=:
20055 rm -f conf$$.sh
20059 as_lineno_1=$LINENO
20060 as_lineno_2=$LINENO
20061 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20062 test "x$as_lineno_1" != "x$as_lineno_2" &&
20063 test "x$as_lineno_3" = "x$as_lineno_2" || {
20064 # Find who we are. Look in the path if we contain no path at all
20065 # relative or not.
20066 case $0 in
20067 *[\\/]* ) as_myself=$0 ;;
20068 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20069 for as_dir in $PATH
20071 IFS=$as_save_IFS
20072 test -z "$as_dir" && as_dir=.
20073 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20074 done
20077 esac
20078 # We did not find ourselves, most probably we were run as `sh COMMAND'
20079 # in which case we are not to be found in the path.
20080 if test "x$as_myself" = x; then
20081 as_myself=$0
20083 if test ! -f "$as_myself"; then
20084 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20085 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20086 { (exit 1); exit 1; }; }
20088 case $CONFIG_SHELL in
20090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20091 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20093 IFS=$as_save_IFS
20094 test -z "$as_dir" && as_dir=.
20095 for as_base in sh bash ksh sh5; do
20096 case $as_dir in
20098 if ("$as_dir/$as_base" -c '
20099 as_lineno_1=$LINENO
20100 as_lineno_2=$LINENO
20101 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20102 test "x$as_lineno_1" != "x$as_lineno_2" &&
20103 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20104 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20105 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20106 CONFIG_SHELL=$as_dir/$as_base
20107 export CONFIG_SHELL
20108 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20109 fi;;
20110 esac
20111 done
20112 done
20114 esac
20116 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20117 # uniformly replaced by the line number. The first 'sed' inserts a
20118 # line-number line before each line; the second 'sed' does the real
20119 # work. The second script uses 'N' to pair each line-number line
20120 # with the numbered line, and appends trailing '-' during
20121 # substitution so that $LINENO is not a special case at line end.
20122 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20123 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20124 sed '=' <$as_myself |
20125 sed '
20127 s,$,-,
20128 : loop
20129 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20130 t loop
20131 s,-$,,
20132 s,^['$as_cr_digits']*\n,,
20133 ' >$as_me.lineno &&
20134 chmod +x $as_me.lineno ||
20135 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20136 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20137 { (exit 1); exit 1; }; }
20139 # Don't try to exec as it changes $[0], causing all sort of problems
20140 # (the dirname of $[0] is not the place where we might find the
20141 # original and so on. Autoconf is especially sensible to this).
20142 . ./$as_me.lineno
20143 # Exit status is that of the last command.
20144 exit
20148 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20149 *c*,-n*) ECHO_N= ECHO_C='
20150 ' ECHO_T=' ' ;;
20151 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20152 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20153 esac
20155 if expr a : '\(a\)' >/dev/null 2>&1; then
20156 as_expr=expr
20157 else
20158 as_expr=false
20161 rm -f conf$$ conf$$.exe conf$$.file
20162 echo >conf$$.file
20163 if ln -s conf$$.file conf$$ 2>/dev/null; then
20164 # We could just check for DJGPP; but this test a) works b) is more generic
20165 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20166 if test -f conf$$.exe; then
20167 # Don't use ln at all; we don't have any links
20168 as_ln_s='cp -p'
20169 else
20170 as_ln_s='ln -s'
20172 elif ln conf$$.file conf$$ 2>/dev/null; then
20173 as_ln_s=ln
20174 else
20175 as_ln_s='cp -p'
20177 rm -f conf$$ conf$$.exe conf$$.file
20179 if mkdir -p . 2>/dev/null; then
20180 as_mkdir_p=:
20181 else
20182 test -d ./-p && rmdir ./-p
20183 as_mkdir_p=false
20186 as_executable_p="test -f"
20188 # Sed expression to map a string onto a valid CPP name.
20189 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20191 # Sed expression to map a string onto a valid variable name.
20192 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20195 # IFS
20196 # We need space, tab and new line, in precisely that order.
20197 as_nl='
20199 IFS=" $as_nl"
20201 # CDPATH.
20202 $as_unset CDPATH
20204 exec 6>&1
20206 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20207 # report actual input values of CONFIG_FILES etc. instead of their
20208 # values after options handling. Logging --version etc. is OK.
20209 exec 5>>config.log
20211 echo
20212 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20213 ## Running $as_me. ##
20214 _ASBOX
20215 } >&5
20216 cat >&5 <<_CSEOF
20218 This file was extended by aMule $as_me SVN, which was
20219 generated by GNU Autoconf 2.59. Invocation command line was
20221 CONFIG_FILES = $CONFIG_FILES
20222 CONFIG_HEADERS = $CONFIG_HEADERS
20223 CONFIG_LINKS = $CONFIG_LINKS
20224 CONFIG_COMMANDS = $CONFIG_COMMANDS
20225 $ $0 $@
20227 _CSEOF
20228 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20229 echo >&5
20230 _ACEOF
20232 # Files that config.status was made for.
20233 if test -n "$ac_config_files"; then
20234 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20237 if test -n "$ac_config_headers"; then
20238 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20241 if test -n "$ac_config_links"; then
20242 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20245 if test -n "$ac_config_commands"; then
20246 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20249 cat >>$CONFIG_STATUS <<\_ACEOF
20251 ac_cs_usage="\
20252 \`$as_me' instantiates files from templates according to the
20253 current configuration.
20255 Usage: $0 [OPTIONS] [FILE]...
20257 -h, --help print this help, then exit
20258 -V, --version print version number, then exit
20259 -q, --quiet do not print progress messages
20260 -d, --debug don't remove temporary files
20261 --recheck update $as_me by reconfiguring in the same conditions
20262 --file=FILE[:TEMPLATE]
20263 instantiate the configuration file FILE
20264 --header=FILE[:TEMPLATE]
20265 instantiate the configuration header FILE
20267 Configuration files:
20268 $config_files
20270 Configuration headers:
20271 $config_headers
20273 Configuration commands:
20274 $config_commands
20276 Report bugs to <bug-autoconf@gnu.org>."
20277 _ACEOF
20279 cat >>$CONFIG_STATUS <<_ACEOF
20280 ac_cs_version="\\
20281 aMule config.status SVN
20282 configured by $0, generated by GNU Autoconf 2.59,
20283 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20285 Copyright (C) 2003 Free Software Foundation, Inc.
20286 This config.status script is free software; the Free Software Foundation
20287 gives unlimited permission to copy, distribute and modify it."
20288 srcdir=$srcdir
20289 INSTALL="$INSTALL"
20290 _ACEOF
20292 cat >>$CONFIG_STATUS <<\_ACEOF
20293 # If no file are specified by the user, then we need to provide default
20294 # value. By we need to know if files were specified by the user.
20295 ac_need_defaults=:
20296 while test $# != 0
20298 case $1 in
20299 --*=*)
20300 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20301 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20302 ac_shift=:
20305 ac_option=$1
20306 ac_optarg=$2
20307 ac_shift=shift
20309 *) # This is not an option, so the user has probably given explicit
20310 # arguments.
20311 ac_option=$1
20312 ac_need_defaults=false;;
20313 esac
20315 case $ac_option in
20316 # Handling of the options.
20317 _ACEOF
20318 cat >>$CONFIG_STATUS <<\_ACEOF
20319 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20320 ac_cs_recheck=: ;;
20321 --version | --vers* | -V )
20322 echo "$ac_cs_version"; exit 0 ;;
20323 --he | --h)
20324 # Conflict between --help and --header
20325 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20326 Try \`$0 --help' for more information." >&5
20327 echo "$as_me: error: ambiguous option: $1
20328 Try \`$0 --help' for more information." >&2;}
20329 { (exit 1); exit 1; }; };;
20330 --help | --hel | -h )
20331 echo "$ac_cs_usage"; exit 0 ;;
20332 --debug | --d* | -d )
20333 debug=: ;;
20334 --file | --fil | --fi | --f )
20335 $ac_shift
20336 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20337 ac_need_defaults=false;;
20338 --header | --heade | --head | --hea )
20339 $ac_shift
20340 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20341 ac_need_defaults=false;;
20342 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20343 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20344 ac_cs_silent=: ;;
20346 # This is an error.
20347 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20348 Try \`$0 --help' for more information." >&5
20349 echo "$as_me: error: unrecognized option: $1
20350 Try \`$0 --help' for more information." >&2;}
20351 { (exit 1); exit 1; }; } ;;
20353 *) ac_config_targets="$ac_config_targets $1" ;;
20355 esac
20356 shift
20357 done
20359 ac_configure_extra_args=
20361 if $ac_cs_silent; then
20362 exec 6>/dev/null
20363 ac_configure_extra_args="$ac_configure_extra_args --silent"
20366 _ACEOF
20367 cat >>$CONFIG_STATUS <<_ACEOF
20368 if \$ac_cs_recheck; then
20369 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20370 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20373 _ACEOF
20375 cat >>$CONFIG_STATUS <<_ACEOF
20377 # INIT-COMMANDS section.
20380 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20381 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
20382 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
20383 # from automake.
20384 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
20385 # Capture the value of LINGUAS because we need it to compute CATALOGS.
20386 LINGUAS="${LINGUAS-%UNSET%}"
20388 denoiserlevel=$with_denoise_level
20390 _ACEOF
20394 cat >>$CONFIG_STATUS <<\_ACEOF
20395 for ac_config_target in $ac_config_targets
20397 case "$ac_config_target" in
20398 # Handling of arguments.
20399 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20400 "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
20401 "docs/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/man/Makefile" ;;
20402 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
20403 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20404 "src/pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pixmaps/Makefile" ;;
20405 "src/pixmaps/flags_xpm/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
20406 "src/libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/Makefile" ;;
20407 "src/libs/ec/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/ec/Makefile" ;;
20408 "src/libs/ec/cpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
20409 "src/libs/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/common/Makefile" ;;
20410 "src/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
20411 "src/utils/aLinkCreator/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
20412 "src/utils/aLinkCreator/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
20413 "src/utils/aLinkCreator/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
20414 "src/utils/cas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/cas/Makefile" ;;
20415 "src/utils/cas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
20416 "src/utils/fileview/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/fileview/Makefile" ;;
20417 "src/utils/plasmamule/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/plasmamule/Makefile" ;;
20418 "src/utils/wxCas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
20419 "src/utils/wxCas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
20420 "src/utils/wxCas/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
20421 "src/utils/xas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/Makefile" ;;
20422 "src/utils/xas/autostart-xas" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
20423 "src/utils/xas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
20424 "src/skins/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/skins/Makefile" ;;
20425 "src/webserver/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/Makefile" ;;
20426 "src/webserver/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/src/Makefile" ;;
20427 "src/webserver/default/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/default/Makefile" ;;
20428 "unittests/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/Makefile" ;;
20429 "unittests/muleunit/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/muleunit/Makefile" ;;
20430 "unittests/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/tests/Makefile" ;;
20431 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
20432 "Compilation.flags" ) CONFIG_FILES="$CONFIG_FILES Compilation.flags" ;;
20433 "version.rc" ) CONFIG_FILES="$CONFIG_FILES version.rc" ;;
20434 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20435 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20436 "denoiser" ) CONFIG_COMMANDS="$CONFIG_COMMANDS denoiser" ;;
20437 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20438 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20439 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20440 { (exit 1); exit 1; }; };;
20441 esac
20442 done
20444 # If the user did not use the arguments to specify the items to instantiate,
20445 # then the envvar interface is used. Set only those that are not.
20446 # We use the long form for the default assignment because of an extremely
20447 # bizarre bug on SunOS 4.1.3.
20448 if $ac_need_defaults; then
20449 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20450 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20451 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20454 # Have a temporary directory for convenience. Make it in the build tree
20455 # simply because there is no reason to put it here, and in addition,
20456 # creating and moving files from /tmp can sometimes cause problems.
20457 # Create a temporary directory, and hook for its removal unless debugging.
20458 $debug ||
20460 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20461 trap '{ (exit 1); exit 1; }' 1 2 13 15
20464 # Create a (secure) tmp directory for tmp files.
20467 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20468 test -n "$tmp" && test -d "$tmp"
20469 } ||
20471 tmp=./confstat$$-$RANDOM
20472 (umask 077 && mkdir $tmp)
20473 } ||
20475 echo "$me: cannot create a temporary directory in ." >&2
20476 { (exit 1); exit 1; }
20479 _ACEOF
20481 cat >>$CONFIG_STATUS <<_ACEOF
20484 # CONFIG_FILES section.
20487 # No need to generate the scripts if there are no CONFIG_FILES.
20488 # This happens for instance when ./config.status config.h
20489 if test -n "\$CONFIG_FILES"; then
20490 # Protect against being on the right side of a sed subst in config.status.
20491 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20492 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20493 s,@GEOIP_CPPFLAGS@,$GEOIP_CPPFLAGS,;t t
20494 s,@GEOIP_LDFLAGS@,$GEOIP_LDFLAGS,;t t
20495 s,@GEOIP_LIBS@,$GEOIP_LIBS,;t t
20496 s,@SHELL@,$SHELL,;t t
20497 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20498 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20499 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20500 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20501 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20502 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20503 s,@exec_prefix@,$exec_prefix,;t t
20504 s,@prefix@,$prefix,;t t
20505 s,@program_transform_name@,$program_transform_name,;t t
20506 s,@bindir@,$bindir,;t t
20507 s,@sbindir@,$sbindir,;t t
20508 s,@libexecdir@,$libexecdir,;t t
20509 s,@datadir@,$datadir,;t t
20510 s,@sysconfdir@,$sysconfdir,;t t
20511 s,@sharedstatedir@,$sharedstatedir,;t t
20512 s,@localstatedir@,$localstatedir,;t t
20513 s,@libdir@,$libdir,;t t
20514 s,@includedir@,$includedir,;t t
20515 s,@oldincludedir@,$oldincludedir,;t t
20516 s,@infodir@,$infodir,;t t
20517 s,@mandir@,$mandir,;t t
20518 s,@build_alias@,$build_alias,;t t
20519 s,@host_alias@,$host_alias,;t t
20520 s,@target_alias@,$target_alias,;t t
20521 s,@DEFS@,$DEFS,;t t
20522 s,@ECHO_C@,$ECHO_C,;t t
20523 s,@ECHO_N@,$ECHO_N,;t t
20524 s,@ECHO_T@,$ECHO_T,;t t
20525 s,@LIBS@,$LIBS,;t t
20526 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20527 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20528 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20529 s,@CYGPATH_W@,$CYGPATH_W,;t t
20530 s,@PACKAGE@,$PACKAGE,;t t
20531 s,@VERSION@,$VERSION,;t t
20532 s,@ACLOCAL@,$ACLOCAL,;t t
20533 s,@AUTOCONF@,$AUTOCONF,;t t
20534 s,@AUTOMAKE@,$AUTOMAKE,;t t
20535 s,@AUTOHEADER@,$AUTOHEADER,;t t
20536 s,@MAKEINFO@,$MAKEINFO,;t t
20537 s,@install_sh@,$install_sh,;t t
20538 s,@STRIP@,$STRIP,;t t
20539 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20540 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20541 s,@mkdir_p@,$mkdir_p,;t t
20542 s,@AWK@,$AWK,;t t
20543 s,@SET_MAKE@,$SET_MAKE,;t t
20544 s,@am__leading_dot@,$am__leading_dot,;t t
20545 s,@AMTAR@,$AMTAR,;t t
20546 s,@am__tar@,$am__tar,;t t
20547 s,@am__untar@,$am__untar,;t t
20548 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20549 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20550 s,@MAINT@,$MAINT,;t t
20551 s,@build@,$build,;t t
20552 s,@build_cpu@,$build_cpu,;t t
20553 s,@build_vendor@,$build_vendor,;t t
20554 s,@build_os@,$build_os,;t t
20555 s,@host@,$host,;t t
20556 s,@host_cpu@,$host_cpu,;t t
20557 s,@host_vendor@,$host_vendor,;t t
20558 s,@host_os@,$host_os,;t t
20559 s,@RESOLV_LIB@,$RESOLV_LIB,;t t
20560 s,@MULECPPFLAGS@,$MULECPPFLAGS,;t t
20561 s,@MULECFLAGS@,$MULECFLAGS,;t t
20562 s,@MULECXXFLAGS@,$MULECXXFLAGS,;t t
20563 s,@MULELDFLAGS@,$MULELDFLAGS,;t t
20564 s,@MULERCFLAGS@,$MULERCFLAGS,;t t
20565 s,@CXX@,$CXX,;t t
20566 s,@CXXFLAGS@,$CXXFLAGS,;t t
20567 s,@LDFLAGS@,$LDFLAGS,;t t
20568 s,@CPPFLAGS@,$CPPFLAGS,;t t
20569 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20570 s,@EXEEXT@,$EXEEXT,;t t
20571 s,@OBJEXT@,$OBJEXT,;t t
20572 s,@DEPDIR@,$DEPDIR,;t t
20573 s,@am__include@,$am__include,;t t
20574 s,@am__quote@,$am__quote,;t t
20575 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20576 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20577 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20578 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20579 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20580 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20581 s,@CXXCPP@,$CXXCPP,;t t
20582 s,@CC@,$CC,;t t
20583 s,@CFLAGS@,$CFLAGS,;t t
20584 s,@ac_ct_CC@,$ac_ct_CC,;t t
20585 s,@CCDEPMODE@,$CCDEPMODE,;t t
20586 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20587 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20588 s,@CPP@,$CPP,;t t
20589 s,@BUILD_CC@,$BUILD_CC,;t t
20590 s,@ac_ct_BUILD_CC@,$ac_ct_BUILD_CC,;t t
20591 s,@EXEEXT@,$EXEEXT,;t t
20592 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
20593 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
20594 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
20595 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
20596 s,@EGREP@,$EGREP,;t t
20597 s,@LEX@,$LEX,;t t
20598 s,@LEXLIB@,$LEXLIB,;t t
20599 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
20600 s,@RANLIB@,$RANLIB,;t t
20601 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20602 s,@YACC@,$YACC,;t t
20603 s,@AR@,$AR,;t t
20604 s,@ac_ct_AR@,$ac_ct_AR,;t t
20605 s,@LD@,$LD,;t t
20606 s,@ac_ct_LD@,$ac_ct_LD,;t t
20607 s,@MONOLITHIC_TRUE@,$MONOLITHIC_TRUE,;t t
20608 s,@MONOLITHIC_FALSE@,$MONOLITHIC_FALSE,;t t
20609 s,@AMULE_DAEMON_TRUE@,$AMULE_DAEMON_TRUE,;t t
20610 s,@AMULE_DAEMON_FALSE@,$AMULE_DAEMON_FALSE,;t t
20611 s,@COMPILE_CMD_TRUE@,$COMPILE_CMD_TRUE,;t t
20612 s,@COMPILE_CMD_FALSE@,$COMPILE_CMD_FALSE,;t t
20613 s,@WEB_TRUE@,$WEB_TRUE,;t t
20614 s,@WEB_FALSE@,$WEB_FALSE,;t t
20615 s,@AMULE_GUI_TRUE@,$AMULE_GUI_TRUE,;t t
20616 s,@AMULE_GUI_FALSE@,$AMULE_GUI_FALSE,;t t
20617 s,@CAS_TRUE@,$CAS_TRUE,;t t
20618 s,@CAS_FALSE@,$CAS_FALSE,;t t
20619 s,@WXCAS_TRUE@,$WXCAS_TRUE,;t t
20620 s,@WXCAS_FALSE@,$WXCAS_FALSE,;t t
20621 s,@ED2K_TRUE@,$ED2K_TRUE,;t t
20622 s,@ED2K_FALSE@,$ED2K_FALSE,;t t
20623 s,@ALC_TRUE@,$ALC_TRUE,;t t
20624 s,@ALC_FALSE@,$ALC_FALSE,;t t
20625 s,@ALCC_TRUE@,$ALCC_TRUE,;t t
20626 s,@ALCC_FALSE@,$ALCC_FALSE,;t t
20627 s,@XAS_TRUE@,$XAS_TRUE,;t t
20628 s,@XAS_FALSE@,$XAS_FALSE,;t t
20629 s,@FILEVIEW_TRUE@,$FILEVIEW_TRUE,;t t
20630 s,@FILEVIEW_FALSE@,$FILEVIEW_FALSE,;t t
20631 s,@ZLIB_CPPFLAGS@,$ZLIB_CPPFLAGS,;t t
20632 s,@ZLIB_LDFLAGS@,$ZLIB_LDFLAGS,;t t
20633 s,@ZLIB_LIBS@,$ZLIB_LIBS,;t t
20634 s,@GDLIB_CONFIG_PATH@,$GDLIB_CONFIG_PATH,;t t
20635 s,@GDLIB_CFLAGS@,$GDLIB_CFLAGS,;t t
20636 s,@GDLIB_LDFLAGS@,$GDLIB_LDFLAGS,;t t
20637 s,@GDLIB_LIBS@,$GDLIB_LIBS,;t t
20638 s,@CAS_DEFS@,$CAS_DEFS,;t t
20639 s,@LIBPNG_CONFIG_PATH@,$LIBPNG_CONFIG_PATH,;t t
20640 s,@LIBPNG_CFLAGS@,$LIBPNG_CFLAGS,;t t
20641 s,@LIBPNG_LDFLAGS@,$LIBPNG_LDFLAGS,;t t
20642 s,@LIBPNG_LIBS@,$LIBPNG_LIBS,;t t
20643 s,@AMULEWEB_DEFS@,$AMULEWEB_DEFS,;t t
20644 s,@WX_CONFIG_PATH@,$WX_CONFIG_PATH,;t t
20645 s,@WX_CPPFLAGS@,$WX_CPPFLAGS,;t t
20646 s,@WX_CFLAGS@,$WX_CFLAGS,;t t
20647 s,@WX_CXXFLAGS@,$WX_CXXFLAGS,;t t
20648 s,@WX_CFLAGS_ONLY@,$WX_CFLAGS_ONLY,;t t
20649 s,@WX_CXXFLAGS_ONLY@,$WX_CXXFLAGS_ONLY,;t t
20650 s,@WX_LIBS@,$WX_LIBS,;t t
20651 s,@WX_VERSION_FULL@,$WX_VERSION_FULL,;t t
20652 s,@WX_RESCOMP@,$WX_RESCOMP,;t t
20653 s,@WX_VERSION_MAJOR@,$WX_VERSION_MAJOR,;t t
20654 s,@WX_VERSION_MINOR@,$WX_VERSION_MINOR,;t t
20655 s,@WX_UNICODE@,$WX_UNICODE,;t t
20656 s,@WX_DEBUG@,$WX_DEBUG,;t t
20657 s,@WX_SHARED@,$WX_SHARED,;t t
20658 s,@WX_PORT@,$WX_PORT,;t t
20659 s,@WXBASE_LIBS@,$WXBASE_LIBS,;t t
20660 s,@WXBASE_CPPFLAGS@,$WXBASE_CPPFLAGS,;t t
20661 s,@RC@,$RC,;t t
20662 s,@RCFLAGS@,$RCFLAGS,;t t
20663 s,@ac_ct_RC@,$ac_ct_RC,;t t
20664 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20665 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
20666 s,@LIBUPNP_CPPFLAGS@,$LIBUPNP_CPPFLAGS,;t t
20667 s,@LIBUPNP_CFLAGS@,$LIBUPNP_CFLAGS,;t t
20668 s,@LIBUPNP_LDFLAGS@,$LIBUPNP_LDFLAGS,;t t
20669 s,@LIBUPNP_LIBS@,$LIBUPNP_LIBS,;t t
20670 s,@CRYPTOPP_CPPFLAGS@,$CRYPTOPP_CPPFLAGS,;t t
20671 s,@CRYPTOPP_LDFLAGS@,$CRYPTOPP_LDFLAGS,;t t
20672 s,@CRYPTOPP_LIBS@,$CRYPTOPP_LIBS,;t t
20673 s,@ALLOCA@,$ALLOCA,;t t
20674 s,@LIBOBJS@,$LIBOBJS,;t t
20675 s,@POW_LIB@,$POW_LIB,;t t
20676 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20677 s,@MSGFMT@,$MSGFMT,;t t
20678 s,@GMSGFMT@,$GMSGFMT,;t t
20679 s,@XGETTEXT@,$XGETTEXT,;t t
20680 s,@MSGMERGE@,$MSGMERGE,;t t
20681 s,@GLIBC21@,$GLIBC21,;t t
20682 s,@LIBICONV@,$LIBICONV,;t t
20683 s,@LTLIBICONV@,$LTLIBICONV,;t t
20684 s,@INTLBISON@,$INTLBISON,;t t
20685 s,@USE_NLS@,$USE_NLS,;t t
20686 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
20687 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
20688 s,@CATOBJEXT@,$CATOBJEXT,;t t
20689 s,@INTLOBJS@,$INTLOBJS,;t t
20690 s,@DATADIRNAME@,$DATADIRNAME,;t t
20691 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20692 s,@GENCAT@,$GENCAT,;t t
20693 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
20694 s,@INTLLIBS@,$INTLLIBS,;t t
20695 s,@LIBINTL@,$LIBINTL,;t t
20696 s,@LTLIBINTL@,$LTLIBINTL,;t t
20697 s,@POSUB@,$POSUB,;t t
20698 s,@AMULE_DAEMON_MANPAGES@,$AMULE_DAEMON_MANPAGES,;t t
20699 s,@AMULECMD_MANPAGES@,$AMULECMD_MANPAGES,;t t
20700 s,@WEBSERVER_MANPAGES@,$WEBSERVER_MANPAGES,;t t
20701 s,@AMULE_GUI_MANPAGES@,$AMULE_GUI_MANPAGES,;t t
20702 s,@CAS_MANPAGES@,$CAS_MANPAGES,;t t
20703 s,@WXCAS_MANPAGES@,$WXCAS_MANPAGES,;t t
20704 s,@ED2K_MANPAGES@,$ED2K_MANPAGES,;t t
20705 s,@ALC_MANPAGES@,$ALC_MANPAGES,;t t
20706 s,@ALCC_MANPAGES@,$ALCC_MANPAGES,;t t
20707 s,@MONOLITHIC_MANPAGES@,$MONOLITHIC_MANPAGES,;t t
20708 s,@INCINTL@,$INCINTL,;t t
20709 s,@BFD_CPPFLAGS@,$BFD_CPPFLAGS,;t t
20710 s,@BFD_LIBS@,$BFD_LIBS,;t t
20711 s,@docdir@,$docdir,;t t
20712 s,@SVNDATE@,$SVNDATE,;t t
20713 s,@QT_MOC@,$QT_MOC,;t t
20714 s,@QT_CORE_CXXFLAGS@,$QT_CORE_CXXFLAGS,;t t
20715 s,@QT_CORE_LIBS@,$QT_CORE_LIBS,;t t
20716 s,@QT_GUI_CXXFLAGS@,$QT_GUI_CXXFLAGS,;t t
20717 s,@QT_GUI_LIBS@,$QT_GUI_LIBS,;t t
20718 s,@KDE4_CONFIG@,$KDE4_CONFIG,;t t
20719 s,@KDE_HEADER_DIR@,$KDE_HEADER_DIR,;t t
20720 s,@KDE_APPLNK_PATH@,$KDE_APPLNK_PATH,;t t
20721 s,@KDE_SERVICE_PATH@,$KDE_SERVICE_PATH,;t t
20722 s,@KDE_MODULE_PATH@,$KDE_MODULE_PATH,;t t
20723 s,@KDE_ICON_PATH@,$KDE_ICON_PATH,;t t
20724 s,@KDE_MIME_PATH@,$KDE_MIME_PATH,;t t
20725 s,@SYS_WIN32_TRUE@,$SYS_WIN32_TRUE,;t t
20726 s,@SYS_WIN32_FALSE@,$SYS_WIN32_FALSE,;t t
20727 s,@NEED_RC_TRUE@,$NEED_RC_TRUE,;t t
20728 s,@NEED_RC_FALSE@,$NEED_RC_FALSE,;t t
20729 s,@NEED_CORESERVICES_TRUE@,$NEED_CORESERVICES_TRUE,;t t
20730 s,@NEED_CORESERVICES_FALSE@,$NEED_CORESERVICES_FALSE,;t t
20731 s,@COMPILE_NLS_TRUE@,$COMPILE_NLS_TRUE,;t t
20732 s,@COMPILE_NLS_FALSE@,$COMPILE_NLS_FALSE,;t t
20733 s,@GENERATE_FLEX_HEADER_TRUE@,$GENERATE_FLEX_HEADER_TRUE,;t t
20734 s,@GENERATE_FLEX_HEADER_FALSE@,$GENERATE_FLEX_HEADER_FALSE,;t t
20735 s,@INSTALL_SKINS_TRUE@,$INSTALL_SKINS_TRUE,;t t
20736 s,@INSTALL_SKINS_FALSE@,$INSTALL_SKINS_FALSE,;t t
20737 s,@PLASMAMULE_TRUE@,$PLASMAMULE_TRUE,;t t
20738 s,@PLASMAMULE_FALSE@,$PLASMAMULE_FALSE,;t t
20739 s,@COMPILE_LIB_COMMON_TRUE@,$COMPILE_LIB_COMMON_TRUE,;t t
20740 s,@COMPILE_LIB_COMMON_FALSE@,$COMPILE_LIB_COMMON_FALSE,;t t
20741 s,@COMPILE_LIB_EC_TRUE@,$COMPILE_LIB_EC_TRUE,;t t
20742 s,@COMPILE_LIB_EC_FALSE@,$COMPILE_LIB_EC_FALSE,;t t
20743 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
20744 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20745 CEOF
20747 _ACEOF
20749 cat >>$CONFIG_STATUS <<\_ACEOF
20750 # Split the substitutions into bite-sized pieces for seds with
20751 # small command number limits, like on Digital OSF/1 and HP-UX.
20752 ac_max_sed_lines=48
20753 ac_sed_frag=1 # Number of current file.
20754 ac_beg=1 # First line for current file.
20755 ac_end=$ac_max_sed_lines # Line after last line for current file.
20756 ac_more_lines=:
20757 ac_sed_cmds=
20758 while $ac_more_lines; do
20759 if test $ac_beg -gt 1; then
20760 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20761 else
20762 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20764 if test ! -s $tmp/subs.frag; then
20765 ac_more_lines=false
20766 else
20767 # The purpose of the label and of the branching condition is to
20768 # speed up the sed processing (if there are no `@' at all, there
20769 # is no need to browse any of the substitutions).
20770 # These are the two extra sed commands mentioned above.
20771 (echo ':t
20772 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20773 if test -z "$ac_sed_cmds"; then
20774 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20775 else
20776 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20778 ac_sed_frag=`expr $ac_sed_frag + 1`
20779 ac_beg=$ac_end
20780 ac_end=`expr $ac_end + $ac_max_sed_lines`
20782 done
20783 if test -z "$ac_sed_cmds"; then
20784 ac_sed_cmds=cat
20786 fi # test -n "$CONFIG_FILES"
20788 _ACEOF
20789 cat >>$CONFIG_STATUS <<\_ACEOF
20790 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20791 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20792 case $ac_file in
20793 - | *:- | *:-:* ) # input from stdin
20794 cat >$tmp/stdin
20795 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20796 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20797 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20798 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20799 * ) ac_file_in=$ac_file.in ;;
20800 esac
20802 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20803 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20804 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20805 X"$ac_file" : 'X\(//\)[^/]' \| \
20806 X"$ac_file" : 'X\(//\)$' \| \
20807 X"$ac_file" : 'X\(/\)' \| \
20808 . : '\(.\)' 2>/dev/null ||
20809 echo X"$ac_file" |
20810 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20811 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20812 /^X\(\/\/\)$/{ s//\1/; q; }
20813 /^X\(\/\).*/{ s//\1/; q; }
20814 s/.*/./; q'`
20815 { if $as_mkdir_p; then
20816 mkdir -p "$ac_dir"
20817 else
20818 as_dir="$ac_dir"
20819 as_dirs=
20820 while test ! -d "$as_dir"; do
20821 as_dirs="$as_dir $as_dirs"
20822 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20823 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20824 X"$as_dir" : 'X\(//\)[^/]' \| \
20825 X"$as_dir" : 'X\(//\)$' \| \
20826 X"$as_dir" : 'X\(/\)' \| \
20827 . : '\(.\)' 2>/dev/null ||
20828 echo X"$as_dir" |
20829 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20830 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20831 /^X\(\/\/\)$/{ s//\1/; q; }
20832 /^X\(\/\).*/{ s//\1/; q; }
20833 s/.*/./; q'`
20834 done
20835 test ! -n "$as_dirs" || mkdir $as_dirs
20836 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20837 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20838 { (exit 1); exit 1; }; }; }
20840 ac_builddir=.
20842 if test "$ac_dir" != .; then
20843 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20844 # A "../" for each directory in $ac_dir_suffix.
20845 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20846 else
20847 ac_dir_suffix= ac_top_builddir=
20850 case $srcdir in
20851 .) # No --srcdir option. We are building in place.
20852 ac_srcdir=.
20853 if test -z "$ac_top_builddir"; then
20854 ac_top_srcdir=.
20855 else
20856 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20857 fi ;;
20858 [\\/]* | ?:[\\/]* ) # Absolute path.
20859 ac_srcdir=$srcdir$ac_dir_suffix;
20860 ac_top_srcdir=$srcdir ;;
20861 *) # Relative path.
20862 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20863 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20864 esac
20866 # Do not use `cd foo && pwd` to compute absolute paths, because
20867 # the directories may not exist.
20868 case `pwd` in
20869 .) ac_abs_builddir="$ac_dir";;
20871 case "$ac_dir" in
20872 .) ac_abs_builddir=`pwd`;;
20873 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20874 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20875 esac;;
20876 esac
20877 case $ac_abs_builddir in
20878 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20880 case ${ac_top_builddir}. in
20881 .) ac_abs_top_builddir=$ac_abs_builddir;;
20882 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20883 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20884 esac;;
20885 esac
20886 case $ac_abs_builddir in
20887 .) ac_abs_srcdir=$ac_srcdir;;
20889 case $ac_srcdir in
20890 .) ac_abs_srcdir=$ac_abs_builddir;;
20891 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20892 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20893 esac;;
20894 esac
20895 case $ac_abs_builddir in
20896 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20898 case $ac_top_srcdir in
20899 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20900 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20901 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20902 esac;;
20903 esac
20906 case $INSTALL in
20907 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20908 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20909 esac
20911 if test x"$ac_file" != x-; then
20912 { echo "$as_me:$LINENO: creating $ac_file" >&5
20913 echo "$as_me: creating $ac_file" >&6;}
20914 rm -f "$ac_file"
20916 # Let's still pretend it is `configure' which instantiates (i.e., don't
20917 # use $as_me), people would be surprised to read:
20918 # /* config.h. Generated by config.status. */
20919 if test x"$ac_file" = x-; then
20920 configure_input=
20921 else
20922 configure_input="$ac_file. "
20924 configure_input=$configure_input"Generated from `echo $ac_file_in |
20925 sed 's,.*/,,'` by configure."
20927 # First look for the input files in the build tree, otherwise in the
20928 # src tree.
20929 ac_file_inputs=`IFS=:
20930 for f in $ac_file_in; do
20931 case $f in
20932 -) echo $tmp/stdin ;;
20933 [\\/$]*)
20934 # Absolute (can't be DOS-style, as IFS=:)
20935 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20936 echo "$as_me: error: cannot find input file: $f" >&2;}
20937 { (exit 1); exit 1; }; }
20938 echo "$f";;
20939 *) # Relative
20940 if test -f "$f"; then
20941 # Build tree
20942 echo "$f"
20943 elif test -f "$srcdir/$f"; then
20944 # Source tree
20945 echo "$srcdir/$f"
20946 else
20947 # /dev/null tree
20948 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20949 echo "$as_me: error: cannot find input file: $f" >&2;}
20950 { (exit 1); exit 1; }; }
20951 fi;;
20952 esac
20953 done` || { (exit 1); exit 1; }
20954 _ACEOF
20955 cat >>$CONFIG_STATUS <<_ACEOF
20956 sed "$ac_vpsub
20957 $extrasub
20958 _ACEOF
20959 cat >>$CONFIG_STATUS <<\_ACEOF
20961 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20962 s,@configure_input@,$configure_input,;t t
20963 s,@srcdir@,$ac_srcdir,;t t
20964 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20965 s,@top_srcdir@,$ac_top_srcdir,;t t
20966 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20967 s,@builddir@,$ac_builddir,;t t
20968 s,@abs_builddir@,$ac_abs_builddir,;t t
20969 s,@top_builddir@,$ac_top_builddir,;t t
20970 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20971 s,@INSTALL@,$ac_INSTALL,;t t
20972 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20973 rm -f $tmp/stdin
20974 if test x"$ac_file" != x-; then
20975 mv $tmp/out $ac_file
20976 else
20977 cat $tmp/out
20978 rm -f $tmp/out
20981 done
20982 _ACEOF
20983 cat >>$CONFIG_STATUS <<\_ACEOF
20986 # CONFIG_HEADER section.
20989 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20990 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20992 # ac_d sets the value in "#define NAME VALUE" lines.
20993 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20994 ac_dB='[ ].*$,\1#\2'
20995 ac_dC=' '
20996 ac_dD=',;t'
20997 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20998 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20999 ac_uB='$,\1#\2define\3'
21000 ac_uC=' '
21001 ac_uD=',;t'
21003 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21004 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21005 case $ac_file in
21006 - | *:- | *:-:* ) # input from stdin
21007 cat >$tmp/stdin
21008 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21009 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21010 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21011 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21012 * ) ac_file_in=$ac_file.in ;;
21013 esac
21015 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21016 echo "$as_me: creating $ac_file" >&6;}
21018 # First look for the input files in the build tree, otherwise in the
21019 # src tree.
21020 ac_file_inputs=`IFS=:
21021 for f in $ac_file_in; do
21022 case $f in
21023 -) echo $tmp/stdin ;;
21024 [\\/$]*)
21025 # Absolute (can't be DOS-style, as IFS=:)
21026 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21027 echo "$as_me: error: cannot find input file: $f" >&2;}
21028 { (exit 1); exit 1; }; }
21029 # Do quote $f, to prevent DOS paths from being IFS'd.
21030 echo "$f";;
21031 *) # Relative
21032 if test -f "$f"; then
21033 # Build tree
21034 echo "$f"
21035 elif test -f "$srcdir/$f"; then
21036 # Source tree
21037 echo "$srcdir/$f"
21038 else
21039 # /dev/null tree
21040 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21041 echo "$as_me: error: cannot find input file: $f" >&2;}
21042 { (exit 1); exit 1; }; }
21043 fi;;
21044 esac
21045 done` || { (exit 1); exit 1; }
21046 # Remove the trailing spaces.
21047 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21049 _ACEOF
21051 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21052 # `conftest.undefs', that substitutes the proper values into
21053 # config.h.in to produce config.h. The first handles `#define'
21054 # templates, and the second `#undef' templates.
21055 # And first: Protect against being on the right side of a sed subst in
21056 # config.status. Protect against being in an unquoted here document
21057 # in config.status.
21058 rm -f conftest.defines conftest.undefs
21059 # Using a here document instead of a string reduces the quoting nightmare.
21060 # Putting comments in sed scripts is not portable.
21062 # `end' is used to avoid that the second main sed command (meant for
21063 # 0-ary CPP macros) applies to n-ary macro definitions.
21064 # See the Autoconf documentation for `clear'.
21065 cat >confdef2sed.sed <<\_ACEOF
21066 s/[\\&,]/\\&/g
21067 s,[\\$`],\\&,g
21068 t clear
21069 : clear
21070 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21071 t end
21072 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21073 : end
21074 _ACEOF
21075 # If some macros were called several times there might be several times
21076 # the same #defines, which is useless. Nevertheless, we may not want to
21077 # sort them, since we want the *last* AC-DEFINE to be honored.
21078 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21079 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21080 rm -f confdef2sed.sed
21082 # This sed command replaces #undef with comments. This is necessary, for
21083 # example, in the case of _POSIX_SOURCE, which is predefined and required
21084 # on some systems where configure will not decide to define it.
21085 cat >>conftest.undefs <<\_ACEOF
21086 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21087 _ACEOF
21089 # Break up conftest.defines because some shells have a limit on the size
21090 # of here documents, and old seds have small limits too (100 cmds).
21091 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21092 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21093 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21094 echo ' :' >>$CONFIG_STATUS
21095 rm -f conftest.tail
21096 while grep . conftest.defines >/dev/null
21098 # Write a limited-size here document to $tmp/defines.sed.
21099 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21100 # Speed up: don't consider the non `#define' lines.
21101 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21102 # Work around the forget-to-reset-the-flag bug.
21103 echo 't clr' >>$CONFIG_STATUS
21104 echo ': clr' >>$CONFIG_STATUS
21105 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21106 echo 'CEOF
21107 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21108 rm -f $tmp/in
21109 mv $tmp/out $tmp/in
21110 ' >>$CONFIG_STATUS
21111 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21112 rm -f conftest.defines
21113 mv conftest.tail conftest.defines
21114 done
21115 rm -f conftest.defines
21116 echo ' fi # grep' >>$CONFIG_STATUS
21117 echo >>$CONFIG_STATUS
21119 # Break up conftest.undefs because some shells have a limit on the size
21120 # of here documents, and old seds have small limits too (100 cmds).
21121 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21122 rm -f conftest.tail
21123 while grep . conftest.undefs >/dev/null
21125 # Write a limited-size here document to $tmp/undefs.sed.
21126 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21127 # Speed up: don't consider the non `#undef'
21128 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21129 # Work around the forget-to-reset-the-flag bug.
21130 echo 't clr' >>$CONFIG_STATUS
21131 echo ': clr' >>$CONFIG_STATUS
21132 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21133 echo 'CEOF
21134 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21135 rm -f $tmp/in
21136 mv $tmp/out $tmp/in
21137 ' >>$CONFIG_STATUS
21138 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21139 rm -f conftest.undefs
21140 mv conftest.tail conftest.undefs
21141 done
21142 rm -f conftest.undefs
21144 cat >>$CONFIG_STATUS <<\_ACEOF
21145 # Let's still pretend it is `configure' which instantiates (i.e., don't
21146 # use $as_me), people would be surprised to read:
21147 # /* config.h. Generated by config.status. */
21148 if test x"$ac_file" = x-; then
21149 echo "/* Generated by configure. */" >$tmp/config.h
21150 else
21151 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21153 cat $tmp/in >>$tmp/config.h
21154 rm -f $tmp/in
21155 if test x"$ac_file" != x-; then
21156 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21157 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21158 echo "$as_me: $ac_file is unchanged" >&6;}
21159 else
21160 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21161 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21162 X"$ac_file" : 'X\(//\)[^/]' \| \
21163 X"$ac_file" : 'X\(//\)$' \| \
21164 X"$ac_file" : 'X\(/\)' \| \
21165 . : '\(.\)' 2>/dev/null ||
21166 echo X"$ac_file" |
21167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21168 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21169 /^X\(\/\/\)$/{ s//\1/; q; }
21170 /^X\(\/\).*/{ s//\1/; q; }
21171 s/.*/./; q'`
21172 { if $as_mkdir_p; then
21173 mkdir -p "$ac_dir"
21174 else
21175 as_dir="$ac_dir"
21176 as_dirs=
21177 while test ! -d "$as_dir"; do
21178 as_dirs="$as_dir $as_dirs"
21179 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21180 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21181 X"$as_dir" : 'X\(//\)[^/]' \| \
21182 X"$as_dir" : 'X\(//\)$' \| \
21183 X"$as_dir" : 'X\(/\)' \| \
21184 . : '\(.\)' 2>/dev/null ||
21185 echo X"$as_dir" |
21186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21187 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21188 /^X\(\/\/\)$/{ s//\1/; q; }
21189 /^X\(\/\).*/{ s//\1/; q; }
21190 s/.*/./; q'`
21191 done
21192 test ! -n "$as_dirs" || mkdir $as_dirs
21193 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21194 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21195 { (exit 1); exit 1; }; }; }
21197 rm -f $ac_file
21198 mv $tmp/config.h $ac_file
21200 else
21201 cat $tmp/config.h
21202 rm -f $tmp/config.h
21204 # Compute $ac_file's index in $config_headers.
21205 _am_stamp_count=1
21206 for _am_header in $config_headers :; do
21207 case $_am_header in
21208 $ac_file | $ac_file:* )
21209 break ;;
21211 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21212 esac
21213 done
21214 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21215 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21216 X$ac_file : 'X\(//\)[^/]' \| \
21217 X$ac_file : 'X\(//\)$' \| \
21218 X$ac_file : 'X\(/\)' \| \
21219 . : '\(.\)' 2>/dev/null ||
21220 echo X$ac_file |
21221 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21222 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21223 /^X\(\/\/\)$/{ s//\1/; q; }
21224 /^X\(\/\).*/{ s//\1/; q; }
21225 s/.*/./; q'`/stamp-h$_am_stamp_count
21226 done
21227 _ACEOF
21228 cat >>$CONFIG_STATUS <<\_ACEOF
21231 # CONFIG_COMMANDS section.
21233 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21234 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21235 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21236 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21237 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21238 X"$ac_dest" : 'X\(//\)[^/]' \| \
21239 X"$ac_dest" : 'X\(//\)$' \| \
21240 X"$ac_dest" : 'X\(/\)' \| \
21241 . : '\(.\)' 2>/dev/null ||
21242 echo X"$ac_dest" |
21243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21244 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21245 /^X\(\/\/\)$/{ s//\1/; q; }
21246 /^X\(\/\).*/{ s//\1/; q; }
21247 s/.*/./; q'`
21248 { if $as_mkdir_p; then
21249 mkdir -p "$ac_dir"
21250 else
21251 as_dir="$ac_dir"
21252 as_dirs=
21253 while test ! -d "$as_dir"; do
21254 as_dirs="$as_dir $as_dirs"
21255 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21256 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21257 X"$as_dir" : 'X\(//\)[^/]' \| \
21258 X"$as_dir" : 'X\(//\)$' \| \
21259 X"$as_dir" : 'X\(/\)' \| \
21260 . : '\(.\)' 2>/dev/null ||
21261 echo X"$as_dir" |
21262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21263 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21264 /^X\(\/\/\)$/{ s//\1/; q; }
21265 /^X\(\/\).*/{ s//\1/; q; }
21266 s/.*/./; q'`
21267 done
21268 test ! -n "$as_dirs" || mkdir $as_dirs
21269 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21270 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21271 { (exit 1); exit 1; }; }; }
21273 ac_builddir=.
21275 if test "$ac_dir" != .; then
21276 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21277 # A "../" for each directory in $ac_dir_suffix.
21278 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21279 else
21280 ac_dir_suffix= ac_top_builddir=
21283 case $srcdir in
21284 .) # No --srcdir option. We are building in place.
21285 ac_srcdir=.
21286 if test -z "$ac_top_builddir"; then
21287 ac_top_srcdir=.
21288 else
21289 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21290 fi ;;
21291 [\\/]* | ?:[\\/]* ) # Absolute path.
21292 ac_srcdir=$srcdir$ac_dir_suffix;
21293 ac_top_srcdir=$srcdir ;;
21294 *) # Relative path.
21295 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21296 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21297 esac
21299 # Do not use `cd foo && pwd` to compute absolute paths, because
21300 # the directories may not exist.
21301 case `pwd` in
21302 .) ac_abs_builddir="$ac_dir";;
21304 case "$ac_dir" in
21305 .) ac_abs_builddir=`pwd`;;
21306 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21307 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21308 esac;;
21309 esac
21310 case $ac_abs_builddir in
21311 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21313 case ${ac_top_builddir}. in
21314 .) ac_abs_top_builddir=$ac_abs_builddir;;
21315 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21316 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21317 esac;;
21318 esac
21319 case $ac_abs_builddir in
21320 .) ac_abs_srcdir=$ac_srcdir;;
21322 case $ac_srcdir in
21323 .) ac_abs_srcdir=$ac_abs_builddir;;
21324 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21325 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21326 esac;;
21327 esac
21328 case $ac_abs_builddir in
21329 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21331 case $ac_top_srcdir in
21332 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21333 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21334 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21335 esac;;
21336 esac
21339 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21340 echo "$as_me: executing $ac_dest commands" >&6;}
21341 case $ac_dest in
21342 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21343 # Strip MF so we end up with the name of the file.
21344 mf=`echo "$mf" | sed -e 's/:.*$//'`
21345 # Check whether this is an Automake generated Makefile or not.
21346 # We used to match only the files named `Makefile.in', but
21347 # some people rename them; so instead we look at the file content.
21348 # Grep'ing the first line is not enough: some people post-process
21349 # each Makefile.in and add a new line on top of each file to say so.
21350 # So let's grep whole file.
21351 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21352 dirpart=`(dirname "$mf") 2>/dev/null ||
21353 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21354 X"$mf" : 'X\(//\)[^/]' \| \
21355 X"$mf" : 'X\(//\)$' \| \
21356 X"$mf" : 'X\(/\)' \| \
21357 . : '\(.\)' 2>/dev/null ||
21358 echo X"$mf" |
21359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21360 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21361 /^X\(\/\/\)$/{ s//\1/; q; }
21362 /^X\(\/\).*/{ s//\1/; q; }
21363 s/.*/./; q'`
21364 else
21365 continue
21367 # Extract the definition of DEPDIR, am__include, and am__quote
21368 # from the Makefile without running `make'.
21369 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21370 test -z "$DEPDIR" && continue
21371 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21372 test -z "am__include" && continue
21373 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21374 # When using ansi2knr, U may be empty or an underscore; expand it
21375 U=`sed -n 's/^U = //p' < "$mf"`
21376 # Find all dependency output files, they are included files with
21377 # $(DEPDIR) in their names. We invoke sed twice because it is the
21378 # simplest approach to changing $(DEPDIR) to its actual value in the
21379 # expansion.
21380 for file in `sed -n "
21381 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21382 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21383 # Make sure the directory exists.
21384 test -f "$dirpart/$file" && continue
21385 fdir=`(dirname "$file") 2>/dev/null ||
21386 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21387 X"$file" : 'X\(//\)[^/]' \| \
21388 X"$file" : 'X\(//\)$' \| \
21389 X"$file" : 'X\(/\)' \| \
21390 . : '\(.\)' 2>/dev/null ||
21391 echo X"$file" |
21392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21393 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21394 /^X\(\/\/\)$/{ s//\1/; q; }
21395 /^X\(\/\).*/{ s//\1/; q; }
21396 s/.*/./; q'`
21397 { if $as_mkdir_p; then
21398 mkdir -p $dirpart/$fdir
21399 else
21400 as_dir=$dirpart/$fdir
21401 as_dirs=
21402 while test ! -d "$as_dir"; do
21403 as_dirs="$as_dir $as_dirs"
21404 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21405 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21406 X"$as_dir" : 'X\(//\)[^/]' \| \
21407 X"$as_dir" : 'X\(//\)$' \| \
21408 X"$as_dir" : 'X\(/\)' \| \
21409 . : '\(.\)' 2>/dev/null ||
21410 echo X"$as_dir" |
21411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21412 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21413 /^X\(\/\/\)$/{ s//\1/; q; }
21414 /^X\(\/\).*/{ s//\1/; q; }
21415 s/.*/./; q'`
21416 done
21417 test ! -n "$as_dirs" || mkdir $as_dirs
21418 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21419 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21420 { (exit 1); exit 1; }; }; }
21422 # echo "creating $dirpart/$file"
21423 echo '# dummy' > "$dirpart/$file"
21424 done
21425 done
21427 default-1 )
21428 for ac_file in $CONFIG_FILES; do
21429 # Support "outfile[:infile[:infile...]]"
21430 case "$ac_file" in
21431 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21432 esac
21433 # PO directories have a Makefile.in generated from Makefile.in.in.
21434 case "$ac_file" in */Makefile.in)
21435 # Adjust a relative srcdir.
21436 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
21437 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
21438 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
21439 # In autoconf-2.13 it is called $ac_given_srcdir.
21440 # In autoconf-2.50 it is called $srcdir.
21441 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
21442 case "$ac_given_srcdir" in
21443 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
21444 /*) top_srcdir="$ac_given_srcdir" ;;
21445 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
21446 esac
21447 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
21448 rm -f "$ac_dir/POTFILES"
21449 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
21450 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
21451 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
21452 # on $ac_dir but don't depend on user-specified configuration
21453 # parameters.
21454 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
21455 # The LINGUAS file contains the set of available languages.
21456 if test -n "$ALL_LINGUAS"; then
21457 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
21459 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
21460 # Hide the ALL_LINGUAS assigment from automake.
21461 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
21463 case "$ac_given_srcdir" in
21464 .) srcdirpre= ;;
21465 *) srcdirpre='$(srcdir)/' ;;
21466 esac
21467 POFILES=
21468 GMOFILES=
21469 UPDATEPOFILES=
21470 DUMMYPOFILES=
21471 for lang in $ALL_LINGUAS; do
21472 POFILES="$POFILES $srcdirpre$lang.po"
21473 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
21474 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
21475 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
21476 done
21477 # CATALOGS depends on both $ac_dir and the user's LINGUAS
21478 # environment variable.
21479 INST_LINGUAS=
21480 if test -n "$ALL_LINGUAS"; then
21481 for presentlang in $ALL_LINGUAS; do
21482 useit=no
21483 if test "%UNSET%" != "$LINGUAS"; then
21484 desiredlanguages="$LINGUAS"
21485 else
21486 desiredlanguages="$ALL_LINGUAS"
21488 for desiredlang in $desiredlanguages; do
21489 # Use the presentlang catalog if desiredlang is
21490 # a. equal to presentlang, or
21491 # b. a variant of presentlang (because in this case,
21492 # presentlang can be used as a fallback for messages
21493 # which are not translated in the desiredlang catalog).
21494 case "$desiredlang" in
21495 "$presentlang"*) useit=yes;;
21496 esac
21497 done
21498 if test $useit = yes; then
21499 INST_LINGUAS="$INST_LINGUAS $presentlang"
21501 done
21503 CATALOGS=
21504 if test -n "$INST_LINGUAS"; then
21505 for lang in $INST_LINGUAS; do
21506 CATALOGS="$CATALOGS $lang.gmo"
21507 done
21509 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
21510 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"
21511 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
21512 if test -f "$f"; then
21513 case "$f" in
21514 *.orig | *.bak | *~) ;;
21515 *) cat "$f" >> "$ac_dir/Makefile" ;;
21516 esac
21518 done
21521 esac
21522 done ;;
21523 denoiser ) if test $denoiserlevel -gt 0; then
21524 if test ! -d src/utils/scripts; then mkdir -p src/utils/scripts; fi
21525 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" \
21526 $srcdir/src/utils/scripts/denoiser.rules > src/utils/scripts/denoiser.sed
21527 for i in `find . -name 'Makefile' -print`; do
21528 if test -n "`head -n 1 $i | grep '^#'`"; then
21529 sed -f src/utils/scripts/denoiser.sed $i > $i.tmp && mv $i.tmp $i
21531 done
21532 fi ;;
21533 esac
21534 done
21535 _ACEOF
21537 cat >>$CONFIG_STATUS <<\_ACEOF
21539 { (exit 0); exit 0; }
21540 _ACEOF
21541 chmod +x $CONFIG_STATUS
21542 ac_clean_files=$ac_clean_files_save
21545 # configure is writing to config.log, and then calls config.status.
21546 # config.status does its own redirection, appending to config.log.
21547 # Unfortunately, on DOS this fails, as config.log is still kept open
21548 # by configure, so config.status won't be able to write to it; its
21549 # output is simply discarded. So we exec the FD to /dev/null,
21550 # effectively closing config.log, so it can be properly (re)opened and
21551 # appended to by config.status. When coming back to configure, we
21552 # need to make the FD available again.
21553 if test "$no_create" != yes; then
21554 ac_cs_success=:
21555 ac_config_status_args=
21556 test "$silent" = yes &&
21557 ac_config_status_args="$ac_config_status_args --quiet"
21558 exec 5>/dev/null
21559 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21560 exec 5>>config.log
21561 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21562 # would make configure fail if this is the last instruction.
21563 $ac_cs_success || { (exit 1); exit 1; }
21567 if test -n "$svndate"; then
21568 SVN_REVISION=" ($svndate)"
21569 else
21570 SVN_REVISION=
21574 echo
21575 echo
21576 echo " Configure script has finished system check."
21577 echo
21578 echo " Configured aMule ${PACKAGE_VERSION}${SVN_REVISION} for '${host}'."
21579 echo
21580 echo " aMule enabled options:"
21581 echo
21582 echo " **** aMule Core ****"
21583 echo " Prefix where aMule should be installed? ${prefix:-none}"
21584 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
21585 echo " Should aMule be compiled in debug mode? ${enable_debug:-yes}"
21586 echo " Should aMule be compiled with profiling? ${enable_profile:-no}"
21587 echo " Should aMule be compiled with optimizations? ${enable_optimize:-no}"
21588 echo " Should aMule be compiled with UPnP support? ${enable_upnp:-yes}"
21589 echo " Should aMule be compiled with IP2country support? ${enable_geoip:-no}"
21590 echo " Should aMule monolithic application be built? ${enable_monolithic:-yes}"
21591 echo " Should aMule daemon version be built? ${enable_amule_daemon:-no}"
21592 echo " Should aMule remote gui be built? (EXPERIMENTAL) ${enable_amule_gui:-no}"
21593 echo " Crypto++ library/headers style? ${CRYPTOPP_STYLE:-not found}"
21595 echo
21596 echo " **** aMule TextClient ****"
21597 echo " Should aMule Command Line Client be built? ${enable_amulecmd:-no}"
21598 echo
21599 echo " **** aMule WebServer ****"
21600 echo " Should aMule WebServer be built? ${enable_webserver:-no}"
21601 echo
21602 echo " **** aMule ED2K Links Handler ****"
21603 echo " Should aMule ED2K Links Handler be built? ${enable_ed2k:-yes}"
21604 echo
21605 echo " **** aMuleLinkCreator ****"
21606 echo " Should aMuleLinkCreator GUI version (alc) be built? ${enable_alc:-no}"
21607 echo " Should aMuleLinkCreator for console (alcc) be built? ${enable_alcc:-no}"
21608 echo
21609 echo " **** aMule Statistics ****"
21610 echo " Should C aMule Statistics (CAS) be built? ${enable_cas:-no}"
21611 echo " Should aMule GUI Statistics (wxCas) be built? ${enable_wxcas:-no}"
21612 echo " Should xas XChat2 plugin be installed? ${enable_xas:-no}"
21613 echo " Should plasmaMule plasma-applet be build? ${enable_plasmamule:-no}"
21615 echo
21616 echo " **** General Libraries and Tools ****"
21617 echo " Should ccache support be enabled? ${enable_ccache:-no}"
21618 echo " Libraries aMule will use to build:"
21619 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_alc:-no} = yes -o ${enable_alcc:-no} = yes -o ${enable_wxcas:-no} = yes -o ${enable_fileview:-no} = yes ; then
21621 wxinfo="$WX_PORT"
21622 if test $WX_DEBUG -eq 1; then
21623 wxinfo="$wxinfo,debug"
21626 if test $WX_SHARED -eq 1; then
21627 wxinfo="$wxinfo,shared"
21628 else
21629 wxinfo="$wxinfo,static"
21632 echo " wxWidgets ${WX_VERSION_FULL} ($wxinfo)"
21636 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then
21637 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (${CRYPTOPP_STYLE}, in ${CRYPTOPP_PREFIX})"
21640 if test ${enable_upnp:-yes} = yes; then
21642 if test -n "$with_libupnp_prefix"; then
21643 libupnp_place=" (in $with_libupnp_prefix)"
21646 echo " libupnp ${LIBUPNP_VERSION:-Not detected}${libupnp_place:-}"
21650 if test ${enable_nls:-yes} = yes; then
21651 if test x$USE_NLS = xno; then
21652 libintl_found="Not detected"
21653 else
21654 if test x$USE_INCLUDED_LIBINTL = xyes; then
21655 libintl_found="included"
21656 else
21657 libintl_found="system"
21662 echo " libintl $libintl_found"
21664 if test ${enable_geoip:-no} = yes; then
21665 if test -z "${with_geoip_headers:-}${with_geoip_lib:-}"; then
21666 geoip_style=system
21667 else
21668 geoip_style=user
21671 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then
21672 echo " libGeoIP ${geoip_style}"
21677 if test ${enable_webserver:-no} = yes; then
21678 echo " libpng ${LIBPNG_VERSION:-Not detected}"
21681 if test ${enable_cas:-no} = yes; then
21682 echo " libgd ${GDLIB_VERSION:-Not detected}"
21685 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_amule_gui:-no} = yes ; then
21686 echo " zlib ${ZLIB_VERSION:-Not detected}"
21689 if test ${enable_plasmamule:-no} = yes; then
21690 echo " qt-moc ${QT_MOC} ${QT_MOC_VERSION}"
21691 echo " qt-core-libs ${QT_CORE_LIBS}"
21692 echo " qt-gui-libs ${QT_GUI_LIBS}"
21693 echo " kde4-config ${KDE4_CONFIG} (${KDE_CONF_VER})"
21694 echo " kde-headers ${KDE_HEADER_DIR}"
21695 echo " kde-services-path ${KDE_SERVICE_PATH}"
21696 echo " kde-module-path ${KDE_MODULE_PATH}"
21697 echo " kde-icon-path ${KDE_ICON_PATH}"
21698 echo " kde-mime-path ${KDE_MIME_PATH}"
21699 echo " kde-applinks-path ${KDE_APPLNK_PATH}"
21700 echo " **** You have to run kbuildsycoca after installing to let plasma know the changes ****"
21701 echo " **** You have to run \"update-mime-database ${KDE_MIME_PATH}\" to register the mimetype ****"
21704 if test ${_mule_has_warnings:-no} = yes; then
21705 echo ""
21706 echo ""
21707 echo " *** Warnings during configuration ***"
21709 if test ${_mule_warning_0:-no} = yes; then
21710 cat <<_MULEEOT
21712 * gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
21713 Please check that gdlib-config is in your default path, check out
21714 LD_LIBRARY_PATH or equivalent variable.
21715 Or this might also be that your gdlib-config has other name.
21716 Please try again with --with-gdlib-config=/usr/bin/gdlib-config (replace
21717 /usr/bin/gdlib-config with a valid path to your gdlib-config).
21718 If you use compiled packages check if you have devel pack installed.
21719 To download the latest version check http://www.boutell.com/gd for sources.
21720 _MULEEOT
21722 if test ${_mule_warning_1:-no} = yes; then
21723 cat <<_MULEEOT
21725 * libpng >= 1.2.0 not found.
21726 amuleweb will be compiled but file download progress bar images will NOT be
21727 generated.
21728 _MULEEOT
21730 if test ${_mule_warning_2:-no} = yes; then
21731 cat <<_MULEEOT
21733 * File::Copy perl module is required by the mldonkey_importer script.
21734 If you want to use this script please install File::Copy from CPAN.
21735 _MULEEOT
21737 if test ${_mule_warning_3:-no} = yes; then
21738 cat <<_MULEEOT
21740 * Cannot link GeoIP statically, because your linker ($LD) does not support it.
21741 _MULEEOT
21743 if test ${_mule_warning_4:-no} = yes; then
21744 cat <<_MULEEOT
21746 * GeoIP support has been disabled because the GeoIP libraries were not found
21747 _MULEEOT
21749 if test ${_mule_warning_5:-no} = yes; then
21750 cat <<_MULEEOT
21752 * GeoIP support has been disabled because the GeoIP header files were not
21753 found
21754 _MULEEOT
21756 if test ${_mule_warning_6:-no} = yes; then
21757 cat <<_MULEEOT
21759 * UPnP code has been disabled because ${libupnp_error}.
21760 _MULEEOT
21762 if test ${_mule_warning_7:-no} = yes; then
21763 cat <<_MULEEOT
21765 * Cross-compilation detected, so exception handling cannot be tested.
21766 Note that broken exception handling in your compiler may lead to unexpected
21767 crashes.
21768 _MULEEOT
21770 if test ${_mule_warning_8:-no} = yes; then
21771 cat <<_MULEEOT
21773 * configure cannot check whether malloc() and realloc() are GNU libc
21774 compatible. You have to be ABSOLUTELY sure that they are, otherwise run
21775 configure with the --without-gnu-malloc switch.
21776 _MULEEOT
21778 if test ${_mule_warning_9:-no} = yes; then
21779 cat <<_MULEEOT
21781 * You need to install GNU gettext/gettext-tools to compile aMule with i18n
21782 support.
21783 _MULEEOT
21785 if test ${_mule_warning_10:-no} = yes; then
21786 cat <<_MULEEOT
21788 * bfd.h not found or unusable, please install binutils development package if
21789 you are a developer or want to help testing aMule
21790 _MULEEOT