Upstream tarball 9535
[amule.git] / configure
blob20fa3ab87411083fb66d6359a294fd5e7a6ec161
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for aMule SVN.
5 # Report bugs to <admin@amule.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
51 done
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
98 rm -f conf$$.sh
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
156 esac
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
240 IFS=" $as_nl"
242 # CDPATH.
243 $as_unset CDPATH
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251 exec 6>&1
254 # Initializations.
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME='aMule'
271 PACKAGE_TARNAME='amule'
272 PACKAGE_VERSION='SVN'
273 PACKAGE_STRING='aMule SVN'
274 PACKAGE_BUGREPORT='admin@amule.org'
276 ac_unique_file="src/amule.cpp"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 # include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 # include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 # include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
314 ac_subst_vars='GEOIP_CPPFLAGS GEOIP_LDFLAGS GEOIP_LIBS SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os RESOLV_LIB X11LIBS MULECPPFLAGS MULECFLAGS MULECXXFLAGS MULELDFLAGS MULERCFLAGS CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP BUILD_CC ac_ct_BUILD_CC EXEEXT BUILD_EXEEXT BUILD_CPPFLAGS BUILD_CFLAGS BUILD_LDFLAGS EGREP LEX LEXLIB LEX_OUTPUT_ROOT RANLIB ac_ct_RANLIB YACC AR ac_ct_AR LD ac_ct_LD ZLIB_CPPFLAGS ZLIB_LDFLAGS ZLIB_LIBS GDLIB_CONFIG_PATH GDLIB_CFLAGS GDLIB_LDFLAGS GDLIB_LIBS CAS_DEFS REGEX_LIBS LIBPNG_CONFIG_PATH LIBPNG_CFLAGS LIBPNG_LDFLAGS LIBPNG_LIBS AMULEWEB_DEFS WX_CONFIG_PATH WX_CPPFLAGS WX_CFLAGS WX_CXXFLAGS WX_CFLAGS_ONLY WX_CXXFLAGS_ONLY WX_LIBS WX_LIBS_STATIC WX_VERSION_FULL WX_RESCOMP WX_VERSION_MAJOR WX_VERSION_MINOR WX_UNICODE WX_DEBUG WX_SHARED WX_PORT WXBASE_LIBS WXBASE_CPPFLAGS RC RCFLAGS ac_ct_RC PKG_CONFIG ac_pt_PKG_CONFIG LIBUPNP_CPPFLAGS LIBUPNP_CFLAGS LIBUPNP_LDFLAGS LIBUPNP_LIBS CRYPTOPP_CPPFLAGS CRYPTOPP_LDFLAGS CRYPTOPP_LIBS BFD_CPPFLAGS BFD_LIBS ALLOCA LIBOBJS POW_LIB MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE GLIBC21 LIBICONV LTLIBICONV INTLBISON USE_NLS BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT INTLOBJS DATADIRNAME INSTOBJEXT GENCAT INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB AMULE_DAEMON_MANPAGES AMULECMD_MANPAGES WEB_MANPAGES AMULE_GUI_MANPAGES CAS_MANPAGES WXCAS_MANPAGES ED2K_MANPAGES ALC_MANPAGES ALCC_MANPAGES MONOLITHIC_MANPAGES INCINTL docdir SVNDATE WEB_TRUE WEB_FALSE ED2K_TRUE ED2K_FALSE CAS_TRUE CAS_FALSE WXCAS_TRUE WXCAS_FALSE ALC_TRUE ALC_FALSE ALCC_TRUE ALCC_FALSE AMULE_GUI_TRUE AMULE_GUI_FALSE AMULE_DAEMON_TRUE AMULE_DAEMON_FALSE COMPILE_CMD_TRUE COMPILE_CMD_FALSE MONOLITHIC_TRUE MONOLITHIC_FALSE XAS_TRUE XAS_FALSE ENABLE_UPNP_TRUE ENABLE_UPNP_FALSE ENABLE_IP2COUNTRY_TRUE ENABLE_IP2COUNTRY_FALSE SYS_WIN32_TRUE SYS_WIN32_FALSE NEED_RC_TRUE NEED_RC_FALSE NEED_CORESERVICES_TRUE NEED_CORESERVICES_FALSE COMPILE_NLS_TRUE COMPILE_NLS_FALSE GENERATE_FLEX_HEADER_TRUE GENERATE_FLEX_HEADER_FALSE INSTALL_SKINS_TRUE INSTALL_SKINS_FALSE READLINE_LIBS LTLIBOBJS'
315 ac_subst_files=''
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
355 ac_prev=
356 for ac_option
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
361 ac_prev=
362 continue
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
369 case $ac_option in
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 bindir=$ac_optarg ;;
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
388 --config-cache | -C)
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 ac_prev=datadir ;;
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
395 datadir=$ac_optarg ;;
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 *) ac_optarg=yes ;;
416 esac
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 libdir=$ac_optarg ;;
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 mandir=$ac_optarg ;;
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
488 no_create=yes ;;
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 prefix=$ac_optarg ;;
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
563 site=$ac_optarg ;;
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 srcdir=$ac_optarg ;;
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
588 -with-* | --with-*)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 *) ac_optarg=yes ;;
598 esac
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
633 *=*)
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
641 export $ac_envvar ;;
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 esac
652 done
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
663 eval ac_val=$`echo $ac_var`
664 case $ac_val in
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
668 esac
669 done
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val=$`echo $ac_var`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
680 esac
681 done
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
697 cross_compiling=yes
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
723 srcdir=$ac_confdir
724 if test ! -r $srcdir/$ac_unique_file; then
725 srcdir=..
727 else
728 ac_srcdir_defaulted=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
734 else
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CXX_set=${CXX+set}
756 ac_env_CXX_value=$CXX
757 ac_cv_env_CXX_set=${CXX+set}
758 ac_cv_env_CXX_value=$CXX
759 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
760 ac_env_CXXFLAGS_value=$CXXFLAGS
761 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
762 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CXXCPP_set=${CXXCPP+set}
772 ac_env_CXXCPP_value=$CXXCPP
773 ac_cv_env_CXXCPP_set=${CXXCPP+set}
774 ac_cv_env_CXXCPP_value=$CXXCPP
775 ac_env_CC_set=${CC+set}
776 ac_env_CC_value=$CC
777 ac_cv_env_CC_set=${CC+set}
778 ac_cv_env_CC_value=$CC
779 ac_env_CFLAGS_set=${CFLAGS+set}
780 ac_env_CFLAGS_value=$CFLAGS
781 ac_cv_env_CFLAGS_set=${CFLAGS+set}
782 ac_cv_env_CFLAGS_value=$CFLAGS
783 ac_env_CPP_set=${CPP+set}
784 ac_env_CPP_value=$CPP
785 ac_cv_env_CPP_set=${CPP+set}
786 ac_cv_env_CPP_value=$CPP
787 ac_env_RC_set=${RC+set}
788 ac_env_RC_value=$RC
789 ac_cv_env_RC_set=${RC+set}
790 ac_cv_env_RC_value=$RC
791 ac_env_RCFLAGS_set=${RCFLAGS+set}
792 ac_env_RCFLAGS_value=$RCFLAGS
793 ac_cv_env_RCFLAGS_set=${RCFLAGS+set}
794 ac_cv_env_RCFLAGS_value=$RCFLAGS
795 ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
796 ac_env_PKG_CONFIG_value=$PKG_CONFIG
797 ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
798 ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
801 # Report the --help message.
803 if test "$ac_init_help" = "long"; then
804 # Omit some internal or obsolete options to make the list less imposing.
805 # This message is too long to be a string in the A/UX 3.1 sh.
806 cat <<_ACEOF
807 \`configure' configures aMule SVN to adapt to many kinds of systems.
809 Usage: $0 [OPTION]... [VAR=VALUE]...
811 To assign environment variables (e.g., CC, CFLAGS...), specify them as
812 VAR=VALUE. See below for descriptions of some of the useful variables.
814 Defaults for the options are specified in brackets.
816 Configuration:
817 -h, --help display this help and exit
818 --help=short display options specific to this package
819 --help=recursive display the short help of all the included packages
820 -V, --version display version information and exit
821 -q, --quiet, --silent do not print \`checking...' messages
822 --cache-file=FILE cache test results in FILE [disabled]
823 -C, --config-cache alias for \`--cache-file=config.cache'
824 -n, --no-create do not create output files
825 --srcdir=DIR find the sources in DIR [configure dir or \`..']
827 _ACEOF
829 cat <<_ACEOF
830 Installation directories:
831 --prefix=PREFIX install architecture-independent files in PREFIX
832 [$ac_default_prefix]
833 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
834 [PREFIX]
836 By default, \`make install' will install all the files in
837 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
838 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
839 for instance \`--prefix=\$HOME'.
841 For better control, use the options below.
843 Fine tuning of the installation directories:
844 --bindir=DIR user executables [EPREFIX/bin]
845 --sbindir=DIR system admin executables [EPREFIX/sbin]
846 --libexecdir=DIR program executables [EPREFIX/libexec]
847 --datadir=DIR read-only architecture-independent data [PREFIX/share]
848 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
849 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
850 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
851 --libdir=DIR object code libraries [EPREFIX/lib]
852 --includedir=DIR C header files [PREFIX/include]
853 --oldincludedir=DIR C header files for non-gcc [/usr/include]
854 --infodir=DIR info documentation [PREFIX/info]
855 --mandir=DIR man documentation [PREFIX/man]
856 _ACEOF
858 cat <<\_ACEOF
860 Program names:
861 --program-prefix=PREFIX prepend PREFIX to installed program names
862 --program-suffix=SUFFIX append SUFFIX to installed program names
863 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
865 X features:
866 --x-includes=DIR X include files are in DIR
867 --x-libraries=DIR X library files are in DIR
869 System types:
870 --build=BUILD configure for building on BUILD [guessed]
871 --host=HOST cross-compile to build programs to run on HOST [BUILD]
872 _ACEOF
875 if test -n "$ac_init_help"; then
876 case $ac_init_help in
877 short | recursive ) echo "Configuration of aMule SVN:";;
878 esac
879 cat <<\_ACEOF
881 Optional Features:
882 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
883 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
884 --enable-maintainer-mode enable make rules and dependencies not useful
885 (and sometimes confusing) to the casual installer
886 --disable-dependency-tracking speeds up one-time build
887 --enable-dependency-tracking do not reject slow dependency extractors
888 --disable-monolithic disable building of the monolithic aMule app
889 --enable-amule-daemon compile aMule daemon version
890 --enable-amulecmd compile aMule command line client
891 --enable-webserver compile aMule WebServer
892 --enable-amule-gui compile aMule remote GUI (EXPERIMENTAL)
893 --enable-cas compile C aMule Statistics
894 --enable-wxcas compile aMule GUI Statistics
895 --disable-ed2k don't compile aMule ed2k links handler
896 --enable-alc compile aMuleLinkCreator GUI version
897 --enable-alcc compile aMuleLinkCreator for console
898 --disable-upnp do not compile UPnP code
899 --enable-xas install xas XChat2 plugin
900 --enable-geoip compile with GeoIP IP2Country library
901 --disable-rpath do not hardcode runtime library paths
902 --disable-nls do not use Native Language Support
903 --disable-debug disable additional debugging output
904 --enable-optimize enable code optimization
905 --enable-profile enable code profiling
906 --enable-static produce a statically linked executable
907 --enable-ccache enable ccache support for fast recompilation
909 Optional Packages:
910 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
911 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
912 --without-gnu-malloc Don't assume that we use GNU libc compatible
913 malloc/realloc when cross-compiling
914 --with-zlib=PREFIX use zlib in PREFIX
915 --with-gdlib-prefix=PREFIX
916 prefix where gdlib is installed (optional)
917 --with-gdlib-config=CONFIG
918 gdlib-config script to use (optional)
919 --with-libpng-prefix=PREFIX
920 prefix where libpng is installed (optional)
921 --with-libpng-config=CONFIG
922 libpng-config script to use (optional)
923 --with-geoip-headers=DIR
924 GeoIP include files location
925 --with-geoip-lib=DIR GeoIP library location
926 --with-geoip-static Explicitly link GeoIP statically (default=no)
927 --with-wxdir=PATH Use uninstalled version of wxWidgets in PATH
928 --with-wx-config=CONFIG wx-config script to use (optional)
929 --with-wx-prefix=PREFIX Prefix where wxWidgets is installed (optional)
930 --with-wx-exec-prefix=PREFIX
931 Exec prefix where wxWidgets is installed (optional)
932 --with-toolkit Build against a specific wxWidgets toolkit (default
933 is auto)
934 --with-wxshared Force building against a shared build of wxWidgets,
935 even if --disable-shared is given (default is auto)
936 --with-wxdebug Force building against a debug build of wxWidgets,
937 even if --disable-debug is given (default is auto)
938 --with-wxversion Build against a specific version of wxWidgets
939 (default is auto)
940 --with-libupnp-prefix=PREFIX
941 UPnP library location
942 --with-crypto-prefix=PREFIX
943 prefix where crypto++ is installed
944 --with-x use the X Window System
945 --with-language=<langs> Specify a comma-separated list of languages you want
946 to have installed. See po/LINGUAS for available
947 languages
948 --with-gnu-ld assume the C compiler uses GNU ld default=no
949 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
950 --without-libiconv-prefix don't search for libiconv in includedir and libdir
951 --with-included-gettext use the GNU gettext library included here
952 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
953 --without-libintl-prefix don't search for libintl in includedir and libdir
954 --with-denoise-level=<level>
955 Specifies denoising level (0-4):
956 0 - Do nothing
957 4 - Suppress all normal output
958 (for more information see
959 src/utils/scripts/denoiser.rules)
961 --with-ccache-prefix=PREFIX
962 prefix where ccache is installed
964 Some influential environment variables:
965 CXX C++ compiler command
966 CXXFLAGS C++ compiler flags
967 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
968 nonstandard directory <lib dir>
969 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
970 headers in a nonstandard directory <include dir>
971 CXXCPP C++ preprocessor
972 CC C compiler command
973 CFLAGS C compiler flags
974 CPP C preprocessor
975 RC Resource Compiler
976 RCFLAGS Resource Compiler Flags
977 PKG_CONFIG path to pkg-config utility
979 Use these variables to override the choices made by `configure' or to help
980 it to find libraries and programs with nonstandard names/locations.
982 Report bugs to <admin@amule.org>.
983 _ACEOF
986 if test "$ac_init_help" = "recursive"; then
987 # If there are subdirs, report their specific --help.
988 ac_popdir=`pwd`
989 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
990 test -d $ac_dir || continue
991 ac_builddir=.
993 if test "$ac_dir" != .; then
994 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
995 # A "../" for each directory in $ac_dir_suffix.
996 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
997 else
998 ac_dir_suffix= ac_top_builddir=
1001 case $srcdir in
1002 .) # No --srcdir option. We are building in place.
1003 ac_srcdir=.
1004 if test -z "$ac_top_builddir"; then
1005 ac_top_srcdir=.
1006 else
1007 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1008 fi ;;
1009 [\\/]* | ?:[\\/]* ) # Absolute path.
1010 ac_srcdir=$srcdir$ac_dir_suffix;
1011 ac_top_srcdir=$srcdir ;;
1012 *) # Relative path.
1013 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1014 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1015 esac
1017 # Do not use `cd foo && pwd` to compute absolute paths, because
1018 # the directories may not exist.
1019 case `pwd` in
1020 .) ac_abs_builddir="$ac_dir";;
1022 case "$ac_dir" in
1023 .) ac_abs_builddir=`pwd`;;
1024 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1025 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1026 esac;;
1027 esac
1028 case $ac_abs_builddir in
1029 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1031 case ${ac_top_builddir}. in
1032 .) ac_abs_top_builddir=$ac_abs_builddir;;
1033 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1034 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1035 esac;;
1036 esac
1037 case $ac_abs_builddir in
1038 .) ac_abs_srcdir=$ac_srcdir;;
1040 case $ac_srcdir in
1041 .) ac_abs_srcdir=$ac_abs_builddir;;
1042 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1043 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1044 esac;;
1045 esac
1046 case $ac_abs_builddir in
1047 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1049 case $ac_top_srcdir in
1050 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1051 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1052 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1053 esac;;
1054 esac
1056 cd $ac_dir
1057 # Check for guested configure; otherwise get Cygnus style configure.
1058 if test -f $ac_srcdir/configure.gnu; then
1059 echo
1060 $SHELL $ac_srcdir/configure.gnu --help=recursive
1061 elif test -f $ac_srcdir/configure; then
1062 echo
1063 $SHELL $ac_srcdir/configure --help=recursive
1064 elif test -f $ac_srcdir/configure.ac ||
1065 test -f $ac_srcdir/configure.in; then
1066 echo
1067 $ac_configure --help
1068 else
1069 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1071 cd $ac_popdir
1072 done
1075 test -n "$ac_init_help" && exit 0
1076 if $ac_init_version; then
1077 cat <<\_ACEOF
1078 aMule configure SVN
1079 generated by GNU Autoconf 2.59
1081 Copyright (C) 2003 Free Software Foundation, Inc.
1082 This configure script is free software; the Free Software Foundation
1083 gives unlimited permission to copy, distribute and modify it.
1084 _ACEOF
1085 exit 0
1087 exec 5>config.log
1088 cat >&5 <<_ACEOF
1089 This file contains any messages produced by compilers while
1090 running configure, to aid debugging if configure makes a mistake.
1092 It was created by aMule $as_me SVN, which was
1093 generated by GNU Autoconf 2.59. Invocation command line was
1095 $ $0 $@
1097 _ACEOF
1099 cat <<_ASUNAME
1100 ## --------- ##
1101 ## Platform. ##
1102 ## --------- ##
1104 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1105 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1106 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1107 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1108 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1110 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1111 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1113 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1114 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1115 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1116 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1117 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1118 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1119 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1121 _ASUNAME
1123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1124 for as_dir in $PATH
1126 IFS=$as_save_IFS
1127 test -z "$as_dir" && as_dir=.
1128 echo "PATH: $as_dir"
1129 done
1131 } >&5
1133 cat >&5 <<_ACEOF
1136 ## ----------- ##
1137 ## Core tests. ##
1138 ## ----------- ##
1140 _ACEOF
1143 # Keep a trace of the command line.
1144 # Strip out --no-create and --no-recursion so they do not pile up.
1145 # Strip out --silent because we don't want to record it for future runs.
1146 # Also quote any args containing shell meta-characters.
1147 # Make two passes to allow for proper duplicate-argument suppression.
1148 ac_configure_args=
1149 ac_configure_args0=
1150 ac_configure_args1=
1151 ac_sep=
1152 ac_must_keep_next=false
1153 for ac_pass in 1 2
1155 for ac_arg
1157 case $ac_arg in
1158 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1159 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1160 | -silent | --silent | --silen | --sile | --sil)
1161 continue ;;
1162 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1163 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1164 esac
1165 case $ac_pass in
1166 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1168 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1169 if test $ac_must_keep_next = true; then
1170 ac_must_keep_next=false # Got value, back to normal.
1171 else
1172 case $ac_arg in
1173 *=* | --config-cache | -C | -disable-* | --disable-* \
1174 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1175 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1176 | -with-* | --with-* | -without-* | --without-* | --x)
1177 case "$ac_configure_args0 " in
1178 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1179 esac
1181 -* ) ac_must_keep_next=true ;;
1182 esac
1184 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1185 # Get rid of the leading space.
1186 ac_sep=" "
1188 esac
1189 done
1190 done
1191 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1192 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1194 # When interrupted or exit'd, cleanup temporary files, and complete
1195 # config.log. We remove comments because anyway the quotes in there
1196 # would cause problems or look ugly.
1197 # WARNING: Be sure not to use single quotes in there, as some shells,
1198 # such as our DU 5.0 friend, will then `close' the trap.
1199 trap 'exit_status=$?
1200 # Save into config.log some information that might help in debugging.
1202 echo
1204 cat <<\_ASBOX
1205 ## ---------------- ##
1206 ## Cache variables. ##
1207 ## ---------------- ##
1208 _ASBOX
1209 echo
1210 # The following way of writing the cache mishandles newlines in values,
1212 (set) 2>&1 |
1213 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1214 *ac_space=\ *)
1215 sed -n \
1216 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1217 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1220 sed -n \
1221 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1223 esac;
1225 echo
1227 cat <<\_ASBOX
1228 ## ----------------- ##
1229 ## Output variables. ##
1230 ## ----------------- ##
1231 _ASBOX
1232 echo
1233 for ac_var in $ac_subst_vars
1235 eval ac_val=$`echo $ac_var`
1236 echo "$ac_var='"'"'$ac_val'"'"'"
1237 done | sort
1238 echo
1240 if test -n "$ac_subst_files"; then
1241 cat <<\_ASBOX
1242 ## ------------- ##
1243 ## Output files. ##
1244 ## ------------- ##
1245 _ASBOX
1246 echo
1247 for ac_var in $ac_subst_files
1249 eval ac_val=$`echo $ac_var`
1250 echo "$ac_var='"'"'$ac_val'"'"'"
1251 done | sort
1252 echo
1255 if test -s confdefs.h; then
1256 cat <<\_ASBOX
1257 ## ----------- ##
1258 ## confdefs.h. ##
1259 ## ----------- ##
1260 _ASBOX
1261 echo
1262 sed "/^$/d" confdefs.h | sort
1263 echo
1265 test "$ac_signal" != 0 &&
1266 echo "$as_me: caught signal $ac_signal"
1267 echo "$as_me: exit $exit_status"
1268 } >&5
1269 rm -f core *.core &&
1270 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1271 exit $exit_status
1273 for ac_signal in 1 2 13 15; do
1274 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1275 done
1276 ac_signal=0
1278 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1279 rm -rf conftest* confdefs.h
1280 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1281 echo >confdefs.h
1283 # Predefined preprocessor variables.
1285 cat >>confdefs.h <<_ACEOF
1286 #define PACKAGE_NAME "$PACKAGE_NAME"
1287 _ACEOF
1290 cat >>confdefs.h <<_ACEOF
1291 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1292 _ACEOF
1295 cat >>confdefs.h <<_ACEOF
1296 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1297 _ACEOF
1300 cat >>confdefs.h <<_ACEOF
1301 #define PACKAGE_STRING "$PACKAGE_STRING"
1302 _ACEOF
1305 cat >>confdefs.h <<_ACEOF
1306 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1307 _ACEOF
1310 # Let the site file select an alternate cache file if it wants to.
1311 # Prefer explicitly selected file to automatically selected ones.
1312 if test -z "$CONFIG_SITE"; then
1313 if test "x$prefix" != xNONE; then
1314 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1315 else
1316 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1319 for ac_site_file in $CONFIG_SITE; do
1320 if test -r "$ac_site_file"; then
1321 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1322 echo "$as_me: loading site script $ac_site_file" >&6;}
1323 sed 's/^/| /' "$ac_site_file" >&5
1324 . "$ac_site_file"
1326 done
1328 if test -r "$cache_file"; then
1329 # Some versions of bash will fail to source /dev/null (special
1330 # files actually), so we avoid doing that.
1331 if test -f "$cache_file"; then
1332 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1333 echo "$as_me: loading cache $cache_file" >&6;}
1334 case $cache_file in
1335 [\\/]* | ?:[\\/]* ) . $cache_file;;
1336 *) . ./$cache_file;;
1337 esac
1339 else
1340 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1341 echo "$as_me: creating cache $cache_file" >&6;}
1342 >$cache_file
1345 # Check that the precious variables saved in the cache have kept the same
1346 # value.
1347 ac_cache_corrupted=false
1348 for ac_var in `(set) 2>&1 |
1349 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1350 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1351 eval ac_new_set=\$ac_env_${ac_var}_set
1352 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1353 eval ac_new_val="\$ac_env_${ac_var}_value"
1354 case $ac_old_set,$ac_new_set in
1355 set,)
1356 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1357 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1358 ac_cache_corrupted=: ;;
1359 ,set)
1360 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1361 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1362 ac_cache_corrupted=: ;;
1363 ,);;
1365 if test "x$ac_old_val" != "x$ac_new_val"; then
1366 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1367 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1368 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1369 echo "$as_me: former value: $ac_old_val" >&2;}
1370 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1371 echo "$as_me: current value: $ac_new_val" >&2;}
1372 ac_cache_corrupted=:
1373 fi;;
1374 esac
1375 # Pass precious variables to config.status.
1376 if test "$ac_new_set" = set; then
1377 case $ac_new_val in
1378 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1379 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1380 *) ac_arg=$ac_var=$ac_new_val ;;
1381 esac
1382 case " $ac_configure_args " in
1383 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1384 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1385 esac
1387 done
1388 if $ac_cache_corrupted; then
1389 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1390 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1391 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1392 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1393 { (exit 1); exit 1; }; }
1396 ac_ext=c
1397 ac_cpp='$CPP $CPPFLAGS'
1398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1428 am__api_version="1.9"
1429 ac_aux_dir=
1430 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1431 if test -f $ac_dir/install-sh; then
1432 ac_aux_dir=$ac_dir
1433 ac_install_sh="$ac_aux_dir/install-sh -c"
1434 break
1435 elif test -f $ac_dir/install.sh; then
1436 ac_aux_dir=$ac_dir
1437 ac_install_sh="$ac_aux_dir/install.sh -c"
1438 break
1439 elif test -f $ac_dir/shtool; then
1440 ac_aux_dir=$ac_dir
1441 ac_install_sh="$ac_aux_dir/shtool install -c"
1442 break
1444 done
1445 if test -z "$ac_aux_dir"; then
1446 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1447 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1448 { (exit 1); exit 1; }; }
1450 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1451 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1452 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1454 # Find a good install program. We prefer a C program (faster),
1455 # so one script is as good as another. But avoid the broken or
1456 # incompatible versions:
1457 # SysV /etc/install, /usr/sbin/install
1458 # SunOS /usr/etc/install
1459 # IRIX /sbin/install
1460 # AIX /bin/install
1461 # AmigaOS /C/install, which installs bootblocks on floppy discs
1462 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1463 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1464 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1465 # OS/2's system install, which has a completely different semantic
1466 # ./install, which can be erroneously created by make from ./install.sh.
1467 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1468 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1469 if test -z "$INSTALL"; then
1470 if test "${ac_cv_path_install+set}" = set; then
1471 echo $ECHO_N "(cached) $ECHO_C" >&6
1472 else
1473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1474 for as_dir in $PATH
1476 IFS=$as_save_IFS
1477 test -z "$as_dir" && as_dir=.
1478 # Account for people who put trailing slashes in PATH elements.
1479 case $as_dir/ in
1480 ./ | .// | /cC/* | \
1481 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1482 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1483 /usr/ucb/* ) ;;
1485 # OSF1 and SCO ODT 3.0 have their own names for install.
1486 # Don't use installbsd from OSF since it installs stuff as root
1487 # by default.
1488 for ac_prog in ginstall scoinst install; do
1489 for ac_exec_ext in '' $ac_executable_extensions; do
1490 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1491 if test $ac_prog = install &&
1492 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1493 # AIX install. It has an incompatible calling convention.
1495 elif test $ac_prog = install &&
1496 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1497 # program-specific install script used by HP pwplus--don't use.
1499 else
1500 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1501 break 3
1504 done
1505 done
1507 esac
1508 done
1512 if test "${ac_cv_path_install+set}" = set; then
1513 INSTALL=$ac_cv_path_install
1514 else
1515 # As a last resort, use the slow shell script. We don't cache a
1516 # path for INSTALL within a source directory, because that will
1517 # break other packages using the cache if that directory is
1518 # removed, or if the path is relative.
1519 INSTALL=$ac_install_sh
1522 echo "$as_me:$LINENO: result: $INSTALL" >&5
1523 echo "${ECHO_T}$INSTALL" >&6
1525 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1526 # It thinks the first close brace ends the variable substitution.
1527 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1529 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1531 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1533 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1534 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1535 # Just in case
1536 sleep 1
1537 echo timestamp > conftest.file
1538 # Do `set' in a subshell so we don't clobber the current shell's
1539 # arguments. Must try -L first in case configure is actually a
1540 # symlink; some systems play weird games with the mod time of symlinks
1541 # (eg FreeBSD returns the mod time of the symlink's containing
1542 # directory).
1543 if (
1544 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1545 if test "$*" = "X"; then
1546 # -L didn't work.
1547 set X `ls -t $srcdir/configure conftest.file`
1549 rm -f conftest.file
1550 if test "$*" != "X $srcdir/configure conftest.file" \
1551 && test "$*" != "X conftest.file $srcdir/configure"; then
1553 # If neither matched, then we have a broken ls. This can happen
1554 # if, for instance, CONFIG_SHELL is bash and it inherits a
1555 # broken ls alias from the environment. This has actually
1556 # happened. Such a system could not be considered "sane".
1557 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1558 alias in your environment" >&5
1559 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1560 alias in your environment" >&2;}
1561 { (exit 1); exit 1; }; }
1564 test "$2" = conftest.file
1566 then
1567 # Ok.
1569 else
1570 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1571 Check your system clock" >&5
1572 echo "$as_me: error: newly created file is older than distributed files!
1573 Check your system clock" >&2;}
1574 { (exit 1); exit 1; }; }
1576 echo "$as_me:$LINENO: result: yes" >&5
1577 echo "${ECHO_T}yes" >&6
1578 test "$program_prefix" != NONE &&
1579 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1580 # Use a double $ so make ignores it.
1581 test "$program_suffix" != NONE &&
1582 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1583 # Double any \ or $. echo might interpret backslashes.
1584 # By default was `s,x,x', remove it if useless.
1585 cat <<\_ACEOF >conftest.sed
1586 s/[\\$]/&&/g;s/;s,x,x,$//
1587 _ACEOF
1588 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1589 rm conftest.sed
1591 # expand $ac_aux_dir to an absolute path
1592 am_aux_dir=`cd $ac_aux_dir && pwd`
1594 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1595 # Use eval to expand $SHELL
1596 if eval "$MISSING --run true"; then
1597 am_missing_run="$MISSING --run "
1598 else
1599 am_missing_run=
1600 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1601 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1604 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1605 # We used to keeping the `.' as first argument, in order to
1606 # allow $(mkdir_p) to be used without argument. As in
1607 # $(mkdir_p) $(somedir)
1608 # where $(somedir) is conditionally defined. However this is wrong
1609 # for two reasons:
1610 # 1. if the package is installed by a user who cannot write `.'
1611 # make install will fail,
1612 # 2. the above comment should most certainly read
1613 # $(mkdir_p) $(DESTDIR)$(somedir)
1614 # so it does not work when $(somedir) is undefined and
1615 # $(DESTDIR) is not.
1616 # To support the latter case, we have to write
1617 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1618 # so the `.' trick is pointless.
1619 mkdir_p='mkdir -p --'
1620 else
1621 # On NextStep and OpenStep, the `mkdir' command does not
1622 # recognize any option. It will interpret all options as
1623 # directories to create, and then abort because `.' already
1624 # exists.
1625 for d in ./-p ./--version;
1627 test -d $d && rmdir $d
1628 done
1629 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1630 if test -f "$ac_aux_dir/mkinstalldirs"; then
1631 mkdir_p='$(mkinstalldirs)'
1632 else
1633 mkdir_p='$(install_sh) -d'
1637 for ac_prog in gawk mawk nawk awk
1639 # Extract the first word of "$ac_prog", so it can be a program name with args.
1640 set dummy $ac_prog; ac_word=$2
1641 echo "$as_me:$LINENO: checking for $ac_word" >&5
1642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1643 if test "${ac_cv_prog_AWK+set}" = set; then
1644 echo $ECHO_N "(cached) $ECHO_C" >&6
1645 else
1646 if test -n "$AWK"; then
1647 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1648 else
1649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650 for as_dir in $PATH
1652 IFS=$as_save_IFS
1653 test -z "$as_dir" && as_dir=.
1654 for ac_exec_ext in '' $ac_executable_extensions; do
1655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1656 ac_cv_prog_AWK="$ac_prog"
1657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1658 break 2
1660 done
1661 done
1665 AWK=$ac_cv_prog_AWK
1666 if test -n "$AWK"; then
1667 echo "$as_me:$LINENO: result: $AWK" >&5
1668 echo "${ECHO_T}$AWK" >&6
1669 else
1670 echo "$as_me:$LINENO: result: no" >&5
1671 echo "${ECHO_T}no" >&6
1674 test -n "$AWK" && break
1675 done
1677 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1678 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1679 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1680 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1681 echo $ECHO_N "(cached) $ECHO_C" >&6
1682 else
1683 cat >conftest.make <<\_ACEOF
1684 all:
1685 @echo 'ac_maketemp="$(MAKE)"'
1686 _ACEOF
1687 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1688 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1689 if test -n "$ac_maketemp"; then
1690 eval ac_cv_prog_make_${ac_make}_set=yes
1691 else
1692 eval ac_cv_prog_make_${ac_make}_set=no
1694 rm -f conftest.make
1696 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1697 echo "$as_me:$LINENO: result: yes" >&5
1698 echo "${ECHO_T}yes" >&6
1699 SET_MAKE=
1700 else
1701 echo "$as_me:$LINENO: result: no" >&5
1702 echo "${ECHO_T}no" >&6
1703 SET_MAKE="MAKE=${MAKE-make}"
1706 rm -rf .tst 2>/dev/null
1707 mkdir .tst 2>/dev/null
1708 if test -d .tst; then
1709 am__leading_dot=.
1710 else
1711 am__leading_dot=_
1713 rmdir .tst 2>/dev/null
1715 # test to see if srcdir already configured
1716 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1717 test -f $srcdir/config.status; then
1718 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1719 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1720 { (exit 1); exit 1; }; }
1723 # test whether we have cygpath
1724 if test -z "$CYGPATH_W"; then
1725 if (cygpath --version) >/dev/null 2>/dev/null; then
1726 CYGPATH_W='cygpath -w'
1727 else
1728 CYGPATH_W=echo
1733 # Define the identity of the package.
1734 PACKAGE='amule'
1735 VERSION='SVN'
1738 cat >>confdefs.h <<_ACEOF
1739 #define PACKAGE "$PACKAGE"
1740 _ACEOF
1743 cat >>confdefs.h <<_ACEOF
1744 #define VERSION "$VERSION"
1745 _ACEOF
1747 # Some tools Automake needs.
1749 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1752 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1755 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1758 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1761 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1763 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1765 # Installed binaries are usually stripped using `strip' when the user
1766 # run `make install-strip'. However `strip' might not be the right
1767 # tool to use in cross-compilation environments, therefore Automake
1768 # will honor the `STRIP' environment variable to overrule this program.
1769 if test "$cross_compiling" != no; then
1770 if test -n "$ac_tool_prefix"; then
1771 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1772 set dummy ${ac_tool_prefix}strip; ac_word=$2
1773 echo "$as_me:$LINENO: checking for $ac_word" >&5
1774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1775 if test "${ac_cv_prog_STRIP+set}" = set; then
1776 echo $ECHO_N "(cached) $ECHO_C" >&6
1777 else
1778 if test -n "$STRIP"; then
1779 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1780 else
1781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1782 for as_dir in $PATH
1784 IFS=$as_save_IFS
1785 test -z "$as_dir" && as_dir=.
1786 for ac_exec_ext in '' $ac_executable_extensions; do
1787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1788 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1790 break 2
1792 done
1793 done
1797 STRIP=$ac_cv_prog_STRIP
1798 if test -n "$STRIP"; then
1799 echo "$as_me:$LINENO: result: $STRIP" >&5
1800 echo "${ECHO_T}$STRIP" >&6
1801 else
1802 echo "$as_me:$LINENO: result: no" >&5
1803 echo "${ECHO_T}no" >&6
1807 if test -z "$ac_cv_prog_STRIP"; then
1808 ac_ct_STRIP=$STRIP
1809 # Extract the first word of "strip", so it can be a program name with args.
1810 set dummy strip; ac_word=$2
1811 echo "$as_me:$LINENO: checking for $ac_word" >&5
1812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1813 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1814 echo $ECHO_N "(cached) $ECHO_C" >&6
1815 else
1816 if test -n "$ac_ct_STRIP"; then
1817 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1818 else
1819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1820 for as_dir in $PATH
1822 IFS=$as_save_IFS
1823 test -z "$as_dir" && as_dir=.
1824 for ac_exec_ext in '' $ac_executable_extensions; do
1825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1826 ac_cv_prog_ac_ct_STRIP="strip"
1827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1828 break 2
1830 done
1831 done
1833 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1836 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1837 if test -n "$ac_ct_STRIP"; then
1838 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1839 echo "${ECHO_T}$ac_ct_STRIP" >&6
1840 else
1841 echo "$as_me:$LINENO: result: no" >&5
1842 echo "${ECHO_T}no" >&6
1845 STRIP=$ac_ct_STRIP
1846 else
1847 STRIP="$ac_cv_prog_STRIP"
1851 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1853 # We need awk for the "check" target. The system "awk" is bad on
1854 # some platforms.
1855 # Always define AMTAR for backward compatibility.
1857 AMTAR=${AMTAR-"${am_missing_run}tar"}
1859 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1867 ac_config_headers="$ac_config_headers config.h"
1869 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1870 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1871 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1872 if test "${enable_maintainer_mode+set}" = set; then
1873 enableval="$enable_maintainer_mode"
1874 USE_MAINTAINER_MODE=$enableval
1875 else
1876 USE_MAINTAINER_MODE=no
1878 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1879 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1882 if test $USE_MAINTAINER_MODE = yes; then
1883 MAINTAINER_MODE_TRUE=
1884 MAINTAINER_MODE_FALSE='#'
1885 else
1886 MAINTAINER_MODE_TRUE='#'
1887 MAINTAINER_MODE_FALSE=
1890 MAINT=$MAINTAINER_MODE_TRUE
1894 # Make sure we can run config.sub.
1895 $ac_config_sub sun4 >/dev/null 2>&1 ||
1896 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1897 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1898 { (exit 1); exit 1; }; }
1900 echo "$as_me:$LINENO: checking build system type" >&5
1901 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1902 if test "${ac_cv_build+set}" = set; then
1903 echo $ECHO_N "(cached) $ECHO_C" >&6
1904 else
1905 ac_cv_build_alias=$build_alias
1906 test -z "$ac_cv_build_alias" &&
1907 ac_cv_build_alias=`$ac_config_guess`
1908 test -z "$ac_cv_build_alias" &&
1909 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1910 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1911 { (exit 1); exit 1; }; }
1912 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1913 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1914 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1915 { (exit 1); exit 1; }; }
1918 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1919 echo "${ECHO_T}$ac_cv_build" >&6
1920 build=$ac_cv_build
1921 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1922 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1923 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1926 echo "$as_me:$LINENO: checking host system type" >&5
1927 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1928 if test "${ac_cv_host+set}" = set; then
1929 echo $ECHO_N "(cached) $ECHO_C" >&6
1930 else
1931 ac_cv_host_alias=$host_alias
1932 test -z "$ac_cv_host_alias" &&
1933 ac_cv_host_alias=$ac_cv_build_alias
1934 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1935 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1936 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1937 { (exit 1); exit 1; }; }
1940 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1941 echo "${ECHO_T}$ac_cv_host" >&6
1942 host=$ac_cv_host
1943 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1944 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1945 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1949 case "${host_os}" in
1950 darwin*)
1951 SYS=darwin
1952 MULECPPFLAGS="-no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH";
1953 MULELDFLAGS="-bind_at_load"
1954 touch src/Scanner.cpp
1956 openbsd*)
1957 SYS=openbsd
1958 LIBS="$LIBS -L/usr/local/lib"
1959 X11LIBS="-lX11 -L/usr/X11R6/lib"
1960 MULECPPFLAGS="-D__OPENBSD__"
1962 *cygwin* | *mingw32*)
1963 SYS=win32
1964 MULECPPFLAGS="-DNOMINMAX"
1966 solaris*)
1967 SYS=solaris
1968 RESOLV_LIB="-lresolv -lnsl"
1969 X11LIBS="-lX11"
1970 LIBS="$LIBS -lrt"
1972 *netbsd*)
1973 SYS=netbsd
1974 # Now this is against autoconf recommendation that configure should not modify CPPFLAGS and LDFLAGS
1975 # However, these values in NetBSD are required even to run the tests, and this is the easiest way to do it.
1976 # Still, we prepend them, instead of adding, so the user may override them.
1977 CPPFLAGS="-I/usr/pkg/include $CPPFLAGS"
1978 LDFLAGS="-R/usr/pkg/lib -L/usr/pkg/lib $LDFLAGS"
1980 *irix*)
1981 SYS=irix
1982 MULECPPFLAGS="-D__IRIX__"
1985 SYS=unknown
1987 esac
1989 # -lpthread is needed by Debian but FreeBSD < 5 doesn't support it
1990 if test ${SYS:-unknown} != win32; then
1992 echo "$as_me:$LINENO: checking if this is a FreeBSD 4 or earlier system" >&5
1993 echo $ECHO_N "checking if this is a FreeBSD 4 or earlier system... $ECHO_C" >&6
1994 if test x"`uname -s`" = xFreeBSD && test 0`uname -r | cut -c 1` -lt 5; then
1996 MULELDFLAGS="$MULELDFLAGS -pthread"
1997 echo "$as_me:$LINENO: result: yes" >&5
1998 echo "${ECHO_T}yes" >&6
2000 else
2002 MULELDFLAGS="$MULELDFLAGS -lpthread"
2003 echo "$as_me:$LINENO: result: no" >&5
2004 echo "${ECHO_T}no" >&6
2014 mule_backup_CFLAGS="$CFLAGS"
2015 mule_backup_CXXFLAGS="$CXXFLAGS"
2016 mule_backup_BUILD_CFLAGS="$BUILD_CFLAGS"
2017 ac_ext=cc
2018 ac_cpp='$CXXCPP $CPPFLAGS'
2019 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2020 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2021 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2022 if test -n "$ac_tool_prefix"; then
2023 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2025 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2026 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2027 echo "$as_me:$LINENO: checking for $ac_word" >&5
2028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2029 if test "${ac_cv_prog_CXX+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2031 else
2032 if test -n "$CXX"; then
2033 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2034 else
2035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036 for as_dir in $PATH
2038 IFS=$as_save_IFS
2039 test -z "$as_dir" && as_dir=.
2040 for ac_exec_ext in '' $ac_executable_extensions; do
2041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2042 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2044 break 2
2046 done
2047 done
2051 CXX=$ac_cv_prog_CXX
2052 if test -n "$CXX"; then
2053 echo "$as_me:$LINENO: result: $CXX" >&5
2054 echo "${ECHO_T}$CXX" >&6
2055 else
2056 echo "$as_me:$LINENO: result: no" >&5
2057 echo "${ECHO_T}no" >&6
2060 test -n "$CXX" && break
2061 done
2063 if test -z "$CXX"; then
2064 ac_ct_CXX=$CXX
2065 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2067 # Extract the first word of "$ac_prog", so it can be a program name with args.
2068 set dummy $ac_prog; ac_word=$2
2069 echo "$as_me:$LINENO: checking for $ac_word" >&5
2070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2071 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
2073 else
2074 if test -n "$ac_ct_CXX"; then
2075 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2076 else
2077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2078 for as_dir in $PATH
2080 IFS=$as_save_IFS
2081 test -z "$as_dir" && as_dir=.
2082 for ac_exec_ext in '' $ac_executable_extensions; do
2083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2084 ac_cv_prog_ac_ct_CXX="$ac_prog"
2085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2086 break 2
2088 done
2089 done
2093 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2094 if test -n "$ac_ct_CXX"; then
2095 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2096 echo "${ECHO_T}$ac_ct_CXX" >&6
2097 else
2098 echo "$as_me:$LINENO: result: no" >&5
2099 echo "${ECHO_T}no" >&6
2102 test -n "$ac_ct_CXX" && break
2103 done
2104 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2106 CXX=$ac_ct_CXX
2110 # Provide some information about the compiler.
2111 echo "$as_me:$LINENO:" \
2112 "checking for C++ compiler version" >&5
2113 ac_compiler=`set X $ac_compile; echo $2`
2114 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2115 (eval $ac_compiler --version </dev/null >&5) 2>&5
2116 ac_status=$?
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }
2119 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2120 (eval $ac_compiler -v </dev/null >&5) 2>&5
2121 ac_status=$?
2122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123 (exit $ac_status); }
2124 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2125 (eval $ac_compiler -V </dev/null >&5) 2>&5
2126 ac_status=$?
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); }
2130 cat >conftest.$ac_ext <<_ACEOF
2131 /* confdefs.h. */
2132 _ACEOF
2133 cat confdefs.h >>conftest.$ac_ext
2134 cat >>conftest.$ac_ext <<_ACEOF
2135 /* end confdefs.h. */
2138 main ()
2142 return 0;
2144 _ACEOF
2145 ac_clean_files_save=$ac_clean_files
2146 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2147 # Try to create an executable without -o first, disregard a.out.
2148 # It will help us diagnose broken compilers, and finding out an intuition
2149 # of exeext.
2150 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2151 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2152 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2153 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2154 (eval $ac_link_default) 2>&5
2155 ac_status=$?
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }; then
2158 # Find the output, starting from the most likely. This scheme is
2159 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2160 # resort.
2162 # Be careful to initialize this variable, since it used to be cached.
2163 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2164 ac_cv_exeext=
2165 # b.out is created by i960 compilers.
2166 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2168 test -f "$ac_file" || continue
2169 case $ac_file in
2170 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2172 conftest.$ac_ext )
2173 # This is the source file.
2175 [ab].out )
2176 # We found the default executable, but exeext='' is most
2177 # certainly right.
2178 break;;
2179 *.* )
2180 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2181 # FIXME: I believe we export ac_cv_exeext for Libtool,
2182 # but it would be cool to find out if it's true. Does anybody
2183 # maintain Libtool? --akim.
2184 export ac_cv_exeext
2185 break;;
2187 break;;
2188 esac
2189 done
2190 else
2191 echo "$as_me: failed program was:" >&5
2192 sed 's/^/| /' conftest.$ac_ext >&5
2194 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2195 See \`config.log' for more details." >&5
2196 echo "$as_me: error: C++ compiler cannot create executables
2197 See \`config.log' for more details." >&2;}
2198 { (exit 77); exit 77; }; }
2201 ac_exeext=$ac_cv_exeext
2202 echo "$as_me:$LINENO: result: $ac_file" >&5
2203 echo "${ECHO_T}$ac_file" >&6
2205 # Check the compiler produces executables we can run. If not, either
2206 # the compiler is broken, or we cross compile.
2207 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2208 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2209 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2210 # If not cross compiling, check that we can run a simple program.
2211 if test "$cross_compiling" != yes; then
2212 if { ac_try='./$ac_file'
2213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2214 (eval $ac_try) 2>&5
2215 ac_status=$?
2216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217 (exit $ac_status); }; }; then
2218 cross_compiling=no
2219 else
2220 if test "$cross_compiling" = maybe; then
2221 cross_compiling=yes
2222 else
2223 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2224 If you meant to cross compile, use \`--host'.
2225 See \`config.log' for more details." >&5
2226 echo "$as_me: error: cannot run C++ compiled programs.
2227 If you meant to cross compile, use \`--host'.
2228 See \`config.log' for more details." >&2;}
2229 { (exit 1); exit 1; }; }
2233 echo "$as_me:$LINENO: result: yes" >&5
2234 echo "${ECHO_T}yes" >&6
2236 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2237 ac_clean_files=$ac_clean_files_save
2238 # Check the compiler produces executables we can run. If not, either
2239 # the compiler is broken, or we cross compile.
2240 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2241 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2242 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2243 echo "${ECHO_T}$cross_compiling" >&6
2245 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2246 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2248 (eval $ac_link) 2>&5
2249 ac_status=$?
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); }; then
2252 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2253 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2254 # work properly (i.e., refer to `conftest.exe'), while it won't with
2255 # `rm'.
2256 for ac_file in conftest.exe conftest conftest.*; do
2257 test -f "$ac_file" || continue
2258 case $ac_file in
2259 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2260 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2261 export ac_cv_exeext
2262 break;;
2263 * ) break;;
2264 esac
2265 done
2266 else
2267 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2268 See \`config.log' for more details." >&5
2269 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2270 See \`config.log' for more details." >&2;}
2271 { (exit 1); exit 1; }; }
2274 rm -f conftest$ac_cv_exeext
2275 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2276 echo "${ECHO_T}$ac_cv_exeext" >&6
2278 rm -f conftest.$ac_ext
2279 EXEEXT=$ac_cv_exeext
2280 ac_exeext=$EXEEXT
2281 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2282 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2283 if test "${ac_cv_objext+set}" = set; then
2284 echo $ECHO_N "(cached) $ECHO_C" >&6
2285 else
2286 cat >conftest.$ac_ext <<_ACEOF
2287 /* confdefs.h. */
2288 _ACEOF
2289 cat confdefs.h >>conftest.$ac_ext
2290 cat >>conftest.$ac_ext <<_ACEOF
2291 /* end confdefs.h. */
2294 main ()
2298 return 0;
2300 _ACEOF
2301 rm -f conftest.o conftest.obj
2302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2303 (eval $ac_compile) 2>&5
2304 ac_status=$?
2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); }; then
2307 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2308 case $ac_file in
2309 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2310 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2311 break;;
2312 esac
2313 done
2314 else
2315 echo "$as_me: failed program was:" >&5
2316 sed 's/^/| /' conftest.$ac_ext >&5
2318 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2319 See \`config.log' for more details." >&5
2320 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2321 See \`config.log' for more details." >&2;}
2322 { (exit 1); exit 1; }; }
2325 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2327 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2328 echo "${ECHO_T}$ac_cv_objext" >&6
2329 OBJEXT=$ac_cv_objext
2330 ac_objext=$OBJEXT
2331 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2332 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2333 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2334 echo $ECHO_N "(cached) $ECHO_C" >&6
2335 else
2336 cat >conftest.$ac_ext <<_ACEOF
2337 /* confdefs.h. */
2338 _ACEOF
2339 cat confdefs.h >>conftest.$ac_ext
2340 cat >>conftest.$ac_ext <<_ACEOF
2341 /* end confdefs.h. */
2344 main ()
2346 #ifndef __GNUC__
2347 choke me
2348 #endif
2351 return 0;
2353 _ACEOF
2354 rm -f conftest.$ac_objext
2355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2356 (eval $ac_compile) 2>conftest.er1
2357 ac_status=$?
2358 grep -v '^ *+' conftest.er1 >conftest.err
2359 rm -f conftest.er1
2360 cat conftest.err >&5
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); } &&
2363 { ac_try='test -z "$ac_cxx_werror_flag"
2364 || test ! -s conftest.err'
2365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366 (eval $ac_try) 2>&5
2367 ac_status=$?
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; } &&
2370 { ac_try='test -s conftest.$ac_objext'
2371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2372 (eval $ac_try) 2>&5
2373 ac_status=$?
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }; }; then
2376 ac_compiler_gnu=yes
2377 else
2378 echo "$as_me: failed program was:" >&5
2379 sed 's/^/| /' conftest.$ac_ext >&5
2381 ac_compiler_gnu=no
2383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2384 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2387 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2388 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2389 GXX=`test $ac_compiler_gnu = yes && echo yes`
2390 ac_test_CXXFLAGS=${CXXFLAGS+set}
2391 ac_save_CXXFLAGS=$CXXFLAGS
2392 CXXFLAGS="-g"
2393 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2394 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2395 if test "${ac_cv_prog_cxx_g+set}" = set; then
2396 echo $ECHO_N "(cached) $ECHO_C" >&6
2397 else
2398 cat >conftest.$ac_ext <<_ACEOF
2399 /* confdefs.h. */
2400 _ACEOF
2401 cat confdefs.h >>conftest.$ac_ext
2402 cat >>conftest.$ac_ext <<_ACEOF
2403 /* end confdefs.h. */
2406 main ()
2410 return 0;
2412 _ACEOF
2413 rm -f conftest.$ac_objext
2414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2415 (eval $ac_compile) 2>conftest.er1
2416 ac_status=$?
2417 grep -v '^ *+' conftest.er1 >conftest.err
2418 rm -f conftest.er1
2419 cat conftest.err >&5
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); } &&
2422 { ac_try='test -z "$ac_cxx_werror_flag"
2423 || test ! -s conftest.err'
2424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2425 (eval $ac_try) 2>&5
2426 ac_status=$?
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); }; } &&
2429 { ac_try='test -s conftest.$ac_objext'
2430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2431 (eval $ac_try) 2>&5
2432 ac_status=$?
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }; }; then
2435 ac_cv_prog_cxx_g=yes
2436 else
2437 echo "$as_me: failed program was:" >&5
2438 sed 's/^/| /' conftest.$ac_ext >&5
2440 ac_cv_prog_cxx_g=no
2442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2444 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2445 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2446 if test "$ac_test_CXXFLAGS" = set; then
2447 CXXFLAGS=$ac_save_CXXFLAGS
2448 elif test $ac_cv_prog_cxx_g = yes; then
2449 if test "$GXX" = yes; then
2450 CXXFLAGS="-g -O2"
2451 else
2452 CXXFLAGS="-g"
2454 else
2455 if test "$GXX" = yes; then
2456 CXXFLAGS="-O2"
2457 else
2458 CXXFLAGS=
2461 for ac_declaration in \
2462 '' \
2463 'extern "C" void std::exit (int) throw (); using std::exit;' \
2464 'extern "C" void std::exit (int); using std::exit;' \
2465 'extern "C" void exit (int) throw ();' \
2466 'extern "C" void exit (int);' \
2467 'void exit (int);'
2469 cat >conftest.$ac_ext <<_ACEOF
2470 /* confdefs.h. */
2471 _ACEOF
2472 cat confdefs.h >>conftest.$ac_ext
2473 cat >>conftest.$ac_ext <<_ACEOF
2474 /* end confdefs.h. */
2475 $ac_declaration
2476 #include <stdlib.h>
2478 main ()
2480 exit (42);
2482 return 0;
2484 _ACEOF
2485 rm -f conftest.$ac_objext
2486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2487 (eval $ac_compile) 2>conftest.er1
2488 ac_status=$?
2489 grep -v '^ *+' conftest.er1 >conftest.err
2490 rm -f conftest.er1
2491 cat conftest.err >&5
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); } &&
2494 { ac_try='test -z "$ac_cxx_werror_flag"
2495 || test ! -s conftest.err'
2496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2497 (eval $ac_try) 2>&5
2498 ac_status=$?
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); }; } &&
2501 { ac_try='test -s conftest.$ac_objext'
2502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2503 (eval $ac_try) 2>&5
2504 ac_status=$?
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); }; }; then
2508 else
2509 echo "$as_me: failed program was:" >&5
2510 sed 's/^/| /' conftest.$ac_ext >&5
2512 continue
2514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2515 cat >conftest.$ac_ext <<_ACEOF
2516 /* confdefs.h. */
2517 _ACEOF
2518 cat confdefs.h >>conftest.$ac_ext
2519 cat >>conftest.$ac_ext <<_ACEOF
2520 /* end confdefs.h. */
2521 $ac_declaration
2523 main ()
2525 exit (42);
2527 return 0;
2529 _ACEOF
2530 rm -f conftest.$ac_objext
2531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2532 (eval $ac_compile) 2>conftest.er1
2533 ac_status=$?
2534 grep -v '^ *+' conftest.er1 >conftest.err
2535 rm -f conftest.er1
2536 cat conftest.err >&5
2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); } &&
2539 { ac_try='test -z "$ac_cxx_werror_flag"
2540 || test ! -s conftest.err'
2541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2542 (eval $ac_try) 2>&5
2543 ac_status=$?
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); }; } &&
2546 { ac_try='test -s conftest.$ac_objext'
2547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2548 (eval $ac_try) 2>&5
2549 ac_status=$?
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); }; }; then
2552 break
2553 else
2554 echo "$as_me: failed program was:" >&5
2555 sed 's/^/| /' conftest.$ac_ext >&5
2558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2559 done
2560 rm -f conftest*
2561 if test -n "$ac_declaration"; then
2562 echo '#ifdef __cplusplus' >>confdefs.h
2563 echo $ac_declaration >>confdefs.h
2564 echo '#endif' >>confdefs.h
2567 ac_ext=c
2568 ac_cpp='$CPP $CPPFLAGS'
2569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2572 DEPDIR="${am__leading_dot}deps"
2574 ac_config_commands="$ac_config_commands depfiles"
2577 am_make=${MAKE-make}
2578 cat > confinc << 'END'
2579 am__doit:
2580 @echo done
2581 .PHONY: am__doit
2583 # If we don't find an include directive, just comment out the code.
2584 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2585 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2586 am__include="#"
2587 am__quote=
2588 _am_result=none
2589 # First try GNU make style include.
2590 echo "include confinc" > confmf
2591 # We grep out `Entering directory' and `Leaving directory'
2592 # messages which can occur if `w' ends up in MAKEFLAGS.
2593 # In particular we don't look at `^make:' because GNU make might
2594 # be invoked under some other name (usually "gmake"), in which
2595 # case it prints its new name instead of `make'.
2596 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2597 am__include=include
2598 am__quote=
2599 _am_result=GNU
2601 # Now try BSD make style include.
2602 if test "$am__include" = "#"; then
2603 echo '.include "confinc"' > confmf
2604 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2605 am__include=.include
2606 am__quote="\""
2607 _am_result=BSD
2612 echo "$as_me:$LINENO: result: $_am_result" >&5
2613 echo "${ECHO_T}$_am_result" >&6
2614 rm -f confinc confmf
2616 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2617 if test "${enable_dependency_tracking+set}" = set; then
2618 enableval="$enable_dependency_tracking"
2621 if test "x$enable_dependency_tracking" != xno; then
2622 am_depcomp="$ac_aux_dir/depcomp"
2623 AMDEPBACKSLASH='\'
2627 if test "x$enable_dependency_tracking" != xno; then
2628 AMDEP_TRUE=
2629 AMDEP_FALSE='#'
2630 else
2631 AMDEP_TRUE='#'
2632 AMDEP_FALSE=
2638 depcc="$CXX" am_compiler_list=
2640 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2641 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2642 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2643 echo $ECHO_N "(cached) $ECHO_C" >&6
2644 else
2645 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2646 # We make a subdir and do the tests there. Otherwise we can end up
2647 # making bogus files that we don't know about and never remove. For
2648 # instance it was reported that on HP-UX the gcc test will end up
2649 # making a dummy file named `D' -- because `-MD' means `put the output
2650 # in D'.
2651 mkdir conftest.dir
2652 # Copy depcomp to subdir because otherwise we won't find it if we're
2653 # using a relative directory.
2654 cp "$am_depcomp" conftest.dir
2655 cd conftest.dir
2656 # We will build objects and dependencies in a subdirectory because
2657 # it helps to detect inapplicable dependency modes. For instance
2658 # both Tru64's cc and ICC support -MD to output dependencies as a
2659 # side effect of compilation, but ICC will put the dependencies in
2660 # the current directory while Tru64 will put them in the object
2661 # directory.
2662 mkdir sub
2664 am_cv_CXX_dependencies_compiler_type=none
2665 if test "$am_compiler_list" = ""; then
2666 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2668 for depmode in $am_compiler_list; do
2669 # Setup a source with many dependencies, because some compilers
2670 # like to wrap large dependency lists on column 80 (with \), and
2671 # we should not choose a depcomp mode which is confused by this.
2673 # We need to recreate these files for each test, as the compiler may
2674 # overwrite some of them when testing with obscure command lines.
2675 # This happens at least with the AIX C compiler.
2676 : > sub/conftest.c
2677 for i in 1 2 3 4 5 6; do
2678 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2679 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2680 # Solaris 8's {/usr,}/bin/sh.
2681 touch sub/conftst$i.h
2682 done
2683 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2685 case $depmode in
2686 nosideeffect)
2687 # after this tag, mechanisms are not by side-effect, so they'll
2688 # only be used when explicitly requested
2689 if test "x$enable_dependency_tracking" = xyes; then
2690 continue
2691 else
2692 break
2695 none) break ;;
2696 esac
2697 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2698 # mode. It turns out that the SunPro C++ compiler does not properly
2699 # handle `-M -o', and we need to detect this.
2700 if depmode=$depmode \
2701 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2702 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2703 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2704 >/dev/null 2>conftest.err &&
2705 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2706 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2707 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2708 # icc doesn't choke on unknown options, it will just issue warnings
2709 # or remarks (even with -Werror). So we grep stderr for any message
2710 # that says an option was ignored or not supported.
2711 # When given -MP, icc 7.0 and 7.1 complain thusly:
2712 # icc: Command line warning: ignoring option '-M'; no argument required
2713 # The diagnosis changed in icc 8.0:
2714 # icc: Command line remark: option '-MP' not supported
2715 if (grep 'ignoring option' conftest.err ||
2716 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2717 am_cv_CXX_dependencies_compiler_type=$depmode
2718 break
2721 done
2723 cd ..
2724 rm -rf conftest.dir
2725 else
2726 am_cv_CXX_dependencies_compiler_type=none
2730 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2731 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2732 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2737 test "x$enable_dependency_tracking" != xno \
2738 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2739 am__fastdepCXX_TRUE=
2740 am__fastdepCXX_FALSE='#'
2741 else
2742 am__fastdepCXX_TRUE='#'
2743 am__fastdepCXX_FALSE=
2747 ac_ext=cc
2748 ac_cpp='$CXXCPP $CPPFLAGS'
2749 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2750 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2751 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2752 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2753 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2754 if test -z "$CXXCPP"; then
2755 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2756 echo $ECHO_N "(cached) $ECHO_C" >&6
2757 else
2758 # Double quotes because CXXCPP needs to be expanded
2759 for CXXCPP in "$CXX -E" "/lib/cpp"
2761 ac_preproc_ok=false
2762 for ac_cxx_preproc_warn_flag in '' yes
2764 # Use a header file that comes with gcc, so configuring glibc
2765 # with a fresh cross-compiler works.
2766 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2767 # <limits.h> exists even on freestanding compilers.
2768 # On the NeXT, cc -E runs the code through the compiler's parser,
2769 # not just through cpp. "Syntax error" is here to catch this case.
2770 cat >conftest.$ac_ext <<_ACEOF
2771 /* confdefs.h. */
2772 _ACEOF
2773 cat confdefs.h >>conftest.$ac_ext
2774 cat >>conftest.$ac_ext <<_ACEOF
2775 /* end confdefs.h. */
2776 #ifdef __STDC__
2777 # include <limits.h>
2778 #else
2779 # include <assert.h>
2780 #endif
2781 Syntax error
2782 _ACEOF
2783 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2784 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2785 ac_status=$?
2786 grep -v '^ *+' conftest.er1 >conftest.err
2787 rm -f conftest.er1
2788 cat conftest.err >&5
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); } >/dev/null; then
2791 if test -s conftest.err; then
2792 ac_cpp_err=$ac_cxx_preproc_warn_flag
2793 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2794 else
2795 ac_cpp_err=
2797 else
2798 ac_cpp_err=yes
2800 if test -z "$ac_cpp_err"; then
2802 else
2803 echo "$as_me: failed program was:" >&5
2804 sed 's/^/| /' conftest.$ac_ext >&5
2806 # Broken: fails on valid input.
2807 continue
2809 rm -f conftest.err conftest.$ac_ext
2811 # OK, works on sane cases. Now check whether non-existent headers
2812 # can be detected and how.
2813 cat >conftest.$ac_ext <<_ACEOF
2814 /* confdefs.h. */
2815 _ACEOF
2816 cat confdefs.h >>conftest.$ac_ext
2817 cat >>conftest.$ac_ext <<_ACEOF
2818 /* end confdefs.h. */
2819 #include <ac_nonexistent.h>
2820 _ACEOF
2821 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2822 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2823 ac_status=$?
2824 grep -v '^ *+' conftest.er1 >conftest.err
2825 rm -f conftest.er1
2826 cat conftest.err >&5
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); } >/dev/null; then
2829 if test -s conftest.err; then
2830 ac_cpp_err=$ac_cxx_preproc_warn_flag
2831 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2832 else
2833 ac_cpp_err=
2835 else
2836 ac_cpp_err=yes
2838 if test -z "$ac_cpp_err"; then
2839 # Broken: success on invalid input.
2840 continue
2841 else
2842 echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2845 # Passes both tests.
2846 ac_preproc_ok=:
2847 break
2849 rm -f conftest.err conftest.$ac_ext
2851 done
2852 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2853 rm -f conftest.err conftest.$ac_ext
2854 if $ac_preproc_ok; then
2855 break
2858 done
2859 ac_cv_prog_CXXCPP=$CXXCPP
2862 CXXCPP=$ac_cv_prog_CXXCPP
2863 else
2864 ac_cv_prog_CXXCPP=$CXXCPP
2866 echo "$as_me:$LINENO: result: $CXXCPP" >&5
2867 echo "${ECHO_T}$CXXCPP" >&6
2868 ac_preproc_ok=false
2869 for ac_cxx_preproc_warn_flag in '' yes
2871 # Use a header file that comes with gcc, so configuring glibc
2872 # with a fresh cross-compiler works.
2873 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2874 # <limits.h> exists even on freestanding compilers.
2875 # On the NeXT, cc -E runs the code through the compiler's parser,
2876 # not just through cpp. "Syntax error" is here to catch this case.
2877 cat >conftest.$ac_ext <<_ACEOF
2878 /* confdefs.h. */
2879 _ACEOF
2880 cat confdefs.h >>conftest.$ac_ext
2881 cat >>conftest.$ac_ext <<_ACEOF
2882 /* end confdefs.h. */
2883 #ifdef __STDC__
2884 # include <limits.h>
2885 #else
2886 # include <assert.h>
2887 #endif
2888 Syntax error
2889 _ACEOF
2890 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2891 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2892 ac_status=$?
2893 grep -v '^ *+' conftest.er1 >conftest.err
2894 rm -f conftest.er1
2895 cat conftest.err >&5
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); } >/dev/null; then
2898 if test -s conftest.err; then
2899 ac_cpp_err=$ac_cxx_preproc_warn_flag
2900 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2901 else
2902 ac_cpp_err=
2904 else
2905 ac_cpp_err=yes
2907 if test -z "$ac_cpp_err"; then
2909 else
2910 echo "$as_me: failed program was:" >&5
2911 sed 's/^/| /' conftest.$ac_ext >&5
2913 # Broken: fails on valid input.
2914 continue
2916 rm -f conftest.err conftest.$ac_ext
2918 # OK, works on sane cases. Now check whether non-existent headers
2919 # can be detected and how.
2920 cat >conftest.$ac_ext <<_ACEOF
2921 /* confdefs.h. */
2922 _ACEOF
2923 cat confdefs.h >>conftest.$ac_ext
2924 cat >>conftest.$ac_ext <<_ACEOF
2925 /* end confdefs.h. */
2926 #include <ac_nonexistent.h>
2927 _ACEOF
2928 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2929 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2930 ac_status=$?
2931 grep -v '^ *+' conftest.er1 >conftest.err
2932 rm -f conftest.er1
2933 cat conftest.err >&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); } >/dev/null; then
2936 if test -s conftest.err; then
2937 ac_cpp_err=$ac_cxx_preproc_warn_flag
2938 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2939 else
2940 ac_cpp_err=
2942 else
2943 ac_cpp_err=yes
2945 if test -z "$ac_cpp_err"; then
2946 # Broken: success on invalid input.
2947 continue
2948 else
2949 echo "$as_me: failed program was:" >&5
2950 sed 's/^/| /' conftest.$ac_ext >&5
2952 # Passes both tests.
2953 ac_preproc_ok=:
2954 break
2956 rm -f conftest.err conftest.$ac_ext
2958 done
2959 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2960 rm -f conftest.err conftest.$ac_ext
2961 if $ac_preproc_ok; then
2963 else
2964 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2965 See \`config.log' for more details." >&5
2966 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2967 See \`config.log' for more details." >&2;}
2968 { (exit 1); exit 1; }; }
2971 ac_ext=c
2972 ac_cpp='$CPP $CPPFLAGS'
2973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2977 ac_ext=c
2978 ac_cpp='$CPP $CPPFLAGS'
2979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2982 if test -n "$ac_tool_prefix"; then
2983 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2984 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2985 echo "$as_me:$LINENO: checking for $ac_word" >&5
2986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2987 if test "${ac_cv_prog_CC+set}" = set; then
2988 echo $ECHO_N "(cached) $ECHO_C" >&6
2989 else
2990 if test -n "$CC"; then
2991 ac_cv_prog_CC="$CC" # Let the user override the test.
2992 else
2993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994 for as_dir in $PATH
2996 IFS=$as_save_IFS
2997 test -z "$as_dir" && as_dir=.
2998 for ac_exec_ext in '' $ac_executable_extensions; do
2999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3000 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3002 break 2
3004 done
3005 done
3009 CC=$ac_cv_prog_CC
3010 if test -n "$CC"; then
3011 echo "$as_me:$LINENO: result: $CC" >&5
3012 echo "${ECHO_T}$CC" >&6
3013 else
3014 echo "$as_me:$LINENO: result: no" >&5
3015 echo "${ECHO_T}no" >&6
3019 if test -z "$ac_cv_prog_CC"; then
3020 ac_ct_CC=$CC
3021 # Extract the first word of "gcc", so it can be a program name with args.
3022 set dummy gcc; ac_word=$2
3023 echo "$as_me:$LINENO: checking for $ac_word" >&5
3024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3025 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3026 echo $ECHO_N "(cached) $ECHO_C" >&6
3027 else
3028 if test -n "$ac_ct_CC"; then
3029 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3030 else
3031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032 for as_dir in $PATH
3034 IFS=$as_save_IFS
3035 test -z "$as_dir" && as_dir=.
3036 for ac_exec_ext in '' $ac_executable_extensions; do
3037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3038 ac_cv_prog_ac_ct_CC="gcc"
3039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3040 break 2
3042 done
3043 done
3047 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3048 if test -n "$ac_ct_CC"; then
3049 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3050 echo "${ECHO_T}$ac_ct_CC" >&6
3051 else
3052 echo "$as_me:$LINENO: result: no" >&5
3053 echo "${ECHO_T}no" >&6
3056 CC=$ac_ct_CC
3057 else
3058 CC="$ac_cv_prog_CC"
3061 if test -z "$CC"; then
3062 if test -n "$ac_tool_prefix"; then
3063 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3064 set dummy ${ac_tool_prefix}cc; ac_word=$2
3065 echo "$as_me:$LINENO: checking for $ac_word" >&5
3066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3067 if test "${ac_cv_prog_CC+set}" = set; then
3068 echo $ECHO_N "(cached) $ECHO_C" >&6
3069 else
3070 if test -n "$CC"; then
3071 ac_cv_prog_CC="$CC" # Let the user override the test.
3072 else
3073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074 for as_dir in $PATH
3076 IFS=$as_save_IFS
3077 test -z "$as_dir" && as_dir=.
3078 for ac_exec_ext in '' $ac_executable_extensions; do
3079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3080 ac_cv_prog_CC="${ac_tool_prefix}cc"
3081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3082 break 2
3084 done
3085 done
3089 CC=$ac_cv_prog_CC
3090 if test -n "$CC"; then
3091 echo "$as_me:$LINENO: result: $CC" >&5
3092 echo "${ECHO_T}$CC" >&6
3093 else
3094 echo "$as_me:$LINENO: result: no" >&5
3095 echo "${ECHO_T}no" >&6
3099 if test -z "$ac_cv_prog_CC"; then
3100 ac_ct_CC=$CC
3101 # Extract the first word of "cc", so it can be a program name with args.
3102 set dummy cc; ac_word=$2
3103 echo "$as_me:$LINENO: checking for $ac_word" >&5
3104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3105 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3106 echo $ECHO_N "(cached) $ECHO_C" >&6
3107 else
3108 if test -n "$ac_ct_CC"; then
3109 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3110 else
3111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112 for as_dir in $PATH
3114 IFS=$as_save_IFS
3115 test -z "$as_dir" && as_dir=.
3116 for ac_exec_ext in '' $ac_executable_extensions; do
3117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3118 ac_cv_prog_ac_ct_CC="cc"
3119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3120 break 2
3122 done
3123 done
3127 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3128 if test -n "$ac_ct_CC"; then
3129 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3130 echo "${ECHO_T}$ac_ct_CC" >&6
3131 else
3132 echo "$as_me:$LINENO: result: no" >&5
3133 echo "${ECHO_T}no" >&6
3136 CC=$ac_ct_CC
3137 else
3138 CC="$ac_cv_prog_CC"
3142 if test -z "$CC"; then
3143 # Extract the first word of "cc", so it can be a program name with args.
3144 set dummy cc; ac_word=$2
3145 echo "$as_me:$LINENO: checking for $ac_word" >&5
3146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3147 if test "${ac_cv_prog_CC+set}" = set; then
3148 echo $ECHO_N "(cached) $ECHO_C" >&6
3149 else
3150 if test -n "$CC"; then
3151 ac_cv_prog_CC="$CC" # Let the user override the test.
3152 else
3153 ac_prog_rejected=no
3154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155 for as_dir in $PATH
3157 IFS=$as_save_IFS
3158 test -z "$as_dir" && as_dir=.
3159 for ac_exec_ext in '' $ac_executable_extensions; do
3160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3161 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3162 ac_prog_rejected=yes
3163 continue
3165 ac_cv_prog_CC="cc"
3166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3167 break 2
3169 done
3170 done
3172 if test $ac_prog_rejected = yes; then
3173 # We found a bogon in the path, so make sure we never use it.
3174 set dummy $ac_cv_prog_CC
3175 shift
3176 if test $# != 0; then
3177 # We chose a different compiler from the bogus one.
3178 # However, it has the same basename, so the bogon will be chosen
3179 # first if we set CC to just the basename; use the full file name.
3180 shift
3181 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3186 CC=$ac_cv_prog_CC
3187 if test -n "$CC"; then
3188 echo "$as_me:$LINENO: result: $CC" >&5
3189 echo "${ECHO_T}$CC" >&6
3190 else
3191 echo "$as_me:$LINENO: result: no" >&5
3192 echo "${ECHO_T}no" >&6
3196 if test -z "$CC"; then
3197 if test -n "$ac_tool_prefix"; then
3198 for ac_prog in cl
3200 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3201 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3202 echo "$as_me:$LINENO: checking for $ac_word" >&5
3203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3204 if test "${ac_cv_prog_CC+set}" = set; then
3205 echo $ECHO_N "(cached) $ECHO_C" >&6
3206 else
3207 if test -n "$CC"; then
3208 ac_cv_prog_CC="$CC" # Let the user override the test.
3209 else
3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211 for as_dir in $PATH
3213 IFS=$as_save_IFS
3214 test -z "$as_dir" && as_dir=.
3215 for ac_exec_ext in '' $ac_executable_extensions; do
3216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3217 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3219 break 2
3221 done
3222 done
3226 CC=$ac_cv_prog_CC
3227 if test -n "$CC"; then
3228 echo "$as_me:$LINENO: result: $CC" >&5
3229 echo "${ECHO_T}$CC" >&6
3230 else
3231 echo "$as_me:$LINENO: result: no" >&5
3232 echo "${ECHO_T}no" >&6
3235 test -n "$CC" && break
3236 done
3238 if test -z "$CC"; then
3239 ac_ct_CC=$CC
3240 for ac_prog in cl
3242 # Extract the first word of "$ac_prog", so it can be a program name with args.
3243 set dummy $ac_prog; ac_word=$2
3244 echo "$as_me:$LINENO: checking for $ac_word" >&5
3245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3246 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3247 echo $ECHO_N "(cached) $ECHO_C" >&6
3248 else
3249 if test -n "$ac_ct_CC"; then
3250 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3251 else
3252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253 for as_dir in $PATH
3255 IFS=$as_save_IFS
3256 test -z "$as_dir" && as_dir=.
3257 for ac_exec_ext in '' $ac_executable_extensions; do
3258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3259 ac_cv_prog_ac_ct_CC="$ac_prog"
3260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3261 break 2
3263 done
3264 done
3268 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3269 if test -n "$ac_ct_CC"; then
3270 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3271 echo "${ECHO_T}$ac_ct_CC" >&6
3272 else
3273 echo "$as_me:$LINENO: result: no" >&5
3274 echo "${ECHO_T}no" >&6
3277 test -n "$ac_ct_CC" && break
3278 done
3280 CC=$ac_ct_CC
3286 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3287 See \`config.log' for more details." >&5
3288 echo "$as_me: error: no acceptable C compiler found in \$PATH
3289 See \`config.log' for more details." >&2;}
3290 { (exit 1); exit 1; }; }
3292 # Provide some information about the compiler.
3293 echo "$as_me:$LINENO:" \
3294 "checking for C compiler version" >&5
3295 ac_compiler=`set X $ac_compile; echo $2`
3296 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3297 (eval $ac_compiler --version </dev/null >&5) 2>&5
3298 ac_status=$?
3299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300 (exit $ac_status); }
3301 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3302 (eval $ac_compiler -v </dev/null >&5) 2>&5
3303 ac_status=$?
3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305 (exit $ac_status); }
3306 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3307 (eval $ac_compiler -V </dev/null >&5) 2>&5
3308 ac_status=$?
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); }
3312 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3313 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3314 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3315 echo $ECHO_N "(cached) $ECHO_C" >&6
3316 else
3317 cat >conftest.$ac_ext <<_ACEOF
3318 /* confdefs.h. */
3319 _ACEOF
3320 cat confdefs.h >>conftest.$ac_ext
3321 cat >>conftest.$ac_ext <<_ACEOF
3322 /* end confdefs.h. */
3325 main ()
3327 #ifndef __GNUC__
3328 choke me
3329 #endif
3332 return 0;
3334 _ACEOF
3335 rm -f conftest.$ac_objext
3336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3337 (eval $ac_compile) 2>conftest.er1
3338 ac_status=$?
3339 grep -v '^ *+' conftest.er1 >conftest.err
3340 rm -f conftest.er1
3341 cat conftest.err >&5
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); } &&
3344 { ac_try='test -z "$ac_c_werror_flag"
3345 || test ! -s conftest.err'
3346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3347 (eval $ac_try) 2>&5
3348 ac_status=$?
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }; } &&
3351 { ac_try='test -s conftest.$ac_objext'
3352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3353 (eval $ac_try) 2>&5
3354 ac_status=$?
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }; }; then
3357 ac_compiler_gnu=yes
3358 else
3359 echo "$as_me: failed program was:" >&5
3360 sed 's/^/| /' conftest.$ac_ext >&5
3362 ac_compiler_gnu=no
3364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3365 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3368 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3369 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3370 GCC=`test $ac_compiler_gnu = yes && echo yes`
3371 ac_test_CFLAGS=${CFLAGS+set}
3372 ac_save_CFLAGS=$CFLAGS
3373 CFLAGS="-g"
3374 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3375 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3376 if test "${ac_cv_prog_cc_g+set}" = set; then
3377 echo $ECHO_N "(cached) $ECHO_C" >&6
3378 else
3379 cat >conftest.$ac_ext <<_ACEOF
3380 /* confdefs.h. */
3381 _ACEOF
3382 cat confdefs.h >>conftest.$ac_ext
3383 cat >>conftest.$ac_ext <<_ACEOF
3384 /* end confdefs.h. */
3387 main ()
3391 return 0;
3393 _ACEOF
3394 rm -f conftest.$ac_objext
3395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3396 (eval $ac_compile) 2>conftest.er1
3397 ac_status=$?
3398 grep -v '^ *+' conftest.er1 >conftest.err
3399 rm -f conftest.er1
3400 cat conftest.err >&5
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); } &&
3403 { ac_try='test -z "$ac_c_werror_flag"
3404 || test ! -s conftest.err'
3405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3406 (eval $ac_try) 2>&5
3407 ac_status=$?
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); }; } &&
3410 { ac_try='test -s conftest.$ac_objext'
3411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3412 (eval $ac_try) 2>&5
3413 ac_status=$?
3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); }; }; then
3416 ac_cv_prog_cc_g=yes
3417 else
3418 echo "$as_me: failed program was:" >&5
3419 sed 's/^/| /' conftest.$ac_ext >&5
3421 ac_cv_prog_cc_g=no
3423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3425 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3426 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3427 if test "$ac_test_CFLAGS" = set; then
3428 CFLAGS=$ac_save_CFLAGS
3429 elif test $ac_cv_prog_cc_g = yes; then
3430 if test "$GCC" = yes; then
3431 CFLAGS="-g -O2"
3432 else
3433 CFLAGS="-g"
3435 else
3436 if test "$GCC" = yes; then
3437 CFLAGS="-O2"
3438 else
3439 CFLAGS=
3442 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3443 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3444 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3445 echo $ECHO_N "(cached) $ECHO_C" >&6
3446 else
3447 ac_cv_prog_cc_stdc=no
3448 ac_save_CC=$CC
3449 cat >conftest.$ac_ext <<_ACEOF
3450 /* confdefs.h. */
3451 _ACEOF
3452 cat confdefs.h >>conftest.$ac_ext
3453 cat >>conftest.$ac_ext <<_ACEOF
3454 /* end confdefs.h. */
3455 #include <stdarg.h>
3456 #include <stdio.h>
3457 #include <sys/types.h>
3458 #include <sys/stat.h>
3459 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3460 struct buf { int x; };
3461 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3462 static char *e (p, i)
3463 char **p;
3464 int i;
3466 return p[i];
3468 static char *f (char * (*g) (char **, int), char **p, ...)
3470 char *s;
3471 va_list v;
3472 va_start (v,p);
3473 s = g (p, va_arg (v,int));
3474 va_end (v);
3475 return s;
3478 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3479 function prototypes and stuff, but not '\xHH' hex character constants.
3480 These don't provoke an error unfortunately, instead are silently treated
3481 as 'x'. The following induces an error, until -std1 is added to get
3482 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3483 array size at least. It's necessary to write '\x00'==0 to get something
3484 that's true only with -std1. */
3485 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3487 int test (int i, double x);
3488 struct s1 {int (*f) (int a);};
3489 struct s2 {int (*f) (double a);};
3490 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3491 int argc;
3492 char **argv;
3494 main ()
3496 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3498 return 0;
3500 _ACEOF
3501 # Don't try gcc -ansi; that turns off useful extensions and
3502 # breaks some systems' header files.
3503 # AIX -qlanglvl=ansi
3504 # Ultrix and OSF/1 -std1
3505 # HP-UX 10.20 and later -Ae
3506 # HP-UX older versions -Aa -D_HPUX_SOURCE
3507 # SVR4 -Xc -D__EXTENSIONS__
3508 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3510 CC="$ac_save_CC $ac_arg"
3511 rm -f conftest.$ac_objext
3512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3513 (eval $ac_compile) 2>conftest.er1
3514 ac_status=$?
3515 grep -v '^ *+' conftest.er1 >conftest.err
3516 rm -f conftest.er1
3517 cat conftest.err >&5
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); } &&
3520 { ac_try='test -z "$ac_c_werror_flag"
3521 || test ! -s conftest.err'
3522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3523 (eval $ac_try) 2>&5
3524 ac_status=$?
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); }; } &&
3527 { ac_try='test -s conftest.$ac_objext'
3528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3529 (eval $ac_try) 2>&5
3530 ac_status=$?
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); }; }; then
3533 ac_cv_prog_cc_stdc=$ac_arg
3534 break
3535 else
3536 echo "$as_me: failed program was:" >&5
3537 sed 's/^/| /' conftest.$ac_ext >&5
3540 rm -f conftest.err conftest.$ac_objext
3541 done
3542 rm -f conftest.$ac_ext conftest.$ac_objext
3543 CC=$ac_save_CC
3547 case "x$ac_cv_prog_cc_stdc" in
3548 x|xno)
3549 echo "$as_me:$LINENO: result: none needed" >&5
3550 echo "${ECHO_T}none needed" >&6 ;;
3552 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3553 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3554 CC="$CC $ac_cv_prog_cc_stdc" ;;
3555 esac
3557 # Some people use a C++ compiler to compile C. Since we use `exit',
3558 # in C++ we need to declare it. In case someone uses the same compiler
3559 # for both compiling C and C++ we need to have the C++ compiler decide
3560 # the declaration of exit, since it's the most demanding environment.
3561 cat >conftest.$ac_ext <<_ACEOF
3562 #ifndef __cplusplus
3563 choke me
3564 #endif
3565 _ACEOF
3566 rm -f conftest.$ac_objext
3567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3568 (eval $ac_compile) 2>conftest.er1
3569 ac_status=$?
3570 grep -v '^ *+' conftest.er1 >conftest.err
3571 rm -f conftest.er1
3572 cat conftest.err >&5
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); } &&
3575 { ac_try='test -z "$ac_c_werror_flag"
3576 || test ! -s conftest.err'
3577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578 (eval $ac_try) 2>&5
3579 ac_status=$?
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); }; } &&
3582 { ac_try='test -s conftest.$ac_objext'
3583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3584 (eval $ac_try) 2>&5
3585 ac_status=$?
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }; }; then
3588 for ac_declaration in \
3589 '' \
3590 'extern "C" void std::exit (int) throw (); using std::exit;' \
3591 'extern "C" void std::exit (int); using std::exit;' \
3592 'extern "C" void exit (int) throw ();' \
3593 'extern "C" void exit (int);' \
3594 'void exit (int);'
3596 cat >conftest.$ac_ext <<_ACEOF
3597 /* confdefs.h. */
3598 _ACEOF
3599 cat confdefs.h >>conftest.$ac_ext
3600 cat >>conftest.$ac_ext <<_ACEOF
3601 /* end confdefs.h. */
3602 $ac_declaration
3603 #include <stdlib.h>
3605 main ()
3607 exit (42);
3609 return 0;
3611 _ACEOF
3612 rm -f conftest.$ac_objext
3613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3614 (eval $ac_compile) 2>conftest.er1
3615 ac_status=$?
3616 grep -v '^ *+' conftest.er1 >conftest.err
3617 rm -f conftest.er1
3618 cat conftest.err >&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); } &&
3621 { ac_try='test -z "$ac_c_werror_flag"
3622 || test ! -s conftest.err'
3623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3624 (eval $ac_try) 2>&5
3625 ac_status=$?
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); }; } &&
3628 { ac_try='test -s conftest.$ac_objext'
3629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3630 (eval $ac_try) 2>&5
3631 ac_status=$?
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); }; }; then
3635 else
3636 echo "$as_me: failed program was:" >&5
3637 sed 's/^/| /' conftest.$ac_ext >&5
3639 continue
3641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3642 cat >conftest.$ac_ext <<_ACEOF
3643 /* confdefs.h. */
3644 _ACEOF
3645 cat confdefs.h >>conftest.$ac_ext
3646 cat >>conftest.$ac_ext <<_ACEOF
3647 /* end confdefs.h. */
3648 $ac_declaration
3650 main ()
3652 exit (42);
3654 return 0;
3656 _ACEOF
3657 rm -f conftest.$ac_objext
3658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3659 (eval $ac_compile) 2>conftest.er1
3660 ac_status=$?
3661 grep -v '^ *+' conftest.er1 >conftest.err
3662 rm -f conftest.er1
3663 cat conftest.err >&5
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); } &&
3666 { ac_try='test -z "$ac_c_werror_flag"
3667 || test ! -s conftest.err'
3668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669 (eval $ac_try) 2>&5
3670 ac_status=$?
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); }; } &&
3673 { ac_try='test -s conftest.$ac_objext'
3674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675 (eval $ac_try) 2>&5
3676 ac_status=$?
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); }; }; then
3679 break
3680 else
3681 echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.$ac_ext >&5
3685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3686 done
3687 rm -f conftest*
3688 if test -n "$ac_declaration"; then
3689 echo '#ifdef __cplusplus' >>confdefs.h
3690 echo $ac_declaration >>confdefs.h
3691 echo '#endif' >>confdefs.h
3694 else
3695 echo "$as_me: failed program was:" >&5
3696 sed 's/^/| /' conftest.$ac_ext >&5
3699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3700 ac_ext=c
3701 ac_cpp='$CPP $CPPFLAGS'
3702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3706 depcc="$CC" am_compiler_list=
3708 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3709 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3710 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3711 echo $ECHO_N "(cached) $ECHO_C" >&6
3712 else
3713 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3714 # We make a subdir and do the tests there. Otherwise we can end up
3715 # making bogus files that we don't know about and never remove. For
3716 # instance it was reported that on HP-UX the gcc test will end up
3717 # making a dummy file named `D' -- because `-MD' means `put the output
3718 # in D'.
3719 mkdir conftest.dir
3720 # Copy depcomp to subdir because otherwise we won't find it if we're
3721 # using a relative directory.
3722 cp "$am_depcomp" conftest.dir
3723 cd conftest.dir
3724 # We will build objects and dependencies in a subdirectory because
3725 # it helps to detect inapplicable dependency modes. For instance
3726 # both Tru64's cc and ICC support -MD to output dependencies as a
3727 # side effect of compilation, but ICC will put the dependencies in
3728 # the current directory while Tru64 will put them in the object
3729 # directory.
3730 mkdir sub
3732 am_cv_CC_dependencies_compiler_type=none
3733 if test "$am_compiler_list" = ""; then
3734 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3736 for depmode in $am_compiler_list; do
3737 # Setup a source with many dependencies, because some compilers
3738 # like to wrap large dependency lists on column 80 (with \), and
3739 # we should not choose a depcomp mode which is confused by this.
3741 # We need to recreate these files for each test, as the compiler may
3742 # overwrite some of them when testing with obscure command lines.
3743 # This happens at least with the AIX C compiler.
3744 : > sub/conftest.c
3745 for i in 1 2 3 4 5 6; do
3746 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3747 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3748 # Solaris 8's {/usr,}/bin/sh.
3749 touch sub/conftst$i.h
3750 done
3751 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3753 case $depmode in
3754 nosideeffect)
3755 # after this tag, mechanisms are not by side-effect, so they'll
3756 # only be used when explicitly requested
3757 if test "x$enable_dependency_tracking" = xyes; then
3758 continue
3759 else
3760 break
3763 none) break ;;
3764 esac
3765 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3766 # mode. It turns out that the SunPro C++ compiler does not properly
3767 # handle `-M -o', and we need to detect this.
3768 if depmode=$depmode \
3769 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3770 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3771 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3772 >/dev/null 2>conftest.err &&
3773 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3774 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3775 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3776 # icc doesn't choke on unknown options, it will just issue warnings
3777 # or remarks (even with -Werror). So we grep stderr for any message
3778 # that says an option was ignored or not supported.
3779 # When given -MP, icc 7.0 and 7.1 complain thusly:
3780 # icc: Command line warning: ignoring option '-M'; no argument required
3781 # The diagnosis changed in icc 8.0:
3782 # icc: Command line remark: option '-MP' not supported
3783 if (grep 'ignoring option' conftest.err ||
3784 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3785 am_cv_CC_dependencies_compiler_type=$depmode
3786 break
3789 done
3791 cd ..
3792 rm -rf conftest.dir
3793 else
3794 am_cv_CC_dependencies_compiler_type=none
3798 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3799 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3800 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3805 test "x$enable_dependency_tracking" != xno \
3806 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3807 am__fastdepCC_TRUE=
3808 am__fastdepCC_FALSE='#'
3809 else
3810 am__fastdepCC_TRUE='#'
3811 am__fastdepCC_FALSE=
3815 ac_ext=c
3816 ac_cpp='$CPP $CPPFLAGS'
3817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3820 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3821 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3822 # On Suns, sometimes $CPP names a directory.
3823 if test -n "$CPP" && test -d "$CPP"; then
3824 CPP=
3826 if test -z "$CPP"; then
3827 if test "${ac_cv_prog_CPP+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3829 else
3830 # Double quotes because CPP needs to be expanded
3831 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3833 ac_preproc_ok=false
3834 for ac_c_preproc_warn_flag in '' yes
3836 # Use a header file that comes with gcc, so configuring glibc
3837 # with a fresh cross-compiler works.
3838 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3839 # <limits.h> exists even on freestanding compilers.
3840 # On the NeXT, cc -E runs the code through the compiler's parser,
3841 # not just through cpp. "Syntax error" is here to catch this case.
3842 cat >conftest.$ac_ext <<_ACEOF
3843 /* confdefs.h. */
3844 _ACEOF
3845 cat confdefs.h >>conftest.$ac_ext
3846 cat >>conftest.$ac_ext <<_ACEOF
3847 /* end confdefs.h. */
3848 #ifdef __STDC__
3849 # include <limits.h>
3850 #else
3851 # include <assert.h>
3852 #endif
3853 Syntax error
3854 _ACEOF
3855 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3856 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3857 ac_status=$?
3858 grep -v '^ *+' conftest.er1 >conftest.err
3859 rm -f conftest.er1
3860 cat conftest.err >&5
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); } >/dev/null; then
3863 if test -s conftest.err; then
3864 ac_cpp_err=$ac_c_preproc_warn_flag
3865 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3866 else
3867 ac_cpp_err=
3869 else
3870 ac_cpp_err=yes
3872 if test -z "$ac_cpp_err"; then
3874 else
3875 echo "$as_me: failed program was:" >&5
3876 sed 's/^/| /' conftest.$ac_ext >&5
3878 # Broken: fails on valid input.
3879 continue
3881 rm -f conftest.err conftest.$ac_ext
3883 # OK, works on sane cases. Now check whether non-existent headers
3884 # can be detected and how.
3885 cat >conftest.$ac_ext <<_ACEOF
3886 /* confdefs.h. */
3887 _ACEOF
3888 cat confdefs.h >>conftest.$ac_ext
3889 cat >>conftest.$ac_ext <<_ACEOF
3890 /* end confdefs.h. */
3891 #include <ac_nonexistent.h>
3892 _ACEOF
3893 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3894 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3895 ac_status=$?
3896 grep -v '^ *+' conftest.er1 >conftest.err
3897 rm -f conftest.er1
3898 cat conftest.err >&5
3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900 (exit $ac_status); } >/dev/null; then
3901 if test -s conftest.err; then
3902 ac_cpp_err=$ac_c_preproc_warn_flag
3903 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3904 else
3905 ac_cpp_err=
3907 else
3908 ac_cpp_err=yes
3910 if test -z "$ac_cpp_err"; then
3911 # Broken: success on invalid input.
3912 continue
3913 else
3914 echo "$as_me: failed program was:" >&5
3915 sed 's/^/| /' conftest.$ac_ext >&5
3917 # Passes both tests.
3918 ac_preproc_ok=:
3919 break
3921 rm -f conftest.err conftest.$ac_ext
3923 done
3924 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3925 rm -f conftest.err conftest.$ac_ext
3926 if $ac_preproc_ok; then
3927 break
3930 done
3931 ac_cv_prog_CPP=$CPP
3934 CPP=$ac_cv_prog_CPP
3935 else
3936 ac_cv_prog_CPP=$CPP
3938 echo "$as_me:$LINENO: result: $CPP" >&5
3939 echo "${ECHO_T}$CPP" >&6
3940 ac_preproc_ok=false
3941 for ac_c_preproc_warn_flag in '' yes
3943 # Use a header file that comes with gcc, so configuring glibc
3944 # with a fresh cross-compiler works.
3945 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3946 # <limits.h> exists even on freestanding compilers.
3947 # On the NeXT, cc -E runs the code through the compiler's parser,
3948 # not just through cpp. "Syntax error" is here to catch this case.
3949 cat >conftest.$ac_ext <<_ACEOF
3950 /* confdefs.h. */
3951 _ACEOF
3952 cat confdefs.h >>conftest.$ac_ext
3953 cat >>conftest.$ac_ext <<_ACEOF
3954 /* end confdefs.h. */
3955 #ifdef __STDC__
3956 # include <limits.h>
3957 #else
3958 # include <assert.h>
3959 #endif
3960 Syntax error
3961 _ACEOF
3962 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3963 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3964 ac_status=$?
3965 grep -v '^ *+' conftest.er1 >conftest.err
3966 rm -f conftest.er1
3967 cat conftest.err >&5
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); } >/dev/null; then
3970 if test -s conftest.err; then
3971 ac_cpp_err=$ac_c_preproc_warn_flag
3972 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3973 else
3974 ac_cpp_err=
3976 else
3977 ac_cpp_err=yes
3979 if test -z "$ac_cpp_err"; then
3981 else
3982 echo "$as_me: failed program was:" >&5
3983 sed 's/^/| /' conftest.$ac_ext >&5
3985 # Broken: fails on valid input.
3986 continue
3988 rm -f conftest.err conftest.$ac_ext
3990 # OK, works on sane cases. Now check whether non-existent headers
3991 # can be detected and how.
3992 cat >conftest.$ac_ext <<_ACEOF
3993 /* confdefs.h. */
3994 _ACEOF
3995 cat confdefs.h >>conftest.$ac_ext
3996 cat >>conftest.$ac_ext <<_ACEOF
3997 /* end confdefs.h. */
3998 #include <ac_nonexistent.h>
3999 _ACEOF
4000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4002 ac_status=$?
4003 grep -v '^ *+' conftest.er1 >conftest.err
4004 rm -f conftest.er1
4005 cat conftest.err >&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); } >/dev/null; then
4008 if test -s conftest.err; then
4009 ac_cpp_err=$ac_c_preproc_warn_flag
4010 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4011 else
4012 ac_cpp_err=
4014 else
4015 ac_cpp_err=yes
4017 if test -z "$ac_cpp_err"; then
4018 # Broken: success on invalid input.
4019 continue
4020 else
4021 echo "$as_me: failed program was:" >&5
4022 sed 's/^/| /' conftest.$ac_ext >&5
4024 # Passes both tests.
4025 ac_preproc_ok=:
4026 break
4028 rm -f conftest.err conftest.$ac_ext
4030 done
4031 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4032 rm -f conftest.err conftest.$ac_ext
4033 if $ac_preproc_ok; then
4035 else
4036 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4037 See \`config.log' for more details." >&5
4038 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4039 See \`config.log' for more details." >&2;}
4040 { (exit 1); exit 1; }; }
4043 ac_ext=c
4044 ac_cpp='$CPP $CPPFLAGS'
4045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4049 if test "$cross_compiling" = yes; then
4050 ac_build_prefix=
4051 test -n "$build_alias" && ac_build_prefix=$build_alias-
4054 # Even if we're cross-compiling, we want a compiler here
4055 # that is not a cross-compiler.
4056 saved_cross=$cross_compiling
4057 cross_compiling=no
4059 ac_ext=c
4060 ac_cpp='$CPP $BUILD_CPPFLAGS'
4061 ac_compile='$BUILD_CC -c $BUILD_CFLAGS $BUILD_CPPFLAGS conftest.$ac_ext >&5'
4062 ac_link='$BUILD_CC -o conftest$ac_build_exeext $BUILD_CFLAGS $BUILD_CPPFLAGS $BUILD_LDFLAGS conftest.$ac_ext $BUILD_LIBS >&5'
4063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4064 if test -n "$ac_build_prefix"; then
4065 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4066 set dummy ${ac_build_prefix}gcc; ac_word=$2
4067 echo "$as_me:$LINENO: checking for $ac_word" >&5
4068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4069 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4071 else
4072 if test -n "$BUILD_CC"; then
4073 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4074 else
4075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076 for as_dir in $PATH
4078 IFS=$as_save_IFS
4079 test -z "$as_dir" && as_dir=.
4080 for ac_exec_ext in '' $ac_executable_extensions; do
4081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4082 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4084 break 2
4086 done
4087 done
4091 BUILD_CC=$ac_cv_prog_BUILD_CC
4092 if test -n "$BUILD_CC"; then
4093 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4094 echo "${ECHO_T}$BUILD_CC" >&6
4095 else
4096 echo "$as_me:$LINENO: result: no" >&5
4097 echo "${ECHO_T}no" >&6
4101 if test -z "$ac_cv_prog_BUILD_CC"; then
4102 ac_ct_BUILD_CC=$BUILD_CC
4103 # Extract the first word of "gcc", so it can be a program name with args.
4104 set dummy gcc; ac_word=$2
4105 echo "$as_me:$LINENO: checking for $ac_word" >&5
4106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4107 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4108 echo $ECHO_N "(cached) $ECHO_C" >&6
4109 else
4110 if test -n "$ac_ct_BUILD_CC"; then
4111 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
4112 else
4113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4114 for as_dir in $PATH
4116 IFS=$as_save_IFS
4117 test -z "$as_dir" && as_dir=.
4118 for ac_exec_ext in '' $ac_executable_extensions; do
4119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4120 ac_cv_prog_ac_ct_BUILD_CC="gcc"
4121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4122 break 2
4124 done
4125 done
4129 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
4130 if test -n "$ac_ct_BUILD_CC"; then
4131 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4132 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4133 else
4134 echo "$as_me:$LINENO: result: no" >&5
4135 echo "${ECHO_T}no" >&6
4138 BUILD_CC=$ac_ct_BUILD_CC
4139 else
4140 BUILD_CC="$ac_cv_prog_BUILD_CC"
4143 if test -z "$BUILD_CC"; then
4144 if test -n "$ac_build_prefix"; then
4145 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4146 set dummy ${ac_build_prefix}cc; ac_word=$2
4147 echo "$as_me:$LINENO: checking for $ac_word" >&5
4148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4149 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4151 else
4152 if test -n "$BUILD_CC"; then
4153 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4154 else
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 for as_dir in $PATH
4158 IFS=$as_save_IFS
4159 test -z "$as_dir" && as_dir=.
4160 for ac_exec_ext in '' $ac_executable_extensions; do
4161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4162 ac_cv_prog_BUILD_CC="${ac_build_prefix}cc"
4163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 break 2
4166 done
4167 done
4171 BUILD_CC=$ac_cv_prog_BUILD_CC
4172 if test -n "$BUILD_CC"; then
4173 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4174 echo "${ECHO_T}$BUILD_CC" >&6
4175 else
4176 echo "$as_me:$LINENO: result: no" >&5
4177 echo "${ECHO_T}no" >&6
4181 if test -z "$ac_cv_prog_BUILD_CC"; then
4182 ac_ct_BUILD_CC=$BUILD_CC
4183 # Extract the first word of "cc", so it can be a program name with args.
4184 set dummy cc; ac_word=$2
4185 echo "$as_me:$LINENO: checking for $ac_word" >&5
4186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4187 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4188 echo $ECHO_N "(cached) $ECHO_C" >&6
4189 else
4190 if test -n "$ac_ct_BUILD_CC"; then
4191 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
4192 else
4193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194 for as_dir in $PATH
4196 IFS=$as_save_IFS
4197 test -z "$as_dir" && as_dir=.
4198 for ac_exec_ext in '' $ac_executable_extensions; do
4199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4200 ac_cv_prog_ac_ct_BUILD_CC="cc"
4201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4202 break 2
4204 done
4205 done
4209 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
4210 if test -n "$ac_ct_BUILD_CC"; then
4211 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4212 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4213 else
4214 echo "$as_me:$LINENO: result: no" >&5
4215 echo "${ECHO_T}no" >&6
4218 BUILD_CC=$ac_ct_BUILD_CC
4219 else
4220 BUILD_CC="$ac_cv_prog_BUILD_CC"
4224 if test -z "$BUILD_CC"; then
4225 # Extract the first word of "cc", so it can be a program name with args.
4226 set dummy cc; ac_word=$2
4227 echo "$as_me:$LINENO: checking for $ac_word" >&5
4228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4229 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
4231 else
4232 if test -n "$BUILD_CC"; then
4233 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4234 else
4235 ac_prog_rejected=no
4236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237 for as_dir in $PATH
4239 IFS=$as_save_IFS
4240 test -z "$as_dir" && as_dir=.
4241 for ac_exec_ext in '' $ac_executable_extensions; do
4242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4243 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4244 ac_prog_rejected=yes
4245 continue
4247 ac_cv_prog_BUILD_CC="cc"
4248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4249 break 2
4251 done
4252 done
4254 if test $ac_prog_rejected = yes; then
4255 # We found a bogon in the path, so make sure we never use it.
4256 set dummy $ac_cv_prog_BUILD_CC
4257 shift
4258 if test $# != 0; then
4259 # We chose a different compiler from the bogus one.
4260 # However, it has the same basename, so the bogon will be chosen
4261 # first if we set BUILD_CC to just the basename; use the full file name.
4262 shift
4263 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4268 BUILD_CC=$ac_cv_prog_BUILD_CC
4269 if test -n "$BUILD_CC"; then
4270 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4271 echo "${ECHO_T}$BUILD_CC" >&6
4272 else
4273 echo "$as_me:$LINENO: result: no" >&5
4274 echo "${ECHO_T}no" >&6
4278 if test -z "$BUILD_CC"; then
4279 if test -n "$ac_build_prefix"; then
4280 for ac_prog in cl
4282 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4283 set dummy $ac_build_prefix$ac_prog; ac_word=$2
4284 echo "$as_me:$LINENO: checking for $ac_word" >&5
4285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4286 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4287 echo $ECHO_N "(cached) $ECHO_C" >&6
4288 else
4289 if test -n "$BUILD_CC"; then
4290 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4291 else
4292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293 for as_dir in $PATH
4295 IFS=$as_save_IFS
4296 test -z "$as_dir" && as_dir=.
4297 for ac_exec_ext in '' $ac_executable_extensions; do
4298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4299 ac_cv_prog_BUILD_CC="$ac_build_prefix$ac_prog"
4300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4301 break 2
4303 done
4304 done
4308 BUILD_CC=$ac_cv_prog_BUILD_CC
4309 if test -n "$BUILD_CC"; then
4310 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4311 echo "${ECHO_T}$BUILD_CC" >&6
4312 else
4313 echo "$as_me:$LINENO: result: no" >&5
4314 echo "${ECHO_T}no" >&6
4317 test -n "$BUILD_CC" && break
4318 done
4320 if test -z "$BUILD_CC"; then
4321 ac_ct_BUILD_CC=$BUILD_CC
4322 for ac_prog in cl
4324 # Extract the first word of "$ac_prog", so it can be a program name with args.
4325 set dummy $ac_prog; ac_word=$2
4326 echo "$as_me:$LINENO: checking for $ac_word" >&5
4327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4328 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4329 echo $ECHO_N "(cached) $ECHO_C" >&6
4330 else
4331 if test -n "$ac_ct_BUILD_CC"; then
4332 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
4333 else
4334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 for as_dir in $PATH
4337 IFS=$as_save_IFS
4338 test -z "$as_dir" && as_dir=.
4339 for ac_exec_ext in '' $ac_executable_extensions; do
4340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4341 ac_cv_prog_ac_ct_BUILD_CC="$ac_prog"
4342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4343 break 2
4345 done
4346 done
4350 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
4351 if test -n "$ac_ct_BUILD_CC"; then
4352 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4353 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4354 else
4355 echo "$as_me:$LINENO: result: no" >&5
4356 echo "${ECHO_T}no" >&6
4359 test -n "$ac_ct_BUILD_CC" && break
4360 done
4362 BUILD_CC=$ac_ct_BUILD_CC
4368 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4369 See \`config.log' for more details." >&5
4370 echo "$as_me: error: no acceptable C compiler found in \$PATH
4371 See \`config.log' for more details." >&2;}
4372 { (exit 1); exit 1; }; }
4374 # Provide some information about the compiler.
4375 echo "$as_me:$LINENO:" \
4376 "checking for C compiler version" >&5
4377 ac_compiler=`set X $ac_compile; echo $2`
4378 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4379 (eval $ac_compiler --version </dev/null >&5) 2>&5
4380 ac_status=$?
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); }
4383 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4384 (eval $ac_compiler -v </dev/null >&5) 2>&5
4385 ac_status=$?
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); }
4388 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4389 (eval $ac_compiler -V </dev/null >&5) 2>&5
4390 ac_status=$?
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); }
4394 cat >conftest.$ac_ext <<_ACEOF
4395 /* confdefs.h. */
4396 _ACEOF
4397 cat confdefs.h >>conftest.$ac_ext
4398 cat >>conftest.$ac_ext <<_ACEOF
4399 /* end confdefs.h. */
4402 main ()
4406 return 0;
4408 _ACEOF
4409 ac_clean_files_save=$ac_clean_files
4410 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4411 # Try to create an executable without -o first, disregard a.out.
4412 # It will help us diagnose broken compilers, and finding out an intuition
4413 # of exeext.
4414 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4415 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4416 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4417 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4418 (eval $ac_link_default) 2>&5
4419 ac_status=$?
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); }; then
4422 # Find the output, starting from the most likely. This scheme is
4423 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4424 # resort.
4426 # Be careful to initialize this variable, since it used to be cached.
4427 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4428 ac_cv_build_exeext=
4429 # b.out is created by i960 compilers.
4430 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4432 test -f "$ac_file" || continue
4433 case $ac_file in
4434 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4436 conftest.$ac_ext )
4437 # This is the source file.
4439 [ab].out )
4440 # We found the default executable, but exeext='' is most
4441 # certainly right.
4442 break;;
4443 *.* )
4444 ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4445 # FIXME: I believe we export ac_cv_exeext for Libtool,
4446 # but it would be cool to find out if it's true. Does anybody
4447 # maintain Libtool? --akim.
4448 export ac_cv_build_exeext
4449 break;;
4451 break;;
4452 esac
4453 done
4454 else
4455 echo "$as_me: failed program was:" >&5
4456 sed 's/^/| /' conftest.$ac_ext >&5
4458 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4459 See \`config.log' for more details." >&5
4460 echo "$as_me: error: C compiler cannot create executables
4461 See \`config.log' for more details." >&2;}
4462 { (exit 77); exit 77; }; }
4465 ac_build_exeext=$ac_cv_build_exeext
4466 echo "$as_me:$LINENO: result: $ac_file" >&5
4467 echo "${ECHO_T}$ac_file" >&6
4469 # Check the compiler produces executables we can run. If not, either
4470 # the compiler is broken, or we cross compile.
4471 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4472 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4473 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4474 # If not cross compiling, check that we can run a simple program.
4475 if test "$cross_compiling" != yes; then
4476 if { ac_try='./$ac_file'
4477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4478 (eval $ac_try) 2>&5
4479 ac_status=$?
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); }; }; then
4482 cross_compiling=no
4483 else
4484 if test "$cross_compiling" = maybe; then
4485 cross_compiling=yes
4486 else
4487 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4488 If you meant to cross compile, use \`--host'.
4489 See \`config.log' for more details." >&5
4490 echo "$as_me: error: cannot run C compiled programs.
4491 If you meant to cross compile, use \`--host'.
4492 See \`config.log' for more details." >&2;}
4493 { (exit 1); exit 1; }; }
4497 echo "$as_me:$LINENO: result: yes" >&5
4498 echo "${ECHO_T}yes" >&6
4500 rm -f a.out a.exe conftest$ac_cv_build_exeext b.out
4501 ac_clean_files=$ac_clean_files_save
4502 # Check the compiler produces executables we can run. If not, either
4503 # the compiler is broken, or we cross compile.
4504 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4505 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4506 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4507 echo "${ECHO_T}$cross_compiling" >&6
4509 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4510 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4512 (eval $ac_link) 2>&5
4513 ac_status=$?
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); }; then
4516 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4517 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4518 # work properly (i.e., refer to `conftest.exe'), while it won't with
4519 # `rm'.
4520 for ac_file in conftest.exe conftest conftest.*; do
4521 test -f "$ac_file" || continue
4522 case $ac_file in
4523 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4524 *.* ) ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4525 export ac_cv_build_exeext
4526 break;;
4527 * ) break;;
4528 esac
4529 done
4530 else
4531 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4532 See \`config.log' for more details." >&5
4533 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4534 See \`config.log' for more details." >&2;}
4535 { (exit 1); exit 1; }; }
4538 rm -f conftest$ac_cv_build_exeext
4539 echo "$as_me:$LINENO: result: $ac_cv_build_exeext" >&5
4540 echo "${ECHO_T}$ac_cv_build_exeext" >&6
4542 rm -f conftest.$ac_ext
4543 BUILD_EXEEXT=$ac_cv_build_exeext
4544 ac_build_exeext=$BUILD_EXEEXT
4547 # Restore configuration environment
4548 cross_compiling=$saved_cross
4550 ac_ext=c
4551 ac_cpp='$CPP $CPPFLAGS'
4552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4556 else
4557 BUILD_CC="$CC" ; BUILD_EXEEXT=$EXEEXT
4560 CFLAGS="$mule_backup_CFLAGS"
4561 CXXFLAGS="$mule_backup_CXXFLAGS"
4562 BUILD_CFLAGS="$mule_backup_BUILD_CFLAGS"
4563 for ac_prog in gawk mawk nawk awk
4565 # Extract the first word of "$ac_prog", so it can be a program name with args.
4566 set dummy $ac_prog; ac_word=$2
4567 echo "$as_me:$LINENO: checking for $ac_word" >&5
4568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4569 if test "${ac_cv_prog_AWK+set}" = set; then
4570 echo $ECHO_N "(cached) $ECHO_C" >&6
4571 else
4572 if test -n "$AWK"; then
4573 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4574 else
4575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576 for as_dir in $PATH
4578 IFS=$as_save_IFS
4579 test -z "$as_dir" && as_dir=.
4580 for ac_exec_ext in '' $ac_executable_extensions; do
4581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4582 ac_cv_prog_AWK="$ac_prog"
4583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4584 break 2
4586 done
4587 done
4591 AWK=$ac_cv_prog_AWK
4592 if test -n "$AWK"; then
4593 echo "$as_me:$LINENO: result: $AWK" >&5
4594 echo "${ECHO_T}$AWK" >&6
4595 else
4596 echo "$as_me:$LINENO: result: no" >&5
4597 echo "${ECHO_T}no" >&6
4600 test -n "$AWK" && break
4601 done
4603 echo "$as_me:$LINENO: checking for egrep" >&5
4604 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4605 if test "${ac_cv_prog_egrep+set}" = set; then
4606 echo $ECHO_N "(cached) $ECHO_C" >&6
4607 else
4608 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4609 then ac_cv_prog_egrep='grep -E'
4610 else ac_cv_prog_egrep='egrep'
4613 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4614 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4615 EGREP=$ac_cv_prog_egrep
4618 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4619 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4620 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4621 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4623 else
4624 cat >conftest.make <<\_ACEOF
4625 all:
4626 @echo 'ac_maketemp="$(MAKE)"'
4627 _ACEOF
4628 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4629 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4630 if test -n "$ac_maketemp"; then
4631 eval ac_cv_prog_make_${ac_make}_set=yes
4632 else
4633 eval ac_cv_prog_make_${ac_make}_set=no
4635 rm -f conftest.make
4637 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4638 echo "$as_me:$LINENO: result: yes" >&5
4639 echo "${ECHO_T}yes" >&6
4640 SET_MAKE=
4641 else
4642 echo "$as_me:$LINENO: result: no" >&5
4643 echo "${ECHO_T}no" >&6
4644 SET_MAKE="MAKE=${MAKE-make}"
4648 for ac_prog in flex lex
4650 # Extract the first word of "$ac_prog", so it can be a program name with args.
4651 set dummy $ac_prog; ac_word=$2
4652 echo "$as_me:$LINENO: checking for $ac_word" >&5
4653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4654 if test "${ac_cv_prog_LEX+set}" = set; then
4655 echo $ECHO_N "(cached) $ECHO_C" >&6
4656 else
4657 if test -n "$LEX"; then
4658 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4659 else
4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 for as_dir in $PATH
4663 IFS=$as_save_IFS
4664 test -z "$as_dir" && as_dir=.
4665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4667 ac_cv_prog_LEX="$ac_prog"
4668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4669 break 2
4671 done
4672 done
4676 LEX=$ac_cv_prog_LEX
4677 if test -n "$LEX"; then
4678 echo "$as_me:$LINENO: result: $LEX" >&5
4679 echo "${ECHO_T}$LEX" >&6
4680 else
4681 echo "$as_me:$LINENO: result: no" >&5
4682 echo "${ECHO_T}no" >&6
4685 test -n "$LEX" && break
4686 done
4687 test -n "$LEX" || LEX=":"
4689 if test -z "$LEXLIB"
4690 then
4691 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4692 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4693 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4694 echo $ECHO_N "(cached) $ECHO_C" >&6
4695 else
4696 ac_check_lib_save_LIBS=$LIBS
4697 LIBS="-lfl $LIBS"
4698 cat >conftest.$ac_ext <<_ACEOF
4699 /* confdefs.h. */
4700 _ACEOF
4701 cat confdefs.h >>conftest.$ac_ext
4702 cat >>conftest.$ac_ext <<_ACEOF
4703 /* end confdefs.h. */
4705 /* Override any gcc2 internal prototype to avoid an error. */
4706 #ifdef __cplusplus
4707 extern "C"
4708 #endif
4709 /* We use char because int might match the return type of a gcc2
4710 builtin and then its argument prototype would still apply. */
4711 char yywrap ();
4713 main ()
4715 yywrap ();
4717 return 0;
4719 _ACEOF
4720 rm -f conftest.$ac_objext conftest$ac_exeext
4721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4722 (eval $ac_link) 2>conftest.er1
4723 ac_status=$?
4724 grep -v '^ *+' conftest.er1 >conftest.err
4725 rm -f conftest.er1
4726 cat conftest.err >&5
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); } &&
4729 { ac_try='test -z "$ac_c_werror_flag"
4730 || test ! -s conftest.err'
4731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4732 (eval $ac_try) 2>&5
4733 ac_status=$?
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); }; } &&
4736 { ac_try='test -s conftest$ac_exeext'
4737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4738 (eval $ac_try) 2>&5
4739 ac_status=$?
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); }; }; then
4742 ac_cv_lib_fl_yywrap=yes
4743 else
4744 echo "$as_me: failed program was:" >&5
4745 sed 's/^/| /' conftest.$ac_ext >&5
4747 ac_cv_lib_fl_yywrap=no
4749 rm -f conftest.err conftest.$ac_objext \
4750 conftest$ac_exeext conftest.$ac_ext
4751 LIBS=$ac_check_lib_save_LIBS
4753 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4754 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4755 if test $ac_cv_lib_fl_yywrap = yes; then
4756 LEXLIB="-lfl"
4757 else
4758 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4759 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4760 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4761 echo $ECHO_N "(cached) $ECHO_C" >&6
4762 else
4763 ac_check_lib_save_LIBS=$LIBS
4764 LIBS="-ll $LIBS"
4765 cat >conftest.$ac_ext <<_ACEOF
4766 /* confdefs.h. */
4767 _ACEOF
4768 cat confdefs.h >>conftest.$ac_ext
4769 cat >>conftest.$ac_ext <<_ACEOF
4770 /* end confdefs.h. */
4772 /* Override any gcc2 internal prototype to avoid an error. */
4773 #ifdef __cplusplus
4774 extern "C"
4775 #endif
4776 /* We use char because int might match the return type of a gcc2
4777 builtin and then its argument prototype would still apply. */
4778 char yywrap ();
4780 main ()
4782 yywrap ();
4784 return 0;
4786 _ACEOF
4787 rm -f conftest.$ac_objext conftest$ac_exeext
4788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4789 (eval $ac_link) 2>conftest.er1
4790 ac_status=$?
4791 grep -v '^ *+' conftest.er1 >conftest.err
4792 rm -f conftest.er1
4793 cat conftest.err >&5
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); } &&
4796 { ac_try='test -z "$ac_c_werror_flag"
4797 || test ! -s conftest.err'
4798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4799 (eval $ac_try) 2>&5
4800 ac_status=$?
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); }; } &&
4803 { ac_try='test -s conftest$ac_exeext'
4804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4805 (eval $ac_try) 2>&5
4806 ac_status=$?
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); }; }; then
4809 ac_cv_lib_l_yywrap=yes
4810 else
4811 echo "$as_me: failed program was:" >&5
4812 sed 's/^/| /' conftest.$ac_ext >&5
4814 ac_cv_lib_l_yywrap=no
4816 rm -f conftest.err conftest.$ac_objext \
4817 conftest$ac_exeext conftest.$ac_ext
4818 LIBS=$ac_check_lib_save_LIBS
4820 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4821 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4822 if test $ac_cv_lib_l_yywrap = yes; then
4823 LEXLIB="-ll"
4830 if test "x$LEX" != "x:"; then
4831 echo "$as_me:$LINENO: checking lex output file root" >&5
4832 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4833 if test "${ac_cv_prog_lex_root+set}" = set; then
4834 echo $ECHO_N "(cached) $ECHO_C" >&6
4835 else
4836 # The minimal lex program is just a single line: %%. But some broken lexes
4837 # (Solaris, I think it was) want two %% lines, so accommodate them.
4838 cat >conftest.l <<_ACEOF
4841 _ACEOF
4842 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4843 (eval $LEX conftest.l) 2>&5
4844 ac_status=$?
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); }
4847 if test -f lex.yy.c; then
4848 ac_cv_prog_lex_root=lex.yy
4849 elif test -f lexyy.c; then
4850 ac_cv_prog_lex_root=lexyy
4851 else
4852 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4853 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4854 { (exit 1); exit 1; }; }
4857 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4858 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4859 rm -f conftest.l
4860 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4862 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4863 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4864 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4866 else
4867 # POSIX says lex can declare yytext either as a pointer or an array; the
4868 # default is implementation-dependent. Figure out which it is, since
4869 # not all implementations provide the %pointer and %array declarations.
4870 ac_cv_prog_lex_yytext_pointer=no
4871 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4872 ac_save_LIBS=$LIBS
4873 LIBS="$LIBS $LEXLIB"
4874 cat >conftest.$ac_ext <<_ACEOF
4875 `cat $LEX_OUTPUT_ROOT.c`
4876 _ACEOF
4877 rm -f conftest.$ac_objext conftest$ac_exeext
4878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4879 (eval $ac_link) 2>conftest.er1
4880 ac_status=$?
4881 grep -v '^ *+' conftest.er1 >conftest.err
4882 rm -f conftest.er1
4883 cat conftest.err >&5
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); } &&
4886 { ac_try='test -z "$ac_c_werror_flag"
4887 || test ! -s conftest.err'
4888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4889 (eval $ac_try) 2>&5
4890 ac_status=$?
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); }; } &&
4893 { ac_try='test -s conftest$ac_exeext'
4894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4895 (eval $ac_try) 2>&5
4896 ac_status=$?
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); }; }; then
4899 ac_cv_prog_lex_yytext_pointer=yes
4900 else
4901 echo "$as_me: failed program was:" >&5
4902 sed 's/^/| /' conftest.$ac_ext >&5
4905 rm -f conftest.err conftest.$ac_objext \
4906 conftest$ac_exeext conftest.$ac_ext
4907 LIBS=$ac_save_LIBS
4908 rm -f "${LEX_OUTPUT_ROOT}.c"
4911 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4912 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4913 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4915 cat >>confdefs.h <<\_ACEOF
4916 #define YYTEXT_POINTER 1
4917 _ACEOF
4922 # Find a good install program. We prefer a C program (faster),
4923 # so one script is as good as another. But avoid the broken or
4924 # incompatible versions:
4925 # SysV /etc/install, /usr/sbin/install
4926 # SunOS /usr/etc/install
4927 # IRIX /sbin/install
4928 # AIX /bin/install
4929 # AmigaOS /C/install, which installs bootblocks on floppy discs
4930 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4931 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4932 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4933 # OS/2's system install, which has a completely different semantic
4934 # ./install, which can be erroneously created by make from ./install.sh.
4935 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4936 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4937 if test -z "$INSTALL"; then
4938 if test "${ac_cv_path_install+set}" = set; then
4939 echo $ECHO_N "(cached) $ECHO_C" >&6
4940 else
4941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4942 for as_dir in $PATH
4944 IFS=$as_save_IFS
4945 test -z "$as_dir" && as_dir=.
4946 # Account for people who put trailing slashes in PATH elements.
4947 case $as_dir/ in
4948 ./ | .// | /cC/* | \
4949 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4950 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4951 /usr/ucb/* ) ;;
4953 # OSF1 and SCO ODT 3.0 have their own names for install.
4954 # Don't use installbsd from OSF since it installs stuff as root
4955 # by default.
4956 for ac_prog in ginstall scoinst install; do
4957 for ac_exec_ext in '' $ac_executable_extensions; do
4958 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4959 if test $ac_prog = install &&
4960 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4961 # AIX install. It has an incompatible calling convention.
4963 elif test $ac_prog = install &&
4964 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4965 # program-specific install script used by HP pwplus--don't use.
4967 else
4968 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4969 break 3
4972 done
4973 done
4975 esac
4976 done
4980 if test "${ac_cv_path_install+set}" = set; then
4981 INSTALL=$ac_cv_path_install
4982 else
4983 # As a last resort, use the slow shell script. We don't cache a
4984 # path for INSTALL within a source directory, because that will
4985 # break other packages using the cache if that directory is
4986 # removed, or if the path is relative.
4987 INSTALL=$ac_install_sh
4990 echo "$as_me:$LINENO: result: $INSTALL" >&5
4991 echo "${ECHO_T}$INSTALL" >&6
4993 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4994 # It thinks the first close brace ends the variable substitution.
4995 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4997 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4999 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5001 if test -n "$ac_tool_prefix"; then
5002 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5003 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5004 echo "$as_me:$LINENO: checking for $ac_word" >&5
5005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5006 if test "${ac_cv_prog_RANLIB+set}" = set; then
5007 echo $ECHO_N "(cached) $ECHO_C" >&6
5008 else
5009 if test -n "$RANLIB"; then
5010 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5011 else
5012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013 for as_dir in $PATH
5015 IFS=$as_save_IFS
5016 test -z "$as_dir" && as_dir=.
5017 for ac_exec_ext in '' $ac_executable_extensions; do
5018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5019 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5021 break 2
5023 done
5024 done
5028 RANLIB=$ac_cv_prog_RANLIB
5029 if test -n "$RANLIB"; then
5030 echo "$as_me:$LINENO: result: $RANLIB" >&5
5031 echo "${ECHO_T}$RANLIB" >&6
5032 else
5033 echo "$as_me:$LINENO: result: no" >&5
5034 echo "${ECHO_T}no" >&6
5038 if test -z "$ac_cv_prog_RANLIB"; then
5039 ac_ct_RANLIB=$RANLIB
5040 # Extract the first word of "ranlib", so it can be a program name with args.
5041 set dummy ranlib; ac_word=$2
5042 echo "$as_me:$LINENO: checking for $ac_word" >&5
5043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5044 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5045 echo $ECHO_N "(cached) $ECHO_C" >&6
5046 else
5047 if test -n "$ac_ct_RANLIB"; then
5048 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5049 else
5050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051 for as_dir in $PATH
5053 IFS=$as_save_IFS
5054 test -z "$as_dir" && as_dir=.
5055 for ac_exec_ext in '' $ac_executable_extensions; do
5056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5057 ac_cv_prog_ac_ct_RANLIB="ranlib"
5058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5059 break 2
5061 done
5062 done
5064 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5067 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5068 if test -n "$ac_ct_RANLIB"; then
5069 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5070 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5071 else
5072 echo "$as_me:$LINENO: result: no" >&5
5073 echo "${ECHO_T}no" >&6
5076 RANLIB=$ac_ct_RANLIB
5077 else
5078 RANLIB="$ac_cv_prog_RANLIB"
5081 for ac_prog in 'bison -y' byacc
5083 # Extract the first word of "$ac_prog", so it can be a program name with args.
5084 set dummy $ac_prog; ac_word=$2
5085 echo "$as_me:$LINENO: checking for $ac_word" >&5
5086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5087 if test "${ac_cv_prog_YACC+set}" = set; then
5088 echo $ECHO_N "(cached) $ECHO_C" >&6
5089 else
5090 if test -n "$YACC"; then
5091 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5092 else
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094 for as_dir in $PATH
5096 IFS=$as_save_IFS
5097 test -z "$as_dir" && as_dir=.
5098 for ac_exec_ext in '' $ac_executable_extensions; do
5099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5100 ac_cv_prog_YACC="$ac_prog"
5101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5102 break 2
5104 done
5105 done
5109 YACC=$ac_cv_prog_YACC
5110 if test -n "$YACC"; then
5111 echo "$as_me:$LINENO: result: $YACC" >&5
5112 echo "${ECHO_T}$YACC" >&6
5113 else
5114 echo "$as_me:$LINENO: result: no" >&5
5115 echo "${ECHO_T}no" >&6
5118 test -n "$YACC" && break
5119 done
5120 test -n "$YACC" || YACC="yacc"
5123 if test -n "$ac_tool_prefix"; then
5124 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5125 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5126 echo "$as_me:$LINENO: checking for $ac_word" >&5
5127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5128 if test "${ac_cv_prog_RANLIB+set}" = set; then
5129 echo $ECHO_N "(cached) $ECHO_C" >&6
5130 else
5131 if test -n "$RANLIB"; then
5132 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5133 else
5134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135 for as_dir in $PATH
5137 IFS=$as_save_IFS
5138 test -z "$as_dir" && as_dir=.
5139 for ac_exec_ext in '' $ac_executable_extensions; do
5140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5141 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5143 break 2
5145 done
5146 done
5150 RANLIB=$ac_cv_prog_RANLIB
5151 if test -n "$RANLIB"; then
5152 echo "$as_me:$LINENO: result: $RANLIB" >&5
5153 echo "${ECHO_T}$RANLIB" >&6
5154 else
5155 echo "$as_me:$LINENO: result: no" >&5
5156 echo "${ECHO_T}no" >&6
5160 if test -z "$ac_cv_prog_RANLIB"; then
5161 ac_ct_RANLIB=$RANLIB
5162 # Extract the first word of "ranlib", so it can be a program name with args.
5163 set dummy ranlib; ac_word=$2
5164 echo "$as_me:$LINENO: checking for $ac_word" >&5
5165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5166 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5167 echo $ECHO_N "(cached) $ECHO_C" >&6
5168 else
5169 if test -n "$ac_ct_RANLIB"; then
5170 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5171 else
5172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5173 for as_dir in $PATH
5175 IFS=$as_save_IFS
5176 test -z "$as_dir" && as_dir=.
5177 for ac_exec_ext in '' $ac_executable_extensions; do
5178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5179 ac_cv_prog_ac_ct_RANLIB="ranlib"
5180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5181 break 2
5183 done
5184 done
5188 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5189 if test -n "$ac_ct_RANLIB"; then
5190 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5191 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5192 else
5193 echo "$as_me:$LINENO: result: no" >&5
5194 echo "${ECHO_T}no" >&6
5197 RANLIB=$ac_ct_RANLIB
5198 else
5199 RANLIB="$ac_cv_prog_RANLIB"
5202 if test -n "$ac_tool_prefix"; then
5203 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5204 set dummy ${ac_tool_prefix}strip; ac_word=$2
5205 echo "$as_me:$LINENO: checking for $ac_word" >&5
5206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5207 if test "${ac_cv_prog_STRIP+set}" = set; then
5208 echo $ECHO_N "(cached) $ECHO_C" >&6
5209 else
5210 if test -n "$STRIP"; then
5211 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5212 else
5213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214 for as_dir in $PATH
5216 IFS=$as_save_IFS
5217 test -z "$as_dir" && as_dir=.
5218 for ac_exec_ext in '' $ac_executable_extensions; do
5219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5220 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5222 break 2
5224 done
5225 done
5229 STRIP=$ac_cv_prog_STRIP
5230 if test -n "$STRIP"; then
5231 echo "$as_me:$LINENO: result: $STRIP" >&5
5232 echo "${ECHO_T}$STRIP" >&6
5233 else
5234 echo "$as_me:$LINENO: result: no" >&5
5235 echo "${ECHO_T}no" >&6
5239 if test -z "$ac_cv_prog_STRIP"; then
5240 ac_ct_STRIP=$STRIP
5241 # Extract the first word of "strip", so it can be a program name with args.
5242 set dummy strip; ac_word=$2
5243 echo "$as_me:$LINENO: checking for $ac_word" >&5
5244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5245 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5246 echo $ECHO_N "(cached) $ECHO_C" >&6
5247 else
5248 if test -n "$ac_ct_STRIP"; then
5249 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5250 else
5251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252 for as_dir in $PATH
5254 IFS=$as_save_IFS
5255 test -z "$as_dir" && as_dir=.
5256 for ac_exec_ext in '' $ac_executable_extensions; do
5257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5258 ac_cv_prog_ac_ct_STRIP="strip"
5259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5260 break 2
5262 done
5263 done
5267 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5268 if test -n "$ac_ct_STRIP"; then
5269 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5270 echo "${ECHO_T}$ac_ct_STRIP" >&6
5271 else
5272 echo "$as_me:$LINENO: result: no" >&5
5273 echo "${ECHO_T}no" >&6
5276 STRIP=$ac_ct_STRIP
5277 else
5278 STRIP="$ac_cv_prog_STRIP"
5281 if test -n "$ac_tool_prefix"; then
5282 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5283 set dummy ${ac_tool_prefix}ar; ac_word=$2
5284 echo "$as_me:$LINENO: checking for $ac_word" >&5
5285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5286 if test "${ac_cv_prog_AR+set}" = set; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5288 else
5289 if test -n "$AR"; then
5290 ac_cv_prog_AR="$AR" # Let the user override the test.
5291 else
5292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5293 for as_dir in $PATH
5295 IFS=$as_save_IFS
5296 test -z "$as_dir" && as_dir=.
5297 for ac_exec_ext in '' $ac_executable_extensions; do
5298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5299 ac_cv_prog_AR="${ac_tool_prefix}ar"
5300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5301 break 2
5303 done
5304 done
5308 AR=$ac_cv_prog_AR
5309 if test -n "$AR"; then
5310 echo "$as_me:$LINENO: result: $AR" >&5
5311 echo "${ECHO_T}$AR" >&6
5312 else
5313 echo "$as_me:$LINENO: result: no" >&5
5314 echo "${ECHO_T}no" >&6
5318 if test -z "$ac_cv_prog_AR"; then
5319 ac_ct_AR=$AR
5320 # Extract the first word of "ar", so it can be a program name with args.
5321 set dummy ar; ac_word=$2
5322 echo "$as_me:$LINENO: checking for $ac_word" >&5
5323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5324 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5325 echo $ECHO_N "(cached) $ECHO_C" >&6
5326 else
5327 if test -n "$ac_ct_AR"; then
5328 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5329 else
5330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5331 for as_dir in $PATH
5333 IFS=$as_save_IFS
5334 test -z "$as_dir" && as_dir=.
5335 for ac_exec_ext in '' $ac_executable_extensions; do
5336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5337 ac_cv_prog_ac_ct_AR="ar"
5338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5339 break 2
5341 done
5342 done
5346 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5347 if test -n "$ac_ct_AR"; then
5348 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5349 echo "${ECHO_T}$ac_ct_AR" >&6
5350 else
5351 echo "$as_me:$LINENO: result: no" >&5
5352 echo "${ECHO_T}no" >&6
5355 AR=$ac_ct_AR
5356 else
5357 AR="$ac_cv_prog_AR"
5360 if test -n "$ac_tool_prefix"; then
5361 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5362 set dummy ${ac_tool_prefix}ld; ac_word=$2
5363 echo "$as_me:$LINENO: checking for $ac_word" >&5
5364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5365 if test "${ac_cv_prog_LD+set}" = set; then
5366 echo $ECHO_N "(cached) $ECHO_C" >&6
5367 else
5368 if test -n "$LD"; then
5369 ac_cv_prog_LD="$LD" # Let the user override the test.
5370 else
5371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5372 for as_dir in $PATH
5374 IFS=$as_save_IFS
5375 test -z "$as_dir" && as_dir=.
5376 for ac_exec_ext in '' $ac_executable_extensions; do
5377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5378 ac_cv_prog_LD="${ac_tool_prefix}ld"
5379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5380 break 2
5382 done
5383 done
5387 LD=$ac_cv_prog_LD
5388 if test -n "$LD"; then
5389 echo "$as_me:$LINENO: result: $LD" >&5
5390 echo "${ECHO_T}$LD" >&6
5391 else
5392 echo "$as_me:$LINENO: result: no" >&5
5393 echo "${ECHO_T}no" >&6
5397 if test -z "$ac_cv_prog_LD"; then
5398 ac_ct_LD=$LD
5399 # Extract the first word of "ld", so it can be a program name with args.
5400 set dummy ld; ac_word=$2
5401 echo "$as_me:$LINENO: checking for $ac_word" >&5
5402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5403 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5404 echo $ECHO_N "(cached) $ECHO_C" >&6
5405 else
5406 if test -n "$ac_ct_LD"; then
5407 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5408 else
5409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410 for as_dir in $PATH
5412 IFS=$as_save_IFS
5413 test -z "$as_dir" && as_dir=.
5414 for ac_exec_ext in '' $ac_executable_extensions; do
5415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5416 ac_cv_prog_ac_ct_LD="ld"
5417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5418 break 2
5420 done
5421 done
5425 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5426 if test -n "$ac_ct_LD"; then
5427 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5428 echo "${ECHO_T}$ac_ct_LD" >&6
5429 else
5430 echo "$as_me:$LINENO: result: no" >&5
5431 echo "${ECHO_T}no" >&6
5434 LD=$ac_ct_LD
5435 else
5436 LD="$ac_cv_prog_LD"
5440 # Check whether --enable-monolithic or --disable-monolithic was given.
5441 if test "${enable_monolithic+set}" = set; then
5442 enableval="$enable_monolithic"
5443 MONOLITHIC=$enableval
5444 else
5445 MONOLITHIC=yes
5448 # Check whether --enable-amule-daemon or --disable-amule-daemon was given.
5449 if test "${enable_amule_daemon+set}" = set; then
5450 enableval="$enable_amule_daemon"
5451 AMULE_DAEMON=$enableval
5452 else
5453 AMULE_DAEMON=no
5456 # Check whether --enable-amulecmd or --disable-amulecmd was given.
5457 if test "${enable_amulecmd+set}" = set; then
5458 enableval="$enable_amulecmd"
5459 AMULECMD=$enableval
5460 else
5461 AMULECMD=no
5464 # Check whether --enable-webserver or --disable-webserver was given.
5465 if test "${enable_webserver+set}" = set; then
5466 enableval="$enable_webserver"
5467 WEB=$enableval
5468 else
5469 WEB=no
5472 # Check whether --enable-amule-gui or --disable-amule-gui was given.
5473 if test "${enable_amule_gui+set}" = set; then
5474 enableval="$enable_amule_gui"
5475 AMULE_GUI=$enableval
5476 else
5477 AMULE_GUI=no
5480 # Check whether --enable-cas or --disable-cas was given.
5481 if test "${enable_cas+set}" = set; then
5482 enableval="$enable_cas"
5483 CAS=$enableval
5484 else
5485 CAS=no
5488 # Check whether --enable-wxcas or --disable-wxcas was given.
5489 if test "${enable_wxcas+set}" = set; then
5490 enableval="$enable_wxcas"
5491 WXCAS=$enableval
5492 else
5493 WXCAS=no
5496 # Check whether --enable-ed2k or --disable-ed2k was given.
5497 if test "${enable_ed2k+set}" = set; then
5498 enableval="$enable_ed2k"
5499 ED2K=$enableval
5500 else
5501 ED2K=yes
5504 # Check whether --enable-alc or --disable-alc was given.
5505 if test "${enable_alc+set}" = set; then
5506 enableval="$enable_alc"
5507 ALC=$enableval
5508 else
5509 ALC=no
5512 # Check whether --enable-alcc or --disable-alcc was given.
5513 if test "${enable_alcc+set}" = set; then
5514 enableval="$enable_alcc"
5515 ALCC=$enableval
5516 else
5517 ALCC=no
5520 # Check whether --enable-monolithic or --disable-monolithic was given.
5521 if test "${enable_monolithic+set}" = set; then
5522 enableval="$enable_monolithic"
5523 MONOLITHIC=$enableval
5524 else
5525 MONOLITHIC=yes
5528 # Check whether --enable-upnp or --disable-upnp was given.
5529 if test "${enable_upnp+set}" = set; then
5530 enableval="$enable_upnp"
5531 ENABLE_UPNP=$enableval
5532 else
5533 ENABLE_UPNP=yes
5536 # Check whether --enable-xas or --disable-xas was given.
5537 if test "${enable_xas+set}" = set; then
5538 enableval="$enable_xas"
5539 XAS=$enableval
5540 else
5541 XAS=no
5544 # Default is yes, because they're most likely compatible.
5545 # However, this is only used when cross-compiling.
5547 # Check whether --with-gnu-malloc or --without-gnu-malloc was given.
5548 if test "${with_gnu_malloc+set}" = set; then
5549 withval="$with_gnu_malloc"
5550 gnumalloc=$withval
5551 else
5552 gnumalloc=yes
5556 # Checking for libs before all other stuff to break
5557 # configure as soon as possible in case of a missing one
5558 # to avoid losing too much time
5560 # Check for zlib
5563 # Check whether --with-zlib or --without-zlib was given.
5564 if test "${with_zlib+set}" = set; then
5565 withval="$with_zlib"
5569 case "${with_zlib:-yes}" in
5571 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5572 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5573 { (exit 1); exit 1; }; }
5575 yes | sys)
5578 zlib_prefix="$with_zlib"
5579 esac
5581 mule_backup_CPPFLAGS="$CPPFLAGS"
5582 mule_backup_LDFLAGS="$LDFLAGS"
5583 mule_backup_LIBS="$LIBS"
5584 if test -n "$zlib_prefix"; then
5586 ZLIB_CPPFLAGS="-I$zlib_prefix/include"
5587 ZLIB_LDFLAGS="-L$zlib_prefix/lib"
5588 CPPFLAGS="$CPPFLAGS $ZLIB_CPPFLAGS"
5589 LDFLAGS="$LDFLAGS $ZLIB_LDFLAGS"
5591 else
5593 ZLIB_CPPFLAGS=
5594 ZLIB_LDFLAGS=
5598 ZLIB_LIBS="-lz"
5599 LIBS="$ZLIB_LIBS $LIBS"
5601 echo "$as_me:$LINENO: checking for zlib >= 1.1.4" >&5
5602 echo $ECHO_N "checking for zlib >= 1.1.4... $ECHO_C" >&6
5603 if test "$cross_compiling" = yes; then
5605 result=no
5606 z_version=
5607 cat >conftest.$ac_ext <<_ACEOF
5609 /* confdefs.h. */
5610 _ACEOF
5611 cat confdefs.h >>conftest.$ac_ext
5612 cat >>conftest.$ac_ext <<_ACEOF
5613 /* end confdefs.h. */
5615 #include <zlib.h>
5616 #include <stdio.h>
5619 main ()
5622 printf("\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n\n");
5623 zlibVersion();
5626 return 0;
5629 _ACEOF
5630 rm -f conftest.$ac_objext conftest$ac_exeext
5631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5632 (eval $ac_link) 2>conftest.er1
5633 ac_status=$?
5634 grep -v '^ *+' conftest.er1 >conftest.err
5635 rm -f conftest.er1
5636 cat conftest.err >&5
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); } &&
5639 { ac_try='test -z "$ac_c_werror_flag"
5640 || test ! -s conftest.err'
5641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5642 (eval $ac_try) 2>&5
5643 ac_status=$?
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); }; } &&
5646 { ac_try='test -s conftest$ac_exeext'
5647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5648 (eval $ac_try) 2>&5
5649 ac_status=$?
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }; }; then
5653 ZLIB_VERSION=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest$ac_exeext | sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'`
5654 cross_zver_max="`echo $ZLIB_VERSION | cut -d. -f1`"
5655 cross_zver_mid="`echo $ZLIB_VERSION | cut -d. -f2`"
5656 cross_zver_min="`echo $ZLIB_VERSION | cut -d. -f3`"
5657 if test "$cross_zver_max" -gt "1"; then
5658 result=yes
5659 elif test "$cross_zver_max" -eq "1"; then
5661 if test "$cross_zver_mid" -gt "1"; then
5662 result=yes
5663 elif test "$cross_zver_mid" -eq "1"; then
5664 if test "$cross_zver_min" -ge "4"; then
5665 result=yes
5673 if test ${result:-no} = yes; then
5674 z_version=" (version $ZLIB_VERSION)"
5678 else
5679 echo "$as_me: failed program was:" >&5
5680 sed 's/^/| /' conftest.$ac_ext >&5
5683 rm -f conftest.err conftest.$ac_objext \
5684 conftest$ac_exeext conftest.$ac_ext
5685 echo "$as_me:$LINENO: result: $result$z_version" >&5
5686 echo "${ECHO_T}$result$z_version" >&6
5688 else
5689 cat >conftest.$ac_ext <<_ACEOF
5691 /* confdefs.h. */
5692 _ACEOF
5693 cat confdefs.h >>conftest.$ac_ext
5694 cat >>conftest.$ac_ext <<_ACEOF
5695 /* end confdefs.h. */
5697 #include <zlib.h>
5698 #include <stdio.h>
5701 main ()
5703 char *zver = zlibVersion();
5704 FILE *f=fopen("conftestval", "w");
5705 if (!f) return 1;
5706 fprintf(f, "%s",
5707 zver[0] > '1' ||
5708 (zver[0] == '1' &&
5709 (zver[2] > '1' ||
5710 (zver[2] == '1' &&
5711 zver[4] >= '4'))) ? "yes" : "no");
5712 fclose(f);
5713 f=fopen("conftestver", "w");
5714 if (f) {
5715 fprintf(f, "%s", ZLIB_VERSION);
5716 fclose(f);
5720 return 0;
5723 _ACEOF
5724 rm -f conftest$ac_exeext
5725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5726 (eval $ac_link) 2>&5
5727 ac_status=$?
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5731 (eval $ac_try) 2>&5
5732 ac_status=$?
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); }; }; then
5736 if test -f conftestval; then
5737 result=`cat conftestval`
5738 else
5739 result=no
5742 if test ${result:-no} = yes; then
5744 if test -f conftestver; then
5746 ZLIB_VERSION=`cat conftestver`
5747 z_version=" (version $ZLIB_VERSION)"
5749 else
5750 z_version=
5756 echo "$as_me:$LINENO: result: $result$z_version" >&5
5757 echo "${ECHO_T}$result$z_version" >&6
5759 else
5760 echo "$as_me: program exited with status $ac_status" >&5
5761 echo "$as_me: failed program was:" >&5
5762 sed 's/^/| /' conftest.$ac_ext >&5
5764 ( exit $ac_status )
5766 result=no
5767 echo "$as_me:$LINENO: result: $result" >&5
5768 echo "${ECHO_T}$result" >&6
5771 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5774 CPPFLAGS="$mule_backup_CPPFLAGS"
5775 LDFLAGS="$mule_backup_LDFLAGS"
5776 LIBS="$mule_backup_LIBS"
5778 if test ${result:-no} = no; then
5780 ZLIB_CPPFLAGS=
5781 ZLIB_LDFLAGS=
5782 ZLIB_LIBS=
5783 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5784 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5785 { (exit 1); exit 1; }; }
5792 if test x$CAS = xyes; then
5794 # Check for gd
5796 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5797 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5798 if test "${ac_cv_header_stdc+set}" = set; then
5799 echo $ECHO_N "(cached) $ECHO_C" >&6
5800 else
5801 cat >conftest.$ac_ext <<_ACEOF
5802 /* confdefs.h. */
5803 _ACEOF
5804 cat confdefs.h >>conftest.$ac_ext
5805 cat >>conftest.$ac_ext <<_ACEOF
5806 /* end confdefs.h. */
5807 #include <stdlib.h>
5808 #include <stdarg.h>
5809 #include <string.h>
5810 #include <float.h>
5813 main ()
5817 return 0;
5819 _ACEOF
5820 rm -f conftest.$ac_objext
5821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5822 (eval $ac_compile) 2>conftest.er1
5823 ac_status=$?
5824 grep -v '^ *+' conftest.er1 >conftest.err
5825 rm -f conftest.er1
5826 cat conftest.err >&5
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); } &&
5829 { ac_try='test -z "$ac_c_werror_flag"
5830 || test ! -s conftest.err'
5831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5832 (eval $ac_try) 2>&5
5833 ac_status=$?
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); }; } &&
5836 { ac_try='test -s conftest.$ac_objext'
5837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5838 (eval $ac_try) 2>&5
5839 ac_status=$?
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); }; }; then
5842 ac_cv_header_stdc=yes
5843 else
5844 echo "$as_me: failed program was:" >&5
5845 sed 's/^/| /' conftest.$ac_ext >&5
5847 ac_cv_header_stdc=no
5849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5851 if test $ac_cv_header_stdc = yes; then
5852 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5853 cat >conftest.$ac_ext <<_ACEOF
5854 /* confdefs.h. */
5855 _ACEOF
5856 cat confdefs.h >>conftest.$ac_ext
5857 cat >>conftest.$ac_ext <<_ACEOF
5858 /* end confdefs.h. */
5859 #include <string.h>
5861 _ACEOF
5862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5863 $EGREP "memchr" >/dev/null 2>&1; then
5865 else
5866 ac_cv_header_stdc=no
5868 rm -f conftest*
5872 if test $ac_cv_header_stdc = yes; then
5873 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5874 cat >conftest.$ac_ext <<_ACEOF
5875 /* confdefs.h. */
5876 _ACEOF
5877 cat confdefs.h >>conftest.$ac_ext
5878 cat >>conftest.$ac_ext <<_ACEOF
5879 /* end confdefs.h. */
5880 #include <stdlib.h>
5882 _ACEOF
5883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5884 $EGREP "free" >/dev/null 2>&1; then
5886 else
5887 ac_cv_header_stdc=no
5889 rm -f conftest*
5893 if test $ac_cv_header_stdc = yes; then
5894 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5895 if test "$cross_compiling" = yes; then
5897 else
5898 cat >conftest.$ac_ext <<_ACEOF
5899 /* confdefs.h. */
5900 _ACEOF
5901 cat confdefs.h >>conftest.$ac_ext
5902 cat >>conftest.$ac_ext <<_ACEOF
5903 /* end confdefs.h. */
5904 #include <ctype.h>
5905 #if ((' ' & 0x0FF) == 0x020)
5906 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5907 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5908 #else
5909 # define ISLOWER(c) \
5910 (('a' <= (c) && (c) <= 'i') \
5911 || ('j' <= (c) && (c) <= 'r') \
5912 || ('s' <= (c) && (c) <= 'z'))
5913 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5914 #endif
5916 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5918 main ()
5920 int i;
5921 for (i = 0; i < 256; i++)
5922 if (XOR (islower (i), ISLOWER (i))
5923 || toupper (i) != TOUPPER (i))
5924 exit(2);
5925 exit (0);
5927 _ACEOF
5928 rm -f conftest$ac_exeext
5929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5930 (eval $ac_link) 2>&5
5931 ac_status=$?
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5935 (eval $ac_try) 2>&5
5936 ac_status=$?
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); }; }; then
5940 else
5941 echo "$as_me: program exited with status $ac_status" >&5
5942 echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.$ac_ext >&5
5945 ( exit $ac_status )
5946 ac_cv_header_stdc=no
5948 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5952 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5953 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5954 if test $ac_cv_header_stdc = yes; then
5956 cat >>confdefs.h <<\_ACEOF
5957 #define STDC_HEADERS 1
5958 _ACEOF
5962 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5972 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5973 inttypes.h stdint.h unistd.h
5975 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5976 echo "$as_me:$LINENO: checking for $ac_header" >&5
5977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5979 echo $ECHO_N "(cached) $ECHO_C" >&6
5980 else
5981 cat >conftest.$ac_ext <<_ACEOF
5982 /* confdefs.h. */
5983 _ACEOF
5984 cat confdefs.h >>conftest.$ac_ext
5985 cat >>conftest.$ac_ext <<_ACEOF
5986 /* end confdefs.h. */
5987 $ac_includes_default
5989 #include <$ac_header>
5990 _ACEOF
5991 rm -f conftest.$ac_objext
5992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5993 (eval $ac_compile) 2>conftest.er1
5994 ac_status=$?
5995 grep -v '^ *+' conftest.er1 >conftest.err
5996 rm -f conftest.er1
5997 cat conftest.err >&5
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); } &&
6000 { ac_try='test -z "$ac_c_werror_flag"
6001 || test ! -s conftest.err'
6002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6003 (eval $ac_try) 2>&5
6004 ac_status=$?
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); }; } &&
6007 { ac_try='test -s conftest.$ac_objext'
6008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6009 (eval $ac_try) 2>&5
6010 ac_status=$?
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; }; then
6013 eval "$as_ac_Header=yes"
6014 else
6015 echo "$as_me: failed program was:" >&5
6016 sed 's/^/| /' conftest.$ac_ext >&5
6018 eval "$as_ac_Header=no"
6020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6023 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6025 cat >>confdefs.h <<_ACEOF
6026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6027 _ACEOF
6031 done
6036 # Check whether --with-gdlib-prefix or --without-gdlib-prefix was given.
6037 if test "${with_gdlib_prefix+set}" = set; then
6038 withval="$with_gdlib_prefix"
6042 # Check whether --with-gdlib-config or --without-gdlib-config was given.
6043 if test "${with_gdlib_config+set}" = set; then
6044 withval="$with_gdlib_config"
6048 GDLIB_VERSION=
6050 # do we have gdlib-config name: it can be gdlib-config or gd-config or ...
6051 if test x${GDLIB_CONFIG_NAME+set} != xset; then
6052 GDLIB_CONFIG_NAME=gdlib-config
6055 if test -n "$with_gdlib_config"; then
6056 GDLIB_CONFIG_NAME="$with_gdlib_config"
6060 # deal with optional prefix
6061 if test -n "$with_gdlib_prefix"; then
6062 GDLIB_LOOKUP_PATH="$with_gdlib_prefix/bin"
6066 # don't search the PATH if GDLIB_CONFIG_NAME is absolute filename
6067 if test -x "$GDLIB_CONFIG_NAME"; then
6069 echo "$as_me:$LINENO: checking for gdlib-config" >&5
6070 echo $ECHO_N "checking for gdlib-config... $ECHO_C" >&6
6071 GDLIB_CONFIG_PATH="$GDLIB_CONFIG_NAME"
6072 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6073 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6075 else
6076 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args.
6077 set dummy $GDLIB_CONFIG_NAME; ac_word=$2
6078 echo "$as_me:$LINENO: checking for $ac_word" >&5
6079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6080 if test "${ac_cv_path_GDLIB_CONFIG_PATH+set}" = set; then
6081 echo $ECHO_N "(cached) $ECHO_C" >&6
6082 else
6083 case $GDLIB_CONFIG_PATH in
6084 [\\/]* | ?:[\\/]*)
6085 ac_cv_path_GDLIB_CONFIG_PATH="$GDLIB_CONFIG_PATH" # Let the user override the test with a path.
6088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089 as_dummy="$GDLIB_LOOKUP_PATH:$PATH"
6090 for as_dir in $as_dummy
6092 IFS=$as_save_IFS
6093 test -z "$as_dir" && as_dir=.
6094 for ac_exec_ext in '' $ac_executable_extensions; do
6095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6096 ac_cv_path_GDLIB_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
6097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6098 break 2
6100 done
6101 done
6103 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH="no"
6105 esac
6107 GDLIB_CONFIG_PATH=$ac_cv_path_GDLIB_CONFIG_PATH
6109 if test -n "$GDLIB_CONFIG_PATH"; then
6110 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6111 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6112 else
6113 echo "$as_me:$LINENO: result: no" >&5
6114 echo "${ECHO_T}no" >&6
6120 if test ${GDLIB_CONFIG_PATH:-no} != no; then
6122 echo "$as_me:$LINENO: checking for gdlib version >= 2.0.0" >&5
6123 echo $ECHO_N "checking for gdlib version >= 2.0.0... $ECHO_C" >&6
6124 GDLIB_CONFIG_WITH_ARGS="$GDLIB_CONFIG_PATH $gdlib_config_args"
6126 GDLIB_VERSION=`$GDLIB_CONFIG_WITH_ARGS --version`
6127 gdlib_config_major_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6128 gdlib_config_minor_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6129 gdlib_config_micro_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6131 gdlib_ver_ok=
6132 if test $gdlib_config_major_version -gt 2; then
6133 gdlib_ver_ok=yes
6134 elif test $gdlib_config_major_version -eq 2; then
6136 if test $gdlib_config_minor_version -gt 0; then
6137 gdlib_ver_ok=yes
6138 elif test $gdlib_config_minor_version -eq 0; then
6139 if test $gdlib_config_micro_version -ge 0; then
6140 gdlib_ver_ok=yes
6149 if test -z "$gdlib_ver_ok"; then
6151 if test -z "$GDLIB_VERSION"; then
6152 echo "$as_me:$LINENO: result: no" >&5
6153 echo "${ECHO_T}no" >&6
6154 else
6156 echo "$as_me:$LINENO: result: no (version $GDLIB_VERSION is not new enough)" >&5
6157 echo "${ECHO_T}no (version $GDLIB_VERSION is not new enough)" >&6
6158 GDLIB_VERSION=
6163 else
6165 echo "$as_me:$LINENO: result: yes (version $GDLIB_VERSION)" >&5
6166 echo "${ECHO_T}yes (version $GDLIB_VERSION)" >&6
6167 GDLIB_CFLAGS="`$GDLIB_CONFIG_WITH_ARGS --cflags`"
6168 GDLIB_LDFLAGS="`$GDLIB_CONFIG_WITH_ARGS --ldflags`"
6169 GDLIB_LIBS="`$GDLIB_CONFIG_WITH_ARGS --libs`"
6170 mule_backup_CFLAGS="$CFLAGS"
6171 CFLAGS="$CFLAGS $GDLIB_CFLAGS"
6172 if test "${ac_cv_header_gd_h+set}" = set; then
6173 echo "$as_me:$LINENO: checking for gd.h" >&5
6174 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6175 if test "${ac_cv_header_gd_h+set}" = set; then
6176 echo $ECHO_N "(cached) $ECHO_C" >&6
6178 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6179 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6180 else
6181 # Is the header compilable?
6182 echo "$as_me:$LINENO: checking gd.h usability" >&5
6183 echo $ECHO_N "checking gd.h usability... $ECHO_C" >&6
6184 cat >conftest.$ac_ext <<_ACEOF
6185 /* confdefs.h. */
6186 _ACEOF
6187 cat confdefs.h >>conftest.$ac_ext
6188 cat >>conftest.$ac_ext <<_ACEOF
6189 /* end confdefs.h. */
6190 $ac_includes_default
6191 #include <gd.h>
6192 _ACEOF
6193 rm -f conftest.$ac_objext
6194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6195 (eval $ac_compile) 2>conftest.er1
6196 ac_status=$?
6197 grep -v '^ *+' conftest.er1 >conftest.err
6198 rm -f conftest.er1
6199 cat conftest.err >&5
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); } &&
6202 { ac_try='test -z "$ac_c_werror_flag"
6203 || test ! -s conftest.err'
6204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6205 (eval $ac_try) 2>&5
6206 ac_status=$?
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); }; } &&
6209 { ac_try='test -s conftest.$ac_objext'
6210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6211 (eval $ac_try) 2>&5
6212 ac_status=$?
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); }; }; then
6215 ac_header_compiler=yes
6216 else
6217 echo "$as_me: failed program was:" >&5
6218 sed 's/^/| /' conftest.$ac_ext >&5
6220 ac_header_compiler=no
6222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6223 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6224 echo "${ECHO_T}$ac_header_compiler" >&6
6226 # Is the header present?
6227 echo "$as_me:$LINENO: checking gd.h presence" >&5
6228 echo $ECHO_N "checking gd.h presence... $ECHO_C" >&6
6229 cat >conftest.$ac_ext <<_ACEOF
6230 /* confdefs.h. */
6231 _ACEOF
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h. */
6235 #include <gd.h>
6236 _ACEOF
6237 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6238 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6239 ac_status=$?
6240 grep -v '^ *+' conftest.er1 >conftest.err
6241 rm -f conftest.er1
6242 cat conftest.err >&5
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); } >/dev/null; then
6245 if test -s conftest.err; then
6246 ac_cpp_err=$ac_c_preproc_warn_flag
6247 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6248 else
6249 ac_cpp_err=
6251 else
6252 ac_cpp_err=yes
6254 if test -z "$ac_cpp_err"; then
6255 ac_header_preproc=yes
6256 else
6257 echo "$as_me: failed program was:" >&5
6258 sed 's/^/| /' conftest.$ac_ext >&5
6260 ac_header_preproc=no
6262 rm -f conftest.err conftest.$ac_ext
6263 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6264 echo "${ECHO_T}$ac_header_preproc" >&6
6266 # So? What about this header?
6267 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6268 yes:no: )
6269 { echo "$as_me:$LINENO: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&5
6270 echo "$as_me: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6271 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the compiler's result" >&5
6272 echo "$as_me: WARNING: gd.h: proceeding with the compiler's result" >&2;}
6273 ac_header_preproc=yes
6275 no:yes:* )
6276 { echo "$as_me:$LINENO: WARNING: gd.h: present but cannot be compiled" >&5
6277 echo "$as_me: WARNING: gd.h: present but cannot be compiled" >&2;}
6278 { echo "$as_me:$LINENO: WARNING: gd.h: check for missing prerequisite headers?" >&5
6279 echo "$as_me: WARNING: gd.h: check for missing prerequisite headers?" >&2;}
6280 { echo "$as_me:$LINENO: WARNING: gd.h: see the Autoconf documentation" >&5
6281 echo "$as_me: WARNING: gd.h: see the Autoconf documentation" >&2;}
6282 { echo "$as_me:$LINENO: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&5
6283 echo "$as_me: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&2;}
6284 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the preprocessor's result" >&5
6285 echo "$as_me: WARNING: gd.h: proceeding with the preprocessor's result" >&2;}
6286 { echo "$as_me:$LINENO: WARNING: gd.h: in the future, the compiler will take precedence" >&5
6287 echo "$as_me: WARNING: gd.h: in the future, the compiler will take precedence" >&2;}
6289 cat <<\_ASBOX
6290 ## ------------------------------ ##
6291 ## Report this to admin@amule.org ##
6292 ## ------------------------------ ##
6293 _ASBOX
6295 sed "s/^/$as_me: WARNING: /" >&2
6297 esac
6298 echo "$as_me:$LINENO: checking for gd.h" >&5
6299 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6300 if test "${ac_cv_header_gd_h+set}" = set; then
6301 echo $ECHO_N "(cached) $ECHO_C" >&6
6302 else
6303 ac_cv_header_gd_h=$ac_header_preproc
6305 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6306 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6309 if test $ac_cv_header_gd_h = yes; then
6311 else
6312 GDLIB_VERSION=
6316 CFLAGS="$mule_backup_CFLAGS"
6324 if test -n "$GDLIB_VERSION"; then
6326 CAS_DEFS="-D__GD__"
6327 GDLIB_LIBS="-lgd $GDLIB_LIBS"
6329 else
6330 CAS_DEFS=
6336 if test -z "$CAS_DEFS"; then
6337 { echo "$as_me:$LINENO: WARNING:
6338 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6339 Please check that gdlib-config is in your default path, check out
6340 LD_LIBRARY_PATH or equivalent variable.
6341 Or this might also be that your gdlib-config has other name.
6342 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6343 (replace /usr/bin/gdlib-config with a valid path to your
6344 gdlib-config).
6345 If you use compiled packages check if you have devel pack installed.
6346 To download the latest version check http://www.boutell.com/gd for
6347 sources." >&5
6348 echo "$as_me: WARNING:
6349 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6350 Please check that gdlib-config is in your default path, check out
6351 LD_LIBRARY_PATH or equivalent variable.
6352 Or this might also be that your gdlib-config has other name.
6353 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6354 (replace /usr/bin/gdlib-config with a valid path to your
6355 gdlib-config).
6356 If you use compiled packages check if you have devel pack installed.
6357 To download the latest version check http://www.boutell.com/gd for
6358 sources." >&2;}
6359 _mule_warning_0=yes
6360 _mule_has_warnings=yes
6365 else
6366 GDLIB_VERSION="not_needed"
6371 if test x$WEB = xyes; then
6374 for ac_header in sys/types.h
6376 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6378 echo "$as_me:$LINENO: checking for $ac_header" >&5
6379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6381 echo $ECHO_N "(cached) $ECHO_C" >&6
6383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6384 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6385 else
6386 # Is the header compilable?
6387 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6388 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6389 cat >conftest.$ac_ext <<_ACEOF
6390 /* confdefs.h. */
6391 _ACEOF
6392 cat confdefs.h >>conftest.$ac_ext
6393 cat >>conftest.$ac_ext <<_ACEOF
6394 /* end confdefs.h. */
6395 $ac_includes_default
6396 #include <$ac_header>
6397 _ACEOF
6398 rm -f conftest.$ac_objext
6399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6400 (eval $ac_compile) 2>conftest.er1
6401 ac_status=$?
6402 grep -v '^ *+' conftest.er1 >conftest.err
6403 rm -f conftest.er1
6404 cat conftest.err >&5
6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); } &&
6407 { ac_try='test -z "$ac_c_werror_flag"
6408 || test ! -s conftest.err'
6409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6410 (eval $ac_try) 2>&5
6411 ac_status=$?
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; } &&
6414 { ac_try='test -s conftest.$ac_objext'
6415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6416 (eval $ac_try) 2>&5
6417 ac_status=$?
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); }; }; then
6420 ac_header_compiler=yes
6421 else
6422 echo "$as_me: failed program was:" >&5
6423 sed 's/^/| /' conftest.$ac_ext >&5
6425 ac_header_compiler=no
6427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6428 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6429 echo "${ECHO_T}$ac_header_compiler" >&6
6431 # Is the header present?
6432 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6433 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6434 cat >conftest.$ac_ext <<_ACEOF
6435 /* confdefs.h. */
6436 _ACEOF
6437 cat confdefs.h >>conftest.$ac_ext
6438 cat >>conftest.$ac_ext <<_ACEOF
6439 /* end confdefs.h. */
6440 #include <$ac_header>
6441 _ACEOF
6442 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6443 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6444 ac_status=$?
6445 grep -v '^ *+' conftest.er1 >conftest.err
6446 rm -f conftest.er1
6447 cat conftest.err >&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); } >/dev/null; then
6450 if test -s conftest.err; then
6451 ac_cpp_err=$ac_c_preproc_warn_flag
6452 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6453 else
6454 ac_cpp_err=
6456 else
6457 ac_cpp_err=yes
6459 if test -z "$ac_cpp_err"; then
6460 ac_header_preproc=yes
6461 else
6462 echo "$as_me: failed program was:" >&5
6463 sed 's/^/| /' conftest.$ac_ext >&5
6465 ac_header_preproc=no
6467 rm -f conftest.err conftest.$ac_ext
6468 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6469 echo "${ECHO_T}$ac_header_preproc" >&6
6471 # So? What about this header?
6472 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6473 yes:no: )
6474 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6475 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6477 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6478 ac_header_preproc=yes
6480 no:yes:* )
6481 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6482 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6483 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6484 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6485 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6486 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6487 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6488 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6490 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6491 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6492 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6494 cat <<\_ASBOX
6495 ## ------------------------------ ##
6496 ## Report this to admin@amule.org ##
6497 ## ------------------------------ ##
6498 _ASBOX
6500 sed "s/^/$as_me: WARNING: /" >&2
6502 esac
6503 echo "$as_me:$LINENO: checking for $ac_header" >&5
6504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6506 echo $ECHO_N "(cached) $ECHO_C" >&6
6507 else
6508 eval "$as_ac_Header=\$ac_header_preproc"
6510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6511 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6514 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6515 cat >>confdefs.h <<_ACEOF
6516 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6517 _ACEOF
6521 done
6523 echo "$as_me:$LINENO: checking for a POSIX compliant regex library" >&5
6524 echo $ECHO_N "checking for a POSIX compliant regex library... $ECHO_C" >&6
6525 regex_found=no
6526 for REGEX_LIBS in '' -lgnurx -lregex; do
6527 mule_backup_LIBS="$LIBS"
6528 LIBS="$REGEX_LIBS $LIBS"
6529 cat >conftest.$ac_ext <<_ACEOF
6531 /* confdefs.h. */
6532 _ACEOF
6533 cat confdefs.h >>conftest.$ac_ext
6534 cat >>conftest.$ac_ext <<_ACEOF
6535 /* end confdefs.h. */
6537 #ifdef HAVE_SYS_TYPES_H
6538 # include <sys/types.h>
6539 #endif
6540 #include <regex.h>
6543 main ()
6546 regex_t preg;
6547 regcomp(&preg, "", REG_EXTENDED);
6548 regmatch_t *pmatch;
6549 regexec(&preg, "", 0, pmatch, 0);
6550 regfree(&preg);
6553 return 0;
6556 _ACEOF
6557 rm -f conftest.$ac_objext conftest$ac_exeext
6558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6559 (eval $ac_link) 2>conftest.er1
6560 ac_status=$?
6561 grep -v '^ *+' conftest.er1 >conftest.err
6562 rm -f conftest.er1
6563 cat conftest.err >&5
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); } &&
6566 { ac_try='test -z "$ac_c_werror_flag"
6567 || test ! -s conftest.err'
6568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6569 (eval $ac_try) 2>&5
6570 ac_status=$?
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); }; } &&
6573 { ac_try='test -s conftest$ac_exeext'
6574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6575 (eval $ac_try) 2>&5
6576 ac_status=$?
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); }; }; then
6580 LIBS="$mule_backup_LIBS"
6581 regex_found=yes
6582 break;
6584 else
6585 echo "$as_me: failed program was:" >&5
6586 sed 's/^/| /' conftest.$ac_ext >&5
6588 LIBS="$mule_backup_LIBS"
6590 rm -f conftest.err conftest.$ac_objext \
6591 conftest$ac_exeext conftest.$ac_ext
6592 done
6593 echo "$as_me:$LINENO: result: $regex_found" >&5
6594 echo "${ECHO_T}$regex_found" >&6
6595 if test $regex_found = yes; then
6597 else
6599 WEB=disabled
6600 { echo "$as_me:$LINENO: WARNING:
6601 amuleweb has been disabled because configure could not find a POSIX
6602 compliant regex library." >&5
6603 echo "$as_me: WARNING:
6604 amuleweb has been disabled because configure could not find a POSIX
6605 compliant regex library." >&2;}
6606 _mule_warning_1=yes
6607 _mule_has_warnings=yes
6616 if test x$WEB = xyes; then
6619 # Check whether --with-libpng-prefix or --without-libpng-prefix was given.
6620 if test "${with_libpng_prefix+set}" = set; then
6621 withval="$with_libpng_prefix"
6625 # Check whether --with-libpng-config or --without-libpng-config was given.
6626 if test "${with_libpng_config+set}" = set; then
6627 withval="$with_libpng_config"
6631 LIBPNG_VERSION=
6633 # do we have libpng-config name: it can be libpng-config or libpng12-config or ...
6634 if test x${LIBPNG_CONFIG_NAME+set} != xset; then
6635 LIBPNG_CONFIG_NAME=libpng-config
6638 if test -n "$with_libpng_config"; then
6639 LIBPNG_CONFIG_NAME="$with_libpng_config"
6643 # deal with optional prefix
6644 if test -n "$with_libpng_prefix"; then
6645 LIBPNG_LOOKUP_PATH="$with_libpng_prefix/bin"
6649 # don't search the PATH if LIBPNG_CONFIG_NAME is absolute filename
6650 if test -x "$LIBPNG_CONFIG_NAME"; then
6652 echo "$as_me:$LINENO: checking for libpng-config" >&5
6653 echo $ECHO_N "checking for libpng-config... $ECHO_C" >&6
6654 LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_NAME"
6655 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6656 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6658 else
6659 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
6660 set dummy $LIBPNG_CONFIG_NAME; ac_word=$2
6661 echo "$as_me:$LINENO: checking for $ac_word" >&5
6662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6663 if test "${ac_cv_path_LIBPNG_CONFIG_PATH+set}" = set; then
6664 echo $ECHO_N "(cached) $ECHO_C" >&6
6665 else
6666 case $LIBPNG_CONFIG_PATH in
6667 [\\/]* | ?:[\\/]*)
6668 ac_cv_path_LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
6671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672 as_dummy="$LIBPNG_LOOKUP_PATH:$PATH"
6673 for as_dir in $as_dummy
6675 IFS=$as_save_IFS
6676 test -z "$as_dir" && as_dir=.
6677 for ac_exec_ext in '' $ac_executable_extensions; do
6678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6679 ac_cv_path_LIBPNG_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
6680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6681 break 2
6683 done
6684 done
6686 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH="no"
6688 esac
6690 LIBPNG_CONFIG_PATH=$ac_cv_path_LIBPNG_CONFIG_PATH
6692 if test -n "$LIBPNG_CONFIG_PATH"; then
6693 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6694 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6695 else
6696 echo "$as_me:$LINENO: result: no" >&5
6697 echo "${ECHO_T}no" >&6
6703 if test ${LIBPNG_CONFIG_PATH:-no} != no; then
6705 echo "$as_me:$LINENO: checking for libpng version >= 1.2.0" >&5
6706 echo $ECHO_N "checking for libpng version >= 1.2.0... $ECHO_C" >&6
6708 LIBPNG_CONFIG_WITH_ARGS="$LIBPNG_CONFIG_PATH $libpng_config_args"
6710 LIBPNG_VERSION=`$LIBPNG_CONFIG_WITH_ARGS --version`
6711 libpng_config_major_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6712 libpng_config_minor_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6713 libpng_config_micro_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6715 libpng_ver_ok=
6716 if test $libpng_config_major_version -gt 1; then
6717 libpng_ver_ok=yes
6718 elif test $libpng_config_major_version -eq 1; then
6720 if test $libpng_config_minor_version -gt 2; then
6721 libpng_ver_ok=yes
6722 elif test $libpng_config_minor_version -eq 2; then
6723 if test $libpng_config_micro_version -ge 0; then
6724 libpng_ver_ok=yes
6733 if test -z "$libpng_ver_ok"; then
6735 if test -z "$LIBPNG_VERSION"; then
6736 echo "$as_me:$LINENO: result: no" >&5
6737 echo "${ECHO_T}no" >&6
6738 else
6740 echo "$as_me:$LINENO: result: no (version $LIBPNG_VERSION is not new enough)" >&5
6741 echo "${ECHO_T}no (version $LIBPNG_VERSION is not new enough)" >&6
6742 LIBPNG_VERSION=
6747 else
6749 LIBPNG_LIBS=`$LIBPNG_CONFIG_WITH_ARGS --libs`
6750 LIBPNG_LDFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --ldflags | sed -e "s/ *${LIBPNG_LIBS}$//"`
6751 LIBPNG_CFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
6752 echo "$as_me:$LINENO: result: yes (version $LIBPNG_VERSION)" >&5
6753 echo "${ECHO_T}yes (version $LIBPNG_VERSION)" >&6
6761 if test -n "$LIBPNG_VERSION"; then
6762 AMULEWEB_DEFS="-DWITH_LIBPNG"
6763 else
6765 { echo "$as_me:$LINENO: WARNING:
6766 libpng >= 1.2.0 not found.
6767 amuleweb will be compiled but file download progress bar images will
6768 NOT be generated." >&5
6769 echo "$as_me: WARNING:
6770 libpng >= 1.2.0 not found.
6771 amuleweb will be compiled but file download progress bar images will
6772 NOT be generated." >&2;}
6773 _mule_warning_2=yes
6774 _mule_has_warnings=yes
6783 else
6784 LIBPNG_VERSION="not_needed"
6789 # Check for perl File::Copy
6790 echo "$as_me:$LINENO: checking for File::Copy" >&5
6791 echo $ECHO_N "checking for File::Copy... $ECHO_C" >&6
6792 if perl -e "require File::Copy" 2>/dev/null; then
6793 echo "$as_me:$LINENO: result: ok" >&5
6794 echo "${ECHO_T}ok" >&6
6795 else
6796 { { echo "$as_me:$LINENO: error: File::Copy perl module is required" >&5
6797 echo "$as_me: error: File::Copy perl module is required" >&2;}
6798 { (exit 1); exit 1; }; }
6803 # Check if we need the GUI
6804 echo "$as_me:$LINENO: checking whether we need the GUI" >&5
6805 echo $ECHO_N "checking whether we need the GUI... $ECHO_C" >&6
6806 if test x$MONOLITHIC = xyes; then
6807 need_gui=yes
6810 if test x$WXCAS = xyes; then
6811 need_gui=yes
6814 if test x$ALC = xyes; then
6815 need_gui=yes
6818 if test x$AMULE_GUI = xyes; then
6819 need_gui=yes
6822 if test x${need_gui:+set} != xset; then
6823 need_gui=no
6826 echo "$as_me:$LINENO: result: $need_gui" >&5
6827 echo "${ECHO_T}$need_gui" >&6
6829 # Check if we need to install skins
6830 if test x$MONOLITHIC = xyes; then
6831 INSTALL_SKINS=yes
6834 if test x$AMULE_GUI = xyes; then
6835 INSTALL_SKINS=yes
6838 if test x${INSTALL_SKINS:+set} != xset; then
6839 INSTALL_SKINS=no
6843 # Check for GeoIP (required for IP2Country capability)
6845 # Check whether --enable-geoip or --disable-geoip was given.
6846 if test "${enable_geoip+set}" = set; then
6847 enableval="$enable_geoip"
6848 ENABLE_IP2COUNTRY=$enableval
6849 else
6850 ENABLE_IP2COUNTRY=no
6853 if test ${ENABLE_IP2COUNTRY:-no} = yes; then
6856 # Check whether --with-geoip-headers or --without-geoip-headers was given.
6857 if test "${with_geoip_headers+set}" = set; then
6858 withval="$with_geoip_headers"
6859 GEOIP_CPPFLAGS="-I$withval"
6862 # Check whether --with-geoip-lib or --without-geoip-lib was given.
6863 if test "${with_geoip_lib+set}" = set; then
6864 withval="$with_geoip_lib"
6865 GEOIP_LDFLAGS="-L$withval"
6868 mule_backup_CPPFLAGS="$CPPFLAGS"
6869 CPPFLAGS="$CPPFLAGS $GEOIP_CPPFLAGS"
6870 mule_backup_LDFLAGS="$LDFLAGS"
6871 LDFLAGS="$LDFLAGS $GEOIP_LDFLAGS"
6872 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6873 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
6874 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
6875 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6876 echo $ECHO_N "(cached) $ECHO_C" >&6
6878 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
6879 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
6880 else
6881 # Is the header compilable?
6882 echo "$as_me:$LINENO: checking GeoIP.h usability" >&5
6883 echo $ECHO_N "checking GeoIP.h usability... $ECHO_C" >&6
6884 cat >conftest.$ac_ext <<_ACEOF
6885 /* confdefs.h. */
6886 _ACEOF
6887 cat confdefs.h >>conftest.$ac_ext
6888 cat >>conftest.$ac_ext <<_ACEOF
6889 /* end confdefs.h. */
6890 $ac_includes_default
6891 #include <GeoIP.h>
6892 _ACEOF
6893 rm -f conftest.$ac_objext
6894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6895 (eval $ac_compile) 2>conftest.er1
6896 ac_status=$?
6897 grep -v '^ *+' conftest.er1 >conftest.err
6898 rm -f conftest.er1
6899 cat conftest.err >&5
6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); } &&
6902 { ac_try='test -z "$ac_c_werror_flag"
6903 || test ! -s conftest.err'
6904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6905 (eval $ac_try) 2>&5
6906 ac_status=$?
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); }; } &&
6909 { ac_try='test -s conftest.$ac_objext'
6910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6911 (eval $ac_try) 2>&5
6912 ac_status=$?
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); }; }; then
6915 ac_header_compiler=yes
6916 else
6917 echo "$as_me: failed program was:" >&5
6918 sed 's/^/| /' conftest.$ac_ext >&5
6920 ac_header_compiler=no
6922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6923 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6924 echo "${ECHO_T}$ac_header_compiler" >&6
6926 # Is the header present?
6927 echo "$as_me:$LINENO: checking GeoIP.h presence" >&5
6928 echo $ECHO_N "checking GeoIP.h presence... $ECHO_C" >&6
6929 cat >conftest.$ac_ext <<_ACEOF
6930 /* confdefs.h. */
6931 _ACEOF
6932 cat confdefs.h >>conftest.$ac_ext
6933 cat >>conftest.$ac_ext <<_ACEOF
6934 /* end confdefs.h. */
6935 #include <GeoIP.h>
6936 _ACEOF
6937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6938 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6939 ac_status=$?
6940 grep -v '^ *+' conftest.er1 >conftest.err
6941 rm -f conftest.er1
6942 cat conftest.err >&5
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); } >/dev/null; then
6945 if test -s conftest.err; then
6946 ac_cpp_err=$ac_c_preproc_warn_flag
6947 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6948 else
6949 ac_cpp_err=
6951 else
6952 ac_cpp_err=yes
6954 if test -z "$ac_cpp_err"; then
6955 ac_header_preproc=yes
6956 else
6957 echo "$as_me: failed program was:" >&5
6958 sed 's/^/| /' conftest.$ac_ext >&5
6960 ac_header_preproc=no
6962 rm -f conftest.err conftest.$ac_ext
6963 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6964 echo "${ECHO_T}$ac_header_preproc" >&6
6966 # So? What about this header?
6967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6968 yes:no: )
6969 { echo "$as_me:$LINENO: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&5
6970 echo "$as_me: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6971 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the compiler's result" >&5
6972 echo "$as_me: WARNING: GeoIP.h: proceeding with the compiler's result" >&2;}
6973 ac_header_preproc=yes
6975 no:yes:* )
6976 { echo "$as_me:$LINENO: WARNING: GeoIP.h: present but cannot be compiled" >&5
6977 echo "$as_me: WARNING: GeoIP.h: present but cannot be compiled" >&2;}
6978 { echo "$as_me:$LINENO: WARNING: GeoIP.h: check for missing prerequisite headers?" >&5
6979 echo "$as_me: WARNING: GeoIP.h: check for missing prerequisite headers?" >&2;}
6980 { echo "$as_me:$LINENO: WARNING: GeoIP.h: see the Autoconf documentation" >&5
6981 echo "$as_me: WARNING: GeoIP.h: see the Autoconf documentation" >&2;}
6982 { echo "$as_me:$LINENO: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&5
6983 echo "$as_me: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&2;}
6984 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&5
6985 echo "$as_me: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&2;}
6986 { echo "$as_me:$LINENO: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&5
6987 echo "$as_me: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&2;}
6989 cat <<\_ASBOX
6990 ## ------------------------------ ##
6991 ## Report this to admin@amule.org ##
6992 ## ------------------------------ ##
6993 _ASBOX
6995 sed "s/^/$as_me: WARNING: /" >&2
6997 esac
6998 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
6999 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
7000 if test "${ac_cv_header_GeoIP_h+set}" = set; then
7001 echo $ECHO_N "(cached) $ECHO_C" >&6
7002 else
7003 ac_cv_header_GeoIP_h=$ac_header_preproc
7005 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
7006 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
7009 if test $ac_cv_header_GeoIP_h = yes; then
7011 echo "$as_me:$LINENO: checking for GeoIP_open in -lGeoIP" >&5
7012 echo $ECHO_N "checking for GeoIP_open in -lGeoIP... $ECHO_C" >&6
7013 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then
7014 echo $ECHO_N "(cached) $ECHO_C" >&6
7015 else
7016 ac_check_lib_save_LIBS=$LIBS
7017 LIBS="-lGeoIP $LIBS"
7018 cat >conftest.$ac_ext <<_ACEOF
7019 /* confdefs.h. */
7020 _ACEOF
7021 cat confdefs.h >>conftest.$ac_ext
7022 cat >>conftest.$ac_ext <<_ACEOF
7023 /* end confdefs.h. */
7025 /* Override any gcc2 internal prototype to avoid an error. */
7026 #ifdef __cplusplus
7027 extern "C"
7028 #endif
7029 /* We use char because int might match the return type of a gcc2
7030 builtin and then its argument prototype would still apply. */
7031 char GeoIP_open ();
7033 main ()
7035 GeoIP_open ();
7037 return 0;
7039 _ACEOF
7040 rm -f conftest.$ac_objext conftest$ac_exeext
7041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7042 (eval $ac_link) 2>conftest.er1
7043 ac_status=$?
7044 grep -v '^ *+' conftest.er1 >conftest.err
7045 rm -f conftest.er1
7046 cat conftest.err >&5
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); } &&
7049 { ac_try='test -z "$ac_c_werror_flag"
7050 || test ! -s conftest.err'
7051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7052 (eval $ac_try) 2>&5
7053 ac_status=$?
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); }; } &&
7056 { ac_try='test -s conftest$ac_exeext'
7057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7058 (eval $ac_try) 2>&5
7059 ac_status=$?
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); }; }; then
7062 ac_cv_lib_GeoIP_GeoIP_open=yes
7063 else
7064 echo "$as_me: failed program was:" >&5
7065 sed 's/^/| /' conftest.$ac_ext >&5
7067 ac_cv_lib_GeoIP_GeoIP_open=no
7069 rm -f conftest.err conftest.$ac_objext \
7070 conftest$ac_exeext conftest.$ac_ext
7071 LIBS=$ac_check_lib_save_LIBS
7073 echo "$as_me:$LINENO: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
7074 echo "${ECHO_T}$ac_cv_lib_GeoIP_GeoIP_open" >&6
7075 if test $ac_cv_lib_GeoIP_GeoIP_open = yes; then
7078 cat >>confdefs.h <<\_ACEOF
7079 #define SUPPORT_GEOIP 1
7080 _ACEOF
7082 GEOIP_LIBS="-lGeoIP"
7083 if test x$SYS = xwin32; then
7084 GEOIP_LIBS="$GEOIP_LIBS -lwsock32"
7087 GEOIP_CPPFLAGS="$GEOIP_CPPFLAGS -DENABLE_IP2COUNTRY=1"
7089 # Check whether --with-geoip-static or --without-geoip-static was given.
7090 if test "${with_geoip_static+set}" = set; then
7091 withval="$with_geoip_static"
7093 if test "$withval" != "no" -a ${enable_static:-no} = no; then
7095 mule_backup_LIBS="$LIBS"
7096 LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic $LIBS"
7097 cat >conftest.$ac_ext <<_ACEOF
7099 /* confdefs.h. */
7100 _ACEOF
7101 cat confdefs.h >>conftest.$ac_ext
7102 cat >>conftest.$ac_ext <<_ACEOF
7103 /* end confdefs.h. */
7105 #include <GeoIP.h>
7108 main ()
7111 GeoIP *g = GeoIP_new(GEOIP_STANDARD);
7114 return 0;
7117 _ACEOF
7118 rm -f conftest.$ac_objext conftest$ac_exeext
7119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7120 (eval $ac_link) 2>conftest.er1
7121 ac_status=$?
7122 grep -v '^ *+' conftest.er1 >conftest.err
7123 rm -f conftest.er1
7124 cat conftest.err >&5
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); } &&
7127 { ac_try='test -z "$ac_c_werror_flag"
7128 || test ! -s conftest.err'
7129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7130 (eval $ac_try) 2>&5
7131 ac_status=$?
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); }; } &&
7134 { ac_try='test -s conftest$ac_exeext'
7135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7136 (eval $ac_try) 2>&5
7137 ac_status=$?
7138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139 (exit $ac_status); }; }; then
7141 GEOIP_LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic"
7143 else
7144 echo "$as_me: failed program was:" >&5
7145 sed 's/^/| /' conftest.$ac_ext >&5
7148 { echo "$as_me:$LINENO: WARNING:
7149 Cannot link GeoIP statically, because your linker ($LD) does not
7150 support it." >&5
7151 echo "$as_me: WARNING:
7152 Cannot link GeoIP statically, because your linker ($LD) does not
7153 support it." >&2;}
7154 _mule_warning_3=yes
7155 _mule_has_warnings=yes
7159 rm -f conftest.err conftest.$ac_objext \
7160 conftest$ac_exeext conftest.$ac_ext
7161 LIBS="$mule_backup_LIBS"
7168 else
7170 ENABLE_IP2COUNTRY=disabled
7171 { echo "$as_me:$LINENO: WARNING:
7172 GeoIP support has been disabled because the GeoIP libraries were not
7173 found" >&5
7174 echo "$as_me: WARNING:
7175 GeoIP support has been disabled because the GeoIP libraries were not
7176 found" >&2;}
7177 _mule_warning_4=yes
7178 _mule_has_warnings=yes
7184 else
7186 ENABLE_IP2COUNTRY=disabled
7187 { echo "$as_me:$LINENO: WARNING:
7188 GeoIP support has been disabled because the GeoIP header files were
7189 not found" >&5
7190 echo "$as_me: WARNING:
7191 GeoIP support has been disabled because the GeoIP header files were
7192 not found" >&2;}
7193 _mule_warning_5=yes
7194 _mule_has_warnings=yes
7201 CPPFLAGS="$mule_backup_CPPFLAGS"
7202 LDFLAGS="$mule_backup_LDFLAGS"
7208 # Check for wx
7211 # Check whether --with-wxdir or --without-wxdir was given.
7212 if test "${with_wxdir+set}" = set; then
7213 withval="$with_wxdir"
7214 wx_config_name="$withval/wx-config"
7215 wx_config_args="--inplace"
7218 # Check whether --with-wx-config or --without-wx-config was given.
7219 if test "${with_wx_config+set}" = set; then
7220 withval="$with_wx_config"
7221 wx_config_name="$withval"
7224 # Check whether --with-wx-prefix or --without-wx-prefix was given.
7225 if test "${with_wx_prefix+set}" = set; then
7226 withval="$with_wx_prefix"
7227 wx_config_prefix="$withval"
7228 else
7229 wx_config_prefix=""
7232 # Check whether --with-wx-exec-prefix or --without-wx-exec-prefix was given.
7233 if test "${with_wx_exec_prefix+set}" = set; then
7234 withval="$with_wx_exec_prefix"
7235 wx_config_exec_prefix="$withval"
7236 else
7237 wx_config_exec_prefix=""
7251 # Check whether --with-toolkit or --without-toolkit was given.
7252 if test "${with_toolkit+set}" = set; then
7253 withval="$with_toolkit"
7255 else
7256 withval="auto"
7259 echo "$as_me:$LINENO: checking for the --with-toolkit option" >&5
7260 echo $ECHO_N "checking for the --with-toolkit option... $ECHO_C" >&6
7261 if test "$withval" = "auto" ; then
7262 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7263 echo "${ECHO_T}will be automatically detected" >&6
7264 TOOLKIT="auto"
7265 else
7266 TOOLKIT="$withval"
7268 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a \
7269 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
7270 "$TOOLKIT" != "x11" -a "$TOOLKIT" != "mac" -a \
7271 "$TOOLKIT" != "mgl" -a "$TOOLKIT" != "dfb" -a \
7272 "$TOOLKIT" != "base" -a "$TOOLKIT" != "cocoa"; then
7273 { { echo "$as_me:$LINENO: error:
7274 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa)
7275 " >&5
7276 echo "$as_me: error:
7277 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa)
7278 " >&2;}
7279 { (exit 1); exit 1; }; }
7282 echo "$as_me:$LINENO: result: $TOOLKIT" >&5
7283 echo "${ECHO_T}$TOOLKIT" >&6
7290 # Check whether --with-wxshared or --without-wxshared was given.
7291 if test "${with_wxshared+set}" = set; then
7292 withval="$with_wxshared"
7294 else
7295 withval="auto"
7298 echo "$as_me:$LINENO: checking for the --with-wxshared option" >&5
7299 echo $ECHO_N "checking for the --with-wxshared option... $ECHO_C" >&6
7300 if test "$withval" = "yes" ; then
7301 echo "$as_me:$LINENO: result: yes" >&5
7302 echo "${ECHO_T}yes" >&6
7303 WX_SHARED=1
7305 elif test "1" = "1" -a "$withval" = "no" ; then
7306 echo "$as_me:$LINENO: result: no" >&5
7307 echo "${ECHO_T}no" >&6
7308 WX_SHARED=0
7309 elif test "$withval" = "auto" ; then
7310 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7311 echo "${ECHO_T}will be automatically detected" >&6
7312 WX_SHARED="auto"
7313 else
7314 { { echo "$as_me:$LINENO: error:
7315 Unrecognized option value (allowed values: yes, auto)
7316 " >&5
7317 echo "$as_me: error:
7318 Unrecognized option value (allowed values: yes, auto)
7319 " >&2;}
7320 { (exit 1); exit 1; }; }
7327 # Check whether --with-wxdebug or --without-wxdebug was given.
7328 if test "${with_wxdebug+set}" = set; then
7329 withval="$with_wxdebug"
7331 else
7332 withval="auto"
7335 echo "$as_me:$LINENO: checking for the --with-wxdebug option" >&5
7336 echo $ECHO_N "checking for the --with-wxdebug option... $ECHO_C" >&6
7337 if test "$withval" = "yes" ; then
7338 echo "$as_me:$LINENO: result: yes" >&5
7339 echo "${ECHO_T}yes" >&6
7340 WX_DEBUG=1
7342 elif test "1" = "1" -a "$withval" = "no" ; then
7343 echo "$as_me:$LINENO: result: no" >&5
7344 echo "${ECHO_T}no" >&6
7345 WX_DEBUG=0
7346 elif test "$withval" = "auto" ; then
7347 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7348 echo "${ECHO_T}will be automatically detected" >&6
7349 WX_DEBUG="auto"
7350 else
7351 { { echo "$as_me:$LINENO: error:
7352 Unrecognized option value (allowed values: yes, auto)
7353 " >&5
7354 echo "$as_me: error:
7355 Unrecognized option value (allowed values: yes, auto)
7356 " >&2;}
7357 { (exit 1); exit 1; }; }
7364 # Check whether --with-wxversion or --without-wxversion was given.
7365 if test "${with_wxversion+set}" = set; then
7366 withval="$with_wxversion"
7368 else
7369 withval="auto"
7372 echo "$as_me:$LINENO: checking for the --with-wxversion option" >&5
7373 echo $ECHO_N "checking for the --with-wxversion option... $ECHO_C" >&6
7374 if test "$withval" = "auto" ; then
7375 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7376 echo "${ECHO_T}will be automatically detected" >&6
7377 WX_VERSION="auto"
7378 else
7380 wx_requested_major_version=`echo $withval | \
7381 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
7382 wx_requested_minor_version=`echo $withval | \
7383 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
7385 if test "${#wx_requested_major_version}" != "1" -o \
7386 "${#wx_requested_minor_version}" != "1" ; then
7387 { { echo "$as_me:$LINENO: error:
7388 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7389 " >&5
7390 echo "$as_me: error:
7391 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7392 " >&2;}
7393 { (exit 1); exit 1; }; }
7396 WX_VERSION="$wx_requested_major_version"".""$wx_requested_minor_version"
7397 echo "$as_me:$LINENO: result: $WX_VERSION" >&5
7398 echo "${ECHO_T}$WX_VERSION" >&6
7402 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7403 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
7404 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
7405 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
7406 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
7407 echo "[dbg] VERSION: $VERSION, WX_VERSION: $WX_VERSION"
7410 # Force using a static wxWidgets library if the executable is to be linked statically.
7411 if test ${enable_static:-no} = yes; then
7412 WX_SHARED=0
7415 # Force using a unicode build of the library
7416 WX_UNICODE=1
7417 DEBUG=$WX_DEBUG
7419 if test "$WX_SHARED" = "1" ; then
7420 WXCONFIG_FLAGS="--static=no "
7421 elif test "$WX_SHARED" = "0" ; then
7422 WXCONFIG_FLAGS="--static=yes "
7425 if test "$WX_DEBUG" = "1" ; then
7426 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=yes "
7427 elif test "$WX_DEBUG" = "0" ; then
7428 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=no "
7431 if test "$WX_UNICODE" = "1" ; then
7432 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=yes "
7433 elif test "$WX_UNICODE" = "0" ; then
7434 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=no "
7437 if test "$TOOLKIT" != "auto" ; then
7438 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
7441 if test "$WX_VERSION" != "auto" ; then
7442 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--version=$WX_VERSION "
7445 WXCONFIG_FLAGS=${WXCONFIG_FLAGS% }
7447 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7448 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
7452 if test x${WX_CONFIG_NAME+set} != xset ; then
7453 WX_CONFIG_NAME=wx-config
7456 if test "x$wx_config_name" != x ; then
7457 WX_CONFIG_NAME="$wx_config_name"
7460 if test x$wx_config_exec_prefix != x ; then
7461 wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
7462 WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
7464 if test x$wx_config_prefix != x ; then
7465 wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
7466 WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
7468 if test "$cross_compiling" = "yes"; then
7469 wx_config_args="$wx_config_args --host=$host_alias"
7472 if test -x "$WX_CONFIG_NAME" ; then
7473 echo "$as_me:$LINENO: checking for wx-config" >&5
7474 echo $ECHO_N "checking for wx-config... $ECHO_C" >&6
7475 WX_CONFIG_PATH="$WX_CONFIG_NAME"
7476 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7477 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7478 else
7479 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
7480 set dummy $WX_CONFIG_NAME; ac_word=$2
7481 echo "$as_me:$LINENO: checking for $ac_word" >&5
7482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7483 if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then
7484 echo $ECHO_N "(cached) $ECHO_C" >&6
7485 else
7486 case $WX_CONFIG_PATH in
7487 [\\/]* | ?:[\\/]*)
7488 ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path.
7491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492 as_dummy=""$WX_LOOKUP_PATH:$PATH""
7493 for as_dir in $as_dummy
7495 IFS=$as_save_IFS
7496 test -z "$as_dir" && as_dir=.
7497 for ac_exec_ext in '' $ac_executable_extensions; do
7498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7499 ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7501 break 2
7503 done
7504 done
7506 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no"
7508 esac
7510 WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH
7512 if test -n "$WX_CONFIG_PATH"; then
7513 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7514 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7515 else
7516 echo "$as_me:$LINENO: result: no" >&5
7517 echo "${ECHO_T}no" >&6
7522 if test "$WX_CONFIG_PATH" != "no" ; then
7523 WX_VERSION_FULL=""
7525 min_wx_version=2.8.0
7526 if test -z "$WXCONFIG_FLAGS" ; then
7527 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version" >&5
7528 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version... $ECHO_C" >&6
7529 else
7530 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
7531 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... $ECHO_C" >&6
7534 WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS "
7536 WX_VERSION_FULL=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
7537 wx_config_major_version=`echo $WX_VERSION_FULL | \
7538 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7539 wx_config_minor_version=`echo $WX_VERSION_FULL | \
7540 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7541 wx_config_micro_version=`echo $WX_VERSION_FULL | \
7542 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7544 wx_requested_major_version=`echo $min_wx_version | \
7545 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7546 wx_requested_minor_version=`echo $min_wx_version | \
7547 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7548 wx_requested_micro_version=`echo $min_wx_version | \
7549 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7552 wx_ver_ok=""
7553 if test "x$WX_VERSION_FULL" != x ; then
7554 if test $wx_config_major_version -gt $wx_requested_major_version; then
7555 wx_ver_ok=yes
7556 else
7557 if test $wx_config_major_version -eq $wx_requested_major_version; then
7558 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
7559 wx_ver_ok=yes
7560 else
7561 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
7562 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
7563 wx_ver_ok=yes
7572 if test -n "$wx_ver_ok"; then
7574 echo "$as_me:$LINENO: result: yes (version $WX_VERSION_FULL)" >&5
7575 echo "${ECHO_T}yes (version $WX_VERSION_FULL)" >&6
7576 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs`
7578 echo "$as_me:$LINENO: checking for wxWidgets static library" >&5
7579 echo $ECHO_N "checking for wxWidgets static library... $ECHO_C" >&6
7580 WX_LIBS_STATIC=`$WX_CONFIG_WITH_ARGS --static --libs 2>/dev/null`
7581 if test "x$WX_LIBS_STATIC" = "x"; then
7582 echo "$as_me:$LINENO: result: no" >&5
7583 echo "${ECHO_T}no" >&6
7584 else
7585 echo "$as_me:$LINENO: result: yes" >&5
7586 echo "${ECHO_T}yes" >&6
7589 wx_has_cppflags=""
7590 if test $wx_config_major_version -gt 2; then
7591 wx_has_cppflags=yes
7592 else
7593 if test $wx_config_major_version -eq 2; then
7594 if test $wx_config_minor_version -gt 2; then
7595 wx_has_cppflags=yes
7596 else
7597 if test $wx_config_minor_version -eq 2; then
7598 if test $wx_config_micro_version -ge 6; then
7599 wx_has_cppflags=yes
7606 wx_has_rescomp=""
7607 if test $wx_config_major_version -gt 2; then
7608 wx_has_rescomp=yes
7609 else
7610 if test $wx_config_major_version -eq 2; then
7611 if test $wx_config_minor_version -ge 7; then
7612 wx_has_rescomp=yes
7616 if test "x$wx_has_rescomp" = x ; then
7617 WX_RESCOMP=
7618 else
7619 WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
7622 if test "x$wx_has_cppflags" = x ; then
7623 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
7624 WX_CPPFLAGS=$WX_CFLAGS
7625 WX_CXXFLAGS=$WX_CFLAGS
7627 WX_CFLAGS_ONLY=$WX_CFLAGS
7628 WX_CXXFLAGS_ONLY=$WX_CFLAGS
7629 else
7630 WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags`
7631 WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags`
7632 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
7634 WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
7635 WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
7638 wxWin=1
7640 else
7642 if test "x$WX_VERSION_FULL" = x; then
7643 echo "$as_me:$LINENO: result: no" >&5
7644 echo "${ECHO_T}no" >&6
7645 else
7646 echo "$as_me:$LINENO: result: no (version $WX_VERSION_FULL is not new enough)" >&5
7647 echo "${ECHO_T}no (version $WX_VERSION_FULL is not new enough)" >&6
7650 WX_CFLAGS=""
7651 WX_CPPFLAGS=""
7652 WX_CXXFLAGS=""
7653 WX_LIBS=""
7654 WX_LIBS_STATIC=""
7655 WX_RESCOMP=""
7657 if test ! -z "$WXCONFIG_FLAGS"; then
7659 wx_error_message="
7660 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
7661 build with the following settings:
7662 $WXCONFIG_FLAGS
7663 but such build is not available.
7665 To see the wxWidgets builds available on this system, please use
7666 'wx-config --list' command. To use the default build, returned by
7667 'wx-config --selected-config', use the options with their 'auto'
7668 default values."
7672 wx_error_message="
7673 The requested wxWidgets build couldn't be found.
7674 $wx_error_message
7676 If you still get this error, then check that 'wx-config' is
7677 in path, the directory where wxWidgets libraries are installed
7678 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
7679 or equivalent variable and wxWidgets version is 2.8.0 or above."
7681 { { echo "$as_me:$LINENO: error: $wx_error_message" >&5
7682 echo "$as_me: error: $wx_error_message" >&2;}
7683 { (exit 1); exit 1; }; }
7686 else
7688 WX_CFLAGS=""
7689 WX_CPPFLAGS=""
7690 WX_CXXFLAGS=""
7691 WX_LIBS=""
7692 WX_LIBS_STATIC=""
7693 WX_RESCOMP=""
7709 WX_VERSION_MAJOR="$wx_config_major_version"
7710 WX_VERSION_MINOR="$wx_config_minor_version"
7714 if test "$wxWin" != 1; then
7715 { { echo "$as_me:$LINENO: error:
7716 wxWidgets must be installed on your system but wx-config
7717 script couldn't be found. Please check that wx-config is
7718 in path or specified by --with-wx-config=path flag, the
7719 directory where wxWidgets libraries are installed (returned
7720 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7721 equivalent variable and wxWidgets version is 2.8.0 or above.
7722 " >&5
7723 echo "$as_me: error:
7724 wxWidgets must be installed on your system but wx-config
7725 script couldn't be found. Please check that wx-config is
7726 in path or specified by --with-wx-config=path flag, the
7727 directory where wxWidgets libraries are installed (returned
7728 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7729 equivalent variable and wxWidgets version is 2.8.0 or above.
7730 " >&2;}
7731 { (exit 1); exit 1; }; }
7734 WX_VERSION="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
7735 if test $WX_VERSION -lt 26 ; then
7737 { { echo "$as_me:$LINENO: error:
7738 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7739 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7740 version of wxWidgets.
7741 " >&5
7742 echo "$as_me: error:
7743 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7744 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7745 version of wxWidgets.
7746 " >&2;}
7747 { (exit 1); exit 1; }; }
7750 WX_SELECTEDCONFIG=$($WX_CONFIG_WITH_ARGS --selected_config)
7752 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7753 echo "[dbg] Using wx-config --selected-config"
7754 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
7758 if test $WX_SHARED = "1"; then
7759 STATIC=0
7760 elif test $WX_SHARED = "0"; then
7761 STATIC=1
7762 elif test $WX_SHARED = "auto"; then
7763 STATIC="auto"
7767 if test "$UNICODE" = "auto" ; then
7769 echo "$as_me:$LINENO: checking if wxWidgets was built with UNICODE enabled" >&5
7770 echo $ECHO_N "checking if wxWidgets was built with UNICODE enabled... $ECHO_C" >&6
7772 WX_UNICODE=$(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
7774 if test "$WX_UNICODE" != "0"; then
7775 WX_UNICODE=1
7776 echo "$as_me:$LINENO: result: yes" >&5
7777 echo "${ECHO_T}yes" >&6
7779 else
7780 WX_UNICODE=0
7781 echo "$as_me:$LINENO: result: no" >&5
7782 echo "${ECHO_T}no" >&6
7785 else
7787 WX_UNICODE=$UNICODE
7791 if test "$DEBUG" = "auto" ; then
7793 echo "$as_me:$LINENO: checking if wxWidgets was built in DEBUG mode" >&5
7794 echo $ECHO_N "checking if wxWidgets was built in DEBUG mode... $ECHO_C" >&6
7796 WX_DEBUG=$(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
7798 if test "$WX_DEBUG" != "0"; then
7799 WX_DEBUG=1
7800 echo "$as_me:$LINENO: result: yes" >&5
7801 echo "${ECHO_T}yes" >&6
7803 else
7804 WX_DEBUG=0
7805 echo "$as_me:$LINENO: result: no" >&5
7806 echo "${ECHO_T}no" >&6
7809 else
7811 WX_DEBUG=$DEBUG
7815 if test "$STATIC" = "auto" ; then
7817 echo "$as_me:$LINENO: checking if wxWidgets was built in STATIC mode" >&5
7818 echo $ECHO_N "checking if wxWidgets was built in STATIC mode... $ECHO_C" >&6
7820 WX_STATIC=$(expr "$WX_SELECTEDCONFIG" : ".*static.*")
7822 if test "$WX_STATIC" != "0"; then
7823 WX_STATIC=1
7824 echo "$as_me:$LINENO: result: yes" >&5
7825 echo "${ECHO_T}yes" >&6
7827 else
7828 WX_STATIC=0
7829 echo "$as_me:$LINENO: result: no" >&5
7830 echo "${ECHO_T}no" >&6
7833 else
7835 WX_STATIC=$STATIC
7839 if test "$WX_STATIC" != "0"; then
7840 WX_SHARED=0
7841 else
7842 WX_SHARED=1
7849 if test "$TOOLKIT" = "auto" ; then
7851 echo "$as_me:$LINENO: checking which wxWidgets toolkit was selected" >&5
7852 echo $ECHO_N "checking which wxWidgets toolkit was selected... $ECHO_C" >&6
7854 WX_GTKPORT1=$(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
7855 WX_GTKPORT2=$(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
7856 WX_MSWPORT=$(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
7857 WX_MOTIFPORT=$(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
7858 WX_MACPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
7859 WX_X11PORT=$(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
7860 WX_MGLPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mgl.*")
7861 WX_DFBPORT=$(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
7862 WX_BASEPORT=$(expr "$WX_SELECTEDCONFIG" : ".*base.*")
7863 WX_COCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*cocoa.*")
7865 WX_PORT="unknown"
7866 if test "$WX_GTKPORT1" != "0"; then WX_PORT="gtk1"; fi
7867 if test "$WX_GTKPORT2" != "0"; then WX_PORT="gtk2"; fi
7868 if test "$WX_MSWPORT" != "0"; then WX_PORT="msw"; fi
7869 if test "$WX_MOTIFPORT" != "0"; then WX_PORT="motif"; fi
7870 if test "$WX_MACPORT" != "0"; then WX_PORT="mac"; fi
7871 if test "$WX_X11PORT" != "0"; then WX_PORT="x11"; fi
7872 if test "$WX_MGLPORT" != "0"; then WX_PORT="mgl"; fi
7873 if test "$WX_DFBPORT" != "0"; then WX_PORT="dfb"; fi
7874 if test "$WX_BASEPORT" != "0"; then WX_PORT="base"; fi
7875 if test "$WX_COCOAPORT" != "0"; then WX_PORT="cocoa"; fi
7878 if test "$WX_PORT" = "unknown" ; then
7879 { { echo "$as_me:$LINENO: error:
7880 Cannot detect the currently installed wxWidgets port !
7881 Please check your 'wx-config --cxxflags'...
7882 " >&5
7883 echo "$as_me: error:
7884 Cannot detect the currently installed wxWidgets port !
7885 Please check your 'wx-config --cxxflags'...
7886 " >&2;}
7887 { (exit 1); exit 1; }; }
7890 echo "$as_me:$LINENO: result: $WX_PORT" >&5
7891 echo "${ECHO_T}$WX_PORT" >&6
7892 else
7894 if test -z "$TOOLKIT" ; then
7895 WX_PORT=$TOOLKIT
7896 else
7897 WX_PORT=$PORT
7903 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7904 echo "[dbg] Values of all WX_* options after final detection:"
7905 echo "[dbg] WX_DEBUG: $WX_DEBUG"
7906 echo "[dbg] WX_UNICODE: $WX_UNICODE"
7907 echo "[dbg] WX_SHARED: $WX_SHARED"
7908 echo "[dbg] WX_VERSION: $WX_VERSION"
7909 echo "[dbg] WX_PORT: $WX_PORT"
7912 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
7913 { { echo "$as_me:$LINENO: error:
7914 Cannot build shared library against a static build of wxWidgets !
7915 This error happens because the wxWidgets build which was selected
7916 has been detected as static while you asked to build $PACKAGE_NAME
7917 as shared library and this is not possible.
7918 Use the '--disable-shared' option to build $PACKAGE_NAME
7919 as static library or '--with-wxshared' to use wxWidgets as shared library.
7920 " >&5
7921 echo "$as_me: error:
7922 Cannot build shared library against a static build of wxWidgets !
7923 This error happens because the wxWidgets build which was selected
7924 has been detected as static while you asked to build $PACKAGE_NAME
7925 as shared library and this is not possible.
7926 Use the '--disable-shared' option to build $PACKAGE_NAME
7927 as static library or '--with-wxshared' to use wxWidgets as shared library.
7928 " >&2;}
7929 { (exit 1); exit 1; }; }
7932 if test "$DEBUG" = "auto"; then
7933 DEBUG=$WX_DEBUG
7935 if test "$DEBUG" = "1"; then
7936 BUILD="debug"
7937 elif test "$DEBUG" = ""; then
7938 BUILD="release"
7941 if test "$UNICODE" = "auto"; then
7942 UNICODE=$WX_UNICODE
7944 if test "$SHARED" = "auto"; then
7945 SHARED=$WX_SHARED
7947 if test "$TOOLKIT" = "auto"; then
7948 TOOLKIT=$WX_PORT
7953 # We also need wxBase
7954 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs adv,core,net`
7955 WXBASE_LIBS=`$WX_CONFIG_WITH_ARGS --libs net`
7956 WXBASE_CPPFLAGS="$WX_CPPFLAGS -DwxUSE_GUI=0"
7960 if test ${SYS:-unknown} = win32; then
7962 if test -n "$ac_tool_prefix"; then
7963 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7964 set dummy ${ac_tool_prefix}windres; ac_word=$2
7965 echo "$as_me:$LINENO: checking for $ac_word" >&5
7966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7967 if test "${ac_cv_prog_RC+set}" = set; then
7968 echo $ECHO_N "(cached) $ECHO_C" >&6
7969 else
7970 if test -n "$RC"; then
7971 ac_cv_prog_RC="$RC" # Let the user override the test.
7972 else
7973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7974 for as_dir in $PATH
7976 IFS=$as_save_IFS
7977 test -z "$as_dir" && as_dir=.
7978 for ac_exec_ext in '' $ac_executable_extensions; do
7979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7980 ac_cv_prog_RC="${ac_tool_prefix}windres"
7981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7982 break 2
7984 done
7985 done
7989 RC=$ac_cv_prog_RC
7990 if test -n "$RC"; then
7991 echo "$as_me:$LINENO: result: $RC" >&5
7992 echo "${ECHO_T}$RC" >&6
7993 else
7994 echo "$as_me:$LINENO: result: no" >&5
7995 echo "${ECHO_T}no" >&6
7999 if test -z "$ac_cv_prog_RC"; then
8000 ac_ct_RC=$RC
8001 # Extract the first word of "windres", so it can be a program name with args.
8002 set dummy windres; ac_word=$2
8003 echo "$as_me:$LINENO: checking for $ac_word" >&5
8004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8005 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then
8006 echo $ECHO_N "(cached) $ECHO_C" >&6
8007 else
8008 if test -n "$ac_ct_RC"; then
8009 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
8010 else
8011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8012 for as_dir in $PATH
8014 IFS=$as_save_IFS
8015 test -z "$as_dir" && as_dir=.
8016 for ac_exec_ext in '' $ac_executable_extensions; do
8017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8018 ac_cv_prog_ac_ct_RC="windres"
8019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8020 break 2
8022 done
8023 done
8025 test -z "$ac_cv_prog_ac_ct_RC" && ac_cv_prog_ac_ct_RC=":"
8028 ac_ct_RC=$ac_cv_prog_ac_ct_RC
8029 if test -n "$ac_ct_RC"; then
8030 echo "$as_me:$LINENO: result: $ac_ct_RC" >&5
8031 echo "${ECHO_T}$ac_ct_RC" >&6
8032 else
8033 echo "$as_me:$LINENO: result: no" >&5
8034 echo "${ECHO_T}no" >&6
8037 RC=$ac_ct_RC
8038 else
8039 RC="$ac_cv_prog_RC"
8042 MULERCFLAGS=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
8048 # Check for libupnp
8049 if test "${ENABLE_UPNP:-yes}" = yes; then
8053 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8054 if test -n "$ac_tool_prefix"; then
8055 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8056 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8057 echo "$as_me:$LINENO: checking for $ac_word" >&5
8058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8059 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8060 echo $ECHO_N "(cached) $ECHO_C" >&6
8061 else
8062 case $PKG_CONFIG in
8063 [\\/]* | ?:[\\/]*)
8064 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8068 for as_dir in $PATH
8070 IFS=$as_save_IFS
8071 test -z "$as_dir" && as_dir=.
8072 for ac_exec_ext in '' $ac_executable_extensions; do
8073 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8074 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8076 break 2
8078 done
8079 done
8082 esac
8084 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8086 if test -n "$PKG_CONFIG"; then
8087 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8088 echo "${ECHO_T}$PKG_CONFIG" >&6
8089 else
8090 echo "$as_me:$LINENO: result: no" >&5
8091 echo "${ECHO_T}no" >&6
8095 if test -z "$ac_cv_path_PKG_CONFIG"; then
8096 ac_pt_PKG_CONFIG=$PKG_CONFIG
8097 # Extract the first word of "pkg-config", so it can be a program name with args.
8098 set dummy pkg-config; ac_word=$2
8099 echo "$as_me:$LINENO: checking for $ac_word" >&5
8100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8101 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
8102 echo $ECHO_N "(cached) $ECHO_C" >&6
8103 else
8104 case $ac_pt_PKG_CONFIG in
8105 [\\/]* | ?:[\\/]*)
8106 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8110 for as_dir in $PATH
8112 IFS=$as_save_IFS
8113 test -z "$as_dir" && as_dir=.
8114 for ac_exec_ext in '' $ac_executable_extensions; do
8115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8116 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8118 break 2
8120 done
8121 done
8124 esac
8126 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8128 if test -n "$ac_pt_PKG_CONFIG"; then
8129 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
8130 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
8131 else
8132 echo "$as_me:$LINENO: result: no" >&5
8133 echo "${ECHO_T}no" >&6
8136 PKG_CONFIG=$ac_pt_PKG_CONFIG
8137 else
8138 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8142 if test -n "$PKG_CONFIG"; then
8143 _pkg_min_version=0.9.0
8144 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
8145 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
8146 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8147 echo "$as_me:$LINENO: result: yes" >&5
8148 echo "${ECHO_T}yes" >&6
8149 else
8150 echo "$as_me:$LINENO: result: no" >&5
8151 echo "${ECHO_T}no" >&6
8152 PKG_CONFIG=""
8158 # Check whether --with-libupnp-prefix or --without-libupnp-prefix was given.
8159 if test "${with_libupnp_prefix+set}" = set; then
8160 withval="$with_libupnp_prefix"
8161 export PKG_CONFIG_PATH=$withval/lib/pkgconfig
8164 if test $cross_compiling = no; then
8165 echo "$as_me:$LINENO: checking for libupnp version >= 1.6.6" >&5
8166 echo $ECHO_N "checking for libupnp version >= 1.6.6... $ECHO_C" >&6
8167 if test -n "$PKG_CONFIG"; then
8168 if $PKG_CONFIG libupnp --exists; then
8169 LIBUPNP_VERSION=`$PKG_CONFIG libupnp --modversion`
8170 if $PKG_CONFIG libupnp --atleast-version=1.6.6; then
8171 result=yes
8172 resultstr=" (version $LIBUPNP_VERSION)"
8173 LIBUPNP_CPPFLAGS=`$PKG_CONFIG libupnp --cflags-only-I`
8174 LIBUPNP_CFLAGS=`$PKG_CONFIG libupnp --cflags-only-other`
8175 LIBUPNP_LDFLAGS=`$PKG_CONFIG libupnp --libs-only-L`
8176 LIBUPNP_LIBS=`$PKG_CONFIG libupnp --libs-only-other`
8177 LIBUPNP_LIBS="$LIBUPNP_LIBS `$PKG_CONFIG libupnp --libs-only-l`"
8179 else
8180 result=no
8181 resultstr=" (version $LIBUPNP_VERSION is not new enough)"
8185 else
8186 result=no
8187 resultstr=" (try to use --with-libupnp-prefix=PREFIX)"
8191 else
8192 result=no
8193 resultstr=" (pkg-config not found)"
8196 echo "$as_me:$LINENO: result: $result$resultstr" >&5
8197 echo "${ECHO_T}$result$resultstr" >&6
8198 libupnp_error="libupnp >= 1.6.6 not found$resultstr"
8200 else
8201 result=no
8202 libupnp_error="cross compiling"
8206 if test ${result:-no} = yes; then
8207 LIBUPNP_CPPFLAGS="$LIBUPNP_CPPFLAGS -DENABLE_UPNP=1"
8208 else
8209 ENABLE_UPNP=disabled
8210 { echo "$as_me:$LINENO: WARNING:
8211 UPnP code has been disabled because ${libupnp_error}." >&5
8212 echo "$as_me: WARNING:
8213 UPnP code has been disabled because ${libupnp_error}." >&2;}
8214 _mule_warning_6=yes
8215 _mule_has_warnings=yes
8226 # Check for Crypto++
8229 # Check whether --with-crypto-prefix or --without-crypto-prefix was given.
8230 if test "${with_crypto_prefix+set}" = set; then
8231 withval="$with_crypto_prefix"
8235 echo "$as_me:$LINENO: checking for crypto++ version >= 5.1" >&5
8236 echo $ECHO_N "checking for crypto++ version >= 5.1... $ECHO_C" >&6
8238 cryptopp_file_with_version="cryptlib.h"
8240 CRYPTOPP_STYLE="unknown"
8241 CRYPTOPP_LIB_NAME="unknown"
8242 cryptopp_includedir="unknown"
8243 CRYPTOPP_INCLUDE_PREFIX="unknown"
8244 cryptopp_libdir="unknown"
8246 for CRYPTOPP_PREFIX in "$with_crypto_prefix" /usr /usr/local /opt /opt/local /usr/pkg /mingw ; do
8247 if test -z "$CRYPTOPP_PREFIX"; then
8248 continue
8252 # Find the Cryptopp header
8253 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8255 CRYPTOPP_STYLE="sources"
8256 CRYPTOPP_LIB_NAME="cryptopp"
8257 cryptopp_includedir=
8258 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
8259 cryptopp_libdir=
8260 break
8262 elif test -f $CRYPTOPP_PREFIX/include/cryptopp/$cryptopp_file_with_version; then
8264 CRYPTOPP_STYLE="installed"
8265 CRYPTOPP_LIB_NAME="cryptopp"
8266 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8267 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8268 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8269 break
8271 elif test -f $CRYPTOPP_PREFIX/include/crypto++/$cryptopp_file_with_version; then
8273 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8274 CRYPTOPP_STYLE="gentoo_debian"
8275 CRYPTOPP_LIB_NAME="crypto++"
8276 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8277 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8278 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8279 break
8283 done
8285 if test $CRYPTOPP_STYLE = "unknown"; then
8286 result=no; resultstr=""
8287 else
8289 # Find out the crypto++ version and check against the minimum required
8290 cryptopp_header_path="${cryptopp_includedir+$cryptopp_includedir/}$CRYPTOPP_INCLUDE_PREFIX/$cryptopp_file_with_version"
8291 CRYPTOPP_VERSION_STRING=`$EGREP "Reference Manual|API Reference" $cryptopp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
8292 CRYPTOPP_VERSION_NUMBER=`echo $CRYPTOPP_VERSION_STRING | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8293 minvers=`echo 5.1 | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8295 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then
8297 result=yes
8298 resultstr=" (version $CRYPTOPP_VERSION_STRING, $CRYPTOPP_STYLE)"
8299 if test -n "$cryptopp_includedir"; then
8300 CRYPTOPP_CPPFLAGS="-I$cryptopp_includedir"
8301 else
8302 CRYPTOPP_CPPFLAGS=
8305 if test -n "$cryptopp_libdir"; then
8307 CRYPTOPP_LDFLAGS="-L$cryptopp_libdir"
8308 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME"
8310 else
8312 CRYPTOPP_LDFLAGS=
8313 CRYPTOPP_LIBS="${CRYPTOPP_INCLUDE_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a"
8319 cat >>confdefs.h <<_ACEOF
8320 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX
8321 _ACEOF
8324 else
8326 result=no
8327 resultstr=" (version $CRYPTOPP_VERSION_STRING is not new enough)"
8335 echo "$as_me:$LINENO: result: $result$resultstr" >&5
8336 echo "${ECHO_T}$result$resultstr" >&6
8338 if test ${result:-no} = yes; then
8340 # Check for CryptoPP >= 5.5
8341 if test $CRYPTOPP_VERSION_NUMBER -ge "5005000"; then
8342 CRYPTOPP_CPPFLAGS="$CRYPTOPP_CPPFLAGS -D__WEAK_CRYPTO__"
8346 else
8348 { { echo "$as_me:$LINENO: error:
8349 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8350 Please try again with --with-crypto-prefix=/my_crypto_prefix
8351 (replace /my_crypto_prefix with a valid path to your crypto++
8352 installation directory)." >&5
8353 echo "$as_me: error:
8354 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8355 Please try again with --with-crypto-prefix=/my_crypto_prefix
8356 (replace /my_crypto_prefix with a valid path to your crypto++
8357 installation directory)." >&2;}
8358 { (exit 1); exit 1; }; }
8365 ac_ext=cc
8366 ac_cpp='$CXXCPP $CPPFLAGS'
8367 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8368 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8369 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8374 echo "$as_me:$LINENO: checking if we're using the GNU C++ library" >&5
8375 echo $ECHO_N "checking if we're using the GNU C++ library... $ECHO_C" >&6
8376 cat >conftest.$ac_ext <<_ACEOF
8378 /* confdefs.h. */
8379 _ACEOF
8380 cat confdefs.h >>conftest.$ac_ext
8381 cat >>conftest.$ac_ext <<_ACEOF
8382 /* end confdefs.h. */
8384 #include <string>
8385 #ifndef __GLIBCXX__
8386 #error Non-GNU C++ library found.
8387 #endif
8390 _ACEOF
8391 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8392 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8393 ac_status=$?
8394 grep -v '^ *+' conftest.er1 >conftest.err
8395 rm -f conftest.er1
8396 cat conftest.err >&5
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); } >/dev/null; then
8399 if test -s conftest.err; then
8400 ac_cpp_err=$ac_cxx_preproc_warn_flag
8401 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8402 else
8403 ac_cpp_err=
8405 else
8406 ac_cpp_err=yes
8408 if test -z "$ac_cpp_err"; then
8409 GLIBCXX=yes
8410 else
8411 echo "$as_me: failed program was:" >&5
8412 sed 's/^/| /' conftest.$ac_ext >&5
8414 GLIBCXX=no
8416 rm -f conftest.err conftest.$ac_ext
8417 echo "$as_me:$LINENO: result: $GLIBCXX" >&5
8418 echo "${ECHO_T}$GLIBCXX" >&6
8421 mule_backup_CPPFLAGS="$CPPFLAGS"
8422 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
8424 echo "$as_me:$LINENO: checking that wxWidgets has support for large files" >&5
8425 echo $ECHO_N "checking that wxWidgets has support for large files... $ECHO_C" >&6
8426 cat >conftest.$ac_ext <<_ACEOF
8428 /* confdefs.h. */
8429 _ACEOF
8430 cat confdefs.h >>conftest.$ac_ext
8431 cat >>conftest.$ac_ext <<_ACEOF
8432 /* end confdefs.h. */
8434 #include <wx/wx.h>
8435 #if !HAVE_LARGEFILE_SUPPORT && !defined(_LARGE_FILES) && !defined(__WXMSW__)
8436 #error No LargeFile support!
8437 #endif
8440 _ACEOF
8441 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8442 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8443 ac_status=$?
8444 grep -v '^ *+' conftest.er1 >conftest.err
8445 rm -f conftest.er1
8446 cat conftest.err >&5
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); } >/dev/null; then
8449 if test -s conftest.err; then
8450 ac_cpp_err=$ac_cxx_preproc_warn_flag
8451 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8452 else
8453 ac_cpp_err=
8455 else
8456 ac_cpp_err=yes
8458 if test -z "$ac_cpp_err"; then
8460 echo "$as_me:$LINENO: result: yes" >&5
8461 echo "${ECHO_T}yes" >&6
8463 else
8464 echo "$as_me: failed program was:" >&5
8465 sed 's/^/| /' conftest.$ac_ext >&5
8468 echo "$as_me:$LINENO: result: no" >&5
8469 echo "${ECHO_T}no" >&6
8470 { { echo "$as_me:$LINENO: error:
8471 Support for large files in wxWidgets is required by aMule.
8472 To continue you must recompile wxWidgets with support for
8473 large files enabled." >&5
8474 echo "$as_me: error:
8475 Support for large files in wxWidgets is required by aMule.
8476 To continue you must recompile wxWidgets with support for
8477 large files enabled." >&2;}
8478 { (exit 1); exit 1; }; }
8481 rm -f conftest.err conftest.$ac_ext
8483 CPPFLAGS="$mule_backup_CPPFLAGS"
8486 # Check if the compiler is broken, wrt. exceptions.
8488 echo "$as_me:$LINENO: checking for exception-handling" >&5
8489 echo $ECHO_N "checking for exception-handling... $ECHO_C" >&6
8490 if test "$cross_compiling" = yes; then
8492 echo "$as_me:$LINENO: result: undeterminable" >&5
8493 echo "${ECHO_T}undeterminable" >&6
8494 { echo "$as_me:$LINENO: WARNING:
8495 Cross-compilation detected, so exception handling cannot be tested.
8496 Note that broken exception handling in your compiler may lead to
8497 unexpected crashes." >&5
8498 echo "$as_me: WARNING:
8499 Cross-compilation detected, so exception handling cannot be tested.
8500 Note that broken exception handling in your compiler may lead to
8501 unexpected crashes." >&2;}
8502 _mule_warning_7=yes
8503 _mule_has_warnings=yes
8506 else
8507 cat >conftest.$ac_ext <<_ACEOF
8509 /* confdefs.h. */
8510 _ACEOF
8511 cat confdefs.h >>conftest.$ac_ext
8512 cat >>conftest.$ac_ext <<_ACEOF
8513 /* end confdefs.h. */
8516 main ()
8519 try {
8520 throw 1;
8521 } catch (int) {
8522 return 0;
8524 return 1;
8527 return 0;
8530 _ACEOF
8531 rm -f conftest$ac_exeext
8532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8533 (eval $ac_link) 2>&5
8534 ac_status=$?
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8538 (eval $ac_try) 2>&5
8539 ac_status=$?
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); }; }; then
8543 echo "$as_me:$LINENO: result: yes" >&5
8544 echo "${ECHO_T}yes" >&6
8546 else
8547 echo "$as_me: program exited with status $ac_status" >&5
8548 echo "$as_me: failed program was:" >&5
8549 sed 's/^/| /' conftest.$ac_ext >&5
8551 ( exit $ac_status )
8553 echo "$as_me:$LINENO: result: no" >&5
8554 echo "${ECHO_T}no" >&6
8555 { { echo "$as_me:$LINENO: error: Exception handling does not work. Broken compiler?" >&5
8556 echo "$as_me: error: Exception handling does not work. Broken compiler?" >&2;}
8557 { (exit 1); exit 1; }; }
8560 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8565 echo "$as_me:$LINENO: checking for <cxxabi.h> and __cxa_demangle()" >&5
8566 echo $ECHO_N "checking for <cxxabi.h> and __cxa_demangle()... $ECHO_C" >&6
8567 cat >conftest.$ac_ext <<_ACEOF
8569 /* confdefs.h. */
8570 _ACEOF
8571 cat confdefs.h >>conftest.$ac_ext
8572 cat >>conftest.$ac_ext <<_ACEOF
8573 /* end confdefs.h. */
8575 #include <cxxabi.h>
8578 main ()
8581 int status;
8582 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
8583 std::type_info *ti = abi::__cxa_current_exception_type();
8586 return 0;
8589 _ACEOF
8590 rm -f conftest.$ac_objext conftest$ac_exeext
8591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8592 (eval $ac_link) 2>conftest.er1
8593 ac_status=$?
8594 grep -v '^ *+' conftest.er1 >conftest.err
8595 rm -f conftest.er1
8596 cat conftest.err >&5
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); } &&
8599 { ac_try='test -z "$ac_cxx_werror_flag"
8600 || test ! -s conftest.err'
8601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8602 (eval $ac_try) 2>&5
8603 ac_status=$?
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); }; } &&
8606 { ac_try='test -s conftest$ac_exeext'
8607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8608 (eval $ac_try) 2>&5
8609 ac_status=$?
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); }; }; then
8615 cat >>confdefs.h <<\_ACEOF
8616 #define HAVE_CXXABI 1
8617 _ACEOF
8619 echo "$as_me:$LINENO: result: yes" >&5
8620 echo "${ECHO_T}yes" >&6
8622 else
8623 echo "$as_me: failed program was:" >&5
8624 sed 's/^/| /' conftest.$ac_ext >&5
8627 echo "$as_me:$LINENO: result: no" >&5
8628 echo "${ECHO_T}no" >&6
8631 rm -f conftest.err conftest.$ac_objext \
8632 conftest$ac_exeext conftest.$ac_ext
8634 ac_ext=c
8635 ac_cpp='$CPP $CPPFLAGS'
8636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8641 # Check for bfd.h (to have proper backtraces without using wxExecute)
8643 echo "$as_me:$LINENO: checking for bfd" >&5
8644 echo $ECHO_N "checking for bfd... $ECHO_C" >&6
8645 mule_backup_LIBS="$LIBS"
8646 mule_backup_LDFLAGS="$LDFLAGS"
8647 LIBS="-lbfd -liberty ${ZLIB_LIBS} $LIBS"
8648 LDFLAGS="$LDFLAGS ${ZLIB_LDFLAGS}"
8649 cat >conftest.$ac_ext <<_ACEOF
8651 /* confdefs.h. */
8652 _ACEOF
8653 cat confdefs.h >>conftest.$ac_ext
8654 cat >>conftest.$ac_ext <<_ACEOF
8655 /* end confdefs.h. */
8657 #include <ansidecl.h>
8658 #include <bfd.h>
8661 main ()
8664 char *dummy = bfd_errmsg(bfd_get_error());
8667 return 0;
8670 _ACEOF
8671 rm -f conftest.$ac_objext conftest$ac_exeext
8672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8673 (eval $ac_link) 2>conftest.er1
8674 ac_status=$?
8675 grep -v '^ *+' conftest.er1 >conftest.err
8676 rm -f conftest.er1
8677 cat conftest.err >&5
8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679 (exit $ac_status); } &&
8680 { ac_try='test -z "$ac_c_werror_flag"
8681 || test ! -s conftest.err'
8682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8683 (eval $ac_try) 2>&5
8684 ac_status=$?
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); }; } &&
8687 { ac_try='test -s conftest$ac_exeext'
8688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8689 (eval $ac_try) 2>&5
8690 ac_status=$?
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); }; }; then
8694 echo "$as_me:$LINENO: result: yes" >&5
8695 echo "${ECHO_T}yes" >&6
8696 BFD_CPPFLAGS="-DHAVE_BFD"
8697 BFD_LIBS="-lbfd -liberty"
8699 else
8700 echo "$as_me: failed program was:" >&5
8701 sed 's/^/| /' conftest.$ac_ext >&5
8704 echo "$as_me:$LINENO: result: no" >&5
8705 echo "${ECHO_T}no" >&6
8706 { echo "$as_me:$LINENO: WARNING:
8707 bfd.h not found or unusable, please install binutils development
8708 package if you are a developer or want to help testing aMule" >&5
8709 echo "$as_me: WARNING:
8710 bfd.h not found or unusable, please install binutils development
8711 package if you are a developer or want to help testing aMule" >&2;}
8712 _mule_warning_8=yes
8713 _mule_has_warnings=yes
8717 rm -f conftest.err conftest.$ac_objext \
8718 conftest$ac_exeext conftest.$ac_ext
8719 LIBS="$mule_backup_LIBS"
8720 LDFLAGS="$mule_backup_LDFLAGS"
8724 echo "$as_me:$LINENO: checking for <execinfo.h> and backtrace()" >&5
8725 echo $ECHO_N "checking for <execinfo.h> and backtrace()... $ECHO_C" >&6
8726 cat >conftest.$ac_ext <<_ACEOF
8728 /* confdefs.h. */
8729 _ACEOF
8730 cat confdefs.h >>conftest.$ac_ext
8731 cat >>conftest.$ac_ext <<_ACEOF
8732 /* end confdefs.h. */
8734 #include <execinfo.h>
8737 main ()
8740 void *bt[1];
8741 int n = backtrace(&bt, 1);
8742 const char **bt_syms = backtrace_symbols(bt, n);
8745 return 0;
8748 _ACEOF
8749 rm -f conftest.$ac_objext conftest$ac_exeext
8750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8751 (eval $ac_link) 2>conftest.er1
8752 ac_status=$?
8753 grep -v '^ *+' conftest.er1 >conftest.err
8754 rm -f conftest.er1
8755 cat conftest.err >&5
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); } &&
8758 { ac_try='test -z "$ac_c_werror_flag"
8759 || test ! -s conftest.err'
8760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8761 (eval $ac_try) 2>&5
8762 ac_status=$?
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); }; } &&
8765 { ac_try='test -s conftest$ac_exeext'
8766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8767 (eval $ac_try) 2>&5
8768 ac_status=$?
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); }; }; then
8774 cat >>confdefs.h <<\_ACEOF
8775 #define HAVE_EXECINFO 1
8776 _ACEOF
8778 echo "$as_me:$LINENO: result: yes" >&5
8779 echo "${ECHO_T}yes" >&6
8781 else
8782 echo "$as_me: failed program was:" >&5
8783 sed 's/^/| /' conftest.$ac_ext >&5
8786 echo "$as_me:$LINENO: result: no" >&5
8787 echo "${ECHO_T}no" >&6
8790 rm -f conftest.err conftest.$ac_objext \
8791 conftest$ac_exeext conftest.$ac_ext
8794 # Ok, we have all needed libs, now checking for other stuff
8795 if test "$LEX" = "flex"; then
8797 echo "$as_me:$LINENO: checking for extended flex capabilities" >&5
8798 echo $ECHO_N "checking for extended flex capabilities... $ECHO_C" >&6
8800 extended_flex=`flex --help | grep header-file`
8801 if test -n "$extended_flex"; then
8802 HAVE_FLEX_EXTENDED=yes
8803 else
8804 HAVE_FLEX_EXTENDED=no
8807 echo "$as_me:$LINENO: result: $HAVE_FLEX_EXTENDED" >&5
8808 echo "${ECHO_T}$HAVE_FLEX_EXTENDED" >&6
8810 if test $HAVE_FLEX_EXTENDED = no; then
8811 { echo "$as_me:$LINENO: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&5
8812 echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&6;}
8816 else
8817 HAVE_FLEX_EXTENDED=no
8821 # Flush standard test results for speeding cache
8822 cat >confcache <<\_ACEOF
8823 # This file is a shell script that caches the results of configure
8824 # tests run on this system so they can be shared between configure
8825 # scripts and configure runs, see configure's option --config-cache.
8826 # It is not useful on other systems. If it contains results you don't
8827 # want to keep, you may remove or edit it.
8829 # config.status only pays attention to the cache file if you give it
8830 # the --recheck option to rerun configure.
8832 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8833 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8834 # following values.
8836 _ACEOF
8838 # The following way of writing the cache mishandles newlines in values,
8839 # but we know of no workaround that is simple, portable, and efficient.
8840 # So, don't put newlines in cache variables' values.
8841 # Ultrix sh set writes to stderr and can't be redirected directly,
8842 # and sets the high bit in the cache file unless we assign to the vars.
8844 (set) 2>&1 |
8845 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8846 *ac_space=\ *)
8847 # `set' does not quote correctly, so add quotes (double-quote
8848 # substitution turns \\\\ into \\, and sed turns \\ into \).
8849 sed -n \
8850 "s/'/'\\\\''/g;
8851 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8854 # `set' quotes correctly as required by POSIX, so do not add quotes.
8855 sed -n \
8856 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8858 esac;
8860 sed '
8861 t clear
8862 : clear
8863 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8864 t end
8865 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8866 : end' >>confcache
8867 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8868 if test -w $cache_file; then
8869 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8870 cat confcache >$cache_file
8871 else
8872 echo "not updating unwritable cache $cache_file"
8875 rm -f confcache
8877 # Checks for header files.
8878 echo "$as_me:$LINENO: checking for X" >&5
8879 echo $ECHO_N "checking for X... $ECHO_C" >&6
8882 # Check whether --with-x or --without-x was given.
8883 if test "${with_x+set}" = set; then
8884 withval="$with_x"
8887 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8888 if test "x$with_x" = xno; then
8889 # The user explicitly disabled X.
8890 have_x=disabled
8891 else
8892 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8893 # Both variables are already set.
8894 have_x=yes
8895 else
8896 if test "${ac_cv_have_x+set}" = set; then
8897 echo $ECHO_N "(cached) $ECHO_C" >&6
8898 else
8899 # One or both of the vars are not set, and there is no cached value.
8900 ac_x_includes=no ac_x_libraries=no
8901 rm -fr conftest.dir
8902 if mkdir conftest.dir; then
8903 cd conftest.dir
8904 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8905 cat >Imakefile <<'_ACEOF'
8906 acfindx:
8907 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8908 _ACEOF
8909 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8910 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8911 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8912 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8913 for ac_extension in a so sl; do
8914 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8915 test -f $ac_im_libdir/libX11.$ac_extension; then
8916 ac_im_usrlibdir=$ac_im_libdir; break
8918 done
8919 # Screen out bogus values from the imake configuration. They are
8920 # bogus both because they are the default anyway, and because
8921 # using them would break gcc on systems where it needs fixed includes.
8922 case $ac_im_incroot in
8923 /usr/include) ;;
8924 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8925 esac
8926 case $ac_im_usrlibdir in
8927 /usr/lib | /lib) ;;
8928 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8929 esac
8931 cd ..
8932 rm -fr conftest.dir
8935 # Standard set of common directories for X headers.
8936 # Check X11 before X11Rn because it is often a symlink to the current release.
8937 ac_x_header_dirs='
8938 /usr/X11/include
8939 /usr/X11R6/include
8940 /usr/X11R5/include
8941 /usr/X11R4/include
8943 /usr/include/X11
8944 /usr/include/X11R6
8945 /usr/include/X11R5
8946 /usr/include/X11R4
8948 /usr/local/X11/include
8949 /usr/local/X11R6/include
8950 /usr/local/X11R5/include
8951 /usr/local/X11R4/include
8953 /usr/local/include/X11
8954 /usr/local/include/X11R6
8955 /usr/local/include/X11R5
8956 /usr/local/include/X11R4
8958 /usr/X386/include
8959 /usr/x386/include
8960 /usr/XFree86/include/X11
8962 /usr/include
8963 /usr/local/include
8964 /usr/unsupported/include
8965 /usr/athena/include
8966 /usr/local/x11r5/include
8967 /usr/lpp/Xamples/include
8969 /usr/openwin/include
8970 /usr/openwin/share/include'
8972 if test "$ac_x_includes" = no; then
8973 # Guess where to find include files, by looking for Intrinsic.h.
8974 # First, try using that file with no special directory specified.
8975 cat >conftest.$ac_ext <<_ACEOF
8976 /* confdefs.h. */
8977 _ACEOF
8978 cat confdefs.h >>conftest.$ac_ext
8979 cat >>conftest.$ac_ext <<_ACEOF
8980 /* end confdefs.h. */
8981 #include <X11/Intrinsic.h>
8982 _ACEOF
8983 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8984 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8985 ac_status=$?
8986 grep -v '^ *+' conftest.er1 >conftest.err
8987 rm -f conftest.er1
8988 cat conftest.err >&5
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); } >/dev/null; then
8991 if test -s conftest.err; then
8992 ac_cpp_err=$ac_c_preproc_warn_flag
8993 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8994 else
8995 ac_cpp_err=
8997 else
8998 ac_cpp_err=yes
9000 if test -z "$ac_cpp_err"; then
9001 # We can compile using X headers with no special include directory.
9002 ac_x_includes=
9003 else
9004 echo "$as_me: failed program was:" >&5
9005 sed 's/^/| /' conftest.$ac_ext >&5
9007 for ac_dir in $ac_x_header_dirs; do
9008 if test -r "$ac_dir/X11/Intrinsic.h"; then
9009 ac_x_includes=$ac_dir
9010 break
9012 done
9014 rm -f conftest.err conftest.$ac_ext
9015 fi # $ac_x_includes = no
9017 if test "$ac_x_libraries" = no; then
9018 # Check for the libraries.
9019 # See if we find them without any special options.
9020 # Don't add to $LIBS permanently.
9021 ac_save_LIBS=$LIBS
9022 LIBS="-lXt $LIBS"
9023 cat >conftest.$ac_ext <<_ACEOF
9024 /* confdefs.h. */
9025 _ACEOF
9026 cat confdefs.h >>conftest.$ac_ext
9027 cat >>conftest.$ac_ext <<_ACEOF
9028 /* end confdefs.h. */
9029 #include <X11/Intrinsic.h>
9031 main ()
9033 XtMalloc (0)
9035 return 0;
9037 _ACEOF
9038 rm -f conftest.$ac_objext conftest$ac_exeext
9039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9040 (eval $ac_link) 2>conftest.er1
9041 ac_status=$?
9042 grep -v '^ *+' conftest.er1 >conftest.err
9043 rm -f conftest.er1
9044 cat conftest.err >&5
9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046 (exit $ac_status); } &&
9047 { ac_try='test -z "$ac_c_werror_flag"
9048 || test ! -s conftest.err'
9049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9050 (eval $ac_try) 2>&5
9051 ac_status=$?
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); }; } &&
9054 { ac_try='test -s conftest$ac_exeext'
9055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9056 (eval $ac_try) 2>&5
9057 ac_status=$?
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); }; }; then
9060 LIBS=$ac_save_LIBS
9061 # We can link X programs with no special library path.
9062 ac_x_libraries=
9063 else
9064 echo "$as_me: failed program was:" >&5
9065 sed 's/^/| /' conftest.$ac_ext >&5
9067 LIBS=$ac_save_LIBS
9068 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9070 # Don't even attempt the hair of trying to link an X program!
9071 for ac_extension in a so sl; do
9072 if test -r $ac_dir/libXt.$ac_extension; then
9073 ac_x_libraries=$ac_dir
9074 break 2
9076 done
9077 done
9079 rm -f conftest.err conftest.$ac_objext \
9080 conftest$ac_exeext conftest.$ac_ext
9081 fi # $ac_x_libraries = no
9083 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9084 # Didn't find X anywhere. Cache the known absence of X.
9085 ac_cv_have_x="have_x=no"
9086 else
9087 # Record where we found X for the cache.
9088 ac_cv_have_x="have_x=yes \
9089 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9094 eval "$ac_cv_have_x"
9095 fi # $with_x != no
9097 if test "$have_x" != yes; then
9098 echo "$as_me:$LINENO: result: $have_x" >&5
9099 echo "${ECHO_T}$have_x" >&6
9100 no_x=yes
9101 else
9102 # If each of the values was on the command line, it overrides each guess.
9103 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9104 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9105 # Update the cache value to reflect the command line values.
9106 ac_cv_have_x="have_x=yes \
9107 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9108 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9109 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9112 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9113 # for constant arguments. Useless!
9114 echo "$as_me:$LINENO: checking for working alloca.h" >&5
9115 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9116 if test "${ac_cv_working_alloca_h+set}" = set; then
9117 echo $ECHO_N "(cached) $ECHO_C" >&6
9118 else
9119 cat >conftest.$ac_ext <<_ACEOF
9120 /* confdefs.h. */
9121 _ACEOF
9122 cat confdefs.h >>conftest.$ac_ext
9123 cat >>conftest.$ac_ext <<_ACEOF
9124 /* end confdefs.h. */
9125 #include <alloca.h>
9127 main ()
9129 char *p = (char *) alloca (2 * sizeof (int));
9131 return 0;
9133 _ACEOF
9134 rm -f conftest.$ac_objext conftest$ac_exeext
9135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9136 (eval $ac_link) 2>conftest.er1
9137 ac_status=$?
9138 grep -v '^ *+' conftest.er1 >conftest.err
9139 rm -f conftest.er1
9140 cat conftest.err >&5
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); } &&
9143 { ac_try='test -z "$ac_c_werror_flag"
9144 || test ! -s conftest.err'
9145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9146 (eval $ac_try) 2>&5
9147 ac_status=$?
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); }; } &&
9150 { ac_try='test -s conftest$ac_exeext'
9151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9152 (eval $ac_try) 2>&5
9153 ac_status=$?
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 (exit $ac_status); }; }; then
9156 ac_cv_working_alloca_h=yes
9157 else
9158 echo "$as_me: failed program was:" >&5
9159 sed 's/^/| /' conftest.$ac_ext >&5
9161 ac_cv_working_alloca_h=no
9163 rm -f conftest.err conftest.$ac_objext \
9164 conftest$ac_exeext conftest.$ac_ext
9166 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9167 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9168 if test $ac_cv_working_alloca_h = yes; then
9170 cat >>confdefs.h <<\_ACEOF
9171 #define HAVE_ALLOCA_H 1
9172 _ACEOF
9176 echo "$as_me:$LINENO: checking for alloca" >&5
9177 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9178 if test "${ac_cv_func_alloca_works+set}" = set; then
9179 echo $ECHO_N "(cached) $ECHO_C" >&6
9180 else
9181 cat >conftest.$ac_ext <<_ACEOF
9182 /* confdefs.h. */
9183 _ACEOF
9184 cat confdefs.h >>conftest.$ac_ext
9185 cat >>conftest.$ac_ext <<_ACEOF
9186 /* end confdefs.h. */
9187 #ifdef __GNUC__
9188 # define alloca __builtin_alloca
9189 #else
9190 # ifdef _MSC_VER
9191 # include <malloc.h>
9192 # define alloca _alloca
9193 # else
9194 # if HAVE_ALLOCA_H
9195 # include <alloca.h>
9196 # else
9197 # ifdef _AIX
9198 #pragma alloca
9199 # else
9200 # ifndef alloca /* predefined by HP cc +Olibcalls */
9201 char *alloca ();
9202 # endif
9203 # endif
9204 # endif
9205 # endif
9206 #endif
9209 main ()
9211 char *p = (char *) alloca (1);
9213 return 0;
9215 _ACEOF
9216 rm -f conftest.$ac_objext conftest$ac_exeext
9217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9218 (eval $ac_link) 2>conftest.er1
9219 ac_status=$?
9220 grep -v '^ *+' conftest.er1 >conftest.err
9221 rm -f conftest.er1
9222 cat conftest.err >&5
9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); } &&
9225 { ac_try='test -z "$ac_c_werror_flag"
9226 || test ! -s conftest.err'
9227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9228 (eval $ac_try) 2>&5
9229 ac_status=$?
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); }; } &&
9232 { ac_try='test -s conftest$ac_exeext'
9233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9234 (eval $ac_try) 2>&5
9235 ac_status=$?
9236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 (exit $ac_status); }; }; then
9238 ac_cv_func_alloca_works=yes
9239 else
9240 echo "$as_me: failed program was:" >&5
9241 sed 's/^/| /' conftest.$ac_ext >&5
9243 ac_cv_func_alloca_works=no
9245 rm -f conftest.err conftest.$ac_objext \
9246 conftest$ac_exeext conftest.$ac_ext
9248 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9249 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9251 if test $ac_cv_func_alloca_works = yes; then
9253 cat >>confdefs.h <<\_ACEOF
9254 #define HAVE_ALLOCA 1
9255 _ACEOF
9257 else
9258 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9259 # that cause trouble. Some versions do not even contain alloca or
9260 # contain a buggy version. If you still want to use their alloca,
9261 # use ar to extract alloca.o from them instead of compiling alloca.c.
9263 ALLOCA=alloca.$ac_objext
9265 cat >>confdefs.h <<\_ACEOF
9266 #define C_ALLOCA 1
9267 _ACEOF
9270 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9271 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9272 if test "${ac_cv_os_cray+set}" = set; then
9273 echo $ECHO_N "(cached) $ECHO_C" >&6
9274 else
9275 cat >conftest.$ac_ext <<_ACEOF
9276 /* confdefs.h. */
9277 _ACEOF
9278 cat confdefs.h >>conftest.$ac_ext
9279 cat >>conftest.$ac_ext <<_ACEOF
9280 /* end confdefs.h. */
9281 #if defined(CRAY) && ! defined(CRAY2)
9282 webecray
9283 #else
9284 wenotbecray
9285 #endif
9287 _ACEOF
9288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9289 $EGREP "webecray" >/dev/null 2>&1; then
9290 ac_cv_os_cray=yes
9291 else
9292 ac_cv_os_cray=no
9294 rm -f conftest*
9297 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9298 echo "${ECHO_T}$ac_cv_os_cray" >&6
9299 if test $ac_cv_os_cray = yes; then
9300 for ac_func in _getb67 GETB67 getb67; do
9301 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9302 echo "$as_me:$LINENO: checking for $ac_func" >&5
9303 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9304 if eval "test \"\${$as_ac_var+set}\" = set"; then
9305 echo $ECHO_N "(cached) $ECHO_C" >&6
9306 else
9307 cat >conftest.$ac_ext <<_ACEOF
9308 /* confdefs.h. */
9309 _ACEOF
9310 cat confdefs.h >>conftest.$ac_ext
9311 cat >>conftest.$ac_ext <<_ACEOF
9312 /* end confdefs.h. */
9313 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9315 #define $ac_func innocuous_$ac_func
9317 /* System header to define __stub macros and hopefully few prototypes,
9318 which can conflict with char $ac_func (); below.
9319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9320 <limits.h> exists even on freestanding compilers. */
9322 #ifdef __STDC__
9323 # include <limits.h>
9324 #else
9325 # include <assert.h>
9326 #endif
9328 #undef $ac_func
9330 /* Override any gcc2 internal prototype to avoid an error. */
9331 #ifdef __cplusplus
9332 extern "C"
9334 #endif
9335 /* We use char because int might match the return type of a gcc2
9336 builtin and then its argument prototype would still apply. */
9337 char $ac_func ();
9338 /* The GNU C library defines this for functions which it implements
9339 to always fail with ENOSYS. Some functions are actually named
9340 something starting with __ and the normal name is an alias. */
9341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9342 choke me
9343 #else
9344 char (*f) () = $ac_func;
9345 #endif
9346 #ifdef __cplusplus
9348 #endif
9351 main ()
9353 return f != $ac_func;
9355 return 0;
9357 _ACEOF
9358 rm -f conftest.$ac_objext conftest$ac_exeext
9359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9360 (eval $ac_link) 2>conftest.er1
9361 ac_status=$?
9362 grep -v '^ *+' conftest.er1 >conftest.err
9363 rm -f conftest.er1
9364 cat conftest.err >&5
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); } &&
9367 { ac_try='test -z "$ac_c_werror_flag"
9368 || test ! -s conftest.err'
9369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9370 (eval $ac_try) 2>&5
9371 ac_status=$?
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); }; } &&
9374 { ac_try='test -s conftest$ac_exeext'
9375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9376 (eval $ac_try) 2>&5
9377 ac_status=$?
9378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379 (exit $ac_status); }; }; then
9380 eval "$as_ac_var=yes"
9381 else
9382 echo "$as_me: failed program was:" >&5
9383 sed 's/^/| /' conftest.$ac_ext >&5
9385 eval "$as_ac_var=no"
9387 rm -f conftest.err conftest.$ac_objext \
9388 conftest$ac_exeext conftest.$ac_ext
9390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9391 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9392 if test `eval echo '${'$as_ac_var'}'` = yes; then
9394 cat >>confdefs.h <<_ACEOF
9395 #define CRAY_STACKSEG_END $ac_func
9396 _ACEOF
9398 break
9401 done
9404 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9405 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9406 if test "${ac_cv_c_stack_direction+set}" = set; then
9407 echo $ECHO_N "(cached) $ECHO_C" >&6
9408 else
9409 if test "$cross_compiling" = yes; then
9410 ac_cv_c_stack_direction=0
9411 else
9412 cat >conftest.$ac_ext <<_ACEOF
9413 /* confdefs.h. */
9414 _ACEOF
9415 cat confdefs.h >>conftest.$ac_ext
9416 cat >>conftest.$ac_ext <<_ACEOF
9417 /* end confdefs.h. */
9419 find_stack_direction ()
9421 static char *addr = 0;
9422 auto char dummy;
9423 if (addr == 0)
9425 addr = &dummy;
9426 return find_stack_direction ();
9428 else
9429 return (&dummy > addr) ? 1 : -1;
9433 main ()
9435 exit (find_stack_direction () < 0);
9437 _ACEOF
9438 rm -f conftest$ac_exeext
9439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9440 (eval $ac_link) 2>&5
9441 ac_status=$?
9442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9445 (eval $ac_try) 2>&5
9446 ac_status=$?
9447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448 (exit $ac_status); }; }; then
9449 ac_cv_c_stack_direction=1
9450 else
9451 echo "$as_me: program exited with status $ac_status" >&5
9452 echo "$as_me: failed program was:" >&5
9453 sed 's/^/| /' conftest.$ac_ext >&5
9455 ( exit $ac_status )
9456 ac_cv_c_stack_direction=-1
9458 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9461 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9462 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9464 cat >>confdefs.h <<_ACEOF
9465 #define STACK_DIRECTION $ac_cv_c_stack_direction
9466 _ACEOF
9476 ac_header_dirent=no
9477 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9478 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9479 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9480 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9482 echo $ECHO_N "(cached) $ECHO_C" >&6
9483 else
9484 cat >conftest.$ac_ext <<_ACEOF
9485 /* confdefs.h. */
9486 _ACEOF
9487 cat confdefs.h >>conftest.$ac_ext
9488 cat >>conftest.$ac_ext <<_ACEOF
9489 /* end confdefs.h. */
9490 #include <sys/types.h>
9491 #include <$ac_hdr>
9494 main ()
9496 if ((DIR *) 0)
9497 return 0;
9499 return 0;
9501 _ACEOF
9502 rm -f conftest.$ac_objext
9503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9504 (eval $ac_compile) 2>conftest.er1
9505 ac_status=$?
9506 grep -v '^ *+' conftest.er1 >conftest.err
9507 rm -f conftest.er1
9508 cat conftest.err >&5
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); } &&
9511 { ac_try='test -z "$ac_c_werror_flag"
9512 || test ! -s conftest.err'
9513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9514 (eval $ac_try) 2>&5
9515 ac_status=$?
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); }; } &&
9518 { ac_try='test -s conftest.$ac_objext'
9519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9520 (eval $ac_try) 2>&5
9521 ac_status=$?
9522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); }; }; then
9524 eval "$as_ac_Header=yes"
9525 else
9526 echo "$as_me: failed program was:" >&5
9527 sed 's/^/| /' conftest.$ac_ext >&5
9529 eval "$as_ac_Header=no"
9531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9534 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9536 cat >>confdefs.h <<_ACEOF
9537 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9538 _ACEOF
9540 ac_header_dirent=$ac_hdr; break
9543 done
9544 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9545 if test $ac_header_dirent = dirent.h; then
9546 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9547 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9548 if test "${ac_cv_search_opendir+set}" = set; then
9549 echo $ECHO_N "(cached) $ECHO_C" >&6
9550 else
9551 ac_func_search_save_LIBS=$LIBS
9552 ac_cv_search_opendir=no
9553 cat >conftest.$ac_ext <<_ACEOF
9554 /* confdefs.h. */
9555 _ACEOF
9556 cat confdefs.h >>conftest.$ac_ext
9557 cat >>conftest.$ac_ext <<_ACEOF
9558 /* end confdefs.h. */
9560 /* Override any gcc2 internal prototype to avoid an error. */
9561 #ifdef __cplusplus
9562 extern "C"
9563 #endif
9564 /* We use char because int might match the return type of a gcc2
9565 builtin and then its argument prototype would still apply. */
9566 char opendir ();
9568 main ()
9570 opendir ();
9572 return 0;
9574 _ACEOF
9575 rm -f conftest.$ac_objext conftest$ac_exeext
9576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9577 (eval $ac_link) 2>conftest.er1
9578 ac_status=$?
9579 grep -v '^ *+' conftest.er1 >conftest.err
9580 rm -f conftest.er1
9581 cat conftest.err >&5
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); } &&
9584 { ac_try='test -z "$ac_c_werror_flag"
9585 || test ! -s conftest.err'
9586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9587 (eval $ac_try) 2>&5
9588 ac_status=$?
9589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); }; } &&
9591 { ac_try='test -s conftest$ac_exeext'
9592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9593 (eval $ac_try) 2>&5
9594 ac_status=$?
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); }; }; then
9597 ac_cv_search_opendir="none required"
9598 else
9599 echo "$as_me: failed program was:" >&5
9600 sed 's/^/| /' conftest.$ac_ext >&5
9603 rm -f conftest.err conftest.$ac_objext \
9604 conftest$ac_exeext conftest.$ac_ext
9605 if test "$ac_cv_search_opendir" = no; then
9606 for ac_lib in dir; do
9607 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9608 cat >conftest.$ac_ext <<_ACEOF
9609 /* confdefs.h. */
9610 _ACEOF
9611 cat confdefs.h >>conftest.$ac_ext
9612 cat >>conftest.$ac_ext <<_ACEOF
9613 /* end confdefs.h. */
9615 /* Override any gcc2 internal prototype to avoid an error. */
9616 #ifdef __cplusplus
9617 extern "C"
9618 #endif
9619 /* We use char because int might match the return type of a gcc2
9620 builtin and then its argument prototype would still apply. */
9621 char opendir ();
9623 main ()
9625 opendir ();
9627 return 0;
9629 _ACEOF
9630 rm -f conftest.$ac_objext conftest$ac_exeext
9631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9632 (eval $ac_link) 2>conftest.er1
9633 ac_status=$?
9634 grep -v '^ *+' conftest.er1 >conftest.err
9635 rm -f conftest.er1
9636 cat conftest.err >&5
9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 (exit $ac_status); } &&
9639 { ac_try='test -z "$ac_c_werror_flag"
9640 || test ! -s conftest.err'
9641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9642 (eval $ac_try) 2>&5
9643 ac_status=$?
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); }; } &&
9646 { ac_try='test -s conftest$ac_exeext'
9647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9648 (eval $ac_try) 2>&5
9649 ac_status=$?
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); }; }; then
9652 ac_cv_search_opendir="-l$ac_lib"
9653 break
9654 else
9655 echo "$as_me: failed program was:" >&5
9656 sed 's/^/| /' conftest.$ac_ext >&5
9659 rm -f conftest.err conftest.$ac_objext \
9660 conftest$ac_exeext conftest.$ac_ext
9661 done
9663 LIBS=$ac_func_search_save_LIBS
9665 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9666 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9667 if test "$ac_cv_search_opendir" != no; then
9668 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9672 else
9673 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9674 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9675 if test "${ac_cv_search_opendir+set}" = set; then
9676 echo $ECHO_N "(cached) $ECHO_C" >&6
9677 else
9678 ac_func_search_save_LIBS=$LIBS
9679 ac_cv_search_opendir=no
9680 cat >conftest.$ac_ext <<_ACEOF
9681 /* confdefs.h. */
9682 _ACEOF
9683 cat confdefs.h >>conftest.$ac_ext
9684 cat >>conftest.$ac_ext <<_ACEOF
9685 /* end confdefs.h. */
9687 /* Override any gcc2 internal prototype to avoid an error. */
9688 #ifdef __cplusplus
9689 extern "C"
9690 #endif
9691 /* We use char because int might match the return type of a gcc2
9692 builtin and then its argument prototype would still apply. */
9693 char opendir ();
9695 main ()
9697 opendir ();
9699 return 0;
9701 _ACEOF
9702 rm -f conftest.$ac_objext conftest$ac_exeext
9703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9704 (eval $ac_link) 2>conftest.er1
9705 ac_status=$?
9706 grep -v '^ *+' conftest.er1 >conftest.err
9707 rm -f conftest.er1
9708 cat conftest.err >&5
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); } &&
9711 { ac_try='test -z "$ac_c_werror_flag"
9712 || test ! -s conftest.err'
9713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9714 (eval $ac_try) 2>&5
9715 ac_status=$?
9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 (exit $ac_status); }; } &&
9718 { ac_try='test -s conftest$ac_exeext'
9719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9720 (eval $ac_try) 2>&5
9721 ac_status=$?
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); }; }; then
9724 ac_cv_search_opendir="none required"
9725 else
9726 echo "$as_me: failed program was:" >&5
9727 sed 's/^/| /' conftest.$ac_ext >&5
9730 rm -f conftest.err conftest.$ac_objext \
9731 conftest$ac_exeext conftest.$ac_ext
9732 if test "$ac_cv_search_opendir" = no; then
9733 for ac_lib in x; do
9734 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9735 cat >conftest.$ac_ext <<_ACEOF
9736 /* confdefs.h. */
9737 _ACEOF
9738 cat confdefs.h >>conftest.$ac_ext
9739 cat >>conftest.$ac_ext <<_ACEOF
9740 /* end confdefs.h. */
9742 /* Override any gcc2 internal prototype to avoid an error. */
9743 #ifdef __cplusplus
9744 extern "C"
9745 #endif
9746 /* We use char because int might match the return type of a gcc2
9747 builtin and then its argument prototype would still apply. */
9748 char opendir ();
9750 main ()
9752 opendir ();
9754 return 0;
9756 _ACEOF
9757 rm -f conftest.$ac_objext conftest$ac_exeext
9758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9759 (eval $ac_link) 2>conftest.er1
9760 ac_status=$?
9761 grep -v '^ *+' conftest.er1 >conftest.err
9762 rm -f conftest.er1
9763 cat conftest.err >&5
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); } &&
9766 { ac_try='test -z "$ac_c_werror_flag"
9767 || test ! -s conftest.err'
9768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9769 (eval $ac_try) 2>&5
9770 ac_status=$?
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); }; } &&
9773 { ac_try='test -s conftest$ac_exeext'
9774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9775 (eval $ac_try) 2>&5
9776 ac_status=$?
9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); }; }; then
9779 ac_cv_search_opendir="-l$ac_lib"
9780 break
9781 else
9782 echo "$as_me: failed program was:" >&5
9783 sed 's/^/| /' conftest.$ac_ext >&5
9786 rm -f conftest.err conftest.$ac_objext \
9787 conftest$ac_exeext conftest.$ac_ext
9788 done
9790 LIBS=$ac_func_search_save_LIBS
9792 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9793 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9794 if test "$ac_cv_search_opendir" != no; then
9795 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9801 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9802 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9803 if test "${ac_cv_header_stdc+set}" = set; then
9804 echo $ECHO_N "(cached) $ECHO_C" >&6
9805 else
9806 cat >conftest.$ac_ext <<_ACEOF
9807 /* confdefs.h. */
9808 _ACEOF
9809 cat confdefs.h >>conftest.$ac_ext
9810 cat >>conftest.$ac_ext <<_ACEOF
9811 /* end confdefs.h. */
9812 #include <stdlib.h>
9813 #include <stdarg.h>
9814 #include <string.h>
9815 #include <float.h>
9818 main ()
9822 return 0;
9824 _ACEOF
9825 rm -f conftest.$ac_objext
9826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9827 (eval $ac_compile) 2>conftest.er1
9828 ac_status=$?
9829 grep -v '^ *+' conftest.er1 >conftest.err
9830 rm -f conftest.er1
9831 cat conftest.err >&5
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); } &&
9834 { ac_try='test -z "$ac_c_werror_flag"
9835 || test ! -s conftest.err'
9836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9837 (eval $ac_try) 2>&5
9838 ac_status=$?
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); }; } &&
9841 { ac_try='test -s conftest.$ac_objext'
9842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9843 (eval $ac_try) 2>&5
9844 ac_status=$?
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); }; }; then
9847 ac_cv_header_stdc=yes
9848 else
9849 echo "$as_me: failed program was:" >&5
9850 sed 's/^/| /' conftest.$ac_ext >&5
9852 ac_cv_header_stdc=no
9854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9856 if test $ac_cv_header_stdc = yes; then
9857 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9858 cat >conftest.$ac_ext <<_ACEOF
9859 /* confdefs.h. */
9860 _ACEOF
9861 cat confdefs.h >>conftest.$ac_ext
9862 cat >>conftest.$ac_ext <<_ACEOF
9863 /* end confdefs.h. */
9864 #include <string.h>
9866 _ACEOF
9867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9868 $EGREP "memchr" >/dev/null 2>&1; then
9870 else
9871 ac_cv_header_stdc=no
9873 rm -f conftest*
9877 if test $ac_cv_header_stdc = yes; then
9878 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9879 cat >conftest.$ac_ext <<_ACEOF
9880 /* confdefs.h. */
9881 _ACEOF
9882 cat confdefs.h >>conftest.$ac_ext
9883 cat >>conftest.$ac_ext <<_ACEOF
9884 /* end confdefs.h. */
9885 #include <stdlib.h>
9887 _ACEOF
9888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9889 $EGREP "free" >/dev/null 2>&1; then
9891 else
9892 ac_cv_header_stdc=no
9894 rm -f conftest*
9898 if test $ac_cv_header_stdc = yes; then
9899 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9900 if test "$cross_compiling" = yes; then
9902 else
9903 cat >conftest.$ac_ext <<_ACEOF
9904 /* confdefs.h. */
9905 _ACEOF
9906 cat confdefs.h >>conftest.$ac_ext
9907 cat >>conftest.$ac_ext <<_ACEOF
9908 /* end confdefs.h. */
9909 #include <ctype.h>
9910 #if ((' ' & 0x0FF) == 0x020)
9911 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9912 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9913 #else
9914 # define ISLOWER(c) \
9915 (('a' <= (c) && (c) <= 'i') \
9916 || ('j' <= (c) && (c) <= 'r') \
9917 || ('s' <= (c) && (c) <= 'z'))
9918 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9919 #endif
9921 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9923 main ()
9925 int i;
9926 for (i = 0; i < 256; i++)
9927 if (XOR (islower (i), ISLOWER (i))
9928 || toupper (i) != TOUPPER (i))
9929 exit(2);
9930 exit (0);
9932 _ACEOF
9933 rm -f conftest$ac_exeext
9934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9935 (eval $ac_link) 2>&5
9936 ac_status=$?
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9940 (eval $ac_try) 2>&5
9941 ac_status=$?
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); }; }; then
9945 else
9946 echo "$as_me: program exited with status $ac_status" >&5
9947 echo "$as_me: failed program was:" >&5
9948 sed 's/^/| /' conftest.$ac_ext >&5
9950 ( exit $ac_status )
9951 ac_cv_header_stdc=no
9953 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9957 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9958 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9959 if test $ac_cv_header_stdc = yes; then
9961 cat >>confdefs.h <<\_ACEOF
9962 #define STDC_HEADERS 1
9963 _ACEOF
10000 for ac_header in argz.h arpa/inet.h fcntl.h inttypes.h langinfo.h libintl.h limits.h locale.h malloc.h mntent.h netdb.h netinet/in.h stddef.h nl_types.h stdint.h stdio_ext.h stdlib.h string.h strings.h sys/ioctl.h sys/mntent.h sys/mnttab.h sys/mount.h sys/param.h sys/resource.h sys/select.h sys/socket.h sys/statvfs.h sys/time.h sys/timeb.h sys/types.h sys/mman.h unistd.h
10002 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10004 echo "$as_me:$LINENO: checking for $ac_header" >&5
10005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10006 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10007 echo $ECHO_N "(cached) $ECHO_C" >&6
10009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10010 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10011 else
10012 # Is the header compilable?
10013 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10014 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10015 cat >conftest.$ac_ext <<_ACEOF
10016 /* confdefs.h. */
10017 _ACEOF
10018 cat confdefs.h >>conftest.$ac_ext
10019 cat >>conftest.$ac_ext <<_ACEOF
10020 /* end confdefs.h. */
10021 $ac_includes_default
10022 #include <$ac_header>
10023 _ACEOF
10024 rm -f conftest.$ac_objext
10025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10026 (eval $ac_compile) 2>conftest.er1
10027 ac_status=$?
10028 grep -v '^ *+' conftest.er1 >conftest.err
10029 rm -f conftest.er1
10030 cat conftest.err >&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); } &&
10033 { ac_try='test -z "$ac_c_werror_flag"
10034 || test ! -s conftest.err'
10035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10036 (eval $ac_try) 2>&5
10037 ac_status=$?
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); }; } &&
10040 { ac_try='test -s conftest.$ac_objext'
10041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10042 (eval $ac_try) 2>&5
10043 ac_status=$?
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); }; }; then
10046 ac_header_compiler=yes
10047 else
10048 echo "$as_me: failed program was:" >&5
10049 sed 's/^/| /' conftest.$ac_ext >&5
10051 ac_header_compiler=no
10053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10054 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10055 echo "${ECHO_T}$ac_header_compiler" >&6
10057 # Is the header present?
10058 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10059 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10060 cat >conftest.$ac_ext <<_ACEOF
10061 /* confdefs.h. */
10062 _ACEOF
10063 cat confdefs.h >>conftest.$ac_ext
10064 cat >>conftest.$ac_ext <<_ACEOF
10065 /* end confdefs.h. */
10066 #include <$ac_header>
10067 _ACEOF
10068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10069 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10070 ac_status=$?
10071 grep -v '^ *+' conftest.er1 >conftest.err
10072 rm -f conftest.er1
10073 cat conftest.err >&5
10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075 (exit $ac_status); } >/dev/null; then
10076 if test -s conftest.err; then
10077 ac_cpp_err=$ac_c_preproc_warn_flag
10078 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10079 else
10080 ac_cpp_err=
10082 else
10083 ac_cpp_err=yes
10085 if test -z "$ac_cpp_err"; then
10086 ac_header_preproc=yes
10087 else
10088 echo "$as_me: failed program was:" >&5
10089 sed 's/^/| /' conftest.$ac_ext >&5
10091 ac_header_preproc=no
10093 rm -f conftest.err conftest.$ac_ext
10094 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10095 echo "${ECHO_T}$ac_header_preproc" >&6
10097 # So? What about this header?
10098 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10099 yes:no: )
10100 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10101 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10103 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10104 ac_header_preproc=yes
10106 no:yes:* )
10107 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10108 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10109 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10110 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10111 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10112 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10113 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10114 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10116 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10117 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10118 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10120 cat <<\_ASBOX
10121 ## ------------------------------ ##
10122 ## Report this to admin@amule.org ##
10123 ## ------------------------------ ##
10124 _ASBOX
10126 sed "s/^/$as_me: WARNING: /" >&2
10128 esac
10129 echo "$as_me:$LINENO: checking for $ac_header" >&5
10130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10131 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10132 echo $ECHO_N "(cached) $ECHO_C" >&6
10133 else
10134 eval "$as_ac_Header=\$ac_header_preproc"
10136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10137 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10140 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10141 cat >>confdefs.h <<_ACEOF
10142 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10143 _ACEOF
10147 done
10149 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10150 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10151 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10152 echo $ECHO_N "(cached) $ECHO_C" >&6
10153 else
10154 cat >conftest.$ac_ext <<_ACEOF
10155 /* confdefs.h. */
10156 _ACEOF
10157 cat confdefs.h >>conftest.$ac_ext
10158 cat >>conftest.$ac_ext <<_ACEOF
10159 /* end confdefs.h. */
10160 #include <sys/types.h>
10161 #include <sys/wait.h>
10162 #ifndef WEXITSTATUS
10163 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10164 #endif
10165 #ifndef WIFEXITED
10166 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10167 #endif
10170 main ()
10172 int s;
10173 wait (&s);
10174 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10176 return 0;
10178 _ACEOF
10179 rm -f conftest.$ac_objext
10180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10181 (eval $ac_compile) 2>conftest.er1
10182 ac_status=$?
10183 grep -v '^ *+' conftest.er1 >conftest.err
10184 rm -f conftest.er1
10185 cat conftest.err >&5
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); } &&
10188 { ac_try='test -z "$ac_c_werror_flag"
10189 || test ! -s conftest.err'
10190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10191 (eval $ac_try) 2>&5
10192 ac_status=$?
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); }; } &&
10195 { ac_try='test -s conftest.$ac_objext'
10196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10197 (eval $ac_try) 2>&5
10198 ac_status=$?
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); }; }; then
10201 ac_cv_header_sys_wait_h=yes
10202 else
10203 echo "$as_me: failed program was:" >&5
10204 sed 's/^/| /' conftest.$ac_ext >&5
10206 ac_cv_header_sys_wait_h=no
10208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10210 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10211 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10212 if test $ac_cv_header_sys_wait_h = yes; then
10214 cat >>confdefs.h <<\_ACEOF
10215 #define HAVE_SYS_WAIT_H 1
10216 _ACEOF
10221 # Checks for typedefs, structures, and compiler characteristics.
10222 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
10223 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
10224 if test "${ac_cv_header_stdbool_h+set}" = set; then
10225 echo $ECHO_N "(cached) $ECHO_C" >&6
10226 else
10227 cat >conftest.$ac_ext <<_ACEOF
10228 /* confdefs.h. */
10229 _ACEOF
10230 cat confdefs.h >>conftest.$ac_ext
10231 cat >>conftest.$ac_ext <<_ACEOF
10232 /* end confdefs.h. */
10234 #include <stdbool.h>
10235 #ifndef bool
10236 # error bool is not defined
10237 #endif
10238 #ifndef false
10239 # error false is not defined
10240 #endif
10241 #if false
10242 # error false is not 0
10243 #endif
10244 #ifndef true
10245 # error true is not defined
10246 #endif
10247 #if true != 1
10248 # error true is not 1
10249 #endif
10250 #ifndef __bool_true_false_are_defined
10251 # error __bool_true_false_are_defined is not defined
10252 #endif
10254 struct s { _Bool s: 1; _Bool t; } s;
10256 char a[true == 1 ? 1 : -1];
10257 char b[false == 0 ? 1 : -1];
10258 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10259 char d[(bool) -0.5 == true ? 1 : -1];
10260 bool e = &s;
10261 char f[(_Bool) -0.0 == false ? 1 : -1];
10262 char g[true];
10263 char h[sizeof (_Bool)];
10264 char i[sizeof s.t];
10267 main ()
10269 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
10271 return 0;
10273 _ACEOF
10274 rm -f conftest.$ac_objext
10275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10276 (eval $ac_compile) 2>conftest.er1
10277 ac_status=$?
10278 grep -v '^ *+' conftest.er1 >conftest.err
10279 rm -f conftest.er1
10280 cat conftest.err >&5
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); } &&
10283 { ac_try='test -z "$ac_c_werror_flag"
10284 || test ! -s conftest.err'
10285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10286 (eval $ac_try) 2>&5
10287 ac_status=$?
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); }; } &&
10290 { ac_try='test -s conftest.$ac_objext'
10291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10292 (eval $ac_try) 2>&5
10293 ac_status=$?
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); }; }; then
10296 ac_cv_header_stdbool_h=yes
10297 else
10298 echo "$as_me: failed program was:" >&5
10299 sed 's/^/| /' conftest.$ac_ext >&5
10301 ac_cv_header_stdbool_h=no
10303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10305 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
10306 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
10307 echo "$as_me:$LINENO: checking for _Bool" >&5
10308 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
10309 if test "${ac_cv_type__Bool+set}" = set; then
10310 echo $ECHO_N "(cached) $ECHO_C" >&6
10311 else
10312 cat >conftest.$ac_ext <<_ACEOF
10313 /* confdefs.h. */
10314 _ACEOF
10315 cat confdefs.h >>conftest.$ac_ext
10316 cat >>conftest.$ac_ext <<_ACEOF
10317 /* end confdefs.h. */
10318 $ac_includes_default
10320 main ()
10322 if ((_Bool *) 0)
10323 return 0;
10324 if (sizeof (_Bool))
10325 return 0;
10327 return 0;
10329 _ACEOF
10330 rm -f conftest.$ac_objext
10331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10332 (eval $ac_compile) 2>conftest.er1
10333 ac_status=$?
10334 grep -v '^ *+' conftest.er1 >conftest.err
10335 rm -f conftest.er1
10336 cat conftest.err >&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); } &&
10339 { ac_try='test -z "$ac_c_werror_flag"
10340 || test ! -s conftest.err'
10341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10342 (eval $ac_try) 2>&5
10343 ac_status=$?
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); }; } &&
10346 { ac_try='test -s conftest.$ac_objext'
10347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10348 (eval $ac_try) 2>&5
10349 ac_status=$?
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); }; }; then
10352 ac_cv_type__Bool=yes
10353 else
10354 echo "$as_me: failed program was:" >&5
10355 sed 's/^/| /' conftest.$ac_ext >&5
10357 ac_cv_type__Bool=no
10359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10361 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10362 echo "${ECHO_T}$ac_cv_type__Bool" >&6
10363 if test $ac_cv_type__Bool = yes; then
10365 cat >>confdefs.h <<_ACEOF
10366 #define HAVE__BOOL 1
10367 _ACEOF
10372 if test $ac_cv_header_stdbool_h = yes; then
10374 cat >>confdefs.h <<\_ACEOF
10375 #define HAVE_STDBOOL_H 1
10376 _ACEOF
10380 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10381 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10382 if test "${ac_cv_c_const+set}" = set; then
10383 echo $ECHO_N "(cached) $ECHO_C" >&6
10384 else
10385 cat >conftest.$ac_ext <<_ACEOF
10386 /* confdefs.h. */
10387 _ACEOF
10388 cat confdefs.h >>conftest.$ac_ext
10389 cat >>conftest.$ac_ext <<_ACEOF
10390 /* end confdefs.h. */
10393 main ()
10395 /* FIXME: Include the comments suggested by Paul. */
10396 #ifndef __cplusplus
10397 /* Ultrix mips cc rejects this. */
10398 typedef int charset[2];
10399 const charset x;
10400 /* SunOS 4.1.1 cc rejects this. */
10401 char const *const *ccp;
10402 char **p;
10403 /* NEC SVR4.0.2 mips cc rejects this. */
10404 struct point {int x, y;};
10405 static struct point const zero = {0,0};
10406 /* AIX XL C 1.02.0.0 rejects this.
10407 It does not let you subtract one const X* pointer from another in
10408 an arm of an if-expression whose if-part is not a constant
10409 expression */
10410 const char *g = "string";
10411 ccp = &g + (g ? g-g : 0);
10412 /* HPUX 7.0 cc rejects these. */
10413 ++ccp;
10414 p = (char**) ccp;
10415 ccp = (char const *const *) p;
10416 { /* SCO 3.2v4 cc rejects this. */
10417 char *t;
10418 char const *s = 0 ? (char *) 0 : (char const *) 0;
10420 *t++ = 0;
10422 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10423 int x[] = {25, 17};
10424 const int *foo = &x[0];
10425 ++foo;
10427 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10428 typedef const int *iptr;
10429 iptr p = 0;
10430 ++p;
10432 { /* AIX XL C 1.02.0.0 rejects this saying
10433 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10434 struct s { int j; const int *ap[3]; };
10435 struct s *b; b->j = 5;
10437 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10438 const int foo = 10;
10440 #endif
10443 return 0;
10445 _ACEOF
10446 rm -f conftest.$ac_objext
10447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10448 (eval $ac_compile) 2>conftest.er1
10449 ac_status=$?
10450 grep -v '^ *+' conftest.er1 >conftest.err
10451 rm -f conftest.er1
10452 cat conftest.err >&5
10453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454 (exit $ac_status); } &&
10455 { ac_try='test -z "$ac_c_werror_flag"
10456 || test ! -s conftest.err'
10457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10458 (eval $ac_try) 2>&5
10459 ac_status=$?
10460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461 (exit $ac_status); }; } &&
10462 { ac_try='test -s conftest.$ac_objext'
10463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10464 (eval $ac_try) 2>&5
10465 ac_status=$?
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); }; }; then
10468 ac_cv_c_const=yes
10469 else
10470 echo "$as_me: failed program was:" >&5
10471 sed 's/^/| /' conftest.$ac_ext >&5
10473 ac_cv_c_const=no
10475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10477 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10478 echo "${ECHO_T}$ac_cv_c_const" >&6
10479 if test $ac_cv_c_const = no; then
10481 cat >>confdefs.h <<\_ACEOF
10482 #define const
10483 _ACEOF
10487 echo "$as_me:$LINENO: checking for inline" >&5
10488 echo $ECHO_N "checking for inline... $ECHO_C" >&6
10489 if test "${ac_cv_c_inline+set}" = set; then
10490 echo $ECHO_N "(cached) $ECHO_C" >&6
10491 else
10492 ac_cv_c_inline=no
10493 for ac_kw in inline __inline__ __inline; do
10494 cat >conftest.$ac_ext <<_ACEOF
10495 /* confdefs.h. */
10496 _ACEOF
10497 cat confdefs.h >>conftest.$ac_ext
10498 cat >>conftest.$ac_ext <<_ACEOF
10499 /* end confdefs.h. */
10500 #ifndef __cplusplus
10501 typedef int foo_t;
10502 static $ac_kw foo_t static_foo () {return 0; }
10503 $ac_kw foo_t foo () {return 0; }
10504 #endif
10506 _ACEOF
10507 rm -f conftest.$ac_objext
10508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10509 (eval $ac_compile) 2>conftest.er1
10510 ac_status=$?
10511 grep -v '^ *+' conftest.er1 >conftest.err
10512 rm -f conftest.er1
10513 cat conftest.err >&5
10514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515 (exit $ac_status); } &&
10516 { ac_try='test -z "$ac_c_werror_flag"
10517 || test ! -s conftest.err'
10518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10519 (eval $ac_try) 2>&5
10520 ac_status=$?
10521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522 (exit $ac_status); }; } &&
10523 { ac_try='test -s conftest.$ac_objext'
10524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10525 (eval $ac_try) 2>&5
10526 ac_status=$?
10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 (exit $ac_status); }; }; then
10529 ac_cv_c_inline=$ac_kw; break
10530 else
10531 echo "$as_me: failed program was:" >&5
10532 sed 's/^/| /' conftest.$ac_ext >&5
10535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10536 done
10539 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10540 echo "${ECHO_T}$ac_cv_c_inline" >&6
10543 case $ac_cv_c_inline in
10544 inline | yes) ;;
10546 case $ac_cv_c_inline in
10547 no) ac_val=;;
10548 *) ac_val=$ac_cv_c_inline;;
10549 esac
10550 cat >>confdefs.h <<_ACEOF
10551 #ifndef __cplusplus
10552 #define inline $ac_val
10553 #endif
10554 _ACEOF
10556 esac
10558 echo "$as_me:$LINENO: checking for mode_t" >&5
10559 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10560 if test "${ac_cv_type_mode_t+set}" = set; then
10561 echo $ECHO_N "(cached) $ECHO_C" >&6
10562 else
10563 cat >conftest.$ac_ext <<_ACEOF
10564 /* confdefs.h. */
10565 _ACEOF
10566 cat confdefs.h >>conftest.$ac_ext
10567 cat >>conftest.$ac_ext <<_ACEOF
10568 /* end confdefs.h. */
10569 $ac_includes_default
10571 main ()
10573 if ((mode_t *) 0)
10574 return 0;
10575 if (sizeof (mode_t))
10576 return 0;
10578 return 0;
10580 _ACEOF
10581 rm -f conftest.$ac_objext
10582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10583 (eval $ac_compile) 2>conftest.er1
10584 ac_status=$?
10585 grep -v '^ *+' conftest.er1 >conftest.err
10586 rm -f conftest.er1
10587 cat conftest.err >&5
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); } &&
10590 { ac_try='test -z "$ac_c_werror_flag"
10591 || test ! -s conftest.err'
10592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10593 (eval $ac_try) 2>&5
10594 ac_status=$?
10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); }; } &&
10597 { ac_try='test -s conftest.$ac_objext'
10598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10599 (eval $ac_try) 2>&5
10600 ac_status=$?
10601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 (exit $ac_status); }; }; then
10603 ac_cv_type_mode_t=yes
10604 else
10605 echo "$as_me: failed program was:" >&5
10606 sed 's/^/| /' conftest.$ac_ext >&5
10608 ac_cv_type_mode_t=no
10610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10612 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10613 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10614 if test $ac_cv_type_mode_t = yes; then
10616 else
10618 cat >>confdefs.h <<_ACEOF
10619 #define mode_t int
10620 _ACEOF
10624 echo "$as_me:$LINENO: checking for off_t" >&5
10625 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10626 if test "${ac_cv_type_off_t+set}" = set; then
10627 echo $ECHO_N "(cached) $ECHO_C" >&6
10628 else
10629 cat >conftest.$ac_ext <<_ACEOF
10630 /* confdefs.h. */
10631 _ACEOF
10632 cat confdefs.h >>conftest.$ac_ext
10633 cat >>conftest.$ac_ext <<_ACEOF
10634 /* end confdefs.h. */
10635 $ac_includes_default
10637 main ()
10639 if ((off_t *) 0)
10640 return 0;
10641 if (sizeof (off_t))
10642 return 0;
10644 return 0;
10646 _ACEOF
10647 rm -f conftest.$ac_objext
10648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10649 (eval $ac_compile) 2>conftest.er1
10650 ac_status=$?
10651 grep -v '^ *+' conftest.er1 >conftest.err
10652 rm -f conftest.er1
10653 cat conftest.err >&5
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); } &&
10656 { ac_try='test -z "$ac_c_werror_flag"
10657 || test ! -s conftest.err'
10658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10659 (eval $ac_try) 2>&5
10660 ac_status=$?
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); }; } &&
10663 { ac_try='test -s conftest.$ac_objext'
10664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10665 (eval $ac_try) 2>&5
10666 ac_status=$?
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); }; }; then
10669 ac_cv_type_off_t=yes
10670 else
10671 echo "$as_me: failed program was:" >&5
10672 sed 's/^/| /' conftest.$ac_ext >&5
10674 ac_cv_type_off_t=no
10676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10678 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10679 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10680 if test $ac_cv_type_off_t = yes; then
10682 else
10684 cat >>confdefs.h <<_ACEOF
10685 #define off_t long
10686 _ACEOF
10690 echo "$as_me:$LINENO: checking for size_t" >&5
10691 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10692 if test "${ac_cv_type_size_t+set}" = set; then
10693 echo $ECHO_N "(cached) $ECHO_C" >&6
10694 else
10695 cat >conftest.$ac_ext <<_ACEOF
10696 /* confdefs.h. */
10697 _ACEOF
10698 cat confdefs.h >>conftest.$ac_ext
10699 cat >>conftest.$ac_ext <<_ACEOF
10700 /* end confdefs.h. */
10701 $ac_includes_default
10703 main ()
10705 if ((size_t *) 0)
10706 return 0;
10707 if (sizeof (size_t))
10708 return 0;
10710 return 0;
10712 _ACEOF
10713 rm -f conftest.$ac_objext
10714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10715 (eval $ac_compile) 2>conftest.er1
10716 ac_status=$?
10717 grep -v '^ *+' conftest.er1 >conftest.err
10718 rm -f conftest.er1
10719 cat conftest.err >&5
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); } &&
10722 { ac_try='test -z "$ac_c_werror_flag"
10723 || test ! -s conftest.err'
10724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10725 (eval $ac_try) 2>&5
10726 ac_status=$?
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); }; } &&
10729 { ac_try='test -s conftest.$ac_objext'
10730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10731 (eval $ac_try) 2>&5
10732 ac_status=$?
10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); }; }; then
10735 ac_cv_type_size_t=yes
10736 else
10737 echo "$as_me: failed program was:" >&5
10738 sed 's/^/| /' conftest.$ac_ext >&5
10740 ac_cv_type_size_t=no
10742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10744 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10745 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10746 if test $ac_cv_type_size_t = yes; then
10748 else
10750 cat >>confdefs.h <<_ACEOF
10751 #define size_t unsigned
10752 _ACEOF
10756 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10757 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10758 if test "${ac_cv_header_time+set}" = set; then
10759 echo $ECHO_N "(cached) $ECHO_C" >&6
10760 else
10761 cat >conftest.$ac_ext <<_ACEOF
10762 /* confdefs.h. */
10763 _ACEOF
10764 cat confdefs.h >>conftest.$ac_ext
10765 cat >>conftest.$ac_ext <<_ACEOF
10766 /* end confdefs.h. */
10767 #include <sys/types.h>
10768 #include <sys/time.h>
10769 #include <time.h>
10772 main ()
10774 if ((struct tm *) 0)
10775 return 0;
10777 return 0;
10779 _ACEOF
10780 rm -f conftest.$ac_objext
10781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10782 (eval $ac_compile) 2>conftest.er1
10783 ac_status=$?
10784 grep -v '^ *+' conftest.er1 >conftest.err
10785 rm -f conftest.er1
10786 cat conftest.err >&5
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); } &&
10789 { ac_try='test -z "$ac_c_werror_flag"
10790 || test ! -s conftest.err'
10791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10792 (eval $ac_try) 2>&5
10793 ac_status=$?
10794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795 (exit $ac_status); }; } &&
10796 { ac_try='test -s conftest.$ac_objext'
10797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10798 (eval $ac_try) 2>&5
10799 ac_status=$?
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); }; }; then
10802 ac_cv_header_time=yes
10803 else
10804 echo "$as_me: failed program was:" >&5
10805 sed 's/^/| /' conftest.$ac_ext >&5
10807 ac_cv_header_time=no
10809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10811 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10812 echo "${ECHO_T}$ac_cv_header_time" >&6
10813 if test $ac_cv_header_time = yes; then
10815 cat >>confdefs.h <<\_ACEOF
10816 #define TIME_WITH_SYS_TIME 1
10817 _ACEOF
10821 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10822 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10823 if test "${ac_cv_struct_tm+set}" = set; then
10824 echo $ECHO_N "(cached) $ECHO_C" >&6
10825 else
10826 cat >conftest.$ac_ext <<_ACEOF
10827 /* confdefs.h. */
10828 _ACEOF
10829 cat confdefs.h >>conftest.$ac_ext
10830 cat >>conftest.$ac_ext <<_ACEOF
10831 /* end confdefs.h. */
10832 #include <sys/types.h>
10833 #include <time.h>
10836 main ()
10838 struct tm *tp; tp->tm_sec;
10840 return 0;
10842 _ACEOF
10843 rm -f conftest.$ac_objext
10844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10845 (eval $ac_compile) 2>conftest.er1
10846 ac_status=$?
10847 grep -v '^ *+' conftest.er1 >conftest.err
10848 rm -f conftest.er1
10849 cat conftest.err >&5
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); } &&
10852 { ac_try='test -z "$ac_c_werror_flag"
10853 || test ! -s conftest.err'
10854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10855 (eval $ac_try) 2>&5
10856 ac_status=$?
10857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858 (exit $ac_status); }; } &&
10859 { ac_try='test -s conftest.$ac_objext'
10860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10861 (eval $ac_try) 2>&5
10862 ac_status=$?
10863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); }; }; then
10865 ac_cv_struct_tm=time.h
10866 else
10867 echo "$as_me: failed program was:" >&5
10868 sed 's/^/| /' conftest.$ac_ext >&5
10870 ac_cv_struct_tm=sys/time.h
10872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10874 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10875 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10876 if test $ac_cv_struct_tm = sys/time.h; then
10878 cat >>confdefs.h <<\_ACEOF
10879 #define TM_IN_SYS_TIME 1
10880 _ACEOF
10884 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10885 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10886 if test "${ac_cv_type_uid_t+set}" = set; then
10887 echo $ECHO_N "(cached) $ECHO_C" >&6
10888 else
10889 cat >conftest.$ac_ext <<_ACEOF
10890 /* confdefs.h. */
10891 _ACEOF
10892 cat confdefs.h >>conftest.$ac_ext
10893 cat >>conftest.$ac_ext <<_ACEOF
10894 /* end confdefs.h. */
10895 #include <sys/types.h>
10897 _ACEOF
10898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10899 $EGREP "uid_t" >/dev/null 2>&1; then
10900 ac_cv_type_uid_t=yes
10901 else
10902 ac_cv_type_uid_t=no
10904 rm -f conftest*
10907 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10908 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10909 if test $ac_cv_type_uid_t = no; then
10911 cat >>confdefs.h <<\_ACEOF
10912 #define uid_t int
10913 _ACEOF
10916 cat >>confdefs.h <<\_ACEOF
10917 #define gid_t int
10918 _ACEOF
10922 echo "$as_me:$LINENO: checking for working volatile" >&5
10923 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
10924 if test "${ac_cv_c_volatile+set}" = set; then
10925 echo $ECHO_N "(cached) $ECHO_C" >&6
10926 else
10927 cat >conftest.$ac_ext <<_ACEOF
10928 /* confdefs.h. */
10929 _ACEOF
10930 cat confdefs.h >>conftest.$ac_ext
10931 cat >>conftest.$ac_ext <<_ACEOF
10932 /* end confdefs.h. */
10935 main ()
10938 volatile int x;
10939 int * volatile y;
10941 return 0;
10943 _ACEOF
10944 rm -f conftest.$ac_objext
10945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10946 (eval $ac_compile) 2>conftest.er1
10947 ac_status=$?
10948 grep -v '^ *+' conftest.er1 >conftest.err
10949 rm -f conftest.er1
10950 cat conftest.err >&5
10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); } &&
10953 { ac_try='test -z "$ac_c_werror_flag"
10954 || test ! -s conftest.err'
10955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10956 (eval $ac_try) 2>&5
10957 ac_status=$?
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); }; } &&
10960 { ac_try='test -s conftest.$ac_objext'
10961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10962 (eval $ac_try) 2>&5
10963 ac_status=$?
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); }; }; then
10966 ac_cv_c_volatile=yes
10967 else
10968 echo "$as_me: failed program was:" >&5
10969 sed 's/^/| /' conftest.$ac_ext >&5
10971 ac_cv_c_volatile=no
10973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10975 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
10976 echo "${ECHO_T}$ac_cv_c_volatile" >&6
10977 if test $ac_cv_c_volatile = no; then
10979 cat >>confdefs.h <<\_ACEOF
10980 #define volatile
10981 _ACEOF
10985 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10986 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10987 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10988 echo $ECHO_N "(cached) $ECHO_C" >&6
10989 else
10990 cat >conftest.$ac_ext <<_ACEOF
10991 /* confdefs.h. */
10992 _ACEOF
10993 cat confdefs.h >>conftest.$ac_ext
10994 cat >>conftest.$ac_ext <<_ACEOF
10995 /* end confdefs.h. */
10996 $ac_includes_default
10998 main ()
11000 if ((ptrdiff_t *) 0)
11001 return 0;
11002 if (sizeof (ptrdiff_t))
11003 return 0;
11005 return 0;
11007 _ACEOF
11008 rm -f conftest.$ac_objext
11009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11010 (eval $ac_compile) 2>conftest.er1
11011 ac_status=$?
11012 grep -v '^ *+' conftest.er1 >conftest.err
11013 rm -f conftest.er1
11014 cat conftest.err >&5
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); } &&
11017 { ac_try='test -z "$ac_c_werror_flag"
11018 || test ! -s conftest.err'
11019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11020 (eval $ac_try) 2>&5
11021 ac_status=$?
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); }; } &&
11024 { ac_try='test -s conftest.$ac_objext'
11025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11026 (eval $ac_try) 2>&5
11027 ac_status=$?
11028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029 (exit $ac_status); }; }; then
11030 ac_cv_type_ptrdiff_t=yes
11031 else
11032 echo "$as_me: failed program was:" >&5
11033 sed 's/^/| /' conftest.$ac_ext >&5
11035 ac_cv_type_ptrdiff_t=no
11037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11039 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11040 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
11041 if test $ac_cv_type_ptrdiff_t = yes; then
11043 cat >>confdefs.h <<_ACEOF
11044 #define HAVE_PTRDIFF_T 1
11045 _ACEOF
11051 # Checks for library functions.
11052 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
11053 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
11054 if test "${ac_cv_func_closedir_void+set}" = set; then
11055 echo $ECHO_N "(cached) $ECHO_C" >&6
11056 else
11057 if test "$cross_compiling" = yes; then
11058 ac_cv_func_closedir_void=yes
11059 else
11060 cat >conftest.$ac_ext <<_ACEOF
11061 /* confdefs.h. */
11062 _ACEOF
11063 cat confdefs.h >>conftest.$ac_ext
11064 cat >>conftest.$ac_ext <<_ACEOF
11065 /* end confdefs.h. */
11066 $ac_includes_default
11067 #include <$ac_header_dirent>
11068 #ifndef __cplusplus
11069 int closedir ();
11070 #endif
11073 main ()
11075 exit (closedir (opendir (".")) != 0);
11077 return 0;
11079 _ACEOF
11080 rm -f conftest$ac_exeext
11081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11082 (eval $ac_link) 2>&5
11083 ac_status=$?
11084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11087 (eval $ac_try) 2>&5
11088 ac_status=$?
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); }; }; then
11091 ac_cv_func_closedir_void=no
11092 else
11093 echo "$as_me: program exited with status $ac_status" >&5
11094 echo "$as_me: failed program was:" >&5
11095 sed 's/^/| /' conftest.$ac_ext >&5
11097 ( exit $ac_status )
11098 ac_cv_func_closedir_void=yes
11100 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11103 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
11104 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
11105 if test $ac_cv_func_closedir_void = yes; then
11107 cat >>confdefs.h <<\_ACEOF
11108 #define CLOSEDIR_VOID 1
11109 _ACEOF
11113 if test $ac_cv_c_compiler_gnu = yes; then
11114 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11115 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11116 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11117 echo $ECHO_N "(cached) $ECHO_C" >&6
11118 else
11119 ac_pattern="Autoconf.*'x'"
11120 cat >conftest.$ac_ext <<_ACEOF
11121 /* confdefs.h. */
11122 _ACEOF
11123 cat confdefs.h >>conftest.$ac_ext
11124 cat >>conftest.$ac_ext <<_ACEOF
11125 /* end confdefs.h. */
11126 #include <sgtty.h>
11127 Autoconf TIOCGETP
11128 _ACEOF
11129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11130 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11131 ac_cv_prog_gcc_traditional=yes
11132 else
11133 ac_cv_prog_gcc_traditional=no
11135 rm -f conftest*
11138 if test $ac_cv_prog_gcc_traditional = no; then
11139 cat >conftest.$ac_ext <<_ACEOF
11140 /* confdefs.h. */
11141 _ACEOF
11142 cat confdefs.h >>conftest.$ac_ext
11143 cat >>conftest.$ac_ext <<_ACEOF
11144 /* end confdefs.h. */
11145 #include <termio.h>
11146 Autoconf TCGETA
11147 _ACEOF
11148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11149 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11150 ac_cv_prog_gcc_traditional=yes
11152 rm -f conftest*
11156 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11157 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11158 if test $ac_cv_prog_gcc_traditional = yes; then
11159 CC="$CC -traditional"
11163 echo "$as_me:$LINENO: checking for pid_t" >&5
11164 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11165 if test "${ac_cv_type_pid_t+set}" = set; then
11166 echo $ECHO_N "(cached) $ECHO_C" >&6
11167 else
11168 cat >conftest.$ac_ext <<_ACEOF
11169 /* confdefs.h. */
11170 _ACEOF
11171 cat confdefs.h >>conftest.$ac_ext
11172 cat >>conftest.$ac_ext <<_ACEOF
11173 /* end confdefs.h. */
11174 $ac_includes_default
11176 main ()
11178 if ((pid_t *) 0)
11179 return 0;
11180 if (sizeof (pid_t))
11181 return 0;
11183 return 0;
11185 _ACEOF
11186 rm -f conftest.$ac_objext
11187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11188 (eval $ac_compile) 2>conftest.er1
11189 ac_status=$?
11190 grep -v '^ *+' conftest.er1 >conftest.err
11191 rm -f conftest.er1
11192 cat conftest.err >&5
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); } &&
11195 { ac_try='test -z "$ac_c_werror_flag"
11196 || test ! -s conftest.err'
11197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11198 (eval $ac_try) 2>&5
11199 ac_status=$?
11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201 (exit $ac_status); }; } &&
11202 { ac_try='test -s conftest.$ac_objext'
11203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11204 (eval $ac_try) 2>&5
11205 ac_status=$?
11206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207 (exit $ac_status); }; }; then
11208 ac_cv_type_pid_t=yes
11209 else
11210 echo "$as_me: failed program was:" >&5
11211 sed 's/^/| /' conftest.$ac_ext >&5
11213 ac_cv_type_pid_t=no
11215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11217 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11218 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11219 if test $ac_cv_type_pid_t = yes; then
11221 else
11223 cat >>confdefs.h <<_ACEOF
11224 #define pid_t int
11225 _ACEOF
11231 for ac_header in unistd.h vfork.h
11233 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11235 echo "$as_me:$LINENO: checking for $ac_header" >&5
11236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11238 echo $ECHO_N "(cached) $ECHO_C" >&6
11240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11242 else
11243 # Is the header compilable?
11244 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11245 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11246 cat >conftest.$ac_ext <<_ACEOF
11247 /* confdefs.h. */
11248 _ACEOF
11249 cat confdefs.h >>conftest.$ac_ext
11250 cat >>conftest.$ac_ext <<_ACEOF
11251 /* end confdefs.h. */
11252 $ac_includes_default
11253 #include <$ac_header>
11254 _ACEOF
11255 rm -f conftest.$ac_objext
11256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11257 (eval $ac_compile) 2>conftest.er1
11258 ac_status=$?
11259 grep -v '^ *+' conftest.er1 >conftest.err
11260 rm -f conftest.er1
11261 cat conftest.err >&5
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); } &&
11264 { ac_try='test -z "$ac_c_werror_flag"
11265 || test ! -s conftest.err'
11266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11267 (eval $ac_try) 2>&5
11268 ac_status=$?
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); }; } &&
11271 { ac_try='test -s conftest.$ac_objext'
11272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11273 (eval $ac_try) 2>&5
11274 ac_status=$?
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); }; }; then
11277 ac_header_compiler=yes
11278 else
11279 echo "$as_me: failed program was:" >&5
11280 sed 's/^/| /' conftest.$ac_ext >&5
11282 ac_header_compiler=no
11284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11285 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11286 echo "${ECHO_T}$ac_header_compiler" >&6
11288 # Is the header present?
11289 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11291 cat >conftest.$ac_ext <<_ACEOF
11292 /* confdefs.h. */
11293 _ACEOF
11294 cat confdefs.h >>conftest.$ac_ext
11295 cat >>conftest.$ac_ext <<_ACEOF
11296 /* end confdefs.h. */
11297 #include <$ac_header>
11298 _ACEOF
11299 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11300 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11301 ac_status=$?
11302 grep -v '^ *+' conftest.er1 >conftest.err
11303 rm -f conftest.er1
11304 cat conftest.err >&5
11305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); } >/dev/null; then
11307 if test -s conftest.err; then
11308 ac_cpp_err=$ac_c_preproc_warn_flag
11309 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11310 else
11311 ac_cpp_err=
11313 else
11314 ac_cpp_err=yes
11316 if test -z "$ac_cpp_err"; then
11317 ac_header_preproc=yes
11318 else
11319 echo "$as_me: failed program was:" >&5
11320 sed 's/^/| /' conftest.$ac_ext >&5
11322 ac_header_preproc=no
11324 rm -f conftest.err conftest.$ac_ext
11325 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11326 echo "${ECHO_T}$ac_header_preproc" >&6
11328 # So? What about this header?
11329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11330 yes:no: )
11331 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11332 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11334 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11335 ac_header_preproc=yes
11337 no:yes:* )
11338 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11339 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11340 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11341 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11342 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11343 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11344 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11345 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11347 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11348 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11349 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11351 cat <<\_ASBOX
11352 ## ------------------------------ ##
11353 ## Report this to admin@amule.org ##
11354 ## ------------------------------ ##
11355 _ASBOX
11357 sed "s/^/$as_me: WARNING: /" >&2
11359 esac
11360 echo "$as_me:$LINENO: checking for $ac_header" >&5
11361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11363 echo $ECHO_N "(cached) $ECHO_C" >&6
11364 else
11365 eval "$as_ac_Header=\$ac_header_preproc"
11367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11372 cat >>confdefs.h <<_ACEOF
11373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11374 _ACEOF
11378 done
11382 for ac_func in fork vfork
11384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11385 echo "$as_me:$LINENO: checking for $ac_func" >&5
11386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11387 if eval "test \"\${$as_ac_var+set}\" = set"; then
11388 echo $ECHO_N "(cached) $ECHO_C" >&6
11389 else
11390 cat >conftest.$ac_ext <<_ACEOF
11391 /* confdefs.h. */
11392 _ACEOF
11393 cat confdefs.h >>conftest.$ac_ext
11394 cat >>conftest.$ac_ext <<_ACEOF
11395 /* end confdefs.h. */
11396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11398 #define $ac_func innocuous_$ac_func
11400 /* System header to define __stub macros and hopefully few prototypes,
11401 which can conflict with char $ac_func (); below.
11402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11403 <limits.h> exists even on freestanding compilers. */
11405 #ifdef __STDC__
11406 # include <limits.h>
11407 #else
11408 # include <assert.h>
11409 #endif
11411 #undef $ac_func
11413 /* Override any gcc2 internal prototype to avoid an error. */
11414 #ifdef __cplusplus
11415 extern "C"
11417 #endif
11418 /* We use char because int might match the return type of a gcc2
11419 builtin and then its argument prototype would still apply. */
11420 char $ac_func ();
11421 /* The GNU C library defines this for functions which it implements
11422 to always fail with ENOSYS. Some functions are actually named
11423 something starting with __ and the normal name is an alias. */
11424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11425 choke me
11426 #else
11427 char (*f) () = $ac_func;
11428 #endif
11429 #ifdef __cplusplus
11431 #endif
11434 main ()
11436 return f != $ac_func;
11438 return 0;
11440 _ACEOF
11441 rm -f conftest.$ac_objext conftest$ac_exeext
11442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11443 (eval $ac_link) 2>conftest.er1
11444 ac_status=$?
11445 grep -v '^ *+' conftest.er1 >conftest.err
11446 rm -f conftest.er1
11447 cat conftest.err >&5
11448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449 (exit $ac_status); } &&
11450 { ac_try='test -z "$ac_c_werror_flag"
11451 || test ! -s conftest.err'
11452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11453 (eval $ac_try) 2>&5
11454 ac_status=$?
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); }; } &&
11457 { ac_try='test -s conftest$ac_exeext'
11458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11459 (eval $ac_try) 2>&5
11460 ac_status=$?
11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); }; }; then
11463 eval "$as_ac_var=yes"
11464 else
11465 echo "$as_me: failed program was:" >&5
11466 sed 's/^/| /' conftest.$ac_ext >&5
11468 eval "$as_ac_var=no"
11470 rm -f conftest.err conftest.$ac_objext \
11471 conftest$ac_exeext conftest.$ac_ext
11473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11474 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11475 if test `eval echo '${'$as_ac_var'}'` = yes; then
11476 cat >>confdefs.h <<_ACEOF
11477 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11478 _ACEOF
11481 done
11483 if test "x$ac_cv_func_fork" = xyes; then
11484 echo "$as_me:$LINENO: checking for working fork" >&5
11485 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
11486 if test "${ac_cv_func_fork_works+set}" = set; then
11487 echo $ECHO_N "(cached) $ECHO_C" >&6
11488 else
11489 if test "$cross_compiling" = yes; then
11490 ac_cv_func_fork_works=cross
11491 else
11492 cat >conftest.$ac_ext <<_ACEOF
11493 /* By Ruediger Kuhlmann. */
11494 #include <sys/types.h>
11495 #if HAVE_UNISTD_H
11496 # include <unistd.h>
11497 #endif
11498 /* Some systems only have a dummy stub for fork() */
11499 int main ()
11501 if (fork() < 0)
11502 exit (1);
11503 exit (0);
11505 _ACEOF
11506 rm -f conftest$ac_exeext
11507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11508 (eval $ac_link) 2>&5
11509 ac_status=$?
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11513 (eval $ac_try) 2>&5
11514 ac_status=$?
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); }; }; then
11517 ac_cv_func_fork_works=yes
11518 else
11519 echo "$as_me: program exited with status $ac_status" >&5
11520 echo "$as_me: failed program was:" >&5
11521 sed 's/^/| /' conftest.$ac_ext >&5
11523 ( exit $ac_status )
11524 ac_cv_func_fork_works=no
11526 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11529 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11530 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11532 else
11533 ac_cv_func_fork_works=$ac_cv_func_fork
11535 if test "x$ac_cv_func_fork_works" = xcross; then
11536 case $host in
11537 *-*-amigaos* | *-*-msdosdjgpp*)
11538 # Override, as these systems have only a dummy fork() stub
11539 ac_cv_func_fork_works=no
11542 ac_cv_func_fork_works=yes
11544 esac
11545 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11546 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11548 ac_cv_func_vfork_works=$ac_cv_func_vfork
11549 if test "x$ac_cv_func_vfork" = xyes; then
11550 echo "$as_me:$LINENO: checking for working vfork" >&5
11551 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11552 if test "${ac_cv_func_vfork_works+set}" = set; then
11553 echo $ECHO_N "(cached) $ECHO_C" >&6
11554 else
11555 if test "$cross_compiling" = yes; then
11556 ac_cv_func_vfork_works=cross
11557 else
11558 cat >conftest.$ac_ext <<_ACEOF
11559 /* confdefs.h. */
11560 _ACEOF
11561 cat confdefs.h >>conftest.$ac_ext
11562 cat >>conftest.$ac_ext <<_ACEOF
11563 /* end confdefs.h. */
11564 /* Thanks to Paul Eggert for this test. */
11565 #include <stdio.h>
11566 #include <stdlib.h>
11567 #include <sys/types.h>
11568 #include <sys/stat.h>
11569 #include <sys/wait.h>
11570 #if HAVE_UNISTD_H
11571 # include <unistd.h>
11572 #endif
11573 #if HAVE_VFORK_H
11574 # include <vfork.h>
11575 #endif
11576 /* On some sparc systems, changes by the child to local and incoming
11577 argument registers are propagated back to the parent. The compiler
11578 is told about this with #include <vfork.h>, but some compilers
11579 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11580 static variable whose address is put into a register that is
11581 clobbered by the vfork. */
11582 static void
11583 #ifdef __cplusplus
11584 sparc_address_test (int arg)
11585 # else
11586 sparc_address_test (arg) int arg;
11587 #endif
11589 static pid_t child;
11590 if (!child) {
11591 child = vfork ();
11592 if (child < 0) {
11593 perror ("vfork");
11594 _exit(2);
11596 if (!child) {
11597 arg = getpid();
11598 write(-1, "", 0);
11599 _exit (arg);
11605 main ()
11607 pid_t parent = getpid ();
11608 pid_t child;
11610 sparc_address_test (0);
11612 child = vfork ();
11614 if (child == 0) {
11615 /* Here is another test for sparc vfork register problems. This
11616 test uses lots of local variables, at least as many local
11617 variables as main has allocated so far including compiler
11618 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11619 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11620 reuse the register of parent for one of the local variables,
11621 since it will think that parent can't possibly be used any more
11622 in this routine. Assigning to the local variable will thus
11623 munge parent in the parent process. */
11624 pid_t
11625 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11626 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11627 /* Convince the compiler that p..p7 are live; otherwise, it might
11628 use the same hardware register for all 8 local variables. */
11629 if (p != p1 || p != p2 || p != p3 || p != p4
11630 || p != p5 || p != p6 || p != p7)
11631 _exit(1);
11633 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11634 from child file descriptors. If the child closes a descriptor
11635 before it execs or exits, this munges the parent's descriptor
11636 as well. Test for this by closing stdout in the child. */
11637 _exit(close(fileno(stdout)) != 0);
11638 } else {
11639 int status;
11640 struct stat st;
11642 while (wait(&status) != child)
11644 exit(
11645 /* Was there some problem with vforking? */
11646 child < 0
11648 /* Did the child fail? (This shouldn't happen.) */
11649 || status
11651 /* Did the vfork/compiler bug occur? */
11652 || parent != getpid()
11654 /* Did the file descriptor bug occur? */
11655 || fstat(fileno(stdout), &st) != 0
11659 _ACEOF
11660 rm -f conftest$ac_exeext
11661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11662 (eval $ac_link) 2>&5
11663 ac_status=$?
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11667 (eval $ac_try) 2>&5
11668 ac_status=$?
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); }; }; then
11671 ac_cv_func_vfork_works=yes
11672 else
11673 echo "$as_me: program exited with status $ac_status" >&5
11674 echo "$as_me: failed program was:" >&5
11675 sed 's/^/| /' conftest.$ac_ext >&5
11677 ( exit $ac_status )
11678 ac_cv_func_vfork_works=no
11680 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11683 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11684 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11687 if test "x$ac_cv_func_fork_works" = xcross; then
11688 ac_cv_func_vfork_works=$ac_cv_func_vfork
11689 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11690 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11693 if test "x$ac_cv_func_vfork_works" = xyes; then
11695 cat >>confdefs.h <<\_ACEOF
11696 #define HAVE_WORKING_VFORK 1
11697 _ACEOF
11699 else
11701 cat >>confdefs.h <<\_ACEOF
11702 #define vfork fork
11703 _ACEOF
11706 if test "x$ac_cv_func_fork_works" = xyes; then
11708 cat >>confdefs.h <<\_ACEOF
11709 #define HAVE_WORKING_FORK 1
11710 _ACEOF
11714 if test x$SYS != xwin32; then
11716 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
11717 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
11718 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
11719 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
11720 echo $ECHO_N "(cached) $ECHO_C" >&6
11721 else
11722 ac_check_lib_save_LIBS=$LIBS
11723 LIBS="-lsun $LIBS"
11724 cat >conftest.$ac_ext <<_ACEOF
11725 /* confdefs.h. */
11726 _ACEOF
11727 cat confdefs.h >>conftest.$ac_ext
11728 cat >>conftest.$ac_ext <<_ACEOF
11729 /* end confdefs.h. */
11731 /* Override any gcc2 internal prototype to avoid an error. */
11732 #ifdef __cplusplus
11733 extern "C"
11734 #endif
11735 /* We use char because int might match the return type of a gcc2
11736 builtin and then its argument prototype would still apply. */
11737 char getmntent ();
11739 main ()
11741 getmntent ();
11743 return 0;
11745 _ACEOF
11746 rm -f conftest.$ac_objext conftest$ac_exeext
11747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11748 (eval $ac_link) 2>conftest.er1
11749 ac_status=$?
11750 grep -v '^ *+' conftest.er1 >conftest.err
11751 rm -f conftest.er1
11752 cat conftest.err >&5
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); } &&
11755 { ac_try='test -z "$ac_c_werror_flag"
11756 || test ! -s conftest.err'
11757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11758 (eval $ac_try) 2>&5
11759 ac_status=$?
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); }; } &&
11762 { ac_try='test -s conftest$ac_exeext'
11763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11764 (eval $ac_try) 2>&5
11765 ac_status=$?
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); }; }; then
11768 ac_cv_lib_sun_getmntent=yes
11769 else
11770 echo "$as_me: failed program was:" >&5
11771 sed 's/^/| /' conftest.$ac_ext >&5
11773 ac_cv_lib_sun_getmntent=no
11775 rm -f conftest.err conftest.$ac_objext \
11776 conftest$ac_exeext conftest.$ac_ext
11777 LIBS=$ac_check_lib_save_LIBS
11779 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
11780 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
11781 if test $ac_cv_lib_sun_getmntent = yes; then
11782 LIBS="-lsun $LIBS"
11783 else
11784 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
11785 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
11786 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
11787 echo $ECHO_N "(cached) $ECHO_C" >&6
11788 else
11789 ac_check_lib_save_LIBS=$LIBS
11790 LIBS="-lseq $LIBS"
11791 cat >conftest.$ac_ext <<_ACEOF
11792 /* confdefs.h. */
11793 _ACEOF
11794 cat confdefs.h >>conftest.$ac_ext
11795 cat >>conftest.$ac_ext <<_ACEOF
11796 /* end confdefs.h. */
11798 /* Override any gcc2 internal prototype to avoid an error. */
11799 #ifdef __cplusplus
11800 extern "C"
11801 #endif
11802 /* We use char because int might match the return type of a gcc2
11803 builtin and then its argument prototype would still apply. */
11804 char getmntent ();
11806 main ()
11808 getmntent ();
11810 return 0;
11812 _ACEOF
11813 rm -f conftest.$ac_objext conftest$ac_exeext
11814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11815 (eval $ac_link) 2>conftest.er1
11816 ac_status=$?
11817 grep -v '^ *+' conftest.er1 >conftest.err
11818 rm -f conftest.er1
11819 cat conftest.err >&5
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); } &&
11822 { ac_try='test -z "$ac_c_werror_flag"
11823 || test ! -s conftest.err'
11824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11825 (eval $ac_try) 2>&5
11826 ac_status=$?
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); }; } &&
11829 { ac_try='test -s conftest$ac_exeext'
11830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11831 (eval $ac_try) 2>&5
11832 ac_status=$?
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); }; }; then
11835 ac_cv_lib_seq_getmntent=yes
11836 else
11837 echo "$as_me: failed program was:" >&5
11838 sed 's/^/| /' conftest.$ac_ext >&5
11840 ac_cv_lib_seq_getmntent=no
11842 rm -f conftest.err conftest.$ac_objext \
11843 conftest$ac_exeext conftest.$ac_ext
11844 LIBS=$ac_check_lib_save_LIBS
11846 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
11847 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
11848 if test $ac_cv_lib_seq_getmntent = yes; then
11849 LIBS="-lseq $LIBS"
11850 else
11851 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
11852 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
11853 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
11854 echo $ECHO_N "(cached) $ECHO_C" >&6
11855 else
11856 ac_check_lib_save_LIBS=$LIBS
11857 LIBS="-lgen $LIBS"
11858 cat >conftest.$ac_ext <<_ACEOF
11859 /* confdefs.h. */
11860 _ACEOF
11861 cat confdefs.h >>conftest.$ac_ext
11862 cat >>conftest.$ac_ext <<_ACEOF
11863 /* end confdefs.h. */
11865 /* Override any gcc2 internal prototype to avoid an error. */
11866 #ifdef __cplusplus
11867 extern "C"
11868 #endif
11869 /* We use char because int might match the return type of a gcc2
11870 builtin and then its argument prototype would still apply. */
11871 char getmntent ();
11873 main ()
11875 getmntent ();
11877 return 0;
11879 _ACEOF
11880 rm -f conftest.$ac_objext conftest$ac_exeext
11881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11882 (eval $ac_link) 2>conftest.er1
11883 ac_status=$?
11884 grep -v '^ *+' conftest.er1 >conftest.err
11885 rm -f conftest.er1
11886 cat conftest.err >&5
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); } &&
11889 { ac_try='test -z "$ac_c_werror_flag"
11890 || test ! -s conftest.err'
11891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11892 (eval $ac_try) 2>&5
11893 ac_status=$?
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); }; } &&
11896 { ac_try='test -s conftest$ac_exeext'
11897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11898 (eval $ac_try) 2>&5
11899 ac_status=$?
11900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901 (exit $ac_status); }; }; then
11902 ac_cv_lib_gen_getmntent=yes
11903 else
11904 echo "$as_me: failed program was:" >&5
11905 sed 's/^/| /' conftest.$ac_ext >&5
11907 ac_cv_lib_gen_getmntent=no
11909 rm -f conftest.err conftest.$ac_objext \
11910 conftest$ac_exeext conftest.$ac_ext
11911 LIBS=$ac_check_lib_save_LIBS
11913 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
11914 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
11915 if test $ac_cv_lib_gen_getmntent = yes; then
11916 LIBS="-lgen $LIBS"
11924 for ac_func in getmntent
11926 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11927 echo "$as_me:$LINENO: checking for $ac_func" >&5
11928 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11929 if eval "test \"\${$as_ac_var+set}\" = set"; then
11930 echo $ECHO_N "(cached) $ECHO_C" >&6
11931 else
11932 cat >conftest.$ac_ext <<_ACEOF
11933 /* confdefs.h. */
11934 _ACEOF
11935 cat confdefs.h >>conftest.$ac_ext
11936 cat >>conftest.$ac_ext <<_ACEOF
11937 /* end confdefs.h. */
11938 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11940 #define $ac_func innocuous_$ac_func
11942 /* System header to define __stub macros and hopefully few prototypes,
11943 which can conflict with char $ac_func (); below.
11944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11945 <limits.h> exists even on freestanding compilers. */
11947 #ifdef __STDC__
11948 # include <limits.h>
11949 #else
11950 # include <assert.h>
11951 #endif
11953 #undef $ac_func
11955 /* Override any gcc2 internal prototype to avoid an error. */
11956 #ifdef __cplusplus
11957 extern "C"
11959 #endif
11960 /* We use char because int might match the return type of a gcc2
11961 builtin and then its argument prototype would still apply. */
11962 char $ac_func ();
11963 /* The GNU C library defines this for functions which it implements
11964 to always fail with ENOSYS. Some functions are actually named
11965 something starting with __ and the normal name is an alias. */
11966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11967 choke me
11968 #else
11969 char (*f) () = $ac_func;
11970 #endif
11971 #ifdef __cplusplus
11973 #endif
11976 main ()
11978 return f != $ac_func;
11980 return 0;
11982 _ACEOF
11983 rm -f conftest.$ac_objext conftest$ac_exeext
11984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11985 (eval $ac_link) 2>conftest.er1
11986 ac_status=$?
11987 grep -v '^ *+' conftest.er1 >conftest.err
11988 rm -f conftest.er1
11989 cat conftest.err >&5
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); } &&
11992 { ac_try='test -z "$ac_c_werror_flag"
11993 || test ! -s conftest.err'
11994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11995 (eval $ac_try) 2>&5
11996 ac_status=$?
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); }; } &&
11999 { ac_try='test -s conftest$ac_exeext'
12000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12001 (eval $ac_try) 2>&5
12002 ac_status=$?
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); }; }; then
12005 eval "$as_ac_var=yes"
12006 else
12007 echo "$as_me: failed program was:" >&5
12008 sed 's/^/| /' conftest.$ac_ext >&5
12010 eval "$as_ac_var=no"
12012 rm -f conftest.err conftest.$ac_objext \
12013 conftest$ac_exeext conftest.$ac_ext
12015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12016 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12017 if test `eval echo '${'$as_ac_var'}'` = yes; then
12018 cat >>confdefs.h <<_ACEOF
12019 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12020 _ACEOF
12023 done
12026 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
12027 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
12028 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
12029 echo $ECHO_N "(cached) $ECHO_C" >&6
12030 else
12031 rm -f conftest.sym conftest.file
12032 echo >conftest.file
12033 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
12034 if test "$cross_compiling" = yes; then
12035 ac_cv_func_lstat_dereferences_slashed_symlink=no
12036 else
12037 cat >conftest.$ac_ext <<_ACEOF
12038 /* confdefs.h. */
12039 _ACEOF
12040 cat confdefs.h >>conftest.$ac_ext
12041 cat >>conftest.$ac_ext <<_ACEOF
12042 /* end confdefs.h. */
12043 $ac_includes_default
12045 main ()
12047 struct stat sbuf;
12048 /* Linux will dereference the symlink and fail.
12049 That is better in the sense that it means we will not
12050 have to compile and use the lstat wrapper. */
12051 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
12053 return 0;
12055 _ACEOF
12056 rm -f conftest$ac_exeext
12057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12058 (eval $ac_link) 2>&5
12059 ac_status=$?
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12063 (eval $ac_try) 2>&5
12064 ac_status=$?
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); }; }; then
12067 ac_cv_func_lstat_dereferences_slashed_symlink=yes
12068 else
12069 echo "$as_me: program exited with status $ac_status" >&5
12070 echo "$as_me: failed program was:" >&5
12071 sed 's/^/| /' conftest.$ac_ext >&5
12073 ( exit $ac_status )
12074 ac_cv_func_lstat_dereferences_slashed_symlink=no
12076 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12078 else
12079 # If the `ln -s' command failed, then we probably don't even
12080 # have an lstat function.
12081 ac_cv_func_lstat_dereferences_slashed_symlink=no
12083 rm -f conftest.sym conftest.file
12086 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
12087 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
12089 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
12091 cat >>confdefs.h <<_ACEOF
12092 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
12093 _ACEOF
12096 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
12097 case $LIBOBJS in
12098 "lstat.$ac_objext" | \
12099 *" lstat.$ac_objext" | \
12100 "lstat.$ac_objext "* | \
12101 *" lstat.$ac_objext "* ) ;;
12102 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
12103 esac
12107 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
12108 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
12109 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
12110 echo $ECHO_N "(cached) $ECHO_C" >&6
12111 else
12112 if test "$cross_compiling" = yes; then
12113 ac_cv_func_lstat_empty_string_bug=yes
12114 else
12115 cat >conftest.$ac_ext <<_ACEOF
12116 /* confdefs.h. */
12117 _ACEOF
12118 cat confdefs.h >>conftest.$ac_ext
12119 cat >>conftest.$ac_ext <<_ACEOF
12120 /* end confdefs.h. */
12121 $ac_includes_default
12123 main ()
12125 struct stat sbuf;
12126 exit (lstat ("", &sbuf) ? 1 : 0);
12128 return 0;
12130 _ACEOF
12131 rm -f conftest$ac_exeext
12132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12133 (eval $ac_link) 2>&5
12134 ac_status=$?
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12138 (eval $ac_try) 2>&5
12139 ac_status=$?
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); }; }; then
12142 ac_cv_func_lstat_empty_string_bug=yes
12143 else
12144 echo "$as_me: program exited with status $ac_status" >&5
12145 echo "$as_me: failed program was:" >&5
12146 sed 's/^/| /' conftest.$ac_ext >&5
12148 ( exit $ac_status )
12149 ac_cv_func_lstat_empty_string_bug=no
12151 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12154 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
12155 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
12156 if test $ac_cv_func_lstat_empty_string_bug = yes; then
12157 case $LIBOBJS in
12158 "lstat.$ac_objext" | \
12159 *" lstat.$ac_objext" | \
12160 "lstat.$ac_objext "* | \
12161 *" lstat.$ac_objext "* ) ;;
12162 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
12163 esac
12166 cat >>confdefs.h <<_ACEOF
12167 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
12168 _ACEOF
12172 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
12173 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
12174 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
12175 echo $ECHO_N "(cached) $ECHO_C" >&6
12176 else
12177 rm -f conftest.sym conftest.file
12178 echo >conftest.file
12179 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
12180 if test "$cross_compiling" = yes; then
12181 ac_cv_func_lstat_dereferences_slashed_symlink=no
12182 else
12183 cat >conftest.$ac_ext <<_ACEOF
12184 /* confdefs.h. */
12185 _ACEOF
12186 cat confdefs.h >>conftest.$ac_ext
12187 cat >>conftest.$ac_ext <<_ACEOF
12188 /* end confdefs.h. */
12189 $ac_includes_default
12191 main ()
12193 struct stat sbuf;
12194 /* Linux will dereference the symlink and fail.
12195 That is better in the sense that it means we will not
12196 have to compile and use the lstat wrapper. */
12197 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
12199 return 0;
12201 _ACEOF
12202 rm -f conftest$ac_exeext
12203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12204 (eval $ac_link) 2>&5
12205 ac_status=$?
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12209 (eval $ac_try) 2>&5
12210 ac_status=$?
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); }; }; then
12213 ac_cv_func_lstat_dereferences_slashed_symlink=yes
12214 else
12215 echo "$as_me: program exited with status $ac_status" >&5
12216 echo "$as_me: failed program was:" >&5
12217 sed 's/^/| /' conftest.$ac_ext >&5
12219 ( exit $ac_status )
12220 ac_cv_func_lstat_dereferences_slashed_symlink=no
12222 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12224 else
12225 # If the `ln -s' command failed, then we probably don't even
12226 # have an lstat function.
12227 ac_cv_func_lstat_dereferences_slashed_symlink=no
12229 rm -f conftest.sym conftest.file
12232 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
12233 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
12235 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
12237 cat >>confdefs.h <<_ACEOF
12238 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
12239 _ACEOF
12242 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
12243 case $LIBOBJS in
12244 "lstat.$ac_objext" | \
12245 *" lstat.$ac_objext" | \
12246 "lstat.$ac_objext "* | \
12247 *" lstat.$ac_objext "* ) ;;
12248 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
12249 esac
12256 echo "$as_me:$LINENO: checking for working memcmp" >&5
12257 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
12258 if test "${ac_cv_func_memcmp_working+set}" = set; then
12259 echo $ECHO_N "(cached) $ECHO_C" >&6
12260 else
12261 if test "$cross_compiling" = yes; then
12262 ac_cv_func_memcmp_working=no
12263 else
12264 cat >conftest.$ac_ext <<_ACEOF
12265 /* confdefs.h. */
12266 _ACEOF
12267 cat confdefs.h >>conftest.$ac_ext
12268 cat >>conftest.$ac_ext <<_ACEOF
12269 /* end confdefs.h. */
12270 $ac_includes_default
12272 main ()
12275 /* Some versions of memcmp are not 8-bit clean. */
12276 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
12277 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12278 exit (1);
12280 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12281 or more and with at least one buffer not starting on a 4-byte boundary.
12282 William Lewis provided this test program. */
12284 char foo[21];
12285 char bar[21];
12286 int i;
12287 for (i = 0; i < 4; i++)
12289 char *a = foo + i;
12290 char *b = bar + i;
12291 strcpy (a, "--------01111111");
12292 strcpy (b, "--------10000000");
12293 if (memcmp (a, b, 16) >= 0)
12294 exit (1);
12296 exit (0);
12300 return 0;
12302 _ACEOF
12303 rm -f conftest$ac_exeext
12304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12305 (eval $ac_link) 2>&5
12306 ac_status=$?
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12310 (eval $ac_try) 2>&5
12311 ac_status=$?
12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313 (exit $ac_status); }; }; then
12314 ac_cv_func_memcmp_working=yes
12315 else
12316 echo "$as_me: program exited with status $ac_status" >&5
12317 echo "$as_me: failed program was:" >&5
12318 sed 's/^/| /' conftest.$ac_ext >&5
12320 ( exit $ac_status )
12321 ac_cv_func_memcmp_working=no
12323 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12326 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
12327 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
12328 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
12329 "memcmp.$ac_objext" | \
12330 *" memcmp.$ac_objext" | \
12331 "memcmp.$ac_objext "* | \
12332 *" memcmp.$ac_objext "* ) ;;
12333 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
12334 esac
12339 for ac_header in stdlib.h unistd.h
12341 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12343 echo "$as_me:$LINENO: checking for $ac_header" >&5
12344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12346 echo $ECHO_N "(cached) $ECHO_C" >&6
12348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12349 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12350 else
12351 # Is the header compilable?
12352 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12353 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12354 cat >conftest.$ac_ext <<_ACEOF
12355 /* confdefs.h. */
12356 _ACEOF
12357 cat confdefs.h >>conftest.$ac_ext
12358 cat >>conftest.$ac_ext <<_ACEOF
12359 /* end confdefs.h. */
12360 $ac_includes_default
12361 #include <$ac_header>
12362 _ACEOF
12363 rm -f conftest.$ac_objext
12364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12365 (eval $ac_compile) 2>conftest.er1
12366 ac_status=$?
12367 grep -v '^ *+' conftest.er1 >conftest.err
12368 rm -f conftest.er1
12369 cat conftest.err >&5
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); } &&
12372 { ac_try='test -z "$ac_c_werror_flag"
12373 || test ! -s conftest.err'
12374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12375 (eval $ac_try) 2>&5
12376 ac_status=$?
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); }; } &&
12379 { ac_try='test -s conftest.$ac_objext'
12380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12381 (eval $ac_try) 2>&5
12382 ac_status=$?
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); }; }; then
12385 ac_header_compiler=yes
12386 else
12387 echo "$as_me: failed program was:" >&5
12388 sed 's/^/| /' conftest.$ac_ext >&5
12390 ac_header_compiler=no
12392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12393 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12394 echo "${ECHO_T}$ac_header_compiler" >&6
12396 # Is the header present?
12397 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12398 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12399 cat >conftest.$ac_ext <<_ACEOF
12400 /* confdefs.h. */
12401 _ACEOF
12402 cat confdefs.h >>conftest.$ac_ext
12403 cat >>conftest.$ac_ext <<_ACEOF
12404 /* end confdefs.h. */
12405 #include <$ac_header>
12406 _ACEOF
12407 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12408 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12409 ac_status=$?
12410 grep -v '^ *+' conftest.er1 >conftest.err
12411 rm -f conftest.er1
12412 cat conftest.err >&5
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); } >/dev/null; then
12415 if test -s conftest.err; then
12416 ac_cpp_err=$ac_c_preproc_warn_flag
12417 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12418 else
12419 ac_cpp_err=
12421 else
12422 ac_cpp_err=yes
12424 if test -z "$ac_cpp_err"; then
12425 ac_header_preproc=yes
12426 else
12427 echo "$as_me: failed program was:" >&5
12428 sed 's/^/| /' conftest.$ac_ext >&5
12430 ac_header_preproc=no
12432 rm -f conftest.err conftest.$ac_ext
12433 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12434 echo "${ECHO_T}$ac_header_preproc" >&6
12436 # So? What about this header?
12437 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12438 yes:no: )
12439 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12440 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12442 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12443 ac_header_preproc=yes
12445 no:yes:* )
12446 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12447 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12448 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12449 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12450 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12451 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12452 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12453 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12455 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12456 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12457 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12459 cat <<\_ASBOX
12460 ## ------------------------------ ##
12461 ## Report this to admin@amule.org ##
12462 ## ------------------------------ ##
12463 _ASBOX
12465 sed "s/^/$as_me: WARNING: /" >&2
12467 esac
12468 echo "$as_me:$LINENO: checking for $ac_header" >&5
12469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12471 echo $ECHO_N "(cached) $ECHO_C" >&6
12472 else
12473 eval "$as_ac_Header=\$ac_header_preproc"
12475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12476 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12480 cat >>confdefs.h <<_ACEOF
12481 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12482 _ACEOF
12486 done
12489 for ac_func in getpagesize
12491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12492 echo "$as_me:$LINENO: checking for $ac_func" >&5
12493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12494 if eval "test \"\${$as_ac_var+set}\" = set"; then
12495 echo $ECHO_N "(cached) $ECHO_C" >&6
12496 else
12497 cat >conftest.$ac_ext <<_ACEOF
12498 /* confdefs.h. */
12499 _ACEOF
12500 cat confdefs.h >>conftest.$ac_ext
12501 cat >>conftest.$ac_ext <<_ACEOF
12502 /* end confdefs.h. */
12503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12505 #define $ac_func innocuous_$ac_func
12507 /* System header to define __stub macros and hopefully few prototypes,
12508 which can conflict with char $ac_func (); below.
12509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12510 <limits.h> exists even on freestanding compilers. */
12512 #ifdef __STDC__
12513 # include <limits.h>
12514 #else
12515 # include <assert.h>
12516 #endif
12518 #undef $ac_func
12520 /* Override any gcc2 internal prototype to avoid an error. */
12521 #ifdef __cplusplus
12522 extern "C"
12524 #endif
12525 /* We use char because int might match the return type of a gcc2
12526 builtin and then its argument prototype would still apply. */
12527 char $ac_func ();
12528 /* The GNU C library defines this for functions which it implements
12529 to always fail with ENOSYS. Some functions are actually named
12530 something starting with __ and the normal name is an alias. */
12531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12532 choke me
12533 #else
12534 char (*f) () = $ac_func;
12535 #endif
12536 #ifdef __cplusplus
12538 #endif
12541 main ()
12543 return f != $ac_func;
12545 return 0;
12547 _ACEOF
12548 rm -f conftest.$ac_objext conftest$ac_exeext
12549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12550 (eval $ac_link) 2>conftest.er1
12551 ac_status=$?
12552 grep -v '^ *+' conftest.er1 >conftest.err
12553 rm -f conftest.er1
12554 cat conftest.err >&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); } &&
12557 { ac_try='test -z "$ac_c_werror_flag"
12558 || test ! -s conftest.err'
12559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12560 (eval $ac_try) 2>&5
12561 ac_status=$?
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); }; } &&
12564 { ac_try='test -s conftest$ac_exeext'
12565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12566 (eval $ac_try) 2>&5
12567 ac_status=$?
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); }; }; then
12570 eval "$as_ac_var=yes"
12571 else
12572 echo "$as_me: failed program was:" >&5
12573 sed 's/^/| /' conftest.$ac_ext >&5
12575 eval "$as_ac_var=no"
12577 rm -f conftest.err conftest.$ac_objext \
12578 conftest$ac_exeext conftest.$ac_ext
12580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12581 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12582 if test `eval echo '${'$as_ac_var'}'` = yes; then
12583 cat >>confdefs.h <<_ACEOF
12584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12585 _ACEOF
12588 done
12590 echo "$as_me:$LINENO: checking for working mmap" >&5
12591 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
12592 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12593 echo $ECHO_N "(cached) $ECHO_C" >&6
12594 else
12595 if test "$cross_compiling" = yes; then
12596 ac_cv_func_mmap_fixed_mapped=no
12597 else
12598 cat >conftest.$ac_ext <<_ACEOF
12599 /* confdefs.h. */
12600 _ACEOF
12601 cat confdefs.h >>conftest.$ac_ext
12602 cat >>conftest.$ac_ext <<_ACEOF
12603 /* end confdefs.h. */
12604 $ac_includes_default
12605 /* malloc might have been renamed as rpl_malloc. */
12606 #undef malloc
12608 /* Thanks to Mike Haertel and Jim Avera for this test.
12609 Here is a matrix of mmap possibilities:
12610 mmap private not fixed
12611 mmap private fixed at somewhere currently unmapped
12612 mmap private fixed at somewhere already mapped
12613 mmap shared not fixed
12614 mmap shared fixed at somewhere currently unmapped
12615 mmap shared fixed at somewhere already mapped
12616 For private mappings, we should verify that changes cannot be read()
12617 back from the file, nor mmap's back from the file at a different
12618 address. (There have been systems where private was not correctly
12619 implemented like the infamous i386 svr4.0, and systems where the
12620 VM page cache was not coherent with the file system buffer cache
12621 like early versions of FreeBSD and possibly contemporary NetBSD.)
12622 For shared mappings, we should conversely verify that changes get
12623 propagated back to all the places they're supposed to be.
12625 Grep wants private fixed already mapped.
12626 The main things grep needs to know about mmap are:
12627 * does it exist and is it safe to write into the mmap'd area
12628 * how to use it (BSD variants) */
12630 #include <fcntl.h>
12631 #include <sys/mman.h>
12633 #if !STDC_HEADERS && !HAVE_STDLIB_H
12634 char *malloc ();
12635 #endif
12637 /* This mess was copied from the GNU getpagesize.h. */
12638 #if !HAVE_GETPAGESIZE
12639 /* Assume that all systems that can run configure have sys/param.h. */
12640 # if !HAVE_SYS_PARAM_H
12641 # define HAVE_SYS_PARAM_H 1
12642 # endif
12644 # ifdef _SC_PAGESIZE
12645 # define getpagesize() sysconf(_SC_PAGESIZE)
12646 # else /* no _SC_PAGESIZE */
12647 # if HAVE_SYS_PARAM_H
12648 # include <sys/param.h>
12649 # ifdef EXEC_PAGESIZE
12650 # define getpagesize() EXEC_PAGESIZE
12651 # else /* no EXEC_PAGESIZE */
12652 # ifdef NBPG
12653 # define getpagesize() NBPG * CLSIZE
12654 # ifndef CLSIZE
12655 # define CLSIZE 1
12656 # endif /* no CLSIZE */
12657 # else /* no NBPG */
12658 # ifdef NBPC
12659 # define getpagesize() NBPC
12660 # else /* no NBPC */
12661 # ifdef PAGESIZE
12662 # define getpagesize() PAGESIZE
12663 # endif /* PAGESIZE */
12664 # endif /* no NBPC */
12665 # endif /* no NBPG */
12666 # endif /* no EXEC_PAGESIZE */
12667 # else /* no HAVE_SYS_PARAM_H */
12668 # define getpagesize() 8192 /* punt totally */
12669 # endif /* no HAVE_SYS_PARAM_H */
12670 # endif /* no _SC_PAGESIZE */
12672 #endif /* no HAVE_GETPAGESIZE */
12675 main ()
12677 char *data, *data2, *data3;
12678 int i, pagesize;
12679 int fd;
12681 pagesize = getpagesize ();
12683 /* First, make a file with some known garbage in it. */
12684 data = (char *) malloc (pagesize);
12685 if (!data)
12686 exit (1);
12687 for (i = 0; i < pagesize; ++i)
12688 *(data + i) = rand ();
12689 umask (0);
12690 fd = creat ("conftest.mmap", 0600);
12691 if (fd < 0)
12692 exit (1);
12693 if (write (fd, data, pagesize) != pagesize)
12694 exit (1);
12695 close (fd);
12697 /* Next, try to mmap the file at a fixed address which already has
12698 something else allocated at it. If we can, also make sure that
12699 we see the same garbage. */
12700 fd = open ("conftest.mmap", O_RDWR);
12701 if (fd < 0)
12702 exit (1);
12703 data2 = (char *) malloc (2 * pagesize);
12704 if (!data2)
12705 exit (1);
12706 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
12707 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12708 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12709 exit (1);
12710 for (i = 0; i < pagesize; ++i)
12711 if (*(data + i) != *(data2 + i))
12712 exit (1);
12714 /* Finally, make sure that changes to the mapped area do not
12715 percolate back to the file as seen by read(). (This is a bug on
12716 some variants of i386 svr4.0.) */
12717 for (i = 0; i < pagesize; ++i)
12718 *(data2 + i) = *(data2 + i) + 1;
12719 data3 = (char *) malloc (pagesize);
12720 if (!data3)
12721 exit (1);
12722 if (read (fd, data3, pagesize) != pagesize)
12723 exit (1);
12724 for (i = 0; i < pagesize; ++i)
12725 if (*(data + i) != *(data3 + i))
12726 exit (1);
12727 close (fd);
12728 exit (0);
12730 _ACEOF
12731 rm -f conftest$ac_exeext
12732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12733 (eval $ac_link) 2>&5
12734 ac_status=$?
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12738 (eval $ac_try) 2>&5
12739 ac_status=$?
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); }; }; then
12742 ac_cv_func_mmap_fixed_mapped=yes
12743 else
12744 echo "$as_me: program exited with status $ac_status" >&5
12745 echo "$as_me: failed program was:" >&5
12746 sed 's/^/| /' conftest.$ac_ext >&5
12748 ( exit $ac_status )
12749 ac_cv_func_mmap_fixed_mapped=no
12751 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12754 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12755 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12756 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12758 cat >>confdefs.h <<\_ACEOF
12759 #define HAVE_MMAP 1
12760 _ACEOF
12763 rm -f conftest.mmap
12767 for ac_header in sys/select.h sys/socket.h
12769 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12771 echo "$as_me:$LINENO: checking for $ac_header" >&5
12772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12774 echo $ECHO_N "(cached) $ECHO_C" >&6
12776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12777 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12778 else
12779 # Is the header compilable?
12780 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12781 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12782 cat >conftest.$ac_ext <<_ACEOF
12783 /* confdefs.h. */
12784 _ACEOF
12785 cat confdefs.h >>conftest.$ac_ext
12786 cat >>conftest.$ac_ext <<_ACEOF
12787 /* end confdefs.h. */
12788 $ac_includes_default
12789 #include <$ac_header>
12790 _ACEOF
12791 rm -f conftest.$ac_objext
12792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12793 (eval $ac_compile) 2>conftest.er1
12794 ac_status=$?
12795 grep -v '^ *+' conftest.er1 >conftest.err
12796 rm -f conftest.er1
12797 cat conftest.err >&5
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); } &&
12800 { ac_try='test -z "$ac_c_werror_flag"
12801 || test ! -s conftest.err'
12802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12803 (eval $ac_try) 2>&5
12804 ac_status=$?
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); }; } &&
12807 { ac_try='test -s conftest.$ac_objext'
12808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12809 (eval $ac_try) 2>&5
12810 ac_status=$?
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); }; }; then
12813 ac_header_compiler=yes
12814 else
12815 echo "$as_me: failed program was:" >&5
12816 sed 's/^/| /' conftest.$ac_ext >&5
12818 ac_header_compiler=no
12820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12821 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12822 echo "${ECHO_T}$ac_header_compiler" >&6
12824 # Is the header present?
12825 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12826 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12827 cat >conftest.$ac_ext <<_ACEOF
12828 /* confdefs.h. */
12829 _ACEOF
12830 cat confdefs.h >>conftest.$ac_ext
12831 cat >>conftest.$ac_ext <<_ACEOF
12832 /* end confdefs.h. */
12833 #include <$ac_header>
12834 _ACEOF
12835 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12836 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12837 ac_status=$?
12838 grep -v '^ *+' conftest.er1 >conftest.err
12839 rm -f conftest.er1
12840 cat conftest.err >&5
12841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842 (exit $ac_status); } >/dev/null; then
12843 if test -s conftest.err; then
12844 ac_cpp_err=$ac_c_preproc_warn_flag
12845 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12846 else
12847 ac_cpp_err=
12849 else
12850 ac_cpp_err=yes
12852 if test -z "$ac_cpp_err"; then
12853 ac_header_preproc=yes
12854 else
12855 echo "$as_me: failed program was:" >&5
12856 sed 's/^/| /' conftest.$ac_ext >&5
12858 ac_header_preproc=no
12860 rm -f conftest.err conftest.$ac_ext
12861 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12862 echo "${ECHO_T}$ac_header_preproc" >&6
12864 # So? What about this header?
12865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12866 yes:no: )
12867 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12868 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12870 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12871 ac_header_preproc=yes
12873 no:yes:* )
12874 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12875 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12876 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12877 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12878 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12879 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12880 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12881 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12883 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12884 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12885 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12887 cat <<\_ASBOX
12888 ## ------------------------------ ##
12889 ## Report this to admin@amule.org ##
12890 ## ------------------------------ ##
12891 _ASBOX
12893 sed "s/^/$as_me: WARNING: /" >&2
12895 esac
12896 echo "$as_me:$LINENO: checking for $ac_header" >&5
12897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12899 echo $ECHO_N "(cached) $ECHO_C" >&6
12900 else
12901 eval "$as_ac_Header=\$ac_header_preproc"
12903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12904 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12907 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12908 cat >>confdefs.h <<_ACEOF
12909 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12910 _ACEOF
12914 done
12916 echo "$as_me:$LINENO: checking types of arguments for select" >&5
12917 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
12918 if test "${ac_cv_func_select_args+set}" = set; then
12919 echo $ECHO_N "(cached) $ECHO_C" >&6
12920 else
12921 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
12922 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
12923 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
12924 cat >conftest.$ac_ext <<_ACEOF
12925 /* confdefs.h. */
12926 _ACEOF
12927 cat confdefs.h >>conftest.$ac_ext
12928 cat >>conftest.$ac_ext <<_ACEOF
12929 /* end confdefs.h. */
12930 $ac_includes_default
12931 #if HAVE_SYS_SELECT_H
12932 # include <sys/select.h>
12933 #endif
12934 #if HAVE_SYS_SOCKET_H
12935 # include <sys/socket.h>
12936 #endif
12939 main ()
12941 extern int select ($ac_arg1,
12942 $ac_arg234, $ac_arg234, $ac_arg234,
12943 $ac_arg5);
12945 return 0;
12947 _ACEOF
12948 rm -f conftest.$ac_objext
12949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12950 (eval $ac_compile) 2>conftest.er1
12951 ac_status=$?
12952 grep -v '^ *+' conftest.er1 >conftest.err
12953 rm -f conftest.er1
12954 cat conftest.err >&5
12955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); } &&
12957 { ac_try='test -z "$ac_c_werror_flag"
12958 || test ! -s conftest.err'
12959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12960 (eval $ac_try) 2>&5
12961 ac_status=$?
12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963 (exit $ac_status); }; } &&
12964 { ac_try='test -s conftest.$ac_objext'
12965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12966 (eval $ac_try) 2>&5
12967 ac_status=$?
12968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969 (exit $ac_status); }; }; then
12970 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12971 else
12972 echo "$as_me: failed program was:" >&5
12973 sed 's/^/| /' conftest.$ac_ext >&5
12976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12977 done
12978 done
12979 done
12980 # Provide a safe default value.
12981 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
12984 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
12985 echo "${ECHO_T}$ac_cv_func_select_args" >&6
12986 ac_save_IFS=$IFS; IFS=','
12987 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12988 IFS=$ac_save_IFS
12989 shift
12991 cat >>confdefs.h <<_ACEOF
12992 #define SELECT_TYPE_ARG1 $1
12993 _ACEOF
12996 cat >>confdefs.h <<_ACEOF
12997 #define SELECT_TYPE_ARG234 ($2)
12998 _ACEOF
13001 cat >>confdefs.h <<_ACEOF
13002 #define SELECT_TYPE_ARG5 ($3)
13003 _ACEOF
13005 rm -f conftest*
13007 echo "$as_me:$LINENO: checking for function prototypes" >&5
13008 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
13009 if test "$ac_cv_prog_cc_stdc" != no; then
13010 echo "$as_me:$LINENO: result: yes" >&5
13011 echo "${ECHO_T}yes" >&6
13013 cat >>confdefs.h <<\_ACEOF
13014 #define PROTOTYPES 1
13015 _ACEOF
13018 cat >>confdefs.h <<\_ACEOF
13019 #define __PROTOTYPES 1
13020 _ACEOF
13022 else
13023 echo "$as_me:$LINENO: result: no" >&5
13024 echo "${ECHO_T}no" >&6
13027 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
13028 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
13029 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
13030 echo $ECHO_N "(cached) $ECHO_C" >&6
13031 else
13032 ac_cv_func_setvbuf_reversed=no
13033 cat >conftest.$ac_ext <<_ACEOF
13034 /* confdefs.h. */
13035 _ACEOF
13036 cat confdefs.h >>conftest.$ac_ext
13037 cat >>conftest.$ac_ext <<_ACEOF
13038 /* end confdefs.h. */
13039 #include <stdio.h>
13040 # if PROTOTYPES
13041 int (setvbuf) (FILE *, int, char *, size_t);
13042 # endif
13044 main ()
13046 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
13048 return 0;
13050 _ACEOF
13051 rm -f conftest.$ac_objext conftest$ac_exeext
13052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13053 (eval $ac_link) 2>conftest.er1
13054 ac_status=$?
13055 grep -v '^ *+' conftest.er1 >conftest.err
13056 rm -f conftest.er1
13057 cat conftest.err >&5
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); } &&
13060 { ac_try='test -z "$ac_c_werror_flag"
13061 || test ! -s conftest.err'
13062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13063 (eval $ac_try) 2>&5
13064 ac_status=$?
13065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066 (exit $ac_status); }; } &&
13067 { ac_try='test -s conftest$ac_exeext'
13068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13069 (eval $ac_try) 2>&5
13070 ac_status=$?
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); }; }; then
13073 cat >conftest.$ac_ext <<_ACEOF
13074 /* confdefs.h. */
13075 _ACEOF
13076 cat confdefs.h >>conftest.$ac_ext
13077 cat >>conftest.$ac_ext <<_ACEOF
13078 /* end confdefs.h. */
13079 #include <stdio.h>
13080 # if PROTOTYPES
13081 int (setvbuf) (FILE *, int, char *, size_t);
13082 # endif
13084 main ()
13086 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
13088 return 0;
13090 _ACEOF
13091 rm -f conftest.$ac_objext conftest$ac_exeext
13092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13093 (eval $ac_link) 2>conftest.er1
13094 ac_status=$?
13095 grep -v '^ *+' conftest.er1 >conftest.err
13096 rm -f conftest.er1
13097 cat conftest.err >&5
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); } &&
13100 { ac_try='test -z "$ac_c_werror_flag"
13101 || test ! -s conftest.err'
13102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13103 (eval $ac_try) 2>&5
13104 ac_status=$?
13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); }; } &&
13107 { ac_try='test -s conftest$ac_exeext'
13108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13109 (eval $ac_try) 2>&5
13110 ac_status=$?
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); }; }; then
13113 # It compiles and links either way, so it must not be declared
13114 # with a prototype and most likely this is a K&R C compiler.
13115 # Try running it.
13116 if test "$cross_compiling" = yes; then
13117 : # Assume setvbuf is not reversed when cross-compiling.
13118 else
13119 cat >conftest.$ac_ext <<_ACEOF
13120 /* confdefs.h. */
13121 _ACEOF
13122 cat confdefs.h >>conftest.$ac_ext
13123 cat >>conftest.$ac_ext <<_ACEOF
13124 /* end confdefs.h. */
13125 #include <stdio.h>
13127 main ()
13129 /* This call has the arguments reversed.
13130 A reversed system may check and see that the address of buf
13131 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
13132 char buf;
13133 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
13134 exit (1);
13135 putchar ('\r');
13136 exit (0); /* Non-reversed systems SEGV here. */
13138 return 0;
13140 _ACEOF
13141 rm -f conftest$ac_exeext
13142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13143 (eval $ac_link) 2>&5
13144 ac_status=$?
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13148 (eval $ac_try) 2>&5
13149 ac_status=$?
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); }; }; then
13152 ac_cv_func_setvbuf_reversed=yes
13153 else
13154 echo "$as_me: program exited with status $ac_status" >&5
13155 echo "$as_me: failed program was:" >&5
13156 sed 's/^/| /' conftest.$ac_ext >&5
13158 ( exit $ac_status )
13159 rm -f core *.core
13161 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13163 ac_cv_func_setvbuf_reversed=yes
13164 else
13165 echo "$as_me: failed program was:" >&5
13166 sed 's/^/| /' conftest.$ac_ext >&5
13169 rm -f conftest.err conftest.$ac_objext \
13170 conftest$ac_exeext conftest.$ac_ext
13171 else
13172 echo "$as_me: failed program was:" >&5
13173 sed 's/^/| /' conftest.$ac_ext >&5
13176 rm -f conftest.err conftest.$ac_objext \
13177 conftest$ac_exeext conftest.$ac_ext
13179 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
13180 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
13181 if test $ac_cv_func_setvbuf_reversed = yes; then
13183 cat >>confdefs.h <<\_ACEOF
13184 #define SETVBUF_REVERSED 1
13185 _ACEOF
13189 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13190 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13191 if test "${ac_cv_type_signal+set}" = set; then
13192 echo $ECHO_N "(cached) $ECHO_C" >&6
13193 else
13194 cat >conftest.$ac_ext <<_ACEOF
13195 /* confdefs.h. */
13196 _ACEOF
13197 cat confdefs.h >>conftest.$ac_ext
13198 cat >>conftest.$ac_ext <<_ACEOF
13199 /* end confdefs.h. */
13200 #include <sys/types.h>
13201 #include <signal.h>
13202 #ifdef signal
13203 # undef signal
13204 #endif
13205 #ifdef __cplusplus
13206 extern "C" void (*signal (int, void (*)(int)))(int);
13207 #else
13208 void (*signal ()) ();
13209 #endif
13212 main ()
13214 int i;
13216 return 0;
13218 _ACEOF
13219 rm -f conftest.$ac_objext
13220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13221 (eval $ac_compile) 2>conftest.er1
13222 ac_status=$?
13223 grep -v '^ *+' conftest.er1 >conftest.err
13224 rm -f conftest.er1
13225 cat conftest.err >&5
13226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227 (exit $ac_status); } &&
13228 { ac_try='test -z "$ac_c_werror_flag"
13229 || test ! -s conftest.err'
13230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13231 (eval $ac_try) 2>&5
13232 ac_status=$?
13233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234 (exit $ac_status); }; } &&
13235 { ac_try='test -s conftest.$ac_objext'
13236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13237 (eval $ac_try) 2>&5
13238 ac_status=$?
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); }; }; then
13241 ac_cv_type_signal=void
13242 else
13243 echo "$as_me: failed program was:" >&5
13244 sed 's/^/| /' conftest.$ac_ext >&5
13246 ac_cv_type_signal=int
13248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13250 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13251 echo "${ECHO_T}$ac_cv_type_signal" >&6
13253 cat >>confdefs.h <<_ACEOF
13254 #define RETSIGTYPE $ac_cv_type_signal
13255 _ACEOF
13258 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
13259 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
13260 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
13261 echo $ECHO_N "(cached) $ECHO_C" >&6
13262 else
13263 if test "$cross_compiling" = yes; then
13264 ac_cv_func_stat_empty_string_bug=yes
13265 else
13266 cat >conftest.$ac_ext <<_ACEOF
13267 /* confdefs.h. */
13268 _ACEOF
13269 cat confdefs.h >>conftest.$ac_ext
13270 cat >>conftest.$ac_ext <<_ACEOF
13271 /* end confdefs.h. */
13272 $ac_includes_default
13274 main ()
13276 struct stat sbuf;
13277 exit (stat ("", &sbuf) ? 1 : 0);
13279 return 0;
13281 _ACEOF
13282 rm -f conftest$ac_exeext
13283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13284 (eval $ac_link) 2>&5
13285 ac_status=$?
13286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13289 (eval $ac_try) 2>&5
13290 ac_status=$?
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); }; }; then
13293 ac_cv_func_stat_empty_string_bug=yes
13294 else
13295 echo "$as_me: program exited with status $ac_status" >&5
13296 echo "$as_me: failed program was:" >&5
13297 sed 's/^/| /' conftest.$ac_ext >&5
13299 ( exit $ac_status )
13300 ac_cv_func_stat_empty_string_bug=no
13302 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13305 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
13306 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
13307 if test $ac_cv_func_stat_empty_string_bug = yes; then
13308 case $LIBOBJS in
13309 "stat.$ac_objext" | \
13310 *" stat.$ac_objext" | \
13311 "stat.$ac_objext "* | \
13312 *" stat.$ac_objext "* ) ;;
13313 *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
13314 esac
13317 cat >>confdefs.h <<_ACEOF
13318 #define HAVE_STAT_EMPTY_STRING_BUG 1
13319 _ACEOF
13324 for ac_func in strftime
13326 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13327 echo "$as_me:$LINENO: checking for $ac_func" >&5
13328 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13329 if eval "test \"\${$as_ac_var+set}\" = set"; then
13330 echo $ECHO_N "(cached) $ECHO_C" >&6
13331 else
13332 cat >conftest.$ac_ext <<_ACEOF
13333 /* confdefs.h. */
13334 _ACEOF
13335 cat confdefs.h >>conftest.$ac_ext
13336 cat >>conftest.$ac_ext <<_ACEOF
13337 /* end confdefs.h. */
13338 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13339 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13340 #define $ac_func innocuous_$ac_func
13342 /* System header to define __stub macros and hopefully few prototypes,
13343 which can conflict with char $ac_func (); below.
13344 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13345 <limits.h> exists even on freestanding compilers. */
13347 #ifdef __STDC__
13348 # include <limits.h>
13349 #else
13350 # include <assert.h>
13351 #endif
13353 #undef $ac_func
13355 /* Override any gcc2 internal prototype to avoid an error. */
13356 #ifdef __cplusplus
13357 extern "C"
13359 #endif
13360 /* We use char because int might match the return type of a gcc2
13361 builtin and then its argument prototype would still apply. */
13362 char $ac_func ();
13363 /* The GNU C library defines this for functions which it implements
13364 to always fail with ENOSYS. Some functions are actually named
13365 something starting with __ and the normal name is an alias. */
13366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13367 choke me
13368 #else
13369 char (*f) () = $ac_func;
13370 #endif
13371 #ifdef __cplusplus
13373 #endif
13376 main ()
13378 return f != $ac_func;
13380 return 0;
13382 _ACEOF
13383 rm -f conftest.$ac_objext conftest$ac_exeext
13384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13385 (eval $ac_link) 2>conftest.er1
13386 ac_status=$?
13387 grep -v '^ *+' conftest.er1 >conftest.err
13388 rm -f conftest.er1
13389 cat conftest.err >&5
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); } &&
13392 { ac_try='test -z "$ac_c_werror_flag"
13393 || test ! -s conftest.err'
13394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13395 (eval $ac_try) 2>&5
13396 ac_status=$?
13397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398 (exit $ac_status); }; } &&
13399 { ac_try='test -s conftest$ac_exeext'
13400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13401 (eval $ac_try) 2>&5
13402 ac_status=$?
13403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404 (exit $ac_status); }; }; then
13405 eval "$as_ac_var=yes"
13406 else
13407 echo "$as_me: failed program was:" >&5
13408 sed 's/^/| /' conftest.$ac_ext >&5
13410 eval "$as_ac_var=no"
13412 rm -f conftest.err conftest.$ac_objext \
13413 conftest$ac_exeext conftest.$ac_ext
13415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13416 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13417 if test `eval echo '${'$as_ac_var'}'` = yes; then
13418 cat >>confdefs.h <<_ACEOF
13419 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13420 _ACEOF
13422 else
13423 # strftime is in -lintl on SCO UNIX.
13424 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
13425 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
13426 if test "${ac_cv_lib_intl_strftime+set}" = set; then
13427 echo $ECHO_N "(cached) $ECHO_C" >&6
13428 else
13429 ac_check_lib_save_LIBS=$LIBS
13430 LIBS="-lintl $LIBS"
13431 cat >conftest.$ac_ext <<_ACEOF
13432 /* confdefs.h. */
13433 _ACEOF
13434 cat confdefs.h >>conftest.$ac_ext
13435 cat >>conftest.$ac_ext <<_ACEOF
13436 /* end confdefs.h. */
13438 /* Override any gcc2 internal prototype to avoid an error. */
13439 #ifdef __cplusplus
13440 extern "C"
13441 #endif
13442 /* We use char because int might match the return type of a gcc2
13443 builtin and then its argument prototype would still apply. */
13444 char strftime ();
13446 main ()
13448 strftime ();
13450 return 0;
13452 _ACEOF
13453 rm -f conftest.$ac_objext conftest$ac_exeext
13454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13455 (eval $ac_link) 2>conftest.er1
13456 ac_status=$?
13457 grep -v '^ *+' conftest.er1 >conftest.err
13458 rm -f conftest.er1
13459 cat conftest.err >&5
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); } &&
13462 { ac_try='test -z "$ac_c_werror_flag"
13463 || test ! -s conftest.err'
13464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13465 (eval $ac_try) 2>&5
13466 ac_status=$?
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); }; } &&
13469 { ac_try='test -s conftest$ac_exeext'
13470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13471 (eval $ac_try) 2>&5
13472 ac_status=$?
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); }; }; then
13475 ac_cv_lib_intl_strftime=yes
13476 else
13477 echo "$as_me: failed program was:" >&5
13478 sed 's/^/| /' conftest.$ac_ext >&5
13480 ac_cv_lib_intl_strftime=no
13482 rm -f conftest.err conftest.$ac_objext \
13483 conftest$ac_exeext conftest.$ac_ext
13484 LIBS=$ac_check_lib_save_LIBS
13486 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
13487 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
13488 if test $ac_cv_lib_intl_strftime = yes; then
13489 cat >>confdefs.h <<\_ACEOF
13490 #define HAVE_STRFTIME 1
13491 _ACEOF
13493 LIBS="-lintl $LIBS"
13497 done
13499 echo "$as_me:$LINENO: checking for working strtod" >&5
13500 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
13501 if test "${ac_cv_func_strtod+set}" = set; then
13502 echo $ECHO_N "(cached) $ECHO_C" >&6
13503 else
13504 if test "$cross_compiling" = yes; then
13505 ac_cv_func_strtod=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. */
13514 double strtod ();
13516 main()
13519 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
13520 char *string = " +69";
13521 char *term;
13522 double value;
13523 value = strtod (string, &term);
13524 if (value != 69 || term != (string + 4))
13525 exit (1);
13529 /* Under Solaris 2.4, strtod returns the wrong value for the
13530 terminating character under some conditions. */
13531 char *string = "NaN";
13532 char *term;
13533 strtod (string, &term);
13534 if (term != string && *(term - 1) == 0)
13535 exit (1);
13537 exit (0);
13540 _ACEOF
13541 rm -f conftest$ac_exeext
13542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13543 (eval $ac_link) 2>&5
13544 ac_status=$?
13545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13548 (eval $ac_try) 2>&5
13549 ac_status=$?
13550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551 (exit $ac_status); }; }; then
13552 ac_cv_func_strtod=yes
13553 else
13554 echo "$as_me: program exited with status $ac_status" >&5
13555 echo "$as_me: failed program was:" >&5
13556 sed 's/^/| /' conftest.$ac_ext >&5
13558 ( exit $ac_status )
13559 ac_cv_func_strtod=no
13561 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13564 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
13565 echo "${ECHO_T}$ac_cv_func_strtod" >&6
13566 if test $ac_cv_func_strtod = no; then
13567 case $LIBOBJS in
13568 "strtod.$ac_objext" | \
13569 *" strtod.$ac_objext" | \
13570 "strtod.$ac_objext "* | \
13571 *" strtod.$ac_objext "* ) ;;
13572 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;;
13573 esac
13575 echo "$as_me:$LINENO: checking for pow" >&5
13576 echo $ECHO_N "checking for pow... $ECHO_C" >&6
13577 if test "${ac_cv_func_pow+set}" = set; then
13578 echo $ECHO_N "(cached) $ECHO_C" >&6
13579 else
13580 cat >conftest.$ac_ext <<_ACEOF
13581 /* confdefs.h. */
13582 _ACEOF
13583 cat confdefs.h >>conftest.$ac_ext
13584 cat >>conftest.$ac_ext <<_ACEOF
13585 /* end confdefs.h. */
13586 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
13587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13588 #define pow innocuous_pow
13590 /* System header to define __stub macros and hopefully few prototypes,
13591 which can conflict with char pow (); below.
13592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13593 <limits.h> exists even on freestanding compilers. */
13595 #ifdef __STDC__
13596 # include <limits.h>
13597 #else
13598 # include <assert.h>
13599 #endif
13601 #undef pow
13603 /* Override any gcc2 internal prototype to avoid an error. */
13604 #ifdef __cplusplus
13605 extern "C"
13607 #endif
13608 /* We use char because int might match the return type of a gcc2
13609 builtin and then its argument prototype would still apply. */
13610 char pow ();
13611 /* The GNU C library defines this for functions which it implements
13612 to always fail with ENOSYS. Some functions are actually named
13613 something starting with __ and the normal name is an alias. */
13614 #if defined (__stub_pow) || defined (__stub___pow)
13615 choke me
13616 #else
13617 char (*f) () = pow;
13618 #endif
13619 #ifdef __cplusplus
13621 #endif
13624 main ()
13626 return f != pow;
13628 return 0;
13630 _ACEOF
13631 rm -f conftest.$ac_objext conftest$ac_exeext
13632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13633 (eval $ac_link) 2>conftest.er1
13634 ac_status=$?
13635 grep -v '^ *+' conftest.er1 >conftest.err
13636 rm -f conftest.er1
13637 cat conftest.err >&5
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); } &&
13640 { ac_try='test -z "$ac_c_werror_flag"
13641 || test ! -s conftest.err'
13642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13643 (eval $ac_try) 2>&5
13644 ac_status=$?
13645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); }; } &&
13647 { ac_try='test -s conftest$ac_exeext'
13648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13649 (eval $ac_try) 2>&5
13650 ac_status=$?
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); }; }; then
13653 ac_cv_func_pow=yes
13654 else
13655 echo "$as_me: failed program was:" >&5
13656 sed 's/^/| /' conftest.$ac_ext >&5
13658 ac_cv_func_pow=no
13660 rm -f conftest.err conftest.$ac_objext \
13661 conftest$ac_exeext conftest.$ac_ext
13663 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
13664 echo "${ECHO_T}$ac_cv_func_pow" >&6
13666 if test $ac_cv_func_pow = no; then
13667 echo "$as_me:$LINENO: checking for pow in -lm" >&5
13668 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
13669 if test "${ac_cv_lib_m_pow+set}" = set; then
13670 echo $ECHO_N "(cached) $ECHO_C" >&6
13671 else
13672 ac_check_lib_save_LIBS=$LIBS
13673 LIBS="-lm $LIBS"
13674 cat >conftest.$ac_ext <<_ACEOF
13675 /* confdefs.h. */
13676 _ACEOF
13677 cat confdefs.h >>conftest.$ac_ext
13678 cat >>conftest.$ac_ext <<_ACEOF
13679 /* end confdefs.h. */
13681 /* Override any gcc2 internal prototype to avoid an error. */
13682 #ifdef __cplusplus
13683 extern "C"
13684 #endif
13685 /* We use char because int might match the return type of a gcc2
13686 builtin and then its argument prototype would still apply. */
13687 char pow ();
13689 main ()
13691 pow ();
13693 return 0;
13695 _ACEOF
13696 rm -f conftest.$ac_objext conftest$ac_exeext
13697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13698 (eval $ac_link) 2>conftest.er1
13699 ac_status=$?
13700 grep -v '^ *+' conftest.er1 >conftest.err
13701 rm -f conftest.er1
13702 cat conftest.err >&5
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); } &&
13705 { ac_try='test -z "$ac_c_werror_flag"
13706 || test ! -s conftest.err'
13707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13708 (eval $ac_try) 2>&5
13709 ac_status=$?
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); }; } &&
13712 { ac_try='test -s conftest$ac_exeext'
13713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13714 (eval $ac_try) 2>&5
13715 ac_status=$?
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); }; }; then
13718 ac_cv_lib_m_pow=yes
13719 else
13720 echo "$as_me: failed program was:" >&5
13721 sed 's/^/| /' conftest.$ac_ext >&5
13723 ac_cv_lib_m_pow=no
13725 rm -f conftest.err conftest.$ac_objext \
13726 conftest$ac_exeext conftest.$ac_ext
13727 LIBS=$ac_check_lib_save_LIBS
13729 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
13730 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
13731 if test $ac_cv_lib_m_pow = yes; then
13732 POW_LIB=-lm
13733 else
13734 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
13735 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
13743 for ac_func in vprintf
13745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13746 echo "$as_me:$LINENO: checking for $ac_func" >&5
13747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13748 if eval "test \"\${$as_ac_var+set}\" = set"; then
13749 echo $ECHO_N "(cached) $ECHO_C" >&6
13750 else
13751 cat >conftest.$ac_ext <<_ACEOF
13752 /* confdefs.h. */
13753 _ACEOF
13754 cat confdefs.h >>conftest.$ac_ext
13755 cat >>conftest.$ac_ext <<_ACEOF
13756 /* end confdefs.h. */
13757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13759 #define $ac_func innocuous_$ac_func
13761 /* System header to define __stub macros and hopefully few prototypes,
13762 which can conflict with char $ac_func (); below.
13763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13764 <limits.h> exists even on freestanding compilers. */
13766 #ifdef __STDC__
13767 # include <limits.h>
13768 #else
13769 # include <assert.h>
13770 #endif
13772 #undef $ac_func
13774 /* Override any gcc2 internal prototype to avoid an error. */
13775 #ifdef __cplusplus
13776 extern "C"
13778 #endif
13779 /* We use char because int might match the return type of a gcc2
13780 builtin and then its argument prototype would still apply. */
13781 char $ac_func ();
13782 /* The GNU C library defines this for functions which it implements
13783 to always fail with ENOSYS. Some functions are actually named
13784 something starting with __ and the normal name is an alias. */
13785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13786 choke me
13787 #else
13788 char (*f) () = $ac_func;
13789 #endif
13790 #ifdef __cplusplus
13792 #endif
13795 main ()
13797 return f != $ac_func;
13799 return 0;
13801 _ACEOF
13802 rm -f conftest.$ac_objext conftest$ac_exeext
13803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13804 (eval $ac_link) 2>conftest.er1
13805 ac_status=$?
13806 grep -v '^ *+' conftest.er1 >conftest.err
13807 rm -f conftest.er1
13808 cat conftest.err >&5
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); } &&
13811 { ac_try='test -z "$ac_c_werror_flag"
13812 || test ! -s conftest.err'
13813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13814 (eval $ac_try) 2>&5
13815 ac_status=$?
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); }; } &&
13818 { ac_try='test -s conftest$ac_exeext'
13819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13820 (eval $ac_try) 2>&5
13821 ac_status=$?
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); }; }; then
13824 eval "$as_ac_var=yes"
13825 else
13826 echo "$as_me: failed program was:" >&5
13827 sed 's/^/| /' conftest.$ac_ext >&5
13829 eval "$as_ac_var=no"
13831 rm -f conftest.err conftest.$ac_objext \
13832 conftest$ac_exeext conftest.$ac_ext
13834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13835 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13836 if test `eval echo '${'$as_ac_var'}'` = yes; then
13837 cat >>confdefs.h <<_ACEOF
13838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13839 _ACEOF
13841 echo "$as_me:$LINENO: checking for _doprnt" >&5
13842 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
13843 if test "${ac_cv_func__doprnt+set}" = set; then
13844 echo $ECHO_N "(cached) $ECHO_C" >&6
13845 else
13846 cat >conftest.$ac_ext <<_ACEOF
13847 /* confdefs.h. */
13848 _ACEOF
13849 cat confdefs.h >>conftest.$ac_ext
13850 cat >>conftest.$ac_ext <<_ACEOF
13851 /* end confdefs.h. */
13852 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
13853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13854 #define _doprnt innocuous__doprnt
13856 /* System header to define __stub macros and hopefully few prototypes,
13857 which can conflict with char _doprnt (); below.
13858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13859 <limits.h> exists even on freestanding compilers. */
13861 #ifdef __STDC__
13862 # include <limits.h>
13863 #else
13864 # include <assert.h>
13865 #endif
13867 #undef _doprnt
13869 /* Override any gcc2 internal prototype to avoid an error. */
13870 #ifdef __cplusplus
13871 extern "C"
13873 #endif
13874 /* We use char because int might match the return type of a gcc2
13875 builtin and then its argument prototype would still apply. */
13876 char _doprnt ();
13877 /* The GNU C library defines this for functions which it implements
13878 to always fail with ENOSYS. Some functions are actually named
13879 something starting with __ and the normal name is an alias. */
13880 #if defined (__stub__doprnt) || defined (__stub____doprnt)
13881 choke me
13882 #else
13883 char (*f) () = _doprnt;
13884 #endif
13885 #ifdef __cplusplus
13887 #endif
13890 main ()
13892 return f != _doprnt;
13894 return 0;
13896 _ACEOF
13897 rm -f conftest.$ac_objext conftest$ac_exeext
13898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13899 (eval $ac_link) 2>conftest.er1
13900 ac_status=$?
13901 grep -v '^ *+' conftest.er1 >conftest.err
13902 rm -f conftest.er1
13903 cat conftest.err >&5
13904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905 (exit $ac_status); } &&
13906 { ac_try='test -z "$ac_c_werror_flag"
13907 || test ! -s conftest.err'
13908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13909 (eval $ac_try) 2>&5
13910 ac_status=$?
13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); }; } &&
13913 { ac_try='test -s conftest$ac_exeext'
13914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13915 (eval $ac_try) 2>&5
13916 ac_status=$?
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); }; }; then
13919 ac_cv_func__doprnt=yes
13920 else
13921 echo "$as_me: failed program was:" >&5
13922 sed 's/^/| /' conftest.$ac_ext >&5
13924 ac_cv_func__doprnt=no
13926 rm -f conftest.err conftest.$ac_objext \
13927 conftest$ac_exeext conftest.$ac_ext
13929 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13930 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
13931 if test $ac_cv_func__doprnt = yes; then
13933 cat >>confdefs.h <<\_ACEOF
13934 #define HAVE_DOPRNT 1
13935 _ACEOF
13940 done
13943 if test $cross_compiling = yes -a $gnumalloc = yes; then
13945 { echo "$as_me:$LINENO: WARNING:
13946 configure cannot check whether malloc() and realloc() are GNU libc
13947 compatible. You have to be ABSOLUTELY sure that they are, otherwise
13948 run configure with the --without-gnu-malloc switch." >&5
13949 echo "$as_me: WARNING:
13950 configure cannot check whether malloc() and realloc() are GNU libc
13951 compatible. You have to be ABSOLUTELY sure that they are, otherwise
13952 run configure with the --without-gnu-malloc switch." >&2;}
13953 _mule_warning_9=yes
13954 _mule_has_warnings=yes
13956 ac_cv_func_malloc_0_nonnull=yes
13957 ac_cv_func_realloc_0_nonnull=yes
13962 for ac_header in stdlib.h
13964 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13966 echo "$as_me:$LINENO: checking for $ac_header" >&5
13967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13969 echo $ECHO_N "(cached) $ECHO_C" >&6
13971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13972 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13973 else
13974 # Is the header compilable?
13975 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13976 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13977 cat >conftest.$ac_ext <<_ACEOF
13978 /* confdefs.h. */
13979 _ACEOF
13980 cat confdefs.h >>conftest.$ac_ext
13981 cat >>conftest.$ac_ext <<_ACEOF
13982 /* end confdefs.h. */
13983 $ac_includes_default
13984 #include <$ac_header>
13985 _ACEOF
13986 rm -f conftest.$ac_objext
13987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13988 (eval $ac_compile) 2>conftest.er1
13989 ac_status=$?
13990 grep -v '^ *+' conftest.er1 >conftest.err
13991 rm -f conftest.er1
13992 cat conftest.err >&5
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); } &&
13995 { ac_try='test -z "$ac_c_werror_flag"
13996 || test ! -s conftest.err'
13997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13998 (eval $ac_try) 2>&5
13999 ac_status=$?
14000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001 (exit $ac_status); }; } &&
14002 { ac_try='test -s conftest.$ac_objext'
14003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14004 (eval $ac_try) 2>&5
14005 ac_status=$?
14006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007 (exit $ac_status); }; }; then
14008 ac_header_compiler=yes
14009 else
14010 echo "$as_me: failed program was:" >&5
14011 sed 's/^/| /' conftest.$ac_ext >&5
14013 ac_header_compiler=no
14015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14016 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14017 echo "${ECHO_T}$ac_header_compiler" >&6
14019 # Is the header present?
14020 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14021 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14022 cat >conftest.$ac_ext <<_ACEOF
14023 /* confdefs.h. */
14024 _ACEOF
14025 cat confdefs.h >>conftest.$ac_ext
14026 cat >>conftest.$ac_ext <<_ACEOF
14027 /* end confdefs.h. */
14028 #include <$ac_header>
14029 _ACEOF
14030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14031 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14032 ac_status=$?
14033 grep -v '^ *+' conftest.er1 >conftest.err
14034 rm -f conftest.er1
14035 cat conftest.err >&5
14036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); } >/dev/null; then
14038 if test -s conftest.err; then
14039 ac_cpp_err=$ac_c_preproc_warn_flag
14040 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14041 else
14042 ac_cpp_err=
14044 else
14045 ac_cpp_err=yes
14047 if test -z "$ac_cpp_err"; then
14048 ac_header_preproc=yes
14049 else
14050 echo "$as_me: failed program was:" >&5
14051 sed 's/^/| /' conftest.$ac_ext >&5
14053 ac_header_preproc=no
14055 rm -f conftest.err conftest.$ac_ext
14056 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14057 echo "${ECHO_T}$ac_header_preproc" >&6
14059 # So? What about this header?
14060 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14061 yes:no: )
14062 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14063 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14065 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14066 ac_header_preproc=yes
14068 no:yes:* )
14069 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14070 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14071 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14072 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14073 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14074 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14075 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14076 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14078 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14079 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14080 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14082 cat <<\_ASBOX
14083 ## ------------------------------ ##
14084 ## Report this to admin@amule.org ##
14085 ## ------------------------------ ##
14086 _ASBOX
14088 sed "s/^/$as_me: WARNING: /" >&2
14090 esac
14091 echo "$as_me:$LINENO: checking for $ac_header" >&5
14092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14093 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14094 echo $ECHO_N "(cached) $ECHO_C" >&6
14095 else
14096 eval "$as_ac_Header=\$ac_header_preproc"
14098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14099 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14103 cat >>confdefs.h <<_ACEOF
14104 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14105 _ACEOF
14109 done
14111 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
14112 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
14113 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
14114 echo $ECHO_N "(cached) $ECHO_C" >&6
14115 else
14116 if test "$cross_compiling" = yes; then
14117 ac_cv_func_malloc_0_nonnull=no
14118 else
14119 cat >conftest.$ac_ext <<_ACEOF
14120 /* confdefs.h. */
14121 _ACEOF
14122 cat confdefs.h >>conftest.$ac_ext
14123 cat >>conftest.$ac_ext <<_ACEOF
14124 /* end confdefs.h. */
14125 #if STDC_HEADERS || HAVE_STDLIB_H
14126 # include <stdlib.h>
14127 #else
14128 char *malloc ();
14129 #endif
14132 main ()
14134 exit (malloc (0) ? 0 : 1);
14136 return 0;
14138 _ACEOF
14139 rm -f conftest$ac_exeext
14140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14141 (eval $ac_link) 2>&5
14142 ac_status=$?
14143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14144 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14146 (eval $ac_try) 2>&5
14147 ac_status=$?
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); }; }; then
14150 ac_cv_func_malloc_0_nonnull=yes
14151 else
14152 echo "$as_me: program exited with status $ac_status" >&5
14153 echo "$as_me: failed program was:" >&5
14154 sed 's/^/| /' conftest.$ac_ext >&5
14156 ( exit $ac_status )
14157 ac_cv_func_malloc_0_nonnull=no
14159 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14162 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
14163 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
14164 if test $ac_cv_func_malloc_0_nonnull = yes; then
14166 cat >>confdefs.h <<\_ACEOF
14167 #define HAVE_MALLOC 1
14168 _ACEOF
14170 else
14171 cat >>confdefs.h <<\_ACEOF
14172 #define HAVE_MALLOC 0
14173 _ACEOF
14175 case $LIBOBJS in
14176 "malloc.$ac_objext" | \
14177 *" malloc.$ac_objext" | \
14178 "malloc.$ac_objext "* | \
14179 *" malloc.$ac_objext "* ) ;;
14180 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
14181 esac
14184 cat >>confdefs.h <<\_ACEOF
14185 #define malloc rpl_malloc
14186 _ACEOF
14193 for ac_header in stdlib.h
14195 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14197 echo "$as_me:$LINENO: checking for $ac_header" >&5
14198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14200 echo $ECHO_N "(cached) $ECHO_C" >&6
14202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14204 else
14205 # Is the header compilable?
14206 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14207 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14208 cat >conftest.$ac_ext <<_ACEOF
14209 /* confdefs.h. */
14210 _ACEOF
14211 cat confdefs.h >>conftest.$ac_ext
14212 cat >>conftest.$ac_ext <<_ACEOF
14213 /* end confdefs.h. */
14214 $ac_includes_default
14215 #include <$ac_header>
14216 _ACEOF
14217 rm -f conftest.$ac_objext
14218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14219 (eval $ac_compile) 2>conftest.er1
14220 ac_status=$?
14221 grep -v '^ *+' conftest.er1 >conftest.err
14222 rm -f conftest.er1
14223 cat conftest.err >&5
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 (exit $ac_status); } &&
14226 { ac_try='test -z "$ac_c_werror_flag"
14227 || test ! -s conftest.err'
14228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14229 (eval $ac_try) 2>&5
14230 ac_status=$?
14231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232 (exit $ac_status); }; } &&
14233 { ac_try='test -s conftest.$ac_objext'
14234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14235 (eval $ac_try) 2>&5
14236 ac_status=$?
14237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238 (exit $ac_status); }; }; then
14239 ac_header_compiler=yes
14240 else
14241 echo "$as_me: failed program was:" >&5
14242 sed 's/^/| /' conftest.$ac_ext >&5
14244 ac_header_compiler=no
14246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14247 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14248 echo "${ECHO_T}$ac_header_compiler" >&6
14250 # Is the header present?
14251 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14252 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14253 cat >conftest.$ac_ext <<_ACEOF
14254 /* confdefs.h. */
14255 _ACEOF
14256 cat confdefs.h >>conftest.$ac_ext
14257 cat >>conftest.$ac_ext <<_ACEOF
14258 /* end confdefs.h. */
14259 #include <$ac_header>
14260 _ACEOF
14261 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14262 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14263 ac_status=$?
14264 grep -v '^ *+' conftest.er1 >conftest.err
14265 rm -f conftest.er1
14266 cat conftest.err >&5
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); } >/dev/null; then
14269 if test -s conftest.err; then
14270 ac_cpp_err=$ac_c_preproc_warn_flag
14271 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14272 else
14273 ac_cpp_err=
14275 else
14276 ac_cpp_err=yes
14278 if test -z "$ac_cpp_err"; then
14279 ac_header_preproc=yes
14280 else
14281 echo "$as_me: failed program was:" >&5
14282 sed 's/^/| /' conftest.$ac_ext >&5
14284 ac_header_preproc=no
14286 rm -f conftest.err conftest.$ac_ext
14287 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14288 echo "${ECHO_T}$ac_header_preproc" >&6
14290 # So? What about this header?
14291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14292 yes:no: )
14293 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14294 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14296 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14297 ac_header_preproc=yes
14299 no:yes:* )
14300 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14301 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14302 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14303 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14304 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14305 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14306 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14307 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14309 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14310 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14311 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14313 cat <<\_ASBOX
14314 ## ------------------------------ ##
14315 ## Report this to admin@amule.org ##
14316 ## ------------------------------ ##
14317 _ASBOX
14319 sed "s/^/$as_me: WARNING: /" >&2
14321 esac
14322 echo "$as_me:$LINENO: checking for $ac_header" >&5
14323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14325 echo $ECHO_N "(cached) $ECHO_C" >&6
14326 else
14327 eval "$as_ac_Header=\$ac_header_preproc"
14329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14333 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14334 cat >>confdefs.h <<_ACEOF
14335 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14336 _ACEOF
14340 done
14342 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
14343 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
14344 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
14345 echo $ECHO_N "(cached) $ECHO_C" >&6
14346 else
14347 if test "$cross_compiling" = yes; then
14348 ac_cv_func_realloc_0_nonnull=no
14349 else
14350 cat >conftest.$ac_ext <<_ACEOF
14351 /* confdefs.h. */
14352 _ACEOF
14353 cat confdefs.h >>conftest.$ac_ext
14354 cat >>conftest.$ac_ext <<_ACEOF
14355 /* end confdefs.h. */
14356 #if STDC_HEADERS || HAVE_STDLIB_H
14357 # include <stdlib.h>
14358 #else
14359 char *realloc ();
14360 #endif
14363 main ()
14365 exit (realloc (0, 0) ? 0 : 1);
14367 return 0;
14369 _ACEOF
14370 rm -f conftest$ac_exeext
14371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14372 (eval $ac_link) 2>&5
14373 ac_status=$?
14374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14377 (eval $ac_try) 2>&5
14378 ac_status=$?
14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380 (exit $ac_status); }; }; then
14381 ac_cv_func_realloc_0_nonnull=yes
14382 else
14383 echo "$as_me: program exited with status $ac_status" >&5
14384 echo "$as_me: failed program was:" >&5
14385 sed 's/^/| /' conftest.$ac_ext >&5
14387 ( exit $ac_status )
14388 ac_cv_func_realloc_0_nonnull=no
14390 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14393 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
14394 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
14395 if test $ac_cv_func_realloc_0_nonnull = yes; then
14397 cat >>confdefs.h <<\_ACEOF
14398 #define HAVE_REALLOC 1
14399 _ACEOF
14401 else
14402 cat >>confdefs.h <<\_ACEOF
14403 #define HAVE_REALLOC 0
14404 _ACEOF
14406 case $LIBOBJS in
14407 "realloc.$ac_objext" | \
14408 *" realloc.$ac_objext" | \
14409 "realloc.$ac_objext "* | \
14410 *" realloc.$ac_objext "* ) ;;
14411 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
14412 esac
14415 cat >>confdefs.h <<\_ACEOF
14416 #define realloc rpl_realloc
14417 _ACEOF
14457 for ac_func in __argz_count __argz_next __argz_stringify endpwent floor ftruncate getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday inet_ntoa localeconv memmove mempcpy memset munmap nl_langinfo pow select setlocale socket sqrt stpcpy strcasecmp strchr strcspn strdup strerror strncasecmp strstr strtoul mmap
14459 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14460 echo "$as_me:$LINENO: checking for $ac_func" >&5
14461 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14462 if eval "test \"\${$as_ac_var+set}\" = set"; then
14463 echo $ECHO_N "(cached) $ECHO_C" >&6
14464 else
14465 cat >conftest.$ac_ext <<_ACEOF
14466 /* confdefs.h. */
14467 _ACEOF
14468 cat confdefs.h >>conftest.$ac_ext
14469 cat >>conftest.$ac_ext <<_ACEOF
14470 /* end confdefs.h. */
14471 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14472 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14473 #define $ac_func innocuous_$ac_func
14475 /* System header to define __stub macros and hopefully few prototypes,
14476 which can conflict with char $ac_func (); below.
14477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14478 <limits.h> exists even on freestanding compilers. */
14480 #ifdef __STDC__
14481 # include <limits.h>
14482 #else
14483 # include <assert.h>
14484 #endif
14486 #undef $ac_func
14488 /* Override any gcc2 internal prototype to avoid an error. */
14489 #ifdef __cplusplus
14490 extern "C"
14492 #endif
14493 /* We use char because int might match the return type of a gcc2
14494 builtin and then its argument prototype would still apply. */
14495 char $ac_func ();
14496 /* The GNU C library defines this for functions which it implements
14497 to always fail with ENOSYS. Some functions are actually named
14498 something starting with __ and the normal name is an alias. */
14499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14500 choke me
14501 #else
14502 char (*f) () = $ac_func;
14503 #endif
14504 #ifdef __cplusplus
14506 #endif
14509 main ()
14511 return f != $ac_func;
14513 return 0;
14515 _ACEOF
14516 rm -f conftest.$ac_objext conftest$ac_exeext
14517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14518 (eval $ac_link) 2>conftest.er1
14519 ac_status=$?
14520 grep -v '^ *+' conftest.er1 >conftest.err
14521 rm -f conftest.er1
14522 cat conftest.err >&5
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); } &&
14525 { ac_try='test -z "$ac_c_werror_flag"
14526 || test ! -s conftest.err'
14527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14528 (eval $ac_try) 2>&5
14529 ac_status=$?
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); }; } &&
14532 { ac_try='test -s conftest$ac_exeext'
14533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14534 (eval $ac_try) 2>&5
14535 ac_status=$?
14536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 (exit $ac_status); }; }; then
14538 eval "$as_ac_var=yes"
14539 else
14540 echo "$as_me: failed program was:" >&5
14541 sed 's/^/| /' conftest.$ac_ext >&5
14543 eval "$as_ac_var=no"
14545 rm -f conftest.err conftest.$ac_objext \
14546 conftest$ac_exeext conftest.$ac_ext
14548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14549 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14550 if test `eval echo '${'$as_ac_var'}'` = yes; then
14551 cat >>confdefs.h <<_ACEOF
14552 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14553 _ACEOF
14556 done
14558 #-------------------------------------------------------------------------------
14559 # End of autoscan stuff
14560 #-------------------------------------------------------------------------------
14566 for ac_func in mkdir getrlimit setrlimit getopt_long
14568 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14569 echo "$as_me:$LINENO: checking for $ac_func" >&5
14570 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14571 if eval "test \"\${$as_ac_var+set}\" = set"; then
14572 echo $ECHO_N "(cached) $ECHO_C" >&6
14573 else
14574 cat >conftest.$ac_ext <<_ACEOF
14575 /* confdefs.h. */
14576 _ACEOF
14577 cat confdefs.h >>conftest.$ac_ext
14578 cat >>conftest.$ac_ext <<_ACEOF
14579 /* end confdefs.h. */
14580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14582 #define $ac_func innocuous_$ac_func
14584 /* System header to define __stub macros and hopefully few prototypes,
14585 which can conflict with char $ac_func (); below.
14586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14587 <limits.h> exists even on freestanding compilers. */
14589 #ifdef __STDC__
14590 # include <limits.h>
14591 #else
14592 # include <assert.h>
14593 #endif
14595 #undef $ac_func
14597 /* Override any gcc2 internal prototype to avoid an error. */
14598 #ifdef __cplusplus
14599 extern "C"
14601 #endif
14602 /* We use char because int might match the return type of a gcc2
14603 builtin and then its argument prototype would still apply. */
14604 char $ac_func ();
14605 /* The GNU C library defines this for functions which it implements
14606 to always fail with ENOSYS. Some functions are actually named
14607 something starting with __ and the normal name is an alias. */
14608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14609 choke me
14610 #else
14611 char (*f) () = $ac_func;
14612 #endif
14613 #ifdef __cplusplus
14615 #endif
14618 main ()
14620 return f != $ac_func;
14622 return 0;
14624 _ACEOF
14625 rm -f conftest.$ac_objext conftest$ac_exeext
14626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14627 (eval $ac_link) 2>conftest.er1
14628 ac_status=$?
14629 grep -v '^ *+' conftest.er1 >conftest.err
14630 rm -f conftest.er1
14631 cat conftest.err >&5
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); } &&
14634 { ac_try='test -z "$ac_c_werror_flag"
14635 || test ! -s conftest.err'
14636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14637 (eval $ac_try) 2>&5
14638 ac_status=$?
14639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640 (exit $ac_status); }; } &&
14641 { ac_try='test -s conftest$ac_exeext'
14642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14643 (eval $ac_try) 2>&5
14644 ac_status=$?
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); }; }; then
14647 eval "$as_ac_var=yes"
14648 else
14649 echo "$as_me: failed program was:" >&5
14650 sed 's/^/| /' conftest.$ac_ext >&5
14652 eval "$as_ac_var=no"
14654 rm -f conftest.err conftest.$ac_objext \
14655 conftest$ac_exeext conftest.$ac_ext
14657 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14658 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14659 if test `eval echo '${'$as_ac_var'}'` = yes; then
14660 cat >>confdefs.h <<_ACEOF
14661 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14662 _ACEOF
14665 done
14668 mule_backup_CPPFLAGS="$CPPFLAGS"
14669 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600"
14670 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
14671 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
14672 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
14673 echo $ECHO_N "(cached) $ECHO_C" >&6
14674 else
14675 cat >conftest.$ac_ext <<_ACEOF
14676 /* confdefs.h. */
14677 _ACEOF
14678 cat confdefs.h >>conftest.$ac_ext
14679 cat >>conftest.$ac_ext <<_ACEOF
14680 /* end confdefs.h. */
14681 $ac_includes_default
14683 main ()
14685 #ifndef strerror_r
14686 char *p = (char *) strerror_r;
14687 #endif
14690 return 0;
14692 _ACEOF
14693 rm -f conftest.$ac_objext
14694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14695 (eval $ac_compile) 2>conftest.er1
14696 ac_status=$?
14697 grep -v '^ *+' conftest.er1 >conftest.err
14698 rm -f conftest.er1
14699 cat conftest.err >&5
14700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701 (exit $ac_status); } &&
14702 { ac_try='test -z "$ac_c_werror_flag"
14703 || test ! -s conftest.err'
14704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14705 (eval $ac_try) 2>&5
14706 ac_status=$?
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); }; } &&
14709 { ac_try='test -s conftest.$ac_objext'
14710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14711 (eval $ac_try) 2>&5
14712 ac_status=$?
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); }; }; then
14715 ac_cv_have_decl_strerror_r=yes
14716 else
14717 echo "$as_me: failed program was:" >&5
14718 sed 's/^/| /' conftest.$ac_ext >&5
14720 ac_cv_have_decl_strerror_r=no
14722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14724 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
14725 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
14726 if test $ac_cv_have_decl_strerror_r = yes; then
14728 cat >>confdefs.h <<_ACEOF
14729 #define HAVE_DECL_STRERROR_R 1
14730 _ACEOF
14733 else
14734 cat >>confdefs.h <<_ACEOF
14735 #define HAVE_DECL_STRERROR_R 0
14736 _ACEOF
14743 for ac_func in strerror_r
14745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14746 echo "$as_me:$LINENO: checking for $ac_func" >&5
14747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14748 if eval "test \"\${$as_ac_var+set}\" = set"; then
14749 echo $ECHO_N "(cached) $ECHO_C" >&6
14750 else
14751 cat >conftest.$ac_ext <<_ACEOF
14752 /* confdefs.h. */
14753 _ACEOF
14754 cat confdefs.h >>conftest.$ac_ext
14755 cat >>conftest.$ac_ext <<_ACEOF
14756 /* end confdefs.h. */
14757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14759 #define $ac_func innocuous_$ac_func
14761 /* System header to define __stub macros and hopefully few prototypes,
14762 which can conflict with char $ac_func (); below.
14763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14764 <limits.h> exists even on freestanding compilers. */
14766 #ifdef __STDC__
14767 # include <limits.h>
14768 #else
14769 # include <assert.h>
14770 #endif
14772 #undef $ac_func
14774 /* Override any gcc2 internal prototype to avoid an error. */
14775 #ifdef __cplusplus
14776 extern "C"
14778 #endif
14779 /* We use char because int might match the return type of a gcc2
14780 builtin and then its argument prototype would still apply. */
14781 char $ac_func ();
14782 /* The GNU C library defines this for functions which it implements
14783 to always fail with ENOSYS. Some functions are actually named
14784 something starting with __ and the normal name is an alias. */
14785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14786 choke me
14787 #else
14788 char (*f) () = $ac_func;
14789 #endif
14790 #ifdef __cplusplus
14792 #endif
14795 main ()
14797 return f != $ac_func;
14799 return 0;
14801 _ACEOF
14802 rm -f conftest.$ac_objext conftest$ac_exeext
14803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14804 (eval $ac_link) 2>conftest.er1
14805 ac_status=$?
14806 grep -v '^ *+' conftest.er1 >conftest.err
14807 rm -f conftest.er1
14808 cat conftest.err >&5
14809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810 (exit $ac_status); } &&
14811 { ac_try='test -z "$ac_c_werror_flag"
14812 || test ! -s conftest.err'
14813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14814 (eval $ac_try) 2>&5
14815 ac_status=$?
14816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817 (exit $ac_status); }; } &&
14818 { ac_try='test -s conftest$ac_exeext'
14819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14820 (eval $ac_try) 2>&5
14821 ac_status=$?
14822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823 (exit $ac_status); }; }; then
14824 eval "$as_ac_var=yes"
14825 else
14826 echo "$as_me: failed program was:" >&5
14827 sed 's/^/| /' conftest.$ac_ext >&5
14829 eval "$as_ac_var=no"
14831 rm -f conftest.err conftest.$ac_objext \
14832 conftest$ac_exeext conftest.$ac_ext
14834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14835 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14836 if test `eval echo '${'$as_ac_var'}'` = yes; then
14837 cat >>confdefs.h <<_ACEOF
14838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14839 _ACEOF
14842 done
14844 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
14845 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
14846 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
14847 echo $ECHO_N "(cached) $ECHO_C" >&6
14848 else
14850 ac_cv_func_strerror_r_char_p=no
14851 if test $ac_cv_have_decl_strerror_r = yes; then
14852 cat >conftest.$ac_ext <<_ACEOF
14853 /* confdefs.h. */
14854 _ACEOF
14855 cat confdefs.h >>conftest.$ac_ext
14856 cat >>conftest.$ac_ext <<_ACEOF
14857 /* end confdefs.h. */
14858 $ac_includes_default
14860 main ()
14863 char buf[100];
14864 char x = *strerror_r (0, buf, sizeof buf);
14865 char *p = strerror_r (0, buf, sizeof buf);
14868 return 0;
14870 _ACEOF
14871 rm -f conftest.$ac_objext
14872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14873 (eval $ac_compile) 2>conftest.er1
14874 ac_status=$?
14875 grep -v '^ *+' conftest.er1 >conftest.err
14876 rm -f conftest.er1
14877 cat conftest.err >&5
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); } &&
14880 { ac_try='test -z "$ac_c_werror_flag"
14881 || test ! -s conftest.err'
14882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14883 (eval $ac_try) 2>&5
14884 ac_status=$?
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); }; } &&
14887 { ac_try='test -s conftest.$ac_objext'
14888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14889 (eval $ac_try) 2>&5
14890 ac_status=$?
14891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892 (exit $ac_status); }; }; then
14893 ac_cv_func_strerror_r_char_p=yes
14894 else
14895 echo "$as_me: failed program was:" >&5
14896 sed 's/^/| /' conftest.$ac_ext >&5
14899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14900 else
14901 # strerror_r is not declared. Choose between
14902 # systems that have relatively inaccessible declarations for the
14903 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
14904 # former has a strerror_r that returns char*, while the latter
14905 # has a strerror_r that returns `int'.
14906 # This test should segfault on the DEC system.
14907 if test "$cross_compiling" = yes; then
14909 else
14910 cat >conftest.$ac_ext <<_ACEOF
14911 /* confdefs.h. */
14912 _ACEOF
14913 cat confdefs.h >>conftest.$ac_ext
14914 cat >>conftest.$ac_ext <<_ACEOF
14915 /* end confdefs.h. */
14916 $ac_includes_default
14917 extern char *strerror_r ();
14919 main ()
14921 char buf[100];
14922 char x = *strerror_r (0, buf, sizeof buf);
14923 exit (!isalpha (x));
14925 return 0;
14927 _ACEOF
14928 rm -f conftest$ac_exeext
14929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14930 (eval $ac_link) 2>&5
14931 ac_status=$?
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14935 (eval $ac_try) 2>&5
14936 ac_status=$?
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); }; }; then
14939 ac_cv_func_strerror_r_char_p=yes
14940 else
14941 echo "$as_me: program exited with status $ac_status" >&5
14942 echo "$as_me: failed program was:" >&5
14943 sed 's/^/| /' conftest.$ac_ext >&5
14946 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14951 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
14952 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
14953 if test $ac_cv_func_strerror_r_char_p = yes; then
14955 cat >>confdefs.h <<\_ACEOF
14956 #define STRERROR_R_CHAR_P 1
14957 _ACEOF
14961 CPPFLAGS="$mule_backup_CPPFLAGS"
14963 # Look for a way to preallocate disk space for files.
14965 echo "$as_me:$LINENO: checking for fallocate" >&5
14966 echo $ECHO_N "checking for fallocate... $ECHO_C" >&6
14967 cat >conftest.$ac_ext <<_ACEOF
14969 /* confdefs.h. */
14970 _ACEOF
14971 cat confdefs.h >>conftest.$ac_ext
14972 cat >>conftest.$ac_ext <<_ACEOF
14973 /* end confdefs.h. */
14975 #include <linux/falloc.h>
14978 main ()
14981 fallocate(0, 0, 0, 0);
14984 return 0;
14987 _ACEOF
14988 rm -f conftest.$ac_objext conftest$ac_exeext
14989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14990 (eval $ac_link) 2>conftest.er1
14991 ac_status=$?
14992 grep -v '^ *+' conftest.er1 >conftest.err
14993 rm -f conftest.er1
14994 cat conftest.err >&5
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); } &&
14997 { ac_try='test -z "$ac_c_werror_flag"
14998 || test ! -s conftest.err'
14999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15000 (eval $ac_try) 2>&5
15001 ac_status=$?
15002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003 (exit $ac_status); }; } &&
15004 { ac_try='test -s conftest$ac_exeext'
15005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15006 (eval $ac_try) 2>&5
15007 ac_status=$?
15008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009 (exit $ac_status); }; }; then
15013 cat >>confdefs.h <<\_ACEOF
15014 #define HAVE_FALLOCATE 1
15015 _ACEOF
15017 echo "$as_me:$LINENO: result: yes" >&5
15018 echo "${ECHO_T}yes" >&6
15020 else
15021 echo "$as_me: failed program was:" >&5
15022 sed 's/^/| /' conftest.$ac_ext >&5
15025 echo "$as_me:$LINENO: result: no" >&5
15026 echo "${ECHO_T}no" >&6
15029 rm -f conftest.err conftest.$ac_objext \
15030 conftest$ac_exeext conftest.$ac_ext
15033 echo "$as_me:$LINENO: checking for SYS_fallocate" >&5
15034 echo $ECHO_N "checking for SYS_fallocate... $ECHO_C" >&6
15035 cat >conftest.$ac_ext <<_ACEOF
15037 /* confdefs.h. */
15038 _ACEOF
15039 cat confdefs.h >>conftest.$ac_ext
15040 cat >>conftest.$ac_ext <<_ACEOF
15041 /* end confdefs.h. */
15043 #include <sys/sycall.h>
15044 #include <sys/types.h>
15045 #include <unistd.h>
15048 main ()
15051 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0);
15054 return 0;
15057 _ACEOF
15058 rm -f conftest.$ac_objext conftest$ac_exeext
15059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15060 (eval $ac_link) 2>conftest.er1
15061 ac_status=$?
15062 grep -v '^ *+' conftest.er1 >conftest.err
15063 rm -f conftest.er1
15064 cat conftest.err >&5
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); } &&
15067 { ac_try='test -z "$ac_c_werror_flag"
15068 || test ! -s conftest.err'
15069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15070 (eval $ac_try) 2>&5
15071 ac_status=$?
15072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073 (exit $ac_status); }; } &&
15074 { ac_try='test -s conftest$ac_exeext'
15075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15076 (eval $ac_try) 2>&5
15077 ac_status=$?
15078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); }; }; then
15083 cat >>confdefs.h <<\_ACEOF
15084 #define HAVE_SYS_FALLOCATE 1
15085 _ACEOF
15087 echo "$as_me:$LINENO: result: yes" >&5
15088 echo "${ECHO_T}yes" >&6
15090 else
15091 echo "$as_me: failed program was:" >&5
15092 sed 's/^/| /' conftest.$ac_ext >&5
15095 echo "$as_me:$LINENO: result: no" >&5
15096 echo "${ECHO_T}no" >&6
15099 rm -f conftest.err conftest.$ac_objext \
15100 conftest$ac_exeext conftest.$ac_ext
15102 echo "$as_me:$LINENO: checking for posix_fallocate" >&5
15103 echo $ECHO_N "checking for posix_fallocate... $ECHO_C" >&6
15104 cat >conftest.$ac_ext <<_ACEOF
15106 /* confdefs.h. */
15107 _ACEOF
15108 cat confdefs.h >>conftest.$ac_ext
15109 cat >>conftest.$ac_ext <<_ACEOF
15110 /* end confdefs.h. */
15112 #define _XOPEN_SOURCE 600
15113 #include <stdlib.h>
15114 #ifdef HAVE_FCNTL_H
15115 # include <fcntl.h>
15116 #endif
15119 main ()
15122 posix_fallocate(0, 0, 0);
15125 return 0;
15128 _ACEOF
15129 rm -f conftest.$ac_objext conftest$ac_exeext
15130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15131 (eval $ac_link) 2>conftest.er1
15132 ac_status=$?
15133 grep -v '^ *+' conftest.er1 >conftest.err
15134 rm -f conftest.er1
15135 cat conftest.err >&5
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); } &&
15138 { ac_try='test -z "$ac_c_werror_flag"
15139 || test ! -s conftest.err'
15140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15141 (eval $ac_try) 2>&5
15142 ac_status=$?
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); }; } &&
15145 { ac_try='test -s conftest$ac_exeext'
15146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15147 (eval $ac_try) 2>&5
15148 ac_status=$?
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); }; }; then
15154 cat >>confdefs.h <<\_ACEOF
15155 #define HAVE_POSIX_FALLOCATE 1
15156 _ACEOF
15158 echo "$as_me:$LINENO: result: yes" >&5
15159 echo "${ECHO_T}yes" >&6
15161 else
15162 echo "$as_me: failed program was:" >&5
15163 sed 's/^/| /' conftest.$ac_ext >&5
15166 echo "$as_me:$LINENO: result: no" >&5
15167 echo "${ECHO_T}no" >&6
15170 rm -f conftest.err conftest.$ac_objext \
15171 conftest$ac_exeext conftest.$ac_ext
15174 # Checking Native Language Support
15177 MKINSTALLDIRS=
15178 if test -n "$ac_aux_dir"; then
15179 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
15181 if test -z "$MKINSTALLDIRS"; then
15182 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15189 # Extract the first word of "msgfmt", so it can be a program name with args.
15190 set dummy msgfmt; ac_word=$2
15191 echo "$as_me:$LINENO: checking for $ac_word" >&5
15192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15193 if test "${ac_cv_path_MSGFMT+set}" = set; then
15194 echo $ECHO_N "(cached) $ECHO_C" >&6
15195 else
15196 case "$MSGFMT" in
15198 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15201 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15202 for ac_dir in $PATH; do
15203 test -z "$ac_dir" && ac_dir=.
15204 if test -f $ac_dir/$ac_word; then
15205 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
15206 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15207 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
15208 break
15211 done
15212 IFS="$ac_save_ifs"
15213 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15215 esac
15217 MSGFMT="$ac_cv_path_MSGFMT"
15218 if test "$MSGFMT" != ":"; then
15219 echo "$as_me:$LINENO: result: $MSGFMT" >&5
15220 echo "${ECHO_T}$MSGFMT" >&6
15221 else
15222 echo "$as_me:$LINENO: result: no" >&5
15223 echo "${ECHO_T}no" >&6
15226 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15227 set dummy gmsgfmt; ac_word=$2
15228 echo "$as_me:$LINENO: checking for $ac_word" >&5
15229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15230 if test "${ac_cv_path_GMSGFMT+set}" = set; then
15231 echo $ECHO_N "(cached) $ECHO_C" >&6
15232 else
15233 case $GMSGFMT in
15234 [\\/]* | ?:[\\/]*)
15235 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15239 for as_dir in $PATH
15241 IFS=$as_save_IFS
15242 test -z "$as_dir" && as_dir=.
15243 for ac_exec_ext in '' $ac_executable_extensions; do
15244 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15245 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15247 break 2
15249 done
15250 done
15252 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15254 esac
15256 GMSGFMT=$ac_cv_path_GMSGFMT
15258 if test -n "$GMSGFMT"; then
15259 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
15260 echo "${ECHO_T}$GMSGFMT" >&6
15261 else
15262 echo "$as_me:$LINENO: result: no" >&5
15263 echo "${ECHO_T}no" >&6
15267 # Extract the first word of "xgettext", so it can be a program name with args.
15268 set dummy xgettext; ac_word=$2
15269 echo "$as_me:$LINENO: checking for $ac_word" >&5
15270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15271 if test "${ac_cv_path_XGETTEXT+set}" = set; then
15272 echo $ECHO_N "(cached) $ECHO_C" >&6
15273 else
15274 case "$XGETTEXT" in
15276 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15279 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15280 for ac_dir in $PATH; do
15281 test -z "$ac_dir" && ac_dir=.
15282 if test -f $ac_dir/$ac_word; then
15283 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
15284 (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
15285 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
15286 break
15289 done
15290 IFS="$ac_save_ifs"
15291 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15293 esac
15295 XGETTEXT="$ac_cv_path_XGETTEXT"
15296 if test "$XGETTEXT" != ":"; then
15297 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15298 echo "${ECHO_T}$XGETTEXT" >&6
15299 else
15300 echo "$as_me:$LINENO: result: no" >&5
15301 echo "${ECHO_T}no" >&6
15304 rm -f messages.po
15306 # Extract the first word of "msgmerge", so it can be a program name with args.
15307 set dummy msgmerge; ac_word=$2
15308 echo "$as_me:$LINENO: checking for $ac_word" >&5
15309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15310 if test "${ac_cv_path_MSGMERGE+set}" = set; then
15311 echo $ECHO_N "(cached) $ECHO_C" >&6
15312 else
15313 case "$MSGMERGE" in
15315 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15318 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15319 for ac_dir in $PATH; do
15320 test -z "$ac_dir" && ac_dir=.
15321 if test -f $ac_dir/$ac_word; then
15322 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
15323 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
15324 break
15327 done
15328 IFS="$ac_save_ifs"
15329 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
15331 esac
15333 MSGMERGE="$ac_cv_path_MSGMERGE"
15334 if test "$MSGMERGE" != ":"; then
15335 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15336 echo "${ECHO_T}$MSGMERGE" >&6
15337 else
15338 echo "$as_me:$LINENO: result: no" >&5
15339 echo "${ECHO_T}no" >&6
15343 if test "$GMSGFMT" != ":"; then
15344 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
15345 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15347 else
15348 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
15349 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
15350 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
15351 GMSGFMT=":"
15355 if test "$XGETTEXT" != ":"; then
15356 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
15357 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15359 else
15360 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
15361 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
15362 XGETTEXT=":"
15364 rm -f messages.po
15367 ac_config_commands="$ac_config_commands default-1"
15370 echo "$as_me:$LINENO: checking for library containing strerror" >&5
15371 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
15372 if test "${ac_cv_search_strerror+set}" = set; then
15373 echo $ECHO_N "(cached) $ECHO_C" >&6
15374 else
15375 ac_func_search_save_LIBS=$LIBS
15376 ac_cv_search_strerror=no
15377 cat >conftest.$ac_ext <<_ACEOF
15378 /* confdefs.h. */
15379 _ACEOF
15380 cat confdefs.h >>conftest.$ac_ext
15381 cat >>conftest.$ac_ext <<_ACEOF
15382 /* end confdefs.h. */
15384 /* Override any gcc2 internal prototype to avoid an error. */
15385 #ifdef __cplusplus
15386 extern "C"
15387 #endif
15388 /* We use char because int might match the return type of a gcc2
15389 builtin and then its argument prototype would still apply. */
15390 char strerror ();
15392 main ()
15394 strerror ();
15396 return 0;
15398 _ACEOF
15399 rm -f conftest.$ac_objext conftest$ac_exeext
15400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15401 (eval $ac_link) 2>conftest.er1
15402 ac_status=$?
15403 grep -v '^ *+' conftest.er1 >conftest.err
15404 rm -f conftest.er1
15405 cat conftest.err >&5
15406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 (exit $ac_status); } &&
15408 { ac_try='test -z "$ac_c_werror_flag"
15409 || test ! -s conftest.err'
15410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15411 (eval $ac_try) 2>&5
15412 ac_status=$?
15413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414 (exit $ac_status); }; } &&
15415 { ac_try='test -s conftest$ac_exeext'
15416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15417 (eval $ac_try) 2>&5
15418 ac_status=$?
15419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420 (exit $ac_status); }; }; then
15421 ac_cv_search_strerror="none required"
15422 else
15423 echo "$as_me: failed program was:" >&5
15424 sed 's/^/| /' conftest.$ac_ext >&5
15427 rm -f conftest.err conftest.$ac_objext \
15428 conftest$ac_exeext conftest.$ac_ext
15429 if test "$ac_cv_search_strerror" = no; then
15430 for ac_lib in cposix; do
15431 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15432 cat >conftest.$ac_ext <<_ACEOF
15433 /* confdefs.h. */
15434 _ACEOF
15435 cat confdefs.h >>conftest.$ac_ext
15436 cat >>conftest.$ac_ext <<_ACEOF
15437 /* end confdefs.h. */
15439 /* Override any gcc2 internal prototype to avoid an error. */
15440 #ifdef __cplusplus
15441 extern "C"
15442 #endif
15443 /* We use char because int might match the return type of a gcc2
15444 builtin and then its argument prototype would still apply. */
15445 char strerror ();
15447 main ()
15449 strerror ();
15451 return 0;
15453 _ACEOF
15454 rm -f conftest.$ac_objext conftest$ac_exeext
15455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15456 (eval $ac_link) 2>conftest.er1
15457 ac_status=$?
15458 grep -v '^ *+' conftest.er1 >conftest.err
15459 rm -f conftest.er1
15460 cat conftest.err >&5
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); } &&
15463 { ac_try='test -z "$ac_c_werror_flag"
15464 || test ! -s conftest.err'
15465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15466 (eval $ac_try) 2>&5
15467 ac_status=$?
15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469 (exit $ac_status); }; } &&
15470 { ac_try='test -s conftest$ac_exeext'
15471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15472 (eval $ac_try) 2>&5
15473 ac_status=$?
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); }; }; then
15476 ac_cv_search_strerror="-l$ac_lib"
15477 break
15478 else
15479 echo "$as_me: failed program was:" >&5
15480 sed 's/^/| /' conftest.$ac_ext >&5
15483 rm -f conftest.err conftest.$ac_objext \
15484 conftest$ac_exeext conftest.$ac_ext
15485 done
15487 LIBS=$ac_func_search_save_LIBS
15489 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
15490 echo "${ECHO_T}$ac_cv_search_strerror" >&6
15491 if test "$ac_cv_search_strerror" != no; then
15492 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
15497 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
15498 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
15499 if test "${ac_cv_gnu_library_2_1+set}" = set; then
15500 echo $ECHO_N "(cached) $ECHO_C" >&6
15501 else
15502 cat >conftest.$ac_ext <<_ACEOF
15503 /* confdefs.h. */
15504 _ACEOF
15505 cat confdefs.h >>conftest.$ac_ext
15506 cat >>conftest.$ac_ext <<_ACEOF
15507 /* end confdefs.h. */
15509 #include <features.h>
15510 #ifdef __GNU_LIBRARY__
15511 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
15512 Lucky GNU user
15513 #endif
15514 #endif
15516 _ACEOF
15517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15518 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
15519 ac_cv_gnu_library_2_1=yes
15520 else
15521 ac_cv_gnu_library_2_1=no
15523 rm -f conftest*
15528 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
15529 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
15531 GLIBC21="$ac_cv_gnu_library_2_1"
15536 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
15537 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
15538 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
15539 echo $ECHO_N "(cached) $ECHO_C" >&6
15540 else
15542 if test "$cross_compiling" = yes; then
15544 # Guess based on the CPU.
15545 case "$host_cpu" in
15546 alpha* | i3456786 | m68k | s390*)
15547 gt_cv_int_divbyzero_sigfpe="guessing yes";;
15549 gt_cv_int_divbyzero_sigfpe="guessing no";;
15550 esac
15552 else
15553 cat >conftest.$ac_ext <<_ACEOF
15554 /* confdefs.h. */
15555 _ACEOF
15556 cat confdefs.h >>conftest.$ac_ext
15557 cat >>conftest.$ac_ext <<_ACEOF
15558 /* end confdefs.h. */
15560 #include <stdlib.h>
15561 #include <signal.h>
15563 static void
15564 #ifdef __cplusplus
15565 sigfpe_handler (int sig)
15566 #else
15567 sigfpe_handler (sig) int sig;
15568 #endif
15570 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
15571 exit (sig != SIGFPE);
15574 int x = 1;
15575 int y = 0;
15576 int z;
15577 int nan;
15579 int main ()
15581 signal (SIGFPE, sigfpe_handler);
15582 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
15583 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
15584 signal (SIGTRAP, sigfpe_handler);
15585 #endif
15586 /* Linux/SPARC yields signal SIGILL. */
15587 #if defined (__sparc__) && defined (__linux__)
15588 signal (SIGILL, sigfpe_handler);
15589 #endif
15591 z = x / y;
15592 nan = y / y;
15593 exit (1);
15596 _ACEOF
15597 rm -f conftest$ac_exeext
15598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15599 (eval $ac_link) 2>&5
15600 ac_status=$?
15601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15604 (eval $ac_try) 2>&5
15605 ac_status=$?
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); }; }; then
15608 gt_cv_int_divbyzero_sigfpe=yes
15609 else
15610 echo "$as_me: program exited with status $ac_status" >&5
15611 echo "$as_me: failed program was:" >&5
15612 sed 's/^/| /' conftest.$ac_ext >&5
15614 ( exit $ac_status )
15615 gt_cv_int_divbyzero_sigfpe=no
15617 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15621 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
15622 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
15623 case "$gt_cv_int_divbyzero_sigfpe" in
15624 *yes) value=1;;
15625 *) value=0;;
15626 esac
15628 cat >>confdefs.h <<_ACEOF
15629 #define INTDIV0_RAISES_SIGFPE $value
15630 _ACEOF
15634 echo "$as_me:$LINENO: checking for inttypes.h" >&5
15635 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
15636 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
15637 echo $ECHO_N "(cached) $ECHO_C" >&6
15638 else
15639 cat >conftest.$ac_ext <<_ACEOF
15640 /* confdefs.h. */
15641 _ACEOF
15642 cat confdefs.h >>conftest.$ac_ext
15643 cat >>conftest.$ac_ext <<_ACEOF
15644 /* end confdefs.h. */
15645 #include <sys/types.h>
15646 #include <inttypes.h>
15648 main ()
15650 uintmax_t i = (uintmax_t) -1;
15652 return 0;
15654 _ACEOF
15655 rm -f conftest.$ac_objext
15656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15657 (eval $ac_compile) 2>conftest.er1
15658 ac_status=$?
15659 grep -v '^ *+' conftest.er1 >conftest.err
15660 rm -f conftest.er1
15661 cat conftest.err >&5
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); } &&
15664 { ac_try='test -z "$ac_c_werror_flag"
15665 || test ! -s conftest.err'
15666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15667 (eval $ac_try) 2>&5
15668 ac_status=$?
15669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670 (exit $ac_status); }; } &&
15671 { ac_try='test -s conftest.$ac_objext'
15672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15673 (eval $ac_try) 2>&5
15674 ac_status=$?
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); }; }; then
15677 jm_ac_cv_header_inttypes_h=yes
15678 else
15679 echo "$as_me: failed program was:" >&5
15680 sed 's/^/| /' conftest.$ac_ext >&5
15682 jm_ac_cv_header_inttypes_h=no
15684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15686 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
15687 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
15688 if test $jm_ac_cv_header_inttypes_h = yes; then
15690 cat >>confdefs.h <<_ACEOF
15691 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
15692 _ACEOF
15697 echo "$as_me:$LINENO: checking for stdint.h" >&5
15698 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
15699 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
15700 echo $ECHO_N "(cached) $ECHO_C" >&6
15701 else
15702 cat >conftest.$ac_ext <<_ACEOF
15703 /* confdefs.h. */
15704 _ACEOF
15705 cat confdefs.h >>conftest.$ac_ext
15706 cat >>conftest.$ac_ext <<_ACEOF
15707 /* end confdefs.h. */
15708 #include <sys/types.h>
15709 #include <stdint.h>
15711 main ()
15713 uintmax_t i = (uintmax_t) -1;
15715 return 0;
15717 _ACEOF
15718 rm -f conftest.$ac_objext
15719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15720 (eval $ac_compile) 2>conftest.er1
15721 ac_status=$?
15722 grep -v '^ *+' conftest.er1 >conftest.err
15723 rm -f conftest.er1
15724 cat conftest.err >&5
15725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); } &&
15727 { ac_try='test -z "$ac_c_werror_flag"
15728 || test ! -s conftest.err'
15729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15730 (eval $ac_try) 2>&5
15731 ac_status=$?
15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 (exit $ac_status); }; } &&
15734 { ac_try='test -s conftest.$ac_objext'
15735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15736 (eval $ac_try) 2>&5
15737 ac_status=$?
15738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739 (exit $ac_status); }; }; then
15740 jm_ac_cv_header_stdint_h=yes
15741 else
15742 echo "$as_me: failed program was:" >&5
15743 sed 's/^/| /' conftest.$ac_ext >&5
15745 jm_ac_cv_header_stdint_h=no
15747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15749 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
15750 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
15751 if test $jm_ac_cv_header_stdint_h = yes; then
15753 cat >>confdefs.h <<_ACEOF
15754 #define HAVE_STDINT_H_WITH_UINTMAX 1
15755 _ACEOF
15760 echo "$as_me:$LINENO: checking for unsigned long long" >&5
15761 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
15762 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
15763 echo $ECHO_N "(cached) $ECHO_C" >&6
15764 else
15765 cat >conftest.$ac_ext <<_ACEOF
15766 /* confdefs.h. */
15767 _ACEOF
15768 cat confdefs.h >>conftest.$ac_ext
15769 cat >>conftest.$ac_ext <<_ACEOF
15770 /* end confdefs.h. */
15771 unsigned long long ull = 1; int i = 63;
15773 main ()
15775 unsigned long long ullmax = (unsigned long long) -1;
15776 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
15778 return 0;
15780 _ACEOF
15781 rm -f conftest.$ac_objext conftest$ac_exeext
15782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15783 (eval $ac_link) 2>conftest.er1
15784 ac_status=$?
15785 grep -v '^ *+' conftest.er1 >conftest.err
15786 rm -f conftest.er1
15787 cat conftest.err >&5
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); } &&
15790 { ac_try='test -z "$ac_c_werror_flag"
15791 || test ! -s conftest.err'
15792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15793 (eval $ac_try) 2>&5
15794 ac_status=$?
15795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796 (exit $ac_status); }; } &&
15797 { ac_try='test -s conftest$ac_exeext'
15798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15799 (eval $ac_try) 2>&5
15800 ac_status=$?
15801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802 (exit $ac_status); }; }; then
15803 ac_cv_type_unsigned_long_long=yes
15804 else
15805 echo "$as_me: failed program was:" >&5
15806 sed 's/^/| /' conftest.$ac_ext >&5
15808 ac_cv_type_unsigned_long_long=no
15810 rm -f conftest.err conftest.$ac_objext \
15811 conftest$ac_exeext conftest.$ac_ext
15813 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
15814 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
15815 if test $ac_cv_type_unsigned_long_long = yes; then
15817 cat >>confdefs.h <<\_ACEOF
15818 #define HAVE_UNSIGNED_LONG_LONG 1
15819 _ACEOF
15826 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
15828 test $ac_cv_type_unsigned_long_long = yes \
15829 && ac_type='unsigned long long' \
15830 || ac_type='unsigned long'
15832 cat >>confdefs.h <<_ACEOF
15833 #define uintmax_t $ac_type
15834 _ACEOF
15839 echo "$as_me:$LINENO: checking for inttypes.h" >&5
15840 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
15841 if test "${gt_cv_header_inttypes_h+set}" = set; then
15842 echo $ECHO_N "(cached) $ECHO_C" >&6
15843 else
15845 cat >conftest.$ac_ext <<_ACEOF
15846 /* confdefs.h. */
15847 _ACEOF
15848 cat confdefs.h >>conftest.$ac_ext
15849 cat >>conftest.$ac_ext <<_ACEOF
15850 /* end confdefs.h. */
15851 #include <sys/types.h>
15852 #include <inttypes.h>
15854 main ()
15858 return 0;
15860 _ACEOF
15861 rm -f conftest.$ac_objext
15862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15863 (eval $ac_compile) 2>conftest.er1
15864 ac_status=$?
15865 grep -v '^ *+' conftest.er1 >conftest.err
15866 rm -f conftest.er1
15867 cat conftest.err >&5
15868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869 (exit $ac_status); } &&
15870 { ac_try='test -z "$ac_c_werror_flag"
15871 || test ! -s conftest.err'
15872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15873 (eval $ac_try) 2>&5
15874 ac_status=$?
15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); }; } &&
15877 { ac_try='test -s conftest.$ac_objext'
15878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15879 (eval $ac_try) 2>&5
15880 ac_status=$?
15881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882 (exit $ac_status); }; }; then
15883 gt_cv_header_inttypes_h=yes
15884 else
15885 echo "$as_me: failed program was:" >&5
15886 sed 's/^/| /' conftest.$ac_ext >&5
15888 gt_cv_header_inttypes_h=no
15890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15893 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
15894 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
15895 if test $gt_cv_header_inttypes_h = yes; then
15897 cat >>confdefs.h <<_ACEOF
15898 #define HAVE_INTTYPES_H 1
15899 _ACEOF
15905 if test $gt_cv_header_inttypes_h = yes; then
15906 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
15907 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
15908 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
15909 echo $ECHO_N "(cached) $ECHO_C" >&6
15910 else
15912 cat >conftest.$ac_ext <<_ACEOF
15913 /* confdefs.h. */
15914 _ACEOF
15915 cat confdefs.h >>conftest.$ac_ext
15916 cat >>conftest.$ac_ext <<_ACEOF
15917 /* end confdefs.h. */
15918 #include <inttypes.h>
15919 #ifdef PRId32
15920 char *p = PRId32;
15921 #endif
15924 main ()
15928 return 0;
15930 _ACEOF
15931 rm -f conftest.$ac_objext
15932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15933 (eval $ac_compile) 2>conftest.er1
15934 ac_status=$?
15935 grep -v '^ *+' conftest.er1 >conftest.err
15936 rm -f conftest.er1
15937 cat conftest.err >&5
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); } &&
15940 { ac_try='test -z "$ac_c_werror_flag"
15941 || test ! -s conftest.err'
15942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15943 (eval $ac_try) 2>&5
15944 ac_status=$?
15945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946 (exit $ac_status); }; } &&
15947 { ac_try='test -s conftest.$ac_objext'
15948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15949 (eval $ac_try) 2>&5
15950 ac_status=$?
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); }; }; then
15953 gt_cv_inttypes_pri_broken=no
15954 else
15955 echo "$as_me: failed program was:" >&5
15956 sed 's/^/| /' conftest.$ac_ext >&5
15958 gt_cv_inttypes_pri_broken=yes
15960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15963 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
15964 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
15966 if test "$gt_cv_inttypes_pri_broken" = yes; then
15968 cat >>confdefs.h <<_ACEOF
15969 #define PRI_MACROS_BROKEN 1
15970 _ACEOF
15975 if test "X$prefix" = "XNONE"; then
15976 acl_final_prefix="$ac_default_prefix"
15977 else
15978 acl_final_prefix="$prefix"
15980 if test "X$exec_prefix" = "XNONE"; then
15981 acl_final_exec_prefix='${prefix}'
15982 else
15983 acl_final_exec_prefix="$exec_prefix"
15985 acl_save_prefix="$prefix"
15986 prefix="$acl_final_prefix"
15987 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
15988 prefix="$acl_save_prefix"
15991 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15992 if test "${with_gnu_ld+set}" = set; then
15993 withval="$with_gnu_ld"
15994 test "$withval" = no || with_gnu_ld=yes
15995 else
15996 with_gnu_ld=no
15998 ac_prog=ld
15999 if test "$GCC" = yes; then
16000 # Check if gcc -print-prog-name=ld gives a path.
16001 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16002 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
16003 case $host in
16004 *-*-mingw*)
16005 # gcc leaves a trailing carriage return which upsets mingw
16006 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16008 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16009 esac
16010 case $ac_prog in
16011 # Accept absolute paths.
16012 [\\/]* | [A-Za-z]:[\\/]*)
16013 re_direlt='/[^/][^/]*/\.\./'
16014 # Canonicalize the path of ld
16015 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16016 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16017 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16018 done
16019 test -z "$LD" && LD="$ac_prog"
16022 # If it fails, then pretend we aren't using GCC.
16023 ac_prog=ld
16026 # If it is relative, then search for the first ld in PATH.
16027 with_gnu_ld=unknown
16029 esac
16030 elif test "$with_gnu_ld" = yes; then
16031 echo "$as_me:$LINENO: checking for GNU ld" >&5
16032 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
16033 else
16034 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16035 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
16037 if test "${acl_cv_path_LD+set}" = set; then
16038 echo $ECHO_N "(cached) $ECHO_C" >&6
16039 else
16040 if test -z "$LD"; then
16041 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16042 for ac_dir in $PATH; do
16043 test -z "$ac_dir" && ac_dir=.
16044 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16045 acl_cv_path_LD="$ac_dir/$ac_prog"
16046 # Check to see if the program is GNU ld. I'd rather use --version,
16047 # but apparently some GNU ld's only accept -v.
16048 # Break only if it was the GNU/non-GNU ld that we prefer.
16049 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
16050 test "$with_gnu_ld" != no && break
16051 else
16052 test "$with_gnu_ld" != yes && break
16055 done
16056 IFS="$ac_save_ifs"
16057 else
16058 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16062 LD="$acl_cv_path_LD"
16063 if test -n "$LD"; then
16064 echo "$as_me:$LINENO: result: $LD" >&5
16065 echo "${ECHO_T}$LD" >&6
16066 else
16067 echo "$as_me:$LINENO: result: no" >&5
16068 echo "${ECHO_T}no" >&6
16070 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16071 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16072 { (exit 1); exit 1; }; }
16073 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16074 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
16075 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16076 echo $ECHO_N "(cached) $ECHO_C" >&6
16077 else
16078 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16079 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
16080 acl_cv_prog_gnu_ld=yes
16081 else
16082 acl_cv_prog_gnu_ld=no
16085 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16086 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
16087 with_gnu_ld=$acl_cv_prog_gnu_ld
16091 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16092 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
16093 if test "${acl_cv_rpath+set}" = set; then
16094 echo $ECHO_N "(cached) $ECHO_C" >&6
16095 else
16097 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16098 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16099 . ./conftest.sh
16100 rm -f ./conftest.sh
16101 acl_cv_rpath=done
16104 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16105 echo "${ECHO_T}$acl_cv_rpath" >&6
16106 wl="$acl_cv_wl"
16107 libext="$acl_cv_libext"
16108 shlibext="$acl_cv_shlibext"
16109 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16110 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16111 hardcode_direct="$acl_cv_hardcode_direct"
16112 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16113 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
16114 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
16115 # Check whether --enable-rpath or --disable-rpath was given.
16116 if test "${enable_rpath+set}" = set; then
16117 enableval="$enable_rpath"
16119 else
16120 enable_rpath=yes
16129 use_additional=yes
16131 acl_save_prefix="$prefix"
16132 prefix="$acl_final_prefix"
16133 acl_save_exec_prefix="$exec_prefix"
16134 exec_prefix="$acl_final_exec_prefix"
16136 eval additional_includedir=\"$includedir\"
16137 eval additional_libdir=\"$libdir\"
16139 exec_prefix="$acl_save_exec_prefix"
16140 prefix="$acl_save_prefix"
16143 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
16144 if test "${with_libiconv_prefix+set}" = set; then
16145 withval="$with_libiconv_prefix"
16147 if test "X$withval" = "Xno"; then
16148 use_additional=no
16149 else
16150 if test "X$withval" = "X"; then
16152 acl_save_prefix="$prefix"
16153 prefix="$acl_final_prefix"
16154 acl_save_exec_prefix="$exec_prefix"
16155 exec_prefix="$acl_final_exec_prefix"
16157 eval additional_includedir=\"$includedir\"
16158 eval additional_libdir=\"$libdir\"
16160 exec_prefix="$acl_save_exec_prefix"
16161 prefix="$acl_save_prefix"
16163 else
16164 additional_includedir="$withval/include"
16165 additional_libdir="$withval/lib"
16170 LIBICONV=
16171 LTLIBICONV=
16172 INCICONV=
16173 rpathdirs=
16174 ltrpathdirs=
16175 names_already_handled=
16176 names_next_round='iconv '
16177 while test -n "$names_next_round"; do
16178 names_this_round="$names_next_round"
16179 names_next_round=
16180 for name in $names_this_round; do
16181 already_handled=
16182 for n in $names_already_handled; do
16183 if test "$n" = "$name"; then
16184 already_handled=yes
16185 break
16187 done
16188 if test -z "$already_handled"; then
16189 names_already_handled="$names_already_handled $name"
16190 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16191 eval value=\"\$HAVE_LIB$uppername\"
16192 if test -n "$value"; then
16193 if test "$value" = yes; then
16194 eval value=\"\$LIB$uppername\"
16195 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16196 eval value=\"\$LTLIB$uppername\"
16197 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16198 else
16201 else
16202 found_dir=
16203 found_la=
16204 found_so=
16205 found_a=
16206 if test $use_additional = yes; then
16207 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16208 found_dir="$additional_libdir"
16209 found_so="$additional_libdir/lib$name.$shlibext"
16210 if test -f "$additional_libdir/lib$name.la"; then
16211 found_la="$additional_libdir/lib$name.la"
16213 else
16214 if test -f "$additional_libdir/lib$name.$libext"; then
16215 found_dir="$additional_libdir"
16216 found_a="$additional_libdir/lib$name.$libext"
16217 if test -f "$additional_libdir/lib$name.la"; then
16218 found_la="$additional_libdir/lib$name.la"
16223 if test "X$found_dir" = "X"; then
16224 for x in $LDFLAGS $LTLIBICONV; do
16226 acl_save_prefix="$prefix"
16227 prefix="$acl_final_prefix"
16228 acl_save_exec_prefix="$exec_prefix"
16229 exec_prefix="$acl_final_exec_prefix"
16230 eval x=\"$x\"
16231 exec_prefix="$acl_save_exec_prefix"
16232 prefix="$acl_save_prefix"
16234 case "$x" in
16235 -L*)
16236 dir=`echo "X$x" | sed -e 's/^X-L//'`
16237 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16238 found_dir="$dir"
16239 found_so="$dir/lib$name.$shlibext"
16240 if test -f "$dir/lib$name.la"; then
16241 found_la="$dir/lib$name.la"
16243 else
16244 if test -f "$dir/lib$name.$libext"; then
16245 found_dir="$dir"
16246 found_a="$dir/lib$name.$libext"
16247 if test -f "$dir/lib$name.la"; then
16248 found_la="$dir/lib$name.la"
16253 esac
16254 if test "X$found_dir" != "X"; then
16255 break
16257 done
16259 if test "X$found_dir" != "X"; then
16260 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16261 if test "X$found_so" != "X"; then
16262 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16263 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16264 else
16265 haveit=
16266 for x in $ltrpathdirs; do
16267 if test "X$x" = "X$found_dir"; then
16268 haveit=yes
16269 break
16271 done
16272 if test -z "$haveit"; then
16273 ltrpathdirs="$ltrpathdirs $found_dir"
16275 if test "$hardcode_direct" = yes; then
16276 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16277 else
16278 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16279 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16280 haveit=
16281 for x in $rpathdirs; do
16282 if test "X$x" = "X$found_dir"; then
16283 haveit=yes
16284 break
16286 done
16287 if test -z "$haveit"; then
16288 rpathdirs="$rpathdirs $found_dir"
16290 else
16291 haveit=
16292 for x in $LDFLAGS $LIBICONV; do
16294 acl_save_prefix="$prefix"
16295 prefix="$acl_final_prefix"
16296 acl_save_exec_prefix="$exec_prefix"
16297 exec_prefix="$acl_final_exec_prefix"
16298 eval x=\"$x\"
16299 exec_prefix="$acl_save_exec_prefix"
16300 prefix="$acl_save_prefix"
16302 if test "X$x" = "X-L$found_dir"; then
16303 haveit=yes
16304 break
16306 done
16307 if test -z "$haveit"; then
16308 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16310 if test "$hardcode_minus_L" != no; then
16311 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16312 else
16313 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16318 else
16319 if test "X$found_a" != "X"; then
16320 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16321 else
16322 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16325 additional_includedir=
16326 case "$found_dir" in
16327 */lib | */lib/)
16328 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16329 additional_includedir="$basedir/include"
16331 esac
16332 if test "X$additional_includedir" != "X"; then
16333 if test "X$additional_includedir" != "X/usr/include"; then
16334 haveit=
16335 if test "X$additional_includedir" = "X/usr/local/include"; then
16336 if test -n "$GCC"; then
16337 case $host_os in
16338 linux*) haveit=yes;;
16339 esac
16342 if test -z "$haveit"; then
16343 for x in $CPPFLAGS $INCICONV; do
16345 acl_save_prefix="$prefix"
16346 prefix="$acl_final_prefix"
16347 acl_save_exec_prefix="$exec_prefix"
16348 exec_prefix="$acl_final_exec_prefix"
16349 eval x=\"$x\"
16350 exec_prefix="$acl_save_exec_prefix"
16351 prefix="$acl_save_prefix"
16353 if test "X$x" = "X-I$additional_includedir"; then
16354 haveit=yes
16355 break
16357 done
16358 if test -z "$haveit"; then
16359 if test -d "$additional_includedir"; then
16360 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16366 if test -n "$found_la"; then
16367 save_libdir="$libdir"
16368 case "$found_la" in
16369 */* | *\\*) . "$found_la" ;;
16370 *) . "./$found_la" ;;
16371 esac
16372 libdir="$save_libdir"
16373 for dep in $dependency_libs; do
16374 case "$dep" in
16375 -L*)
16376 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16377 if test "X$additional_libdir" != "X/usr/lib"; then
16378 haveit=
16379 if test "X$additional_libdir" = "X/usr/local/lib"; then
16380 if test -n "$GCC"; then
16381 case $host_os in
16382 linux*) haveit=yes;;
16383 esac
16386 if test -z "$haveit"; then
16387 haveit=
16388 for x in $LDFLAGS $LIBICONV; do
16390 acl_save_prefix="$prefix"
16391 prefix="$acl_final_prefix"
16392 acl_save_exec_prefix="$exec_prefix"
16393 exec_prefix="$acl_final_exec_prefix"
16394 eval x=\"$x\"
16395 exec_prefix="$acl_save_exec_prefix"
16396 prefix="$acl_save_prefix"
16398 if test "X$x" = "X-L$additional_libdir"; then
16399 haveit=yes
16400 break
16402 done
16403 if test -z "$haveit"; then
16404 if test -d "$additional_libdir"; then
16405 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16408 haveit=
16409 for x in $LDFLAGS $LTLIBICONV; do
16411 acl_save_prefix="$prefix"
16412 prefix="$acl_final_prefix"
16413 acl_save_exec_prefix="$exec_prefix"
16414 exec_prefix="$acl_final_exec_prefix"
16415 eval x=\"$x\"
16416 exec_prefix="$acl_save_exec_prefix"
16417 prefix="$acl_save_prefix"
16419 if test "X$x" = "X-L$additional_libdir"; then
16420 haveit=yes
16421 break
16423 done
16424 if test -z "$haveit"; then
16425 if test -d "$additional_libdir"; then
16426 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16432 -R*)
16433 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16434 if test "$enable_rpath" != no; then
16435 haveit=
16436 for x in $rpathdirs; do
16437 if test "X$x" = "X$dir"; then
16438 haveit=yes
16439 break
16441 done
16442 if test -z "$haveit"; then
16443 rpathdirs="$rpathdirs $dir"
16445 haveit=
16446 for x in $ltrpathdirs; do
16447 if test "X$x" = "X$dir"; then
16448 haveit=yes
16449 break
16451 done
16452 if test -z "$haveit"; then
16453 ltrpathdirs="$ltrpathdirs $dir"
16457 -l*)
16458 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16460 *.la)
16461 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16464 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16465 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16467 esac
16468 done
16470 else
16471 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16472 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16476 done
16477 done
16478 if test "X$rpathdirs" != "X"; then
16479 if test -n "$hardcode_libdir_separator"; then
16480 alldirs=
16481 for found_dir in $rpathdirs; do
16482 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16483 done
16484 acl_save_libdir="$libdir"
16485 libdir="$alldirs"
16486 eval flag=\"$hardcode_libdir_flag_spec\"
16487 libdir="$acl_save_libdir"
16488 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16489 else
16490 for found_dir in $rpathdirs; do
16491 acl_save_libdir="$libdir"
16492 libdir="$found_dir"
16493 eval flag=\"$hardcode_libdir_flag_spec\"
16494 libdir="$acl_save_libdir"
16495 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16496 done
16499 if test "X$ltrpathdirs" != "X"; then
16500 for found_dir in $ltrpathdirs; do
16501 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16502 done
16518 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
16519 stdlib.h string.h unistd.h sys/param.h
16521 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16523 echo "$as_me:$LINENO: checking for $ac_header" >&5
16524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16526 echo $ECHO_N "(cached) $ECHO_C" >&6
16528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16529 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16530 else
16531 # Is the header compilable?
16532 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16533 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16534 cat >conftest.$ac_ext <<_ACEOF
16535 /* confdefs.h. */
16536 _ACEOF
16537 cat confdefs.h >>conftest.$ac_ext
16538 cat >>conftest.$ac_ext <<_ACEOF
16539 /* end confdefs.h. */
16540 $ac_includes_default
16541 #include <$ac_header>
16542 _ACEOF
16543 rm -f conftest.$ac_objext
16544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16545 (eval $ac_compile) 2>conftest.er1
16546 ac_status=$?
16547 grep -v '^ *+' conftest.er1 >conftest.err
16548 rm -f conftest.er1
16549 cat conftest.err >&5
16550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551 (exit $ac_status); } &&
16552 { ac_try='test -z "$ac_c_werror_flag"
16553 || test ! -s conftest.err'
16554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16555 (eval $ac_try) 2>&5
16556 ac_status=$?
16557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558 (exit $ac_status); }; } &&
16559 { ac_try='test -s conftest.$ac_objext'
16560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16561 (eval $ac_try) 2>&5
16562 ac_status=$?
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); }; }; then
16565 ac_header_compiler=yes
16566 else
16567 echo "$as_me: failed program was:" >&5
16568 sed 's/^/| /' conftest.$ac_ext >&5
16570 ac_header_compiler=no
16572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16573 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16574 echo "${ECHO_T}$ac_header_compiler" >&6
16576 # Is the header present?
16577 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16578 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16579 cat >conftest.$ac_ext <<_ACEOF
16580 /* confdefs.h. */
16581 _ACEOF
16582 cat confdefs.h >>conftest.$ac_ext
16583 cat >>conftest.$ac_ext <<_ACEOF
16584 /* end confdefs.h. */
16585 #include <$ac_header>
16586 _ACEOF
16587 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16588 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16589 ac_status=$?
16590 grep -v '^ *+' conftest.er1 >conftest.err
16591 rm -f conftest.er1
16592 cat conftest.err >&5
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); } >/dev/null; then
16595 if test -s conftest.err; then
16596 ac_cpp_err=$ac_c_preproc_warn_flag
16597 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16598 else
16599 ac_cpp_err=
16601 else
16602 ac_cpp_err=yes
16604 if test -z "$ac_cpp_err"; then
16605 ac_header_preproc=yes
16606 else
16607 echo "$as_me: failed program was:" >&5
16608 sed 's/^/| /' conftest.$ac_ext >&5
16610 ac_header_preproc=no
16612 rm -f conftest.err conftest.$ac_ext
16613 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16614 echo "${ECHO_T}$ac_header_preproc" >&6
16616 # So? What about this header?
16617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16618 yes:no: )
16619 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16620 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16622 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16623 ac_header_preproc=yes
16625 no:yes:* )
16626 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16627 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16628 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16629 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16630 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16631 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16632 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16633 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16635 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16636 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16637 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16639 cat <<\_ASBOX
16640 ## ------------------------------ ##
16641 ## Report this to admin@amule.org ##
16642 ## ------------------------------ ##
16643 _ASBOX
16645 sed "s/^/$as_me: WARNING: /" >&2
16647 esac
16648 echo "$as_me:$LINENO: checking for $ac_header" >&5
16649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16651 echo $ECHO_N "(cached) $ECHO_C" >&6
16652 else
16653 eval "$as_ac_Header=\$ac_header_preproc"
16655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16660 cat >>confdefs.h <<_ACEOF
16661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16662 _ACEOF
16666 done
16689 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
16690 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
16691 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
16693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16694 echo "$as_me:$LINENO: checking for $ac_func" >&5
16695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16696 if eval "test \"\${$as_ac_var+set}\" = set"; then
16697 echo $ECHO_N "(cached) $ECHO_C" >&6
16698 else
16699 cat >conftest.$ac_ext <<_ACEOF
16700 /* confdefs.h. */
16701 _ACEOF
16702 cat confdefs.h >>conftest.$ac_ext
16703 cat >>conftest.$ac_ext <<_ACEOF
16704 /* end confdefs.h. */
16705 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16706 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16707 #define $ac_func innocuous_$ac_func
16709 /* System header to define __stub macros and hopefully few prototypes,
16710 which can conflict with char $ac_func (); below.
16711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16712 <limits.h> exists even on freestanding compilers. */
16714 #ifdef __STDC__
16715 # include <limits.h>
16716 #else
16717 # include <assert.h>
16718 #endif
16720 #undef $ac_func
16722 /* Override any gcc2 internal prototype to avoid an error. */
16723 #ifdef __cplusplus
16724 extern "C"
16726 #endif
16727 /* We use char because int might match the return type of a gcc2
16728 builtin and then its argument prototype would still apply. */
16729 char $ac_func ();
16730 /* The GNU C library defines this for functions which it implements
16731 to always fail with ENOSYS. Some functions are actually named
16732 something starting with __ and the normal name is an alias. */
16733 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16734 choke me
16735 #else
16736 char (*f) () = $ac_func;
16737 #endif
16738 #ifdef __cplusplus
16740 #endif
16743 main ()
16745 return f != $ac_func;
16747 return 0;
16749 _ACEOF
16750 rm -f conftest.$ac_objext conftest$ac_exeext
16751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16752 (eval $ac_link) 2>conftest.er1
16753 ac_status=$?
16754 grep -v '^ *+' conftest.er1 >conftest.err
16755 rm -f conftest.er1
16756 cat conftest.err >&5
16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); } &&
16759 { ac_try='test -z "$ac_c_werror_flag"
16760 || test ! -s conftest.err'
16761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16762 (eval $ac_try) 2>&5
16763 ac_status=$?
16764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765 (exit $ac_status); }; } &&
16766 { ac_try='test -s conftest$ac_exeext'
16767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16768 (eval $ac_try) 2>&5
16769 ac_status=$?
16770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); }; }; then
16772 eval "$as_ac_var=yes"
16773 else
16774 echo "$as_me: failed program was:" >&5
16775 sed 's/^/| /' conftest.$ac_ext >&5
16777 eval "$as_ac_var=no"
16779 rm -f conftest.err conftest.$ac_objext \
16780 conftest$ac_exeext conftest.$ac_ext
16782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16783 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16784 if test `eval echo '${'$as_ac_var'}'` = yes; then
16785 cat >>confdefs.h <<_ACEOF
16786 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16787 _ACEOF
16790 done
16798 am_save_CPPFLAGS="$CPPFLAGS"
16800 for element in $INCICONV; do
16801 haveit=
16802 for x in $CPPFLAGS; do
16804 acl_save_prefix="$prefix"
16805 prefix="$acl_final_prefix"
16806 acl_save_exec_prefix="$exec_prefix"
16807 exec_prefix="$acl_final_exec_prefix"
16808 eval x=\"$x\"
16809 exec_prefix="$acl_save_exec_prefix"
16810 prefix="$acl_save_prefix"
16812 if test "X$x" = "X$element"; then
16813 haveit=yes
16814 break
16816 done
16817 if test -z "$haveit"; then
16818 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16820 done
16823 echo "$as_me:$LINENO: checking for iconv" >&5
16824 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
16825 if test "${am_cv_func_iconv+set}" = set; then
16826 echo $ECHO_N "(cached) $ECHO_C" >&6
16827 else
16829 am_cv_func_iconv="no, consider installing GNU libiconv"
16830 am_cv_lib_iconv=no
16831 cat >conftest.$ac_ext <<_ACEOF
16832 /* confdefs.h. */
16833 _ACEOF
16834 cat confdefs.h >>conftest.$ac_ext
16835 cat >>conftest.$ac_ext <<_ACEOF
16836 /* end confdefs.h. */
16837 #include <stdlib.h>
16838 #include <iconv.h>
16840 main ()
16842 iconv_t cd = iconv_open("","");
16843 iconv(cd,NULL,NULL,NULL,NULL);
16844 iconv_close(cd);
16846 return 0;
16848 _ACEOF
16849 rm -f conftest.$ac_objext conftest$ac_exeext
16850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16851 (eval $ac_link) 2>conftest.er1
16852 ac_status=$?
16853 grep -v '^ *+' conftest.er1 >conftest.err
16854 rm -f conftest.er1
16855 cat conftest.err >&5
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); } &&
16858 { ac_try='test -z "$ac_c_werror_flag"
16859 || test ! -s conftest.err'
16860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16861 (eval $ac_try) 2>&5
16862 ac_status=$?
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); }; } &&
16865 { ac_try='test -s conftest$ac_exeext'
16866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16867 (eval $ac_try) 2>&5
16868 ac_status=$?
16869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870 (exit $ac_status); }; }; then
16871 am_cv_func_iconv=yes
16872 else
16873 echo "$as_me: failed program was:" >&5
16874 sed 's/^/| /' conftest.$ac_ext >&5
16877 rm -f conftest.err conftest.$ac_objext \
16878 conftest$ac_exeext conftest.$ac_ext
16879 if test "$am_cv_func_iconv" != yes; then
16880 am_save_LIBS="$LIBS"
16881 LIBS="$LIBS $LIBICONV"
16882 cat >conftest.$ac_ext <<_ACEOF
16883 /* confdefs.h. */
16884 _ACEOF
16885 cat confdefs.h >>conftest.$ac_ext
16886 cat >>conftest.$ac_ext <<_ACEOF
16887 /* end confdefs.h. */
16888 #include <stdlib.h>
16889 #include <iconv.h>
16891 main ()
16893 iconv_t cd = iconv_open("","");
16894 iconv(cd,NULL,NULL,NULL,NULL);
16895 iconv_close(cd);
16897 return 0;
16899 _ACEOF
16900 rm -f conftest.$ac_objext conftest$ac_exeext
16901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16902 (eval $ac_link) 2>conftest.er1
16903 ac_status=$?
16904 grep -v '^ *+' conftest.er1 >conftest.err
16905 rm -f conftest.er1
16906 cat conftest.err >&5
16907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908 (exit $ac_status); } &&
16909 { ac_try='test -z "$ac_c_werror_flag"
16910 || test ! -s conftest.err'
16911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16912 (eval $ac_try) 2>&5
16913 ac_status=$?
16914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915 (exit $ac_status); }; } &&
16916 { ac_try='test -s conftest$ac_exeext'
16917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16918 (eval $ac_try) 2>&5
16919 ac_status=$?
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); }; }; then
16922 am_cv_lib_iconv=yes
16923 am_cv_func_iconv=yes
16924 else
16925 echo "$as_me: failed program was:" >&5
16926 sed 's/^/| /' conftest.$ac_ext >&5
16929 rm -f conftest.err conftest.$ac_objext \
16930 conftest$ac_exeext conftest.$ac_ext
16931 LIBS="$am_save_LIBS"
16935 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
16936 echo "${ECHO_T}$am_cv_func_iconv" >&6
16937 if test "$am_cv_func_iconv" = yes; then
16939 cat >>confdefs.h <<\_ACEOF
16940 #define HAVE_ICONV 1
16941 _ACEOF
16944 if test "$am_cv_lib_iconv" = yes; then
16945 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
16946 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
16947 echo "$as_me:$LINENO: result: $LIBICONV" >&5
16948 echo "${ECHO_T}$LIBICONV" >&6
16949 else
16950 CPPFLAGS="$am_save_CPPFLAGS"
16951 LIBICONV=
16952 LTLIBICONV=
16957 if test "$am_cv_func_iconv" = yes; then
16958 echo "$as_me:$LINENO: checking for iconv declaration" >&5
16959 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
16960 if test "${am_cv_proto_iconv+set}" = set; then
16961 echo $ECHO_N "(cached) $ECHO_C" >&6
16962 else
16964 cat >conftest.$ac_ext <<_ACEOF
16965 /* confdefs.h. */
16966 _ACEOF
16967 cat confdefs.h >>conftest.$ac_ext
16968 cat >>conftest.$ac_ext <<_ACEOF
16969 /* end confdefs.h. */
16971 #include <stdlib.h>
16972 #include <iconv.h>
16973 extern
16974 #ifdef __cplusplus
16976 #endif
16977 #if defined(__STDC__) || defined(__cplusplus)
16978 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16979 #else
16980 size_t iconv();
16981 #endif
16984 main ()
16988 return 0;
16990 _ACEOF
16991 rm -f conftest.$ac_objext
16992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16993 (eval $ac_compile) 2>conftest.er1
16994 ac_status=$?
16995 grep -v '^ *+' conftest.er1 >conftest.err
16996 rm -f conftest.er1
16997 cat conftest.err >&5
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); } &&
17000 { ac_try='test -z "$ac_c_werror_flag"
17001 || test ! -s conftest.err'
17002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17003 (eval $ac_try) 2>&5
17004 ac_status=$?
17005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006 (exit $ac_status); }; } &&
17007 { ac_try='test -s conftest.$ac_objext'
17008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17009 (eval $ac_try) 2>&5
17010 ac_status=$?
17011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012 (exit $ac_status); }; }; then
17013 am_cv_proto_iconv_arg1=""
17014 else
17015 echo "$as_me: failed program was:" >&5
17016 sed 's/^/| /' conftest.$ac_ext >&5
17018 am_cv_proto_iconv_arg1="const"
17020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17021 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);"
17024 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
17025 echo "$as_me:$LINENO: result: ${ac_t:-
17026 }$am_cv_proto_iconv" >&5
17027 echo "${ECHO_T}${ac_t:-
17028 }$am_cv_proto_iconv" >&6
17030 cat >>confdefs.h <<_ACEOF
17031 #define ICONV_CONST $am_cv_proto_iconv_arg1
17032 _ACEOF
17037 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
17038 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
17039 if test "${am_cv_langinfo_codeset+set}" = set; then
17040 echo $ECHO_N "(cached) $ECHO_C" >&6
17041 else
17042 cat >conftest.$ac_ext <<_ACEOF
17043 /* confdefs.h. */
17044 _ACEOF
17045 cat confdefs.h >>conftest.$ac_ext
17046 cat >>conftest.$ac_ext <<_ACEOF
17047 /* end confdefs.h. */
17048 #include <langinfo.h>
17050 main ()
17052 char* cs = nl_langinfo(CODESET);
17054 return 0;
17056 _ACEOF
17057 rm -f conftest.$ac_objext conftest$ac_exeext
17058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17059 (eval $ac_link) 2>conftest.er1
17060 ac_status=$?
17061 grep -v '^ *+' conftest.er1 >conftest.err
17062 rm -f conftest.er1
17063 cat conftest.err >&5
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); } &&
17066 { ac_try='test -z "$ac_c_werror_flag"
17067 || test ! -s conftest.err'
17068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17069 (eval $ac_try) 2>&5
17070 ac_status=$?
17071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072 (exit $ac_status); }; } &&
17073 { ac_try='test -s conftest$ac_exeext'
17074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17075 (eval $ac_try) 2>&5
17076 ac_status=$?
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); }; }; then
17079 am_cv_langinfo_codeset=yes
17080 else
17081 echo "$as_me: failed program was:" >&5
17082 sed 's/^/| /' conftest.$ac_ext >&5
17084 am_cv_langinfo_codeset=no
17086 rm -f conftest.err conftest.$ac_objext \
17087 conftest$ac_exeext conftest.$ac_ext
17090 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
17091 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
17092 if test $am_cv_langinfo_codeset = yes; then
17094 cat >>confdefs.h <<\_ACEOF
17095 #define HAVE_LANGINFO_CODESET 1
17096 _ACEOF
17100 if test $ac_cv_header_locale_h = yes; then
17102 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
17103 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
17104 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
17105 echo $ECHO_N "(cached) $ECHO_C" >&6
17106 else
17107 cat >conftest.$ac_ext <<_ACEOF
17108 /* confdefs.h. */
17109 _ACEOF
17110 cat confdefs.h >>conftest.$ac_ext
17111 cat >>conftest.$ac_ext <<_ACEOF
17112 /* end confdefs.h. */
17113 #include <locale.h>
17115 main ()
17117 return LC_MESSAGES
17119 return 0;
17121 _ACEOF
17122 rm -f conftest.$ac_objext conftest$ac_exeext
17123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17124 (eval $ac_link) 2>conftest.er1
17125 ac_status=$?
17126 grep -v '^ *+' conftest.er1 >conftest.err
17127 rm -f conftest.er1
17128 cat conftest.err >&5
17129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130 (exit $ac_status); } &&
17131 { ac_try='test -z "$ac_c_werror_flag"
17132 || test ! -s conftest.err'
17133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17134 (eval $ac_try) 2>&5
17135 ac_status=$?
17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137 (exit $ac_status); }; } &&
17138 { ac_try='test -s conftest$ac_exeext'
17139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17140 (eval $ac_try) 2>&5
17141 ac_status=$?
17142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143 (exit $ac_status); }; }; then
17144 am_cv_val_LC_MESSAGES=yes
17145 else
17146 echo "$as_me: failed program was:" >&5
17147 sed 's/^/| /' conftest.$ac_ext >&5
17149 am_cv_val_LC_MESSAGES=no
17151 rm -f conftest.err conftest.$ac_objext \
17152 conftest$ac_exeext conftest.$ac_ext
17154 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
17155 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
17156 if test $am_cv_val_LC_MESSAGES = yes; then
17158 cat >>confdefs.h <<\_ACEOF
17159 #define HAVE_LC_MESSAGES 1
17160 _ACEOF
17166 for ac_prog in bison
17168 # Extract the first word of "$ac_prog", so it can be a program name with args.
17169 set dummy $ac_prog; ac_word=$2
17170 echo "$as_me:$LINENO: checking for $ac_word" >&5
17171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17172 if test "${ac_cv_prog_INTLBISON+set}" = set; then
17173 echo $ECHO_N "(cached) $ECHO_C" >&6
17174 else
17175 if test -n "$INTLBISON"; then
17176 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
17177 else
17178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17179 for as_dir in $PATH
17181 IFS=$as_save_IFS
17182 test -z "$as_dir" && as_dir=.
17183 for ac_exec_ext in '' $ac_executable_extensions; do
17184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17185 ac_cv_prog_INTLBISON="$ac_prog"
17186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17187 break 2
17189 done
17190 done
17194 INTLBISON=$ac_cv_prog_INTLBISON
17195 if test -n "$INTLBISON"; then
17196 echo "$as_me:$LINENO: result: $INTLBISON" >&5
17197 echo "${ECHO_T}$INTLBISON" >&6
17198 else
17199 echo "$as_me:$LINENO: result: no" >&5
17200 echo "${ECHO_T}no" >&6
17203 test -n "$INTLBISON" && break
17204 done
17206 if test -z "$INTLBISON"; then
17207 ac_verc_fail=yes
17208 else
17209 echo "$as_me:$LINENO: checking version of bison" >&5
17210 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
17211 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
17212 case $ac_prog_version in
17213 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
17214 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
17215 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
17216 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
17217 esac
17218 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
17219 echo "${ECHO_T}$ac_prog_version" >&6
17221 if test $ac_verc_fail = yes; then
17222 INTLBISON=:
17227 # Check whether --with-language or --without-language was given.
17228 if test "${with_language+set}" = set; then
17229 withval="$with_language"
17230 if test "$withval" = "all"; then
17231 LINGUAS='%UNSET%'
17232 else
17233 LINGUAS="`echo $withval | sed -e 's/,/ /g'`"
17252 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17253 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
17254 # Check whether --enable-nls or --disable-nls was given.
17255 if test "${enable_nls+set}" = set; then
17256 enableval="$enable_nls"
17257 USE_NLS=$enableval
17258 else
17259 USE_NLS=yes
17261 echo "$as_me:$LINENO: result: $USE_NLS" >&5
17262 echo "${ECHO_T}$USE_NLS" >&6
17266 BUILD_INCLUDED_LIBINTL=no
17267 USE_INCLUDED_LIBINTL=no
17269 LIBINTL=
17270 LTLIBINTL=
17271 POSUB=
17273 if test "$USE_NLS" = "yes"; then
17274 gt_use_preinstalled_gnugettext=no
17276 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
17277 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
17279 # Check whether --with-included-gettext or --without-included-gettext was given.
17280 if test "${with_included_gettext+set}" = set; then
17281 withval="$with_included_gettext"
17282 nls_cv_force_use_gnu_gettext=$withval
17283 else
17284 nls_cv_force_use_gnu_gettext=no
17286 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
17287 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
17289 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
17290 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
17297 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17298 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
17299 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
17300 echo $ECHO_N "(cached) $ECHO_C" >&6
17301 else
17302 cat >conftest.$ac_ext <<_ACEOF
17303 /* confdefs.h. */
17304 _ACEOF
17305 cat confdefs.h >>conftest.$ac_ext
17306 cat >>conftest.$ac_ext <<_ACEOF
17307 /* end confdefs.h. */
17308 #include <libintl.h>
17309 extern int _nl_msg_cat_cntr;
17310 extern int *_nl_domain_bindings;
17312 main ()
17314 bindtextdomain ("", "");
17315 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
17317 return 0;
17319 _ACEOF
17320 rm -f conftest.$ac_objext conftest$ac_exeext
17321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17322 (eval $ac_link) 2>conftest.er1
17323 ac_status=$?
17324 grep -v '^ *+' conftest.er1 >conftest.err
17325 rm -f conftest.er1
17326 cat conftest.err >&5
17327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); } &&
17329 { ac_try='test -z "$ac_c_werror_flag"
17330 || test ! -s conftest.err'
17331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17332 (eval $ac_try) 2>&5
17333 ac_status=$?
17334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335 (exit $ac_status); }; } &&
17336 { ac_try='test -s conftest$ac_exeext'
17337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17338 (eval $ac_try) 2>&5
17339 ac_status=$?
17340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341 (exit $ac_status); }; }; then
17342 gt_cv_func_gnugettext2_libc=yes
17343 else
17344 echo "$as_me: failed program was:" >&5
17345 sed 's/^/| /' conftest.$ac_ext >&5
17347 gt_cv_func_gnugettext2_libc=no
17349 rm -f conftest.err conftest.$ac_objext \
17350 conftest$ac_exeext conftest.$ac_ext
17352 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
17353 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
17355 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
17359 use_additional=yes
17361 acl_save_prefix="$prefix"
17362 prefix="$acl_final_prefix"
17363 acl_save_exec_prefix="$exec_prefix"
17364 exec_prefix="$acl_final_exec_prefix"
17366 eval additional_includedir=\"$includedir\"
17367 eval additional_libdir=\"$libdir\"
17369 exec_prefix="$acl_save_exec_prefix"
17370 prefix="$acl_save_prefix"
17373 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
17374 if test "${with_libintl_prefix+set}" = set; then
17375 withval="$with_libintl_prefix"
17377 if test "X$withval" = "Xno"; then
17378 use_additional=no
17379 else
17380 if test "X$withval" = "X"; then
17382 acl_save_prefix="$prefix"
17383 prefix="$acl_final_prefix"
17384 acl_save_exec_prefix="$exec_prefix"
17385 exec_prefix="$acl_final_exec_prefix"
17387 eval additional_includedir=\"$includedir\"
17388 eval additional_libdir=\"$libdir\"
17390 exec_prefix="$acl_save_exec_prefix"
17391 prefix="$acl_save_prefix"
17393 else
17394 additional_includedir="$withval/include"
17395 additional_libdir="$withval/lib"
17400 LIBINTL=
17401 LTLIBINTL=
17402 INCINTL=
17403 rpathdirs=
17404 ltrpathdirs=
17405 names_already_handled=
17406 names_next_round='intl '
17407 while test -n "$names_next_round"; do
17408 names_this_round="$names_next_round"
17409 names_next_round=
17410 for name in $names_this_round; do
17411 already_handled=
17412 for n in $names_already_handled; do
17413 if test "$n" = "$name"; then
17414 already_handled=yes
17415 break
17417 done
17418 if test -z "$already_handled"; then
17419 names_already_handled="$names_already_handled $name"
17420 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17421 eval value=\"\$HAVE_LIB$uppername\"
17422 if test -n "$value"; then
17423 if test "$value" = yes; then
17424 eval value=\"\$LIB$uppername\"
17425 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17426 eval value=\"\$LTLIB$uppername\"
17427 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17428 else
17431 else
17432 found_dir=
17433 found_la=
17434 found_so=
17435 found_a=
17436 if test $use_additional = yes; then
17437 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17438 found_dir="$additional_libdir"
17439 found_so="$additional_libdir/lib$name.$shlibext"
17440 if test -f "$additional_libdir/lib$name.la"; then
17441 found_la="$additional_libdir/lib$name.la"
17443 else
17444 if test -f "$additional_libdir/lib$name.$libext"; then
17445 found_dir="$additional_libdir"
17446 found_a="$additional_libdir/lib$name.$libext"
17447 if test -f "$additional_libdir/lib$name.la"; then
17448 found_la="$additional_libdir/lib$name.la"
17453 if test "X$found_dir" = "X"; then
17454 for x in $LDFLAGS $LTLIBINTL; do
17456 acl_save_prefix="$prefix"
17457 prefix="$acl_final_prefix"
17458 acl_save_exec_prefix="$exec_prefix"
17459 exec_prefix="$acl_final_exec_prefix"
17460 eval x=\"$x\"
17461 exec_prefix="$acl_save_exec_prefix"
17462 prefix="$acl_save_prefix"
17464 case "$x" in
17465 -L*)
17466 dir=`echo "X$x" | sed -e 's/^X-L//'`
17467 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17468 found_dir="$dir"
17469 found_so="$dir/lib$name.$shlibext"
17470 if test -f "$dir/lib$name.la"; then
17471 found_la="$dir/lib$name.la"
17473 else
17474 if test -f "$dir/lib$name.$libext"; then
17475 found_dir="$dir"
17476 found_a="$dir/lib$name.$libext"
17477 if test -f "$dir/lib$name.la"; then
17478 found_la="$dir/lib$name.la"
17483 esac
17484 if test "X$found_dir" != "X"; then
17485 break
17487 done
17489 if test "X$found_dir" != "X"; then
17490 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17491 if test "X$found_so" != "X"; then
17492 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17493 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17494 else
17495 haveit=
17496 for x in $ltrpathdirs; do
17497 if test "X$x" = "X$found_dir"; then
17498 haveit=yes
17499 break
17501 done
17502 if test -z "$haveit"; then
17503 ltrpathdirs="$ltrpathdirs $found_dir"
17505 if test "$hardcode_direct" = yes; then
17506 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17507 else
17508 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17509 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17510 haveit=
17511 for x in $rpathdirs; do
17512 if test "X$x" = "X$found_dir"; then
17513 haveit=yes
17514 break
17516 done
17517 if test -z "$haveit"; then
17518 rpathdirs="$rpathdirs $found_dir"
17520 else
17521 haveit=
17522 for x in $LDFLAGS $LIBINTL; do
17524 acl_save_prefix="$prefix"
17525 prefix="$acl_final_prefix"
17526 acl_save_exec_prefix="$exec_prefix"
17527 exec_prefix="$acl_final_exec_prefix"
17528 eval x=\"$x\"
17529 exec_prefix="$acl_save_exec_prefix"
17530 prefix="$acl_save_prefix"
17532 if test "X$x" = "X-L$found_dir"; then
17533 haveit=yes
17534 break
17536 done
17537 if test -z "$haveit"; then
17538 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17540 if test "$hardcode_minus_L" != no; then
17541 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17542 else
17543 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17548 else
17549 if test "X$found_a" != "X"; then
17550 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17551 else
17552 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17555 additional_includedir=
17556 case "$found_dir" in
17557 */lib | */lib/)
17558 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17559 additional_includedir="$basedir/include"
17561 esac
17562 if test "X$additional_includedir" != "X"; then
17563 if test "X$additional_includedir" != "X/usr/include"; then
17564 haveit=
17565 if test "X$additional_includedir" = "X/usr/local/include"; then
17566 if test -n "$GCC"; then
17567 case $host_os in
17568 linux*) haveit=yes;;
17569 esac
17572 if test -z "$haveit"; then
17573 for x in $CPPFLAGS $INCINTL; do
17575 acl_save_prefix="$prefix"
17576 prefix="$acl_final_prefix"
17577 acl_save_exec_prefix="$exec_prefix"
17578 exec_prefix="$acl_final_exec_prefix"
17579 eval x=\"$x\"
17580 exec_prefix="$acl_save_exec_prefix"
17581 prefix="$acl_save_prefix"
17583 if test "X$x" = "X-I$additional_includedir"; then
17584 haveit=yes
17585 break
17587 done
17588 if test -z "$haveit"; then
17589 if test -d "$additional_includedir"; then
17590 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17596 if test -n "$found_la"; then
17597 save_libdir="$libdir"
17598 case "$found_la" in
17599 */* | *\\*) . "$found_la" ;;
17600 *) . "./$found_la" ;;
17601 esac
17602 libdir="$save_libdir"
17603 for dep in $dependency_libs; do
17604 case "$dep" in
17605 -L*)
17606 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17607 if test "X$additional_libdir" != "X/usr/lib"; then
17608 haveit=
17609 if test "X$additional_libdir" = "X/usr/local/lib"; then
17610 if test -n "$GCC"; then
17611 case $host_os in
17612 linux*) haveit=yes;;
17613 esac
17616 if test -z "$haveit"; then
17617 haveit=
17618 for x in $LDFLAGS $LIBINTL; do
17620 acl_save_prefix="$prefix"
17621 prefix="$acl_final_prefix"
17622 acl_save_exec_prefix="$exec_prefix"
17623 exec_prefix="$acl_final_exec_prefix"
17624 eval x=\"$x\"
17625 exec_prefix="$acl_save_exec_prefix"
17626 prefix="$acl_save_prefix"
17628 if test "X$x" = "X-L$additional_libdir"; then
17629 haveit=yes
17630 break
17632 done
17633 if test -z "$haveit"; then
17634 if test -d "$additional_libdir"; then
17635 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17638 haveit=
17639 for x in $LDFLAGS $LTLIBINTL; do
17641 acl_save_prefix="$prefix"
17642 prefix="$acl_final_prefix"
17643 acl_save_exec_prefix="$exec_prefix"
17644 exec_prefix="$acl_final_exec_prefix"
17645 eval x=\"$x\"
17646 exec_prefix="$acl_save_exec_prefix"
17647 prefix="$acl_save_prefix"
17649 if test "X$x" = "X-L$additional_libdir"; then
17650 haveit=yes
17651 break
17653 done
17654 if test -z "$haveit"; then
17655 if test -d "$additional_libdir"; then
17656 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17662 -R*)
17663 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17664 if test "$enable_rpath" != no; then
17665 haveit=
17666 for x in $rpathdirs; do
17667 if test "X$x" = "X$dir"; then
17668 haveit=yes
17669 break
17671 done
17672 if test -z "$haveit"; then
17673 rpathdirs="$rpathdirs $dir"
17675 haveit=
17676 for x in $ltrpathdirs; do
17677 if test "X$x" = "X$dir"; then
17678 haveit=yes
17679 break
17681 done
17682 if test -z "$haveit"; then
17683 ltrpathdirs="$ltrpathdirs $dir"
17687 -l*)
17688 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17690 *.la)
17691 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17694 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17695 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17697 esac
17698 done
17700 else
17701 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17702 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17706 done
17707 done
17708 if test "X$rpathdirs" != "X"; then
17709 if test -n "$hardcode_libdir_separator"; then
17710 alldirs=
17711 for found_dir in $rpathdirs; do
17712 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17713 done
17714 acl_save_libdir="$libdir"
17715 libdir="$alldirs"
17716 eval flag=\"$hardcode_libdir_flag_spec\"
17717 libdir="$acl_save_libdir"
17718 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17719 else
17720 for found_dir in $rpathdirs; do
17721 acl_save_libdir="$libdir"
17722 libdir="$found_dir"
17723 eval flag=\"$hardcode_libdir_flag_spec\"
17724 libdir="$acl_save_libdir"
17725 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17726 done
17729 if test "X$ltrpathdirs" != "X"; then
17730 for found_dir in $ltrpathdirs; do
17731 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17732 done
17735 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
17736 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
17737 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
17738 echo $ECHO_N "(cached) $ECHO_C" >&6
17739 else
17740 gt_save_CPPFLAGS="$CPPFLAGS"
17741 CPPFLAGS="$CPPFLAGS $INCINTL"
17742 gt_save_LIBS="$LIBS"
17743 LIBS="$LIBS $LIBINTL"
17744 cat >conftest.$ac_ext <<_ACEOF
17745 /* confdefs.h. */
17746 _ACEOF
17747 cat confdefs.h >>conftest.$ac_ext
17748 cat >>conftest.$ac_ext <<_ACEOF
17749 /* end confdefs.h. */
17750 #include <libintl.h>
17751 extern int _nl_msg_cat_cntr;
17752 extern
17753 #ifdef __cplusplus
17755 #endif
17756 const char *_nl_expand_alias ();
17758 main ()
17760 bindtextdomain ("", "");
17761 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17763 return 0;
17765 _ACEOF
17766 rm -f conftest.$ac_objext conftest$ac_exeext
17767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17768 (eval $ac_link) 2>conftest.er1
17769 ac_status=$?
17770 grep -v '^ *+' conftest.er1 >conftest.err
17771 rm -f conftest.er1
17772 cat conftest.err >&5
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); } &&
17775 { ac_try='test -z "$ac_c_werror_flag"
17776 || test ! -s conftest.err'
17777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17778 (eval $ac_try) 2>&5
17779 ac_status=$?
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); }; } &&
17782 { ac_try='test -s conftest$ac_exeext'
17783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17784 (eval $ac_try) 2>&5
17785 ac_status=$?
17786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787 (exit $ac_status); }; }; then
17788 gt_cv_func_gnugettext2_libintl=yes
17789 else
17790 echo "$as_me: failed program was:" >&5
17791 sed 's/^/| /' conftest.$ac_ext >&5
17793 gt_cv_func_gnugettext2_libintl=no
17795 rm -f conftest.err conftest.$ac_objext \
17796 conftest$ac_exeext conftest.$ac_ext
17797 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
17798 LIBS="$LIBS $LIBICONV"
17799 cat >conftest.$ac_ext <<_ACEOF
17800 /* confdefs.h. */
17801 _ACEOF
17802 cat confdefs.h >>conftest.$ac_ext
17803 cat >>conftest.$ac_ext <<_ACEOF
17804 /* end confdefs.h. */
17805 #include <libintl.h>
17806 extern int _nl_msg_cat_cntr;
17807 extern
17808 #ifdef __cplusplus
17810 #endif
17811 const char *_nl_expand_alias ();
17813 main ()
17815 bindtextdomain ("", "");
17816 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17818 return 0;
17820 _ACEOF
17821 rm -f conftest.$ac_objext conftest$ac_exeext
17822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17823 (eval $ac_link) 2>conftest.er1
17824 ac_status=$?
17825 grep -v '^ *+' conftest.er1 >conftest.err
17826 rm -f conftest.er1
17827 cat conftest.err >&5
17828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829 (exit $ac_status); } &&
17830 { ac_try='test -z "$ac_c_werror_flag"
17831 || test ! -s conftest.err'
17832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17833 (eval $ac_try) 2>&5
17834 ac_status=$?
17835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836 (exit $ac_status); }; } &&
17837 { ac_try='test -s conftest$ac_exeext'
17838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17839 (eval $ac_try) 2>&5
17840 ac_status=$?
17841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842 (exit $ac_status); }; }; then
17843 LIBINTL="$LIBINTL $LIBICONV"
17844 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17845 gt_cv_func_gnugettext2_libintl=yes
17847 else
17848 echo "$as_me: failed program was:" >&5
17849 sed 's/^/| /' conftest.$ac_ext >&5
17852 rm -f conftest.err conftest.$ac_objext \
17853 conftest$ac_exeext conftest.$ac_ext
17855 CPPFLAGS="$gt_save_CPPFLAGS"
17856 LIBS="$gt_save_LIBS"
17858 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
17859 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
17862 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
17863 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
17864 && test "$PACKAGE" != gettext; }; then
17865 gt_use_preinstalled_gnugettext=yes
17866 else
17867 LIBINTL=
17868 LTLIBINTL=
17869 INCINTL=
17873 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
17874 nls_cv_use_gnu_gettext=yes
17878 if test "$nls_cv_use_gnu_gettext" = "yes"; then
17879 INTLOBJS="\$(GETTOBJS)"
17880 BUILD_INCLUDED_LIBINTL=yes
17881 USE_INCLUDED_LIBINTL=yes
17882 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
17883 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
17884 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
17887 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17888 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17889 CATOBJEXT=.gmo
17893 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17894 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17896 cat >>confdefs.h <<\_ACEOF
17897 #define ENABLE_NLS 1
17898 _ACEOF
17900 else
17901 USE_NLS=no
17905 if test "$USE_NLS" = "yes"; then
17907 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17908 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
17909 echo "$as_me:$LINENO: checking how to link with libintl" >&5
17910 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
17911 echo "$as_me:$LINENO: result: $LIBINTL" >&5
17912 echo "${ECHO_T}$LIBINTL" >&6
17914 for element in $INCINTL; do
17915 haveit=
17916 for x in $CPPFLAGS; do
17918 acl_save_prefix="$prefix"
17919 prefix="$acl_final_prefix"
17920 acl_save_exec_prefix="$exec_prefix"
17921 exec_prefix="$acl_final_exec_prefix"
17922 eval x=\"$x\"
17923 exec_prefix="$acl_save_exec_prefix"
17924 prefix="$acl_save_prefix"
17926 if test "X$x" = "X$element"; then
17927 haveit=yes
17928 break
17930 done
17931 if test -z "$haveit"; then
17932 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17934 done
17939 cat >>confdefs.h <<\_ACEOF
17940 #define HAVE_GETTEXT 1
17941 _ACEOF
17944 cat >>confdefs.h <<\_ACEOF
17945 #define HAVE_DCGETTEXT 1
17946 _ACEOF
17950 POSUB=po
17954 if test "$PACKAGE" = gettext; then
17955 BUILD_INCLUDED_LIBINTL=yes
17963 nls_cv_header_intl=
17964 nls_cv_header_libgt=
17966 DATADIRNAME=share
17969 INSTOBJEXT=.mo
17972 GENCAT=gencat
17975 INTL_LIBTOOL_SUFFIX_PREFIX=
17979 INTLLIBS="$LIBINTL"
17986 if test $USE_INCLUDED_LIBINTL = yes; then
17987 INCINTL=-I\${top_builddir}/intl
17991 if test x$USE_NLS = xyes; then
17993 echo "$as_me:$LINENO: checking for autopoint" >&5
17994 echo $ECHO_N "checking for autopoint... $ECHO_C" >&6
17995 autopoint_version=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
17996 if test -n "$autopoint_version"; then
17998 echo "$as_me:$LINENO: result: yes ($autopoint_version)" >&5
17999 echo "${ECHO_T}yes ($autopoint_version)" >&6
18002 else
18004 echo "$as_me:$LINENO: result: no" >&5
18005 echo "${ECHO_T}no" >&6
18006 USE_NLS=no
18013 if test x$USE_NLS = xno -a x${enable_nls:-yes} = xyes; then
18014 { echo "$as_me:$LINENO: WARNING:
18015 You need to install GNU gettext/gettext-tools to compile aMule with
18016 i18n support." >&5
18017 echo "$as_me: WARNING:
18018 You need to install GNU gettext/gettext-tools to compile aMule with
18019 i18n support." >&2;}
18020 _mule_warning_10=yes
18021 _mule_has_warnings=yes
18026 if test ${USE_NLS:-no} = yes; then
18028 echo "$as_me:$LINENO: checking for requested languages" >&5
18029 echo $ECHO_N "checking for requested languages... $ECHO_C" >&6
18030 Generate_Langs=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
18032 if test "$AMULE_DAEMON" = "yes"; then
18034 if test -z "$LINGUAS"; then
18035 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
18036 else
18038 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18039 AMULE_DAEMON_MANPAGES="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
18043 AMULE_DAEMON_MANPAGES=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
18045 else
18046 AMULE_DAEMON_MANPAGES=
18052 if test "$AMULECMD" = "yes"; then
18054 if test -z "$LINGUAS"; then
18055 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
18056 else
18058 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18059 AMULECMD_MANPAGES="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
18063 AMULECMD_MANPAGES=`echo $AMULECMD_MANPAGES | tr -d '\n'`
18065 else
18066 AMULECMD_MANPAGES=
18072 if test "$WEB" = "yes"; then
18074 if test -z "$LINGUAS"; then
18075 WEB_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
18076 else
18078 WEB_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18079 WEB_MANPAGES="`basename docs/man/amuleweb.1` $WEB_MANPAGES"
18083 WEB_MANPAGES=`echo $WEB_MANPAGES | tr -d '\n'`
18085 else
18086 WEB_MANPAGES=
18092 if test "$AMULE_GUI" = "yes"; then
18094 if test -z "$LINGUAS"; then
18095 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
18096 else
18098 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18099 AMULE_GUI_MANPAGES="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
18103 AMULE_GUI_MANPAGES=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
18105 else
18106 AMULE_GUI_MANPAGES=
18112 if test "$CAS" = "yes"; then
18114 if test -z "$LINGUAS"; then
18115 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
18116 else
18118 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18119 CAS_MANPAGES="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
18123 CAS_MANPAGES=`echo $CAS_MANPAGES | tr -d '\n'`
18125 else
18126 CAS_MANPAGES=
18132 if test "$WXCAS" = "yes"; then
18134 if test -z "$LINGUAS"; then
18135 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
18136 else
18138 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18139 WXCAS_MANPAGES="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
18143 WXCAS_MANPAGES=`echo $WXCAS_MANPAGES | tr -d '\n'`
18145 else
18146 WXCAS_MANPAGES=
18152 if test "$ED2K" = "yes"; then
18154 if test -z "$LINGUAS"; then
18155 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
18156 else
18158 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18159 ED2K_MANPAGES="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
18163 ED2K_MANPAGES=`echo $ED2K_MANPAGES | tr -d '\n'`
18165 else
18166 ED2K_MANPAGES=
18172 if test "$ALC" = "yes"; then
18174 if test -z "$LINGUAS"; then
18175 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
18176 else
18178 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18179 ALC_MANPAGES="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
18183 ALC_MANPAGES=`echo $ALC_MANPAGES | tr -d '\n'`
18185 else
18186 ALC_MANPAGES=
18192 if test "$ALCC" = "yes"; then
18194 if test -z "$LINGUAS"; then
18195 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
18196 else
18198 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18199 ALCC_MANPAGES="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
18203 ALCC_MANPAGES=`echo $ALCC_MANPAGES | tr -d '\n'`
18205 else
18206 ALCC_MANPAGES=
18212 if test "$MONOLITHIC" = "yes"; then
18214 if test -z "$LINGUAS"; then
18215 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
18216 else
18218 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18219 MONOLITHIC_MANPAGES="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
18223 MONOLITHIC_MANPAGES=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
18225 else
18226 MONOLITHIC_MANPAGES=
18231 echo "$as_me:$LINENO: result: ${LINGUAS:-all}" >&5
18232 echo "${ECHO_T}${LINGUAS:-all}" >&6
18239 # Flush standard test results for speeding cache
18240 cat >confcache <<\_ACEOF
18241 # This file is a shell script that caches the results of configure
18242 # tests run on this system so they can be shared between configure
18243 # scripts and configure runs, see configure's option --config-cache.
18244 # It is not useful on other systems. If it contains results you don't
18245 # want to keep, you may remove or edit it.
18247 # config.status only pays attention to the cache file if you give it
18248 # the --recheck option to rerun configure.
18250 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18251 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18252 # following values.
18254 _ACEOF
18256 # The following way of writing the cache mishandles newlines in values,
18257 # but we know of no workaround that is simple, portable, and efficient.
18258 # So, don't put newlines in cache variables' values.
18259 # Ultrix sh set writes to stderr and can't be redirected directly,
18260 # and sets the high bit in the cache file unless we assign to the vars.
18262 (set) 2>&1 |
18263 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18264 *ac_space=\ *)
18265 # `set' does not quote correctly, so add quotes (double-quote
18266 # substitution turns \\\\ into \\, and sed turns \\ into \).
18267 sed -n \
18268 "s/'/'\\\\''/g;
18269 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18272 # `set' quotes correctly as required by POSIX, so do not add quotes.
18273 sed -n \
18274 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18276 esac;
18278 sed '
18279 t clear
18280 : clear
18281 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18282 t end
18283 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18284 : end' >>confcache
18285 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18286 if test -w $cache_file; then
18287 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18288 cat confcache >$cache_file
18289 else
18290 echo "not updating unwritable cache $cache_file"
18293 rm -f confcache
18295 # Other tests
18296 # aMule options
18299 # Check whether --enable-debug or --disable-debug was given.
18300 if test "${enable_debug+set}" = set; then
18301 enableval="$enable_debug"
18302 USE_DEBUG=${enableval:-yes}
18303 else
18304 USE_DEBUG=yes
18307 if test $USE_DEBUG = yes; then
18309 MULECPPFLAGS="$MULECPPFLAGS -D__DEBUG__"
18311 MULECFLAGS="$MULECFLAGS -g"
18312 MULECXXFLAGS="$MULECXXFLAGS -g"
18314 if test ${GLIBCXX:-no} = yes; then
18315 MULECPPFLAGS="$MULECPPFLAGS -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC"
18318 if test ${GCC:-no} = yes; then
18320 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18321 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18325 if test ${SYS:-unknown} = win32; then
18326 MULERCFLAGS="$MULERCFLAGS -D__DEBUG__"
18330 else
18332 if test ${GCC:-no} = yes; then
18334 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef"
18335 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef"
18344 # Check whether --enable-optimize or --disable-optimize was given.
18345 if test "${enable_optimize+set}" = set; then
18346 enableval="$enable_optimize"
18347 USE_OPTIMIZE=${enableval:-no}
18348 else
18349 USE_OPTIMIZE=no
18352 if test $USE_OPTIMIZE = yes; then
18354 MULECFLAGS="$MULECFLAGS -O2"
18355 MULECXXFLAGS="$MULECXXFLAGS -O2"
18361 # Check whether --enable-profile or --disable-profile was given.
18362 if test "${enable_profile+set}" = set; then
18363 enableval="$enable_profile"
18364 USE_PROFILE=${enableval:-no}
18365 else
18366 USE_PROFILE=no
18369 if test $USE_PROFILE = yes; then
18372 MULECFLAGS="$MULECFLAGS -pg"
18373 MULECXXFLAGS="$MULECXXFLAGS -pg"
18375 MULELDFLAGS="$MULELDFLAGS -pg"
18381 echo "$as_me:$LINENO: checking if the applications should be statically linked" >&5
18382 echo $ECHO_N "checking if the applications should be statically linked... $ECHO_C" >&6
18383 # Check whether --enable-static or --disable-static was given.
18384 if test "${enable_static+set}" = set; then
18385 enableval="$enable_static"
18386 if test ${enableval:-no} = yes; then
18387 MULELDFLAGS="$MULELDFLAGS -static"
18391 echo "$as_me:$LINENO: result: ${enableval:-no}" >&5
18392 echo "${ECHO_T}${enableval:-no}" >&6
18394 MULECPPFLAGS="$MULECPPFLAGS -DUSE_WX_EXTENSIONS"
18397 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
18398 echo "$as_me:$LINENO: checking for docdir" >&5
18399 echo $ECHO_N "checking for docdir... $ECHO_C" >&6
18400 if test -z "$docdir"; then
18401 docdir="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}"
18404 echo "$as_me:$LINENO: result: $docdir" >&5
18405 echo "${ECHO_T}$docdir" >&6
18407 # Try to set the SVN checkout-date
18408 echo "$as_me:$LINENO: checking for SVNDATE" >&5
18409 echo $ECHO_N "checking for SVNDATE... $ECHO_C" >&6
18410 if test -f "$srcdir/.svn-revision" # SVNDATE for tarballs
18411 then
18412 svndate="rev. `cat $srcdir/.svn-revision`"
18413 elif test -d $srcdir/.svn # SVNDATE for svn
18414 then
18415 svndate="rev. `svnversion $srcdir | sed -e 's/[0-9][0-9]*:\(.*\)/\1/' -e 's/\([0-9][0-9]*\).*/\1/'`"
18417 echo "$as_me:$LINENO: result: ${svndate:-None required}" >&5
18418 echo "${ECHO_T}${svndate:-None required}" >&6
18419 if test -n "$svndate"; then
18422 cat >>confdefs.h <<_ACEOF
18423 #define SVNDATE "$svndate"
18424 _ACEOF
18426 MULERCFLAGS="$MULERCFLAGS -D__PRERELEASE__"
18430 SVNDATE=$svndate
18434 # Check whether --with-denoise-level or --without-denoise-level was given.
18435 if test "${with_denoise_level+set}" = set; then
18436 withval="$with_denoise_level"
18440 echo "$as_me:$LINENO: checking denoising level" >&5
18441 echo $ECHO_N "checking denoising level... $ECHO_C" >&6
18442 if test ${with_denoise_level:-5} = yes; then
18443 with_denoise_level=5
18446 if test ${with_denoise_level:-5} = no; then
18447 with_denoise_level=0
18450 if test ${with_denoise_level:-5} -gt 4; then
18451 if test "${svndate:+set}" = "set"; then
18452 with_denoise_level=0
18453 else
18454 with_denoise_level=4
18459 echo "$as_me:$LINENO: result: $with_denoise_level" >&5
18460 echo "${ECHO_T}$with_denoise_level" >&6
18462 ac_config_commands="$ac_config_commands denoiser"
18468 if test x$WEB = xyes; then
18469 WEB_TRUE=
18470 WEB_FALSE='#'
18471 else
18472 WEB_TRUE='#'
18473 WEB_FALSE=
18478 if test x$ED2K = xyes; then
18479 ED2K_TRUE=
18480 ED2K_FALSE='#'
18481 else
18482 ED2K_TRUE='#'
18483 ED2K_FALSE=
18488 if test x$CAS = xyes; then
18489 CAS_TRUE=
18490 CAS_FALSE='#'
18491 else
18492 CAS_TRUE='#'
18493 CAS_FALSE=
18498 if test x$WXCAS = xyes; then
18499 WXCAS_TRUE=
18500 WXCAS_FALSE='#'
18501 else
18502 WXCAS_TRUE='#'
18503 WXCAS_FALSE=
18508 if test x$ALC = xyes; then
18509 ALC_TRUE=
18510 ALC_FALSE='#'
18511 else
18512 ALC_TRUE='#'
18513 ALC_FALSE=
18518 if test x$ALCC = xyes; then
18519 ALCC_TRUE=
18520 ALCC_FALSE='#'
18521 else
18522 ALCC_TRUE='#'
18523 ALCC_FALSE=
18528 if test x$AMULE_GUI = xyes; then
18529 AMULE_GUI_TRUE=
18530 AMULE_GUI_FALSE='#'
18531 else
18532 AMULE_GUI_TRUE='#'
18533 AMULE_GUI_FALSE=
18538 if test x$AMULE_DAEMON = xyes; then
18539 AMULE_DAEMON_TRUE=
18540 AMULE_DAEMON_FALSE='#'
18541 else
18542 AMULE_DAEMON_TRUE='#'
18543 AMULE_DAEMON_FALSE=
18548 if test x$AMULECMD = xyes; then
18549 COMPILE_CMD_TRUE=
18550 COMPILE_CMD_FALSE='#'
18551 else
18552 COMPILE_CMD_TRUE='#'
18553 COMPILE_CMD_FALSE=
18558 if test x$MONOLITHIC = xyes; then
18559 MONOLITHIC_TRUE=
18560 MONOLITHIC_FALSE='#'
18561 else
18562 MONOLITHIC_TRUE='#'
18563 MONOLITHIC_FALSE=
18568 if test x$XAS = xyes; then
18569 XAS_TRUE=
18570 XAS_FALSE='#'
18571 else
18572 XAS_TRUE='#'
18573 XAS_FALSE=
18578 if test x$ENABLE_UPNP = xyes; then
18579 ENABLE_UPNP_TRUE=
18580 ENABLE_UPNP_FALSE='#'
18581 else
18582 ENABLE_UPNP_TRUE='#'
18583 ENABLE_UPNP_FALSE=
18588 if test x$ENABLE_IP2COUNTRY = xyes; then
18589 ENABLE_IP2COUNTRY_TRUE=
18590 ENABLE_IP2COUNTRY_FALSE='#'
18591 else
18592 ENABLE_IP2COUNTRY_TRUE='#'
18593 ENABLE_IP2COUNTRY_FALSE=
18598 if test x$SYS = xwin32; then
18599 SYS_WIN32_TRUE=
18600 SYS_WIN32_FALSE='#'
18601 else
18602 SYS_WIN32_TRUE='#'
18603 SYS_WIN32_FALSE=
18608 if test x$SYS = xwin32 -a "$RC" != ":"; then
18609 NEED_RC_TRUE=
18610 NEED_RC_FALSE='#'
18611 else
18612 NEED_RC_TRUE='#'
18613 NEED_RC_FALSE=
18618 if test x$SYS = xdarwin; then
18619 NEED_CORESERVICES_TRUE=
18620 NEED_CORESERVICES_FALSE='#'
18621 else
18622 NEED_CORESERVICES_TRUE='#'
18623 NEED_CORESERVICES_FALSE=
18628 if test x$USE_NLS = xyes; then
18629 COMPILE_NLS_TRUE=
18630 COMPILE_NLS_FALSE='#'
18631 else
18632 COMPILE_NLS_TRUE='#'
18633 COMPILE_NLS_FALSE=
18638 if test x$HAVE_FLEX_EXTENDED = xyes; then
18639 GENERATE_FLEX_HEADER_TRUE=
18640 GENERATE_FLEX_HEADER_FALSE='#'
18641 else
18642 GENERATE_FLEX_HEADER_TRUE='#'
18643 GENERATE_FLEX_HEADER_FALSE=
18648 if test x$INSTALL_SKINS = xyes; then
18649 INSTALL_SKINS_TRUE=
18650 INSTALL_SKINS_FALSE='#'
18651 else
18652 INSTALL_SKINS_TRUE='#'
18653 INSTALL_SKINS_FALSE=
18657 # Check for readline library
18658 if test x$AMULECMD = xyes -o x$WEB = xyes; then
18660 echo "$as_me:$LINENO: checking for a readline compatible library" >&5
18661 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6
18662 if test "${vl_cv_lib_readline+set}" = set; then
18663 echo $ECHO_N "(cached) $ECHO_C" >&6
18664 else
18666 ORIG_LIBS="$LIBS"
18667 for readline_lib in readline edit editline; do
18668 for termcap_lib in "" termcap curses ncurses; do
18669 if test -z "$termcap_lib"; then
18670 TRY_LIB="-l$readline_lib"
18671 else
18672 TRY_LIB="-l$readline_lib -l$termcap_lib"
18674 LIBS="$ORIG_LIBS $TRY_LIB"
18675 cat >conftest.$ac_ext <<_ACEOF
18676 /* confdefs.h. */
18677 _ACEOF
18678 cat confdefs.h >>conftest.$ac_ext
18679 cat >>conftest.$ac_ext <<_ACEOF
18680 /* end confdefs.h. */
18682 /* Override any gcc2 internal prototype to avoid an error. */
18683 #ifdef __cplusplus
18684 extern "C"
18685 #endif
18686 /* We use char because int might match the return type of a gcc2
18687 builtin and then its argument prototype would still apply. */
18688 char readline ();
18690 main ()
18692 readline ();
18694 return 0;
18696 _ACEOF
18697 rm -f conftest.$ac_objext conftest$ac_exeext
18698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18699 (eval $ac_link) 2>conftest.er1
18700 ac_status=$?
18701 grep -v '^ *+' conftest.er1 >conftest.err
18702 rm -f conftest.er1
18703 cat conftest.err >&5
18704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705 (exit $ac_status); } &&
18706 { ac_try='test -z "$ac_c_werror_flag"
18707 || test ! -s conftest.err'
18708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18709 (eval $ac_try) 2>&5
18710 ac_status=$?
18711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18712 (exit $ac_status); }; } &&
18713 { ac_try='test -s conftest$ac_exeext'
18714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18715 (eval $ac_try) 2>&5
18716 ac_status=$?
18717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718 (exit $ac_status); }; }; then
18719 vl_cv_lib_readline="$TRY_LIB"
18720 else
18721 echo "$as_me: failed program was:" >&5
18722 sed 's/^/| /' conftest.$ac_ext >&5
18725 rm -f conftest.err conftest.$ac_objext \
18726 conftest$ac_exeext conftest.$ac_ext
18727 if test -n "$vl_cv_lib_readline"; then
18728 break
18730 done
18731 if test -n "$vl_cv_lib_readline"; then
18732 break
18734 done
18735 if test -z "$vl_cv_lib_readline"; then
18736 vl_cv_lib_readline="no"
18737 LIBS="$ORIG_LIBS"
18738 READLINE_LIBS=""
18739 else
18740 READLINE_LIBS="$vl_cv_lib_readline"
18744 echo "$as_me:$LINENO: result: $vl_cv_lib_readline" >&5
18745 echo "${ECHO_T}$vl_cv_lib_readline" >&6
18747 if test "$vl_cv_lib_readline" != "no"; then
18749 cat >>confdefs.h <<\_ACEOF
18750 #define HAVE_LIBREADLINE 1
18751 _ACEOF
18755 for ac_header in readline.h readline/readline.h
18757 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18759 echo "$as_me:$LINENO: checking for $ac_header" >&5
18760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18762 echo $ECHO_N "(cached) $ECHO_C" >&6
18764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18766 else
18767 # Is the header compilable?
18768 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18769 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18770 cat >conftest.$ac_ext <<_ACEOF
18771 /* confdefs.h. */
18772 _ACEOF
18773 cat confdefs.h >>conftest.$ac_ext
18774 cat >>conftest.$ac_ext <<_ACEOF
18775 /* end confdefs.h. */
18776 $ac_includes_default
18777 #include <$ac_header>
18778 _ACEOF
18779 rm -f conftest.$ac_objext
18780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18781 (eval $ac_compile) 2>conftest.er1
18782 ac_status=$?
18783 grep -v '^ *+' conftest.er1 >conftest.err
18784 rm -f conftest.er1
18785 cat conftest.err >&5
18786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787 (exit $ac_status); } &&
18788 { ac_try='test -z "$ac_c_werror_flag"
18789 || test ! -s conftest.err'
18790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18791 (eval $ac_try) 2>&5
18792 ac_status=$?
18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); }; } &&
18795 { ac_try='test -s conftest.$ac_objext'
18796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18797 (eval $ac_try) 2>&5
18798 ac_status=$?
18799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800 (exit $ac_status); }; }; then
18801 ac_header_compiler=yes
18802 else
18803 echo "$as_me: failed program was:" >&5
18804 sed 's/^/| /' conftest.$ac_ext >&5
18806 ac_header_compiler=no
18808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18809 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18810 echo "${ECHO_T}$ac_header_compiler" >&6
18812 # Is the header present?
18813 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18814 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18815 cat >conftest.$ac_ext <<_ACEOF
18816 /* confdefs.h. */
18817 _ACEOF
18818 cat confdefs.h >>conftest.$ac_ext
18819 cat >>conftest.$ac_ext <<_ACEOF
18820 /* end confdefs.h. */
18821 #include <$ac_header>
18822 _ACEOF
18823 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18824 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18825 ac_status=$?
18826 grep -v '^ *+' conftest.er1 >conftest.err
18827 rm -f conftest.er1
18828 cat conftest.err >&5
18829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830 (exit $ac_status); } >/dev/null; then
18831 if test -s conftest.err; then
18832 ac_cpp_err=$ac_c_preproc_warn_flag
18833 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18834 else
18835 ac_cpp_err=
18837 else
18838 ac_cpp_err=yes
18840 if test -z "$ac_cpp_err"; then
18841 ac_header_preproc=yes
18842 else
18843 echo "$as_me: failed program was:" >&5
18844 sed 's/^/| /' conftest.$ac_ext >&5
18846 ac_header_preproc=no
18848 rm -f conftest.err conftest.$ac_ext
18849 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18850 echo "${ECHO_T}$ac_header_preproc" >&6
18852 # So? What about this header?
18853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18854 yes:no: )
18855 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18856 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18858 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18859 ac_header_preproc=yes
18861 no:yes:* )
18862 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18863 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18864 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18865 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18866 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18867 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18868 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18869 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18871 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18872 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18873 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18875 cat <<\_ASBOX
18876 ## ------------------------------ ##
18877 ## Report this to admin@amule.org ##
18878 ## ------------------------------ ##
18879 _ASBOX
18881 sed "s/^/$as_me: WARNING: /" >&2
18883 esac
18884 echo "$as_me:$LINENO: checking for $ac_header" >&5
18885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18887 echo $ECHO_N "(cached) $ECHO_C" >&6
18888 else
18889 eval "$as_ac_Header=\$ac_header_preproc"
18891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18892 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18895 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18896 cat >>confdefs.h <<_ACEOF
18897 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18898 _ACEOF
18902 done
18904 echo "$as_me:$LINENO: checking whether readline supports history" >&5
18905 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6
18906 if test "${vl_cv_lib_readline_history+set}" = set; then
18907 echo $ECHO_N "(cached) $ECHO_C" >&6
18908 else
18910 vl_cv_lib_readline_history="no"
18911 cat >conftest.$ac_ext <<_ACEOF
18912 /* confdefs.h. */
18913 _ACEOF
18914 cat confdefs.h >>conftest.$ac_ext
18915 cat >>conftest.$ac_ext <<_ACEOF
18916 /* end confdefs.h. */
18918 /* Override any gcc2 internal prototype to avoid an error. */
18919 #ifdef __cplusplus
18920 extern "C"
18921 #endif
18922 /* We use char because int might match the return type of a gcc2
18923 builtin and then its argument prototype would still apply. */
18924 char add_history ();
18926 main ()
18928 add_history ();
18930 return 0;
18932 _ACEOF
18933 rm -f conftest.$ac_objext conftest$ac_exeext
18934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18935 (eval $ac_link) 2>conftest.er1
18936 ac_status=$?
18937 grep -v '^ *+' conftest.er1 >conftest.err
18938 rm -f conftest.er1
18939 cat conftest.err >&5
18940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941 (exit $ac_status); } &&
18942 { ac_try='test -z "$ac_c_werror_flag"
18943 || test ! -s conftest.err'
18944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18945 (eval $ac_try) 2>&5
18946 ac_status=$?
18947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); }; } &&
18949 { ac_try='test -s conftest$ac_exeext'
18950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18951 (eval $ac_try) 2>&5
18952 ac_status=$?
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); }; }; then
18955 vl_cv_lib_readline_history="yes"
18956 else
18957 echo "$as_me: failed program was:" >&5
18958 sed 's/^/| /' conftest.$ac_ext >&5
18961 rm -f conftest.err conftest.$ac_objext \
18962 conftest$ac_exeext conftest.$ac_ext
18965 echo "$as_me:$LINENO: result: $vl_cv_lib_readline_history" >&5
18966 echo "${ECHO_T}$vl_cv_lib_readline_history" >&6
18967 if test "$vl_cv_lib_readline_history" = "yes"; then
18969 cat >>confdefs.h <<\_ACEOF
18970 #define HAVE_READLINE_HISTORY 1
18971 _ACEOF
18975 for ac_header in history.h readline/history.h
18977 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18979 echo "$as_me:$LINENO: checking for $ac_header" >&5
18980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18982 echo $ECHO_N "(cached) $ECHO_C" >&6
18984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18985 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18986 else
18987 # Is the header compilable?
18988 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18989 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18990 cat >conftest.$ac_ext <<_ACEOF
18991 /* confdefs.h. */
18992 _ACEOF
18993 cat confdefs.h >>conftest.$ac_ext
18994 cat >>conftest.$ac_ext <<_ACEOF
18995 /* end confdefs.h. */
18996 $ac_includes_default
18997 #include <$ac_header>
18998 _ACEOF
18999 rm -f conftest.$ac_objext
19000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19001 (eval $ac_compile) 2>conftest.er1
19002 ac_status=$?
19003 grep -v '^ *+' conftest.er1 >conftest.err
19004 rm -f conftest.er1
19005 cat conftest.err >&5
19006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007 (exit $ac_status); } &&
19008 { ac_try='test -z "$ac_c_werror_flag"
19009 || test ! -s conftest.err'
19010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19011 (eval $ac_try) 2>&5
19012 ac_status=$?
19013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19014 (exit $ac_status); }; } &&
19015 { ac_try='test -s conftest.$ac_objext'
19016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19017 (eval $ac_try) 2>&5
19018 ac_status=$?
19019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19020 (exit $ac_status); }; }; then
19021 ac_header_compiler=yes
19022 else
19023 echo "$as_me: failed program was:" >&5
19024 sed 's/^/| /' conftest.$ac_ext >&5
19026 ac_header_compiler=no
19028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19029 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19030 echo "${ECHO_T}$ac_header_compiler" >&6
19032 # Is the header present?
19033 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19034 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19035 cat >conftest.$ac_ext <<_ACEOF
19036 /* confdefs.h. */
19037 _ACEOF
19038 cat confdefs.h >>conftest.$ac_ext
19039 cat >>conftest.$ac_ext <<_ACEOF
19040 /* end confdefs.h. */
19041 #include <$ac_header>
19042 _ACEOF
19043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19044 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19045 ac_status=$?
19046 grep -v '^ *+' conftest.er1 >conftest.err
19047 rm -f conftest.er1
19048 cat conftest.err >&5
19049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050 (exit $ac_status); } >/dev/null; then
19051 if test -s conftest.err; then
19052 ac_cpp_err=$ac_c_preproc_warn_flag
19053 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19054 else
19055 ac_cpp_err=
19057 else
19058 ac_cpp_err=yes
19060 if test -z "$ac_cpp_err"; then
19061 ac_header_preproc=yes
19062 else
19063 echo "$as_me: failed program was:" >&5
19064 sed 's/^/| /' conftest.$ac_ext >&5
19066 ac_header_preproc=no
19068 rm -f conftest.err conftest.$ac_ext
19069 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19070 echo "${ECHO_T}$ac_header_preproc" >&6
19072 # So? What about this header?
19073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19074 yes:no: )
19075 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19076 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19078 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19079 ac_header_preproc=yes
19081 no:yes:* )
19082 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19083 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19084 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19085 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19086 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19087 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19088 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19089 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19090 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19091 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19092 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19093 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19095 cat <<\_ASBOX
19096 ## ------------------------------ ##
19097 ## Report this to admin@amule.org ##
19098 ## ------------------------------ ##
19099 _ASBOX
19101 sed "s/^/$as_me: WARNING: /" >&2
19103 esac
19104 echo "$as_me:$LINENO: checking for $ac_header" >&5
19105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19107 echo $ECHO_N "(cached) $ECHO_C" >&6
19108 else
19109 eval "$as_ac_Header=\$ac_header_preproc"
19111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19116 cat >>confdefs.h <<_ACEOF
19117 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19118 _ACEOF
19122 done
19127 LIBS="$ORIG_LIBS"
19131 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
19134 # Check whether --enable-ccache or --disable-ccache was given.
19135 if test "${enable_ccache+set}" = set; then
19136 enableval="$enable_ccache"
19141 # Check whether --with-ccache-prefix or --without-ccache-prefix was given.
19142 if test "${with_ccache_prefix+set}" = set; then
19143 withval="$with_ccache_prefix"
19147 echo "$as_me:$LINENO: checking whether ccache support should be added" >&5
19148 echo $ECHO_N "checking whether ccache support should be added... $ECHO_C" >&6
19149 echo "$as_me:$LINENO: result: ${enable_ccache:-no}" >&5
19150 echo "${ECHO_T}${enable_ccache:-no}" >&6
19152 if test ${enable_ccache:-no} = yes; then
19154 echo "$as_me:$LINENO: checking for ccache presence" >&5
19155 echo $ECHO_N "checking for ccache presence... $ECHO_C" >&6
19156 if test -z "$with_ccache_prefix"; then
19158 ccache_full=`which ccache`
19159 with_ccache_prefix=`dirname ${ccache_full}`
19163 if $with_ccache_prefix/ccache -V >/dev/null 2>&1; then
19165 echo "$as_me:$LINENO: result: yes" >&5
19166 echo "${ECHO_T}yes" >&6
19167 CC="$with_ccache_prefix/ccache $CC"
19168 CXX="$with_ccache_prefix/ccache $CXX"
19169 BUILD_CC="$with_ccache_prefix/ccache $BUILD_CC"
19171 else
19173 enable_ccache=no
19174 echo "$as_me:$LINENO: result: no" >&5
19175 echo "${ECHO_T}no" >&6
19184 ac_config_files="$ac_config_files Makefile docs/Makefile docs/man/Makefile intl/Makefile src/Makefile src/pixmaps/Makefile src/pixmaps/flags_xpm/Makefile src/libs/Makefile src/libs/ec/Makefile src/libs/ec/cpp/Makefile src/libs/common/Makefile src/utils/Makefile src/utils/aLinkCreator/Makefile src/utils/aLinkCreator/docs/Makefile src/utils/aLinkCreator/src/Makefile src/utils/cas/Makefile src/utils/cas/docs/Makefile src/utils/fileview/Makefile src/utils/wxCas/Makefile src/utils/wxCas/docs/Makefile src/utils/wxCas/src/Makefile src/utils/xas/Makefile src/utils/xas/autostart-xas src/utils/xas/docs/Makefile src/skins/Makefile src/webserver/Makefile src/webserver/src/Makefile src/webserver/default/Makefile unittests/Makefile unittests/muleunit/Makefile unittests/tests/Makefile"
19186 ac_config_files="$ac_config_files po/Makefile.in Compilation.flags"
19188 if test x$SYS = xwin32; then
19189 ac_config_files="$ac_config_files version.rc"
19193 cat >confcache <<\_ACEOF
19194 # This file is a shell script that caches the results of configure
19195 # tests run on this system so they can be shared between configure
19196 # scripts and configure runs, see configure's option --config-cache.
19197 # It is not useful on other systems. If it contains results you don't
19198 # want to keep, you may remove or edit it.
19200 # config.status only pays attention to the cache file if you give it
19201 # the --recheck option to rerun configure.
19203 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19204 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19205 # following values.
19207 _ACEOF
19209 # The following way of writing the cache mishandles newlines in values,
19210 # but we know of no workaround that is simple, portable, and efficient.
19211 # So, don't put newlines in cache variables' values.
19212 # Ultrix sh set writes to stderr and can't be redirected directly,
19213 # and sets the high bit in the cache file unless we assign to the vars.
19215 (set) 2>&1 |
19216 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19217 *ac_space=\ *)
19218 # `set' does not quote correctly, so add quotes (double-quote
19219 # substitution turns \\\\ into \\, and sed turns \\ into \).
19220 sed -n \
19221 "s/'/'\\\\''/g;
19222 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19225 # `set' quotes correctly as required by POSIX, so do not add quotes.
19226 sed -n \
19227 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19229 esac;
19231 sed '
19232 t clear
19233 : clear
19234 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19235 t end
19236 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19237 : end' >>confcache
19238 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19239 if test -w $cache_file; then
19240 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19241 cat confcache >$cache_file
19242 else
19243 echo "not updating unwritable cache $cache_file"
19246 rm -f confcache
19248 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19249 # Let make expand exec_prefix.
19250 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19252 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19253 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19254 # trailing colons and then remove the whole line if VPATH becomes empty
19255 # (actually we leave an empty line to preserve line numbers).
19256 if test "x$srcdir" = x.; then
19257 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19258 s/:*\$(srcdir):*/:/;
19259 s/:*\${srcdir}:*/:/;
19260 s/:*@srcdir@:*/:/;
19261 s/^\([^=]*=[ ]*\):*/\1/;
19262 s/:*$//;
19263 s/^[^=]*=[ ]*$//;
19267 DEFS=-DHAVE_CONFIG_H
19269 ac_libobjs=
19270 ac_ltlibobjs=
19271 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19272 # 1. Remove the extension, and $U if already installed.
19273 ac_i=`echo "$ac_i" |
19274 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19275 # 2. Add them.
19276 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19277 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19278 done
19279 LIBOBJS=$ac_libobjs
19281 LTLIBOBJS=$ac_ltlibobjs
19284 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19285 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19286 Usually this means the macro was only invoked conditionally." >&5
19287 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19288 Usually this means the macro was only invoked conditionally." >&2;}
19289 { (exit 1); exit 1; }; }
19291 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19292 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19293 Usually this means the macro was only invoked conditionally." >&5
19294 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19295 Usually this means the macro was only invoked conditionally." >&2;}
19296 { (exit 1); exit 1; }; }
19298 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19299 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19300 Usually this means the macro was only invoked conditionally." >&5
19301 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19302 Usually this means the macro was only invoked conditionally." >&2;}
19303 { (exit 1); exit 1; }; }
19305 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19306 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19307 Usually this means the macro was only invoked conditionally." >&5
19308 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19309 Usually this means the macro was only invoked conditionally." >&2;}
19310 { (exit 1); exit 1; }; }
19312 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
19313 { { echo "$as_me:$LINENO: error: conditional \"WEB\" was never defined.
19314 Usually this means the macro was only invoked conditionally." >&5
19315 echo "$as_me: error: conditional \"WEB\" was never defined.
19316 Usually this means the macro was only invoked conditionally." >&2;}
19317 { (exit 1); exit 1; }; }
19319 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
19320 { { echo "$as_me:$LINENO: error: conditional \"ED2K\" was never defined.
19321 Usually this means the macro was only invoked conditionally." >&5
19322 echo "$as_me: error: conditional \"ED2K\" was never defined.
19323 Usually this means the macro was only invoked conditionally." >&2;}
19324 { (exit 1); exit 1; }; }
19326 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
19327 { { echo "$as_me:$LINENO: error: conditional \"CAS\" was never defined.
19328 Usually this means the macro was only invoked conditionally." >&5
19329 echo "$as_me: error: conditional \"CAS\" was never defined.
19330 Usually this means the macro was only invoked conditionally." >&2;}
19331 { (exit 1); exit 1; }; }
19333 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
19334 { { echo "$as_me:$LINENO: error: conditional \"WXCAS\" was never defined.
19335 Usually this means the macro was only invoked conditionally." >&5
19336 echo "$as_me: error: conditional \"WXCAS\" was never defined.
19337 Usually this means the macro was only invoked conditionally." >&2;}
19338 { (exit 1); exit 1; }; }
19340 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
19341 { { echo "$as_me:$LINENO: error: conditional \"ALC\" was never defined.
19342 Usually this means the macro was only invoked conditionally." >&5
19343 echo "$as_me: error: conditional \"ALC\" was never defined.
19344 Usually this means the macro was only invoked conditionally." >&2;}
19345 { (exit 1); exit 1; }; }
19347 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
19348 { { echo "$as_me:$LINENO: error: conditional \"ALCC\" was never defined.
19349 Usually this means the macro was only invoked conditionally." >&5
19350 echo "$as_me: error: conditional \"ALCC\" was never defined.
19351 Usually this means the macro was only invoked conditionally." >&2;}
19352 { (exit 1); exit 1; }; }
19354 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
19355 { { echo "$as_me:$LINENO: error: conditional \"AMULE_GUI\" was never defined.
19356 Usually this means the macro was only invoked conditionally." >&5
19357 echo "$as_me: error: conditional \"AMULE_GUI\" was never defined.
19358 Usually this means the macro was only invoked conditionally." >&2;}
19359 { (exit 1); exit 1; }; }
19361 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
19362 { { echo "$as_me:$LINENO: error: conditional \"AMULE_DAEMON\" was never defined.
19363 Usually this means the macro was only invoked conditionally." >&5
19364 echo "$as_me: error: conditional \"AMULE_DAEMON\" was never defined.
19365 Usually this means the macro was only invoked conditionally." >&2;}
19366 { (exit 1); exit 1; }; }
19368 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
19369 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_CMD\" was never defined.
19370 Usually this means the macro was only invoked conditionally." >&5
19371 echo "$as_me: error: conditional \"COMPILE_CMD\" was never defined.
19372 Usually this means the macro was only invoked conditionally." >&2;}
19373 { (exit 1); exit 1; }; }
19375 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
19376 { { echo "$as_me:$LINENO: error: conditional \"MONOLITHIC\" was never defined.
19377 Usually this means the macro was only invoked conditionally." >&5
19378 echo "$as_me: error: conditional \"MONOLITHIC\" was never defined.
19379 Usually this means the macro was only invoked conditionally." >&2;}
19380 { (exit 1); exit 1; }; }
19382 if test -z "${XAS_TRUE}" && test -z "${XAS_FALSE}"; then
19383 { { echo "$as_me:$LINENO: error: conditional \"XAS\" was never defined.
19384 Usually this means the macro was only invoked conditionally." >&5
19385 echo "$as_me: error: conditional \"XAS\" was never defined.
19386 Usually this means the macro was only invoked conditionally." >&2;}
19387 { (exit 1); exit 1; }; }
19389 if test -z "${ENABLE_UPNP_TRUE}" && test -z "${ENABLE_UPNP_FALSE}"; then
19390 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_UPNP\" was never defined.
19391 Usually this means the macro was only invoked conditionally." >&5
19392 echo "$as_me: error: conditional \"ENABLE_UPNP\" was never defined.
19393 Usually this means the macro was only invoked conditionally." >&2;}
19394 { (exit 1); exit 1; }; }
19396 if test -z "${ENABLE_IP2COUNTRY_TRUE}" && test -z "${ENABLE_IP2COUNTRY_FALSE}"; then
19397 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
19398 Usually this means the macro was only invoked conditionally." >&5
19399 echo "$as_me: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
19400 Usually this means the macro was only invoked conditionally." >&2;}
19401 { (exit 1); exit 1; }; }
19403 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
19404 { { echo "$as_me:$LINENO: error: conditional \"SYS_WIN32\" was never defined.
19405 Usually this means the macro was only invoked conditionally." >&5
19406 echo "$as_me: error: conditional \"SYS_WIN32\" was never defined.
19407 Usually this means the macro was only invoked conditionally." >&2;}
19408 { (exit 1); exit 1; }; }
19410 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
19411 { { echo "$as_me:$LINENO: error: conditional \"NEED_RC\" was never defined.
19412 Usually this means the macro was only invoked conditionally." >&5
19413 echo "$as_me: error: conditional \"NEED_RC\" was never defined.
19414 Usually this means the macro was only invoked conditionally." >&2;}
19415 { (exit 1); exit 1; }; }
19417 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
19418 { { echo "$as_me:$LINENO: error: conditional \"NEED_CORESERVICES\" was never defined.
19419 Usually this means the macro was only invoked conditionally." >&5
19420 echo "$as_me: error: conditional \"NEED_CORESERVICES\" was never defined.
19421 Usually this means the macro was only invoked conditionally." >&2;}
19422 { (exit 1); exit 1; }; }
19424 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
19425 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_NLS\" was never defined.
19426 Usually this means the macro was only invoked conditionally." >&5
19427 echo "$as_me: error: conditional \"COMPILE_NLS\" was never defined.
19428 Usually this means the macro was only invoked conditionally." >&2;}
19429 { (exit 1); exit 1; }; }
19431 if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then
19432 { { echo "$as_me:$LINENO: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19433 Usually this means the macro was only invoked conditionally." >&5
19434 echo "$as_me: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19435 Usually this means the macro was only invoked conditionally." >&2;}
19436 { (exit 1); exit 1; }; }
19438 if test -z "${INSTALL_SKINS_TRUE}" && test -z "${INSTALL_SKINS_FALSE}"; then
19439 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_SKINS\" was never defined.
19440 Usually this means the macro was only invoked conditionally." >&5
19441 echo "$as_me: error: conditional \"INSTALL_SKINS\" was never defined.
19442 Usually this means the macro was only invoked conditionally." >&2;}
19443 { (exit 1); exit 1; }; }
19446 : ${CONFIG_STATUS=./config.status}
19447 ac_clean_files_save=$ac_clean_files
19448 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19449 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19450 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19451 cat >$CONFIG_STATUS <<_ACEOF
19452 #! $SHELL
19453 # Generated by $as_me.
19454 # Run this file to recreate the current configuration.
19455 # Compiler output produced by configure, useful for debugging
19456 # configure, is in config.log if it exists.
19458 debug=false
19459 ac_cs_recheck=false
19460 ac_cs_silent=false
19461 SHELL=\${CONFIG_SHELL-$SHELL}
19462 _ACEOF
19464 cat >>$CONFIG_STATUS <<\_ACEOF
19465 ## --------------------- ##
19466 ## M4sh Initialization. ##
19467 ## --------------------- ##
19469 # Be Bourne compatible
19470 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19471 emulate sh
19472 NULLCMD=:
19473 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19474 # is contrary to our usage. Disable this feature.
19475 alias -g '${1+"$@"}'='"$@"'
19476 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19477 set -o posix
19479 DUALCASE=1; export DUALCASE # for MKS sh
19481 # Support unset when possible.
19482 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19483 as_unset=unset
19484 else
19485 as_unset=false
19489 # Work around bugs in pre-3.0 UWIN ksh.
19490 $as_unset ENV MAIL MAILPATH
19491 PS1='$ '
19492 PS2='> '
19493 PS4='+ '
19495 # NLS nuisances.
19496 for as_var in \
19497 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19498 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19499 LC_TELEPHONE LC_TIME
19501 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19502 eval $as_var=C; export $as_var
19503 else
19504 $as_unset $as_var
19506 done
19508 # Required to use basename.
19509 if expr a : '\(a\)' >/dev/null 2>&1; then
19510 as_expr=expr
19511 else
19512 as_expr=false
19515 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19516 as_basename=basename
19517 else
19518 as_basename=false
19522 # Name of the executable.
19523 as_me=`$as_basename "$0" ||
19524 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19525 X"$0" : 'X\(//\)$' \| \
19526 X"$0" : 'X\(/\)$' \| \
19527 . : '\(.\)' 2>/dev/null ||
19528 echo X/"$0" |
19529 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19530 /^X\/\(\/\/\)$/{ s//\1/; q; }
19531 /^X\/\(\/\).*/{ s//\1/; q; }
19532 s/.*/./; q'`
19535 # PATH needs CR, and LINENO needs CR and PATH.
19536 # Avoid depending upon Character Ranges.
19537 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19538 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19539 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19540 as_cr_digits='0123456789'
19541 as_cr_alnum=$as_cr_Letters$as_cr_digits
19543 # The user is always right.
19544 if test "${PATH_SEPARATOR+set}" != set; then
19545 echo "#! /bin/sh" >conf$$.sh
19546 echo "exit 0" >>conf$$.sh
19547 chmod +x conf$$.sh
19548 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19549 PATH_SEPARATOR=';'
19550 else
19551 PATH_SEPARATOR=:
19553 rm -f conf$$.sh
19557 as_lineno_1=$LINENO
19558 as_lineno_2=$LINENO
19559 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19560 test "x$as_lineno_1" != "x$as_lineno_2" &&
19561 test "x$as_lineno_3" = "x$as_lineno_2" || {
19562 # Find who we are. Look in the path if we contain no path at all
19563 # relative or not.
19564 case $0 in
19565 *[\\/]* ) as_myself=$0 ;;
19566 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19567 for as_dir in $PATH
19569 IFS=$as_save_IFS
19570 test -z "$as_dir" && as_dir=.
19571 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19572 done
19575 esac
19576 # We did not find ourselves, most probably we were run as `sh COMMAND'
19577 # in which case we are not to be found in the path.
19578 if test "x$as_myself" = x; then
19579 as_myself=$0
19581 if test ! -f "$as_myself"; then
19582 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19583 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19584 { (exit 1); exit 1; }; }
19586 case $CONFIG_SHELL in
19588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19589 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19591 IFS=$as_save_IFS
19592 test -z "$as_dir" && as_dir=.
19593 for as_base in sh bash ksh sh5; do
19594 case $as_dir in
19596 if ("$as_dir/$as_base" -c '
19597 as_lineno_1=$LINENO
19598 as_lineno_2=$LINENO
19599 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19600 test "x$as_lineno_1" != "x$as_lineno_2" &&
19601 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19602 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19603 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19604 CONFIG_SHELL=$as_dir/$as_base
19605 export CONFIG_SHELL
19606 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19607 fi;;
19608 esac
19609 done
19610 done
19612 esac
19614 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19615 # uniformly replaced by the line number. The first 'sed' inserts a
19616 # line-number line before each line; the second 'sed' does the real
19617 # work. The second script uses 'N' to pair each line-number line
19618 # with the numbered line, and appends trailing '-' during
19619 # substitution so that $LINENO is not a special case at line end.
19620 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19621 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19622 sed '=' <$as_myself |
19623 sed '
19625 s,$,-,
19626 : loop
19627 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19628 t loop
19629 s,-$,,
19630 s,^['$as_cr_digits']*\n,,
19631 ' >$as_me.lineno &&
19632 chmod +x $as_me.lineno ||
19633 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19634 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19635 { (exit 1); exit 1; }; }
19637 # Don't try to exec as it changes $[0], causing all sort of problems
19638 # (the dirname of $[0] is not the place where we might find the
19639 # original and so on. Autoconf is especially sensible to this).
19640 . ./$as_me.lineno
19641 # Exit status is that of the last command.
19642 exit
19646 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19647 *c*,-n*) ECHO_N= ECHO_C='
19648 ' ECHO_T=' ' ;;
19649 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19650 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19651 esac
19653 if expr a : '\(a\)' >/dev/null 2>&1; then
19654 as_expr=expr
19655 else
19656 as_expr=false
19659 rm -f conf$$ conf$$.exe conf$$.file
19660 echo >conf$$.file
19661 if ln -s conf$$.file conf$$ 2>/dev/null; then
19662 # We could just check for DJGPP; but this test a) works b) is more generic
19663 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19664 if test -f conf$$.exe; then
19665 # Don't use ln at all; we don't have any links
19666 as_ln_s='cp -p'
19667 else
19668 as_ln_s='ln -s'
19670 elif ln conf$$.file conf$$ 2>/dev/null; then
19671 as_ln_s=ln
19672 else
19673 as_ln_s='cp -p'
19675 rm -f conf$$ conf$$.exe conf$$.file
19677 if mkdir -p . 2>/dev/null; then
19678 as_mkdir_p=:
19679 else
19680 test -d ./-p && rmdir ./-p
19681 as_mkdir_p=false
19684 as_executable_p="test -f"
19686 # Sed expression to map a string onto a valid CPP name.
19687 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19689 # Sed expression to map a string onto a valid variable name.
19690 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19693 # IFS
19694 # We need space, tab and new line, in precisely that order.
19695 as_nl='
19697 IFS=" $as_nl"
19699 # CDPATH.
19700 $as_unset CDPATH
19702 exec 6>&1
19704 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19705 # report actual input values of CONFIG_FILES etc. instead of their
19706 # values after options handling. Logging --version etc. is OK.
19707 exec 5>>config.log
19709 echo
19710 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19711 ## Running $as_me. ##
19712 _ASBOX
19713 } >&5
19714 cat >&5 <<_CSEOF
19716 This file was extended by aMule $as_me SVN, which was
19717 generated by GNU Autoconf 2.59. Invocation command line was
19719 CONFIG_FILES = $CONFIG_FILES
19720 CONFIG_HEADERS = $CONFIG_HEADERS
19721 CONFIG_LINKS = $CONFIG_LINKS
19722 CONFIG_COMMANDS = $CONFIG_COMMANDS
19723 $ $0 $@
19725 _CSEOF
19726 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19727 echo >&5
19728 _ACEOF
19730 # Files that config.status was made for.
19731 if test -n "$ac_config_files"; then
19732 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19735 if test -n "$ac_config_headers"; then
19736 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19739 if test -n "$ac_config_links"; then
19740 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19743 if test -n "$ac_config_commands"; then
19744 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19747 cat >>$CONFIG_STATUS <<\_ACEOF
19749 ac_cs_usage="\
19750 \`$as_me' instantiates files from templates according to the
19751 current configuration.
19753 Usage: $0 [OPTIONS] [FILE]...
19755 -h, --help print this help, then exit
19756 -V, --version print version number, then exit
19757 -q, --quiet do not print progress messages
19758 -d, --debug don't remove temporary files
19759 --recheck update $as_me by reconfiguring in the same conditions
19760 --file=FILE[:TEMPLATE]
19761 instantiate the configuration file FILE
19762 --header=FILE[:TEMPLATE]
19763 instantiate the configuration header FILE
19765 Configuration files:
19766 $config_files
19768 Configuration headers:
19769 $config_headers
19771 Configuration commands:
19772 $config_commands
19774 Report bugs to <bug-autoconf@gnu.org>."
19775 _ACEOF
19777 cat >>$CONFIG_STATUS <<_ACEOF
19778 ac_cs_version="\\
19779 aMule config.status SVN
19780 configured by $0, generated by GNU Autoconf 2.59,
19781 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19783 Copyright (C) 2003 Free Software Foundation, Inc.
19784 This config.status script is free software; the Free Software Foundation
19785 gives unlimited permission to copy, distribute and modify it."
19786 srcdir=$srcdir
19787 INSTALL="$INSTALL"
19788 _ACEOF
19790 cat >>$CONFIG_STATUS <<\_ACEOF
19791 # If no file are specified by the user, then we need to provide default
19792 # value. By we need to know if files were specified by the user.
19793 ac_need_defaults=:
19794 while test $# != 0
19796 case $1 in
19797 --*=*)
19798 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19799 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19800 ac_shift=:
19803 ac_option=$1
19804 ac_optarg=$2
19805 ac_shift=shift
19807 *) # This is not an option, so the user has probably given explicit
19808 # arguments.
19809 ac_option=$1
19810 ac_need_defaults=false;;
19811 esac
19813 case $ac_option in
19814 # Handling of the options.
19815 _ACEOF
19816 cat >>$CONFIG_STATUS <<\_ACEOF
19817 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19818 ac_cs_recheck=: ;;
19819 --version | --vers* | -V )
19820 echo "$ac_cs_version"; exit 0 ;;
19821 --he | --h)
19822 # Conflict between --help and --header
19823 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19824 Try \`$0 --help' for more information." >&5
19825 echo "$as_me: error: ambiguous option: $1
19826 Try \`$0 --help' for more information." >&2;}
19827 { (exit 1); exit 1; }; };;
19828 --help | --hel | -h )
19829 echo "$ac_cs_usage"; exit 0 ;;
19830 --debug | --d* | -d )
19831 debug=: ;;
19832 --file | --fil | --fi | --f )
19833 $ac_shift
19834 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19835 ac_need_defaults=false;;
19836 --header | --heade | --head | --hea )
19837 $ac_shift
19838 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19839 ac_need_defaults=false;;
19840 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19841 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19842 ac_cs_silent=: ;;
19844 # This is an error.
19845 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19846 Try \`$0 --help' for more information." >&5
19847 echo "$as_me: error: unrecognized option: $1
19848 Try \`$0 --help' for more information." >&2;}
19849 { (exit 1); exit 1; }; } ;;
19851 *) ac_config_targets="$ac_config_targets $1" ;;
19853 esac
19854 shift
19855 done
19857 ac_configure_extra_args=
19859 if $ac_cs_silent; then
19860 exec 6>/dev/null
19861 ac_configure_extra_args="$ac_configure_extra_args --silent"
19864 _ACEOF
19865 cat >>$CONFIG_STATUS <<_ACEOF
19866 if \$ac_cs_recheck; then
19867 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19868 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19871 _ACEOF
19873 cat >>$CONFIG_STATUS <<_ACEOF
19875 # INIT-COMMANDS section.
19878 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19879 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
19880 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
19881 # from automake.
19882 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
19883 # Capture the value of LINGUAS because we need it to compute CATALOGS.
19884 LINGUAS="${LINGUAS-%UNSET%}"
19886 denoiserlevel=$with_denoise_level
19888 _ACEOF
19892 cat >>$CONFIG_STATUS <<\_ACEOF
19893 for ac_config_target in $ac_config_targets
19895 case "$ac_config_target" in
19896 # Handling of arguments.
19897 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19898 "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
19899 "docs/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/man/Makefile" ;;
19900 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
19901 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19902 "src/pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pixmaps/Makefile" ;;
19903 "src/pixmaps/flags_xpm/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
19904 "src/libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/Makefile" ;;
19905 "src/libs/ec/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/ec/Makefile" ;;
19906 "src/libs/ec/cpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
19907 "src/libs/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/common/Makefile" ;;
19908 "src/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
19909 "src/utils/aLinkCreator/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
19910 "src/utils/aLinkCreator/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
19911 "src/utils/aLinkCreator/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
19912 "src/utils/cas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/cas/Makefile" ;;
19913 "src/utils/cas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
19914 "src/utils/fileview/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/fileview/Makefile" ;;
19915 "src/utils/wxCas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
19916 "src/utils/wxCas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
19917 "src/utils/wxCas/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
19918 "src/utils/xas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/Makefile" ;;
19919 "src/utils/xas/autostart-xas" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
19920 "src/utils/xas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
19921 "src/skins/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/skins/Makefile" ;;
19922 "src/webserver/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/Makefile" ;;
19923 "src/webserver/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/src/Makefile" ;;
19924 "src/webserver/default/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/default/Makefile" ;;
19925 "unittests/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/Makefile" ;;
19926 "unittests/muleunit/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/muleunit/Makefile" ;;
19927 "unittests/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/tests/Makefile" ;;
19928 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
19929 "Compilation.flags" ) CONFIG_FILES="$CONFIG_FILES Compilation.flags" ;;
19930 "version.rc" ) CONFIG_FILES="$CONFIG_FILES version.rc" ;;
19931 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19932 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
19933 "denoiser" ) CONFIG_COMMANDS="$CONFIG_COMMANDS denoiser" ;;
19934 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19935 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19936 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19937 { (exit 1); exit 1; }; };;
19938 esac
19939 done
19941 # If the user did not use the arguments to specify the items to instantiate,
19942 # then the envvar interface is used. Set only those that are not.
19943 # We use the long form for the default assignment because of an extremely
19944 # bizarre bug on SunOS 4.1.3.
19945 if $ac_need_defaults; then
19946 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19947 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19948 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19951 # Have a temporary directory for convenience. Make it in the build tree
19952 # simply because there is no reason to put it here, and in addition,
19953 # creating and moving files from /tmp can sometimes cause problems.
19954 # Create a temporary directory, and hook for its removal unless debugging.
19955 $debug ||
19957 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19958 trap '{ (exit 1); exit 1; }' 1 2 13 15
19961 # Create a (secure) tmp directory for tmp files.
19964 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19965 test -n "$tmp" && test -d "$tmp"
19966 } ||
19968 tmp=./confstat$$-$RANDOM
19969 (umask 077 && mkdir $tmp)
19970 } ||
19972 echo "$me: cannot create a temporary directory in ." >&2
19973 { (exit 1); exit 1; }
19976 _ACEOF
19978 cat >>$CONFIG_STATUS <<_ACEOF
19981 # CONFIG_FILES section.
19984 # No need to generate the scripts if there are no CONFIG_FILES.
19985 # This happens for instance when ./config.status config.h
19986 if test -n "\$CONFIG_FILES"; then
19987 # Protect against being on the right side of a sed subst in config.status.
19988 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19989 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19990 s,@GEOIP_CPPFLAGS@,$GEOIP_CPPFLAGS,;t t
19991 s,@GEOIP_LDFLAGS@,$GEOIP_LDFLAGS,;t t
19992 s,@GEOIP_LIBS@,$GEOIP_LIBS,;t t
19993 s,@SHELL@,$SHELL,;t t
19994 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19995 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19996 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19997 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19998 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19999 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20000 s,@exec_prefix@,$exec_prefix,;t t
20001 s,@prefix@,$prefix,;t t
20002 s,@program_transform_name@,$program_transform_name,;t t
20003 s,@bindir@,$bindir,;t t
20004 s,@sbindir@,$sbindir,;t t
20005 s,@libexecdir@,$libexecdir,;t t
20006 s,@datadir@,$datadir,;t t
20007 s,@sysconfdir@,$sysconfdir,;t t
20008 s,@sharedstatedir@,$sharedstatedir,;t t
20009 s,@localstatedir@,$localstatedir,;t t
20010 s,@libdir@,$libdir,;t t
20011 s,@includedir@,$includedir,;t t
20012 s,@oldincludedir@,$oldincludedir,;t t
20013 s,@infodir@,$infodir,;t t
20014 s,@mandir@,$mandir,;t t
20015 s,@build_alias@,$build_alias,;t t
20016 s,@host_alias@,$host_alias,;t t
20017 s,@target_alias@,$target_alias,;t t
20018 s,@DEFS@,$DEFS,;t t
20019 s,@ECHO_C@,$ECHO_C,;t t
20020 s,@ECHO_N@,$ECHO_N,;t t
20021 s,@ECHO_T@,$ECHO_T,;t t
20022 s,@LIBS@,$LIBS,;t t
20023 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20024 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20025 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20026 s,@CYGPATH_W@,$CYGPATH_W,;t t
20027 s,@PACKAGE@,$PACKAGE,;t t
20028 s,@VERSION@,$VERSION,;t t
20029 s,@ACLOCAL@,$ACLOCAL,;t t
20030 s,@AUTOCONF@,$AUTOCONF,;t t
20031 s,@AUTOMAKE@,$AUTOMAKE,;t t
20032 s,@AUTOHEADER@,$AUTOHEADER,;t t
20033 s,@MAKEINFO@,$MAKEINFO,;t t
20034 s,@install_sh@,$install_sh,;t t
20035 s,@STRIP@,$STRIP,;t t
20036 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20037 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20038 s,@mkdir_p@,$mkdir_p,;t t
20039 s,@AWK@,$AWK,;t t
20040 s,@SET_MAKE@,$SET_MAKE,;t t
20041 s,@am__leading_dot@,$am__leading_dot,;t t
20042 s,@AMTAR@,$AMTAR,;t t
20043 s,@am__tar@,$am__tar,;t t
20044 s,@am__untar@,$am__untar,;t t
20045 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20046 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20047 s,@MAINT@,$MAINT,;t t
20048 s,@build@,$build,;t t
20049 s,@build_cpu@,$build_cpu,;t t
20050 s,@build_vendor@,$build_vendor,;t t
20051 s,@build_os@,$build_os,;t t
20052 s,@host@,$host,;t t
20053 s,@host_cpu@,$host_cpu,;t t
20054 s,@host_vendor@,$host_vendor,;t t
20055 s,@host_os@,$host_os,;t t
20056 s,@RESOLV_LIB@,$RESOLV_LIB,;t t
20057 s,@X11LIBS@,$X11LIBS,;t t
20058 s,@MULECPPFLAGS@,$MULECPPFLAGS,;t t
20059 s,@MULECFLAGS@,$MULECFLAGS,;t t
20060 s,@MULECXXFLAGS@,$MULECXXFLAGS,;t t
20061 s,@MULELDFLAGS@,$MULELDFLAGS,;t t
20062 s,@MULERCFLAGS@,$MULERCFLAGS,;t t
20063 s,@CXX@,$CXX,;t t
20064 s,@CXXFLAGS@,$CXXFLAGS,;t t
20065 s,@LDFLAGS@,$LDFLAGS,;t t
20066 s,@CPPFLAGS@,$CPPFLAGS,;t t
20067 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20068 s,@EXEEXT@,$EXEEXT,;t t
20069 s,@OBJEXT@,$OBJEXT,;t t
20070 s,@DEPDIR@,$DEPDIR,;t t
20071 s,@am__include@,$am__include,;t t
20072 s,@am__quote@,$am__quote,;t t
20073 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20074 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20075 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20076 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20077 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20078 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20079 s,@CXXCPP@,$CXXCPP,;t t
20080 s,@CC@,$CC,;t t
20081 s,@CFLAGS@,$CFLAGS,;t t
20082 s,@ac_ct_CC@,$ac_ct_CC,;t t
20083 s,@CCDEPMODE@,$CCDEPMODE,;t t
20084 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20085 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20086 s,@CPP@,$CPP,;t t
20087 s,@BUILD_CC@,$BUILD_CC,;t t
20088 s,@ac_ct_BUILD_CC@,$ac_ct_BUILD_CC,;t t
20089 s,@EXEEXT@,$EXEEXT,;t t
20090 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
20091 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
20092 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
20093 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
20094 s,@EGREP@,$EGREP,;t t
20095 s,@LEX@,$LEX,;t t
20096 s,@LEXLIB@,$LEXLIB,;t t
20097 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
20098 s,@RANLIB@,$RANLIB,;t t
20099 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20100 s,@YACC@,$YACC,;t t
20101 s,@AR@,$AR,;t t
20102 s,@ac_ct_AR@,$ac_ct_AR,;t t
20103 s,@LD@,$LD,;t t
20104 s,@ac_ct_LD@,$ac_ct_LD,;t t
20105 s,@ZLIB_CPPFLAGS@,$ZLIB_CPPFLAGS,;t t
20106 s,@ZLIB_LDFLAGS@,$ZLIB_LDFLAGS,;t t
20107 s,@ZLIB_LIBS@,$ZLIB_LIBS,;t t
20108 s,@GDLIB_CONFIG_PATH@,$GDLIB_CONFIG_PATH,;t t
20109 s,@GDLIB_CFLAGS@,$GDLIB_CFLAGS,;t t
20110 s,@GDLIB_LDFLAGS@,$GDLIB_LDFLAGS,;t t
20111 s,@GDLIB_LIBS@,$GDLIB_LIBS,;t t
20112 s,@CAS_DEFS@,$CAS_DEFS,;t t
20113 s,@REGEX_LIBS@,$REGEX_LIBS,;t t
20114 s,@LIBPNG_CONFIG_PATH@,$LIBPNG_CONFIG_PATH,;t t
20115 s,@LIBPNG_CFLAGS@,$LIBPNG_CFLAGS,;t t
20116 s,@LIBPNG_LDFLAGS@,$LIBPNG_LDFLAGS,;t t
20117 s,@LIBPNG_LIBS@,$LIBPNG_LIBS,;t t
20118 s,@AMULEWEB_DEFS@,$AMULEWEB_DEFS,;t t
20119 s,@WX_CONFIG_PATH@,$WX_CONFIG_PATH,;t t
20120 s,@WX_CPPFLAGS@,$WX_CPPFLAGS,;t t
20121 s,@WX_CFLAGS@,$WX_CFLAGS,;t t
20122 s,@WX_CXXFLAGS@,$WX_CXXFLAGS,;t t
20123 s,@WX_CFLAGS_ONLY@,$WX_CFLAGS_ONLY,;t t
20124 s,@WX_CXXFLAGS_ONLY@,$WX_CXXFLAGS_ONLY,;t t
20125 s,@WX_LIBS@,$WX_LIBS,;t t
20126 s,@WX_LIBS_STATIC@,$WX_LIBS_STATIC,;t t
20127 s,@WX_VERSION_FULL@,$WX_VERSION_FULL,;t t
20128 s,@WX_RESCOMP@,$WX_RESCOMP,;t t
20129 s,@WX_VERSION_MAJOR@,$WX_VERSION_MAJOR,;t t
20130 s,@WX_VERSION_MINOR@,$WX_VERSION_MINOR,;t t
20131 s,@WX_UNICODE@,$WX_UNICODE,;t t
20132 s,@WX_DEBUG@,$WX_DEBUG,;t t
20133 s,@WX_SHARED@,$WX_SHARED,;t t
20134 s,@WX_PORT@,$WX_PORT,;t t
20135 s,@WXBASE_LIBS@,$WXBASE_LIBS,;t t
20136 s,@WXBASE_CPPFLAGS@,$WXBASE_CPPFLAGS,;t t
20137 s,@RC@,$RC,;t t
20138 s,@RCFLAGS@,$RCFLAGS,;t t
20139 s,@ac_ct_RC@,$ac_ct_RC,;t t
20140 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20141 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
20142 s,@LIBUPNP_CPPFLAGS@,$LIBUPNP_CPPFLAGS,;t t
20143 s,@LIBUPNP_CFLAGS@,$LIBUPNP_CFLAGS,;t t
20144 s,@LIBUPNP_LDFLAGS@,$LIBUPNP_LDFLAGS,;t t
20145 s,@LIBUPNP_LIBS@,$LIBUPNP_LIBS,;t t
20146 s,@CRYPTOPP_CPPFLAGS@,$CRYPTOPP_CPPFLAGS,;t t
20147 s,@CRYPTOPP_LDFLAGS@,$CRYPTOPP_LDFLAGS,;t t
20148 s,@CRYPTOPP_LIBS@,$CRYPTOPP_LIBS,;t t
20149 s,@BFD_CPPFLAGS@,$BFD_CPPFLAGS,;t t
20150 s,@BFD_LIBS@,$BFD_LIBS,;t t
20151 s,@ALLOCA@,$ALLOCA,;t t
20152 s,@LIBOBJS@,$LIBOBJS,;t t
20153 s,@POW_LIB@,$POW_LIB,;t t
20154 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20155 s,@MSGFMT@,$MSGFMT,;t t
20156 s,@GMSGFMT@,$GMSGFMT,;t t
20157 s,@XGETTEXT@,$XGETTEXT,;t t
20158 s,@MSGMERGE@,$MSGMERGE,;t t
20159 s,@GLIBC21@,$GLIBC21,;t t
20160 s,@LIBICONV@,$LIBICONV,;t t
20161 s,@LTLIBICONV@,$LTLIBICONV,;t t
20162 s,@INTLBISON@,$INTLBISON,;t t
20163 s,@USE_NLS@,$USE_NLS,;t t
20164 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
20165 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
20166 s,@CATOBJEXT@,$CATOBJEXT,;t t
20167 s,@INTLOBJS@,$INTLOBJS,;t t
20168 s,@DATADIRNAME@,$DATADIRNAME,;t t
20169 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20170 s,@GENCAT@,$GENCAT,;t t
20171 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
20172 s,@INTLLIBS@,$INTLLIBS,;t t
20173 s,@LIBINTL@,$LIBINTL,;t t
20174 s,@LTLIBINTL@,$LTLIBINTL,;t t
20175 s,@POSUB@,$POSUB,;t t
20176 s,@AMULE_DAEMON_MANPAGES@,$AMULE_DAEMON_MANPAGES,;t t
20177 s,@AMULECMD_MANPAGES@,$AMULECMD_MANPAGES,;t t
20178 s,@WEB_MANPAGES@,$WEB_MANPAGES,;t t
20179 s,@AMULE_GUI_MANPAGES@,$AMULE_GUI_MANPAGES,;t t
20180 s,@CAS_MANPAGES@,$CAS_MANPAGES,;t t
20181 s,@WXCAS_MANPAGES@,$WXCAS_MANPAGES,;t t
20182 s,@ED2K_MANPAGES@,$ED2K_MANPAGES,;t t
20183 s,@ALC_MANPAGES@,$ALC_MANPAGES,;t t
20184 s,@ALCC_MANPAGES@,$ALCC_MANPAGES,;t t
20185 s,@MONOLITHIC_MANPAGES@,$MONOLITHIC_MANPAGES,;t t
20186 s,@INCINTL@,$INCINTL,;t t
20187 s,@docdir@,$docdir,;t t
20188 s,@SVNDATE@,$SVNDATE,;t t
20189 s,@WEB_TRUE@,$WEB_TRUE,;t t
20190 s,@WEB_FALSE@,$WEB_FALSE,;t t
20191 s,@ED2K_TRUE@,$ED2K_TRUE,;t t
20192 s,@ED2K_FALSE@,$ED2K_FALSE,;t t
20193 s,@CAS_TRUE@,$CAS_TRUE,;t t
20194 s,@CAS_FALSE@,$CAS_FALSE,;t t
20195 s,@WXCAS_TRUE@,$WXCAS_TRUE,;t t
20196 s,@WXCAS_FALSE@,$WXCAS_FALSE,;t t
20197 s,@ALC_TRUE@,$ALC_TRUE,;t t
20198 s,@ALC_FALSE@,$ALC_FALSE,;t t
20199 s,@ALCC_TRUE@,$ALCC_TRUE,;t t
20200 s,@ALCC_FALSE@,$ALCC_FALSE,;t t
20201 s,@AMULE_GUI_TRUE@,$AMULE_GUI_TRUE,;t t
20202 s,@AMULE_GUI_FALSE@,$AMULE_GUI_FALSE,;t t
20203 s,@AMULE_DAEMON_TRUE@,$AMULE_DAEMON_TRUE,;t t
20204 s,@AMULE_DAEMON_FALSE@,$AMULE_DAEMON_FALSE,;t t
20205 s,@COMPILE_CMD_TRUE@,$COMPILE_CMD_TRUE,;t t
20206 s,@COMPILE_CMD_FALSE@,$COMPILE_CMD_FALSE,;t t
20207 s,@MONOLITHIC_TRUE@,$MONOLITHIC_TRUE,;t t
20208 s,@MONOLITHIC_FALSE@,$MONOLITHIC_FALSE,;t t
20209 s,@XAS_TRUE@,$XAS_TRUE,;t t
20210 s,@XAS_FALSE@,$XAS_FALSE,;t t
20211 s,@ENABLE_UPNP_TRUE@,$ENABLE_UPNP_TRUE,;t t
20212 s,@ENABLE_UPNP_FALSE@,$ENABLE_UPNP_FALSE,;t t
20213 s,@ENABLE_IP2COUNTRY_TRUE@,$ENABLE_IP2COUNTRY_TRUE,;t t
20214 s,@ENABLE_IP2COUNTRY_FALSE@,$ENABLE_IP2COUNTRY_FALSE,;t t
20215 s,@SYS_WIN32_TRUE@,$SYS_WIN32_TRUE,;t t
20216 s,@SYS_WIN32_FALSE@,$SYS_WIN32_FALSE,;t t
20217 s,@NEED_RC_TRUE@,$NEED_RC_TRUE,;t t
20218 s,@NEED_RC_FALSE@,$NEED_RC_FALSE,;t t
20219 s,@NEED_CORESERVICES_TRUE@,$NEED_CORESERVICES_TRUE,;t t
20220 s,@NEED_CORESERVICES_FALSE@,$NEED_CORESERVICES_FALSE,;t t
20221 s,@COMPILE_NLS_TRUE@,$COMPILE_NLS_TRUE,;t t
20222 s,@COMPILE_NLS_FALSE@,$COMPILE_NLS_FALSE,;t t
20223 s,@GENERATE_FLEX_HEADER_TRUE@,$GENERATE_FLEX_HEADER_TRUE,;t t
20224 s,@GENERATE_FLEX_HEADER_FALSE@,$GENERATE_FLEX_HEADER_FALSE,;t t
20225 s,@INSTALL_SKINS_TRUE@,$INSTALL_SKINS_TRUE,;t t
20226 s,@INSTALL_SKINS_FALSE@,$INSTALL_SKINS_FALSE,;t t
20227 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
20228 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20229 CEOF
20231 _ACEOF
20233 cat >>$CONFIG_STATUS <<\_ACEOF
20234 # Split the substitutions into bite-sized pieces for seds with
20235 # small command number limits, like on Digital OSF/1 and HP-UX.
20236 ac_max_sed_lines=48
20237 ac_sed_frag=1 # Number of current file.
20238 ac_beg=1 # First line for current file.
20239 ac_end=$ac_max_sed_lines # Line after last line for current file.
20240 ac_more_lines=:
20241 ac_sed_cmds=
20242 while $ac_more_lines; do
20243 if test $ac_beg -gt 1; then
20244 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20245 else
20246 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20248 if test ! -s $tmp/subs.frag; then
20249 ac_more_lines=false
20250 else
20251 # The purpose of the label and of the branching condition is to
20252 # speed up the sed processing (if there are no `@' at all, there
20253 # is no need to browse any of the substitutions).
20254 # These are the two extra sed commands mentioned above.
20255 (echo ':t
20256 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20257 if test -z "$ac_sed_cmds"; then
20258 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20259 else
20260 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20262 ac_sed_frag=`expr $ac_sed_frag + 1`
20263 ac_beg=$ac_end
20264 ac_end=`expr $ac_end + $ac_max_sed_lines`
20266 done
20267 if test -z "$ac_sed_cmds"; then
20268 ac_sed_cmds=cat
20270 fi # test -n "$CONFIG_FILES"
20272 _ACEOF
20273 cat >>$CONFIG_STATUS <<\_ACEOF
20274 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20275 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20276 case $ac_file in
20277 - | *:- | *:-:* ) # input from stdin
20278 cat >$tmp/stdin
20279 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20280 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20281 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20282 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20283 * ) ac_file_in=$ac_file.in ;;
20284 esac
20286 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20287 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20288 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20289 X"$ac_file" : 'X\(//\)[^/]' \| \
20290 X"$ac_file" : 'X\(//\)$' \| \
20291 X"$ac_file" : 'X\(/\)' \| \
20292 . : '\(.\)' 2>/dev/null ||
20293 echo X"$ac_file" |
20294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20295 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20296 /^X\(\/\/\)$/{ s//\1/; q; }
20297 /^X\(\/\).*/{ s//\1/; q; }
20298 s/.*/./; q'`
20299 { if $as_mkdir_p; then
20300 mkdir -p "$ac_dir"
20301 else
20302 as_dir="$ac_dir"
20303 as_dirs=
20304 while test ! -d "$as_dir"; do
20305 as_dirs="$as_dir $as_dirs"
20306 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20307 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20308 X"$as_dir" : 'X\(//\)[^/]' \| \
20309 X"$as_dir" : 'X\(//\)$' \| \
20310 X"$as_dir" : 'X\(/\)' \| \
20311 . : '\(.\)' 2>/dev/null ||
20312 echo X"$as_dir" |
20313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20314 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20315 /^X\(\/\/\)$/{ s//\1/; q; }
20316 /^X\(\/\).*/{ s//\1/; q; }
20317 s/.*/./; q'`
20318 done
20319 test ! -n "$as_dirs" || mkdir $as_dirs
20320 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20321 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20322 { (exit 1); exit 1; }; }; }
20324 ac_builddir=.
20326 if test "$ac_dir" != .; then
20327 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20328 # A "../" for each directory in $ac_dir_suffix.
20329 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20330 else
20331 ac_dir_suffix= ac_top_builddir=
20334 case $srcdir in
20335 .) # No --srcdir option. We are building in place.
20336 ac_srcdir=.
20337 if test -z "$ac_top_builddir"; then
20338 ac_top_srcdir=.
20339 else
20340 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20341 fi ;;
20342 [\\/]* | ?:[\\/]* ) # Absolute path.
20343 ac_srcdir=$srcdir$ac_dir_suffix;
20344 ac_top_srcdir=$srcdir ;;
20345 *) # Relative path.
20346 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20347 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20348 esac
20350 # Do not use `cd foo && pwd` to compute absolute paths, because
20351 # the directories may not exist.
20352 case `pwd` in
20353 .) ac_abs_builddir="$ac_dir";;
20355 case "$ac_dir" in
20356 .) ac_abs_builddir=`pwd`;;
20357 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20358 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20359 esac;;
20360 esac
20361 case $ac_abs_builddir in
20362 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20364 case ${ac_top_builddir}. in
20365 .) ac_abs_top_builddir=$ac_abs_builddir;;
20366 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20367 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20368 esac;;
20369 esac
20370 case $ac_abs_builddir in
20371 .) ac_abs_srcdir=$ac_srcdir;;
20373 case $ac_srcdir in
20374 .) ac_abs_srcdir=$ac_abs_builddir;;
20375 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20376 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20377 esac;;
20378 esac
20379 case $ac_abs_builddir in
20380 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20382 case $ac_top_srcdir in
20383 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20384 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20385 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20386 esac;;
20387 esac
20390 case $INSTALL in
20391 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20392 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20393 esac
20395 if test x"$ac_file" != x-; then
20396 { echo "$as_me:$LINENO: creating $ac_file" >&5
20397 echo "$as_me: creating $ac_file" >&6;}
20398 rm -f "$ac_file"
20400 # Let's still pretend it is `configure' which instantiates (i.e., don't
20401 # use $as_me), people would be surprised to read:
20402 # /* config.h. Generated by config.status. */
20403 if test x"$ac_file" = x-; then
20404 configure_input=
20405 else
20406 configure_input="$ac_file. "
20408 configure_input=$configure_input"Generated from `echo $ac_file_in |
20409 sed 's,.*/,,'` by configure."
20411 # First look for the input files in the build tree, otherwise in the
20412 # src tree.
20413 ac_file_inputs=`IFS=:
20414 for f in $ac_file_in; do
20415 case $f in
20416 -) echo $tmp/stdin ;;
20417 [\\/$]*)
20418 # Absolute (can't be DOS-style, as IFS=:)
20419 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20420 echo "$as_me: error: cannot find input file: $f" >&2;}
20421 { (exit 1); exit 1; }; }
20422 echo "$f";;
20423 *) # Relative
20424 if test -f "$f"; then
20425 # Build tree
20426 echo "$f"
20427 elif test -f "$srcdir/$f"; then
20428 # Source tree
20429 echo "$srcdir/$f"
20430 else
20431 # /dev/null tree
20432 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20433 echo "$as_me: error: cannot find input file: $f" >&2;}
20434 { (exit 1); exit 1; }; }
20435 fi;;
20436 esac
20437 done` || { (exit 1); exit 1; }
20438 _ACEOF
20439 cat >>$CONFIG_STATUS <<_ACEOF
20440 sed "$ac_vpsub
20441 $extrasub
20442 _ACEOF
20443 cat >>$CONFIG_STATUS <<\_ACEOF
20445 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20446 s,@configure_input@,$configure_input,;t t
20447 s,@srcdir@,$ac_srcdir,;t t
20448 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20449 s,@top_srcdir@,$ac_top_srcdir,;t t
20450 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20451 s,@builddir@,$ac_builddir,;t t
20452 s,@abs_builddir@,$ac_abs_builddir,;t t
20453 s,@top_builddir@,$ac_top_builddir,;t t
20454 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20455 s,@INSTALL@,$ac_INSTALL,;t t
20456 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20457 rm -f $tmp/stdin
20458 if test x"$ac_file" != x-; then
20459 mv $tmp/out $ac_file
20460 else
20461 cat $tmp/out
20462 rm -f $tmp/out
20465 done
20466 _ACEOF
20467 cat >>$CONFIG_STATUS <<\_ACEOF
20470 # CONFIG_HEADER section.
20473 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20474 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20476 # ac_d sets the value in "#define NAME VALUE" lines.
20477 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20478 ac_dB='[ ].*$,\1#\2'
20479 ac_dC=' '
20480 ac_dD=',;t'
20481 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20482 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20483 ac_uB='$,\1#\2define\3'
20484 ac_uC=' '
20485 ac_uD=',;t'
20487 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20488 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20489 case $ac_file in
20490 - | *:- | *:-:* ) # input from stdin
20491 cat >$tmp/stdin
20492 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20493 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20494 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20495 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20496 * ) ac_file_in=$ac_file.in ;;
20497 esac
20499 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20500 echo "$as_me: creating $ac_file" >&6;}
20502 # First look for the input files in the build tree, otherwise in the
20503 # src tree.
20504 ac_file_inputs=`IFS=:
20505 for f in $ac_file_in; do
20506 case $f in
20507 -) echo $tmp/stdin ;;
20508 [\\/$]*)
20509 # Absolute (can't be DOS-style, as IFS=:)
20510 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20511 echo "$as_me: error: cannot find input file: $f" >&2;}
20512 { (exit 1); exit 1; }; }
20513 # Do quote $f, to prevent DOS paths from being IFS'd.
20514 echo "$f";;
20515 *) # Relative
20516 if test -f "$f"; then
20517 # Build tree
20518 echo "$f"
20519 elif test -f "$srcdir/$f"; then
20520 # Source tree
20521 echo "$srcdir/$f"
20522 else
20523 # /dev/null tree
20524 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20525 echo "$as_me: error: cannot find input file: $f" >&2;}
20526 { (exit 1); exit 1; }; }
20527 fi;;
20528 esac
20529 done` || { (exit 1); exit 1; }
20530 # Remove the trailing spaces.
20531 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20533 _ACEOF
20535 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20536 # `conftest.undefs', that substitutes the proper values into
20537 # config.h.in to produce config.h. The first handles `#define'
20538 # templates, and the second `#undef' templates.
20539 # And first: Protect against being on the right side of a sed subst in
20540 # config.status. Protect against being in an unquoted here document
20541 # in config.status.
20542 rm -f conftest.defines conftest.undefs
20543 # Using a here document instead of a string reduces the quoting nightmare.
20544 # Putting comments in sed scripts is not portable.
20546 # `end' is used to avoid that the second main sed command (meant for
20547 # 0-ary CPP macros) applies to n-ary macro definitions.
20548 # See the Autoconf documentation for `clear'.
20549 cat >confdef2sed.sed <<\_ACEOF
20550 s/[\\&,]/\\&/g
20551 s,[\\$`],\\&,g
20552 t clear
20553 : clear
20554 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20555 t end
20556 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20557 : end
20558 _ACEOF
20559 # If some macros were called several times there might be several times
20560 # the same #defines, which is useless. Nevertheless, we may not want to
20561 # sort them, since we want the *last* AC-DEFINE to be honored.
20562 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20563 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20564 rm -f confdef2sed.sed
20566 # This sed command replaces #undef with comments. This is necessary, for
20567 # example, in the case of _POSIX_SOURCE, which is predefined and required
20568 # on some systems where configure will not decide to define it.
20569 cat >>conftest.undefs <<\_ACEOF
20570 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20571 _ACEOF
20573 # Break up conftest.defines because some shells have a limit on the size
20574 # of here documents, and old seds have small limits too (100 cmds).
20575 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20576 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20577 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20578 echo ' :' >>$CONFIG_STATUS
20579 rm -f conftest.tail
20580 while grep . conftest.defines >/dev/null
20582 # Write a limited-size here document to $tmp/defines.sed.
20583 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20584 # Speed up: don't consider the non `#define' lines.
20585 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20586 # Work around the forget-to-reset-the-flag bug.
20587 echo 't clr' >>$CONFIG_STATUS
20588 echo ': clr' >>$CONFIG_STATUS
20589 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20590 echo 'CEOF
20591 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20592 rm -f $tmp/in
20593 mv $tmp/out $tmp/in
20594 ' >>$CONFIG_STATUS
20595 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20596 rm -f conftest.defines
20597 mv conftest.tail conftest.defines
20598 done
20599 rm -f conftest.defines
20600 echo ' fi # grep' >>$CONFIG_STATUS
20601 echo >>$CONFIG_STATUS
20603 # Break up conftest.undefs because some shells have a limit on the size
20604 # of here documents, and old seds have small limits too (100 cmds).
20605 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20606 rm -f conftest.tail
20607 while grep . conftest.undefs >/dev/null
20609 # Write a limited-size here document to $tmp/undefs.sed.
20610 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20611 # Speed up: don't consider the non `#undef'
20612 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20613 # Work around the forget-to-reset-the-flag bug.
20614 echo 't clr' >>$CONFIG_STATUS
20615 echo ': clr' >>$CONFIG_STATUS
20616 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20617 echo 'CEOF
20618 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20619 rm -f $tmp/in
20620 mv $tmp/out $tmp/in
20621 ' >>$CONFIG_STATUS
20622 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20623 rm -f conftest.undefs
20624 mv conftest.tail conftest.undefs
20625 done
20626 rm -f conftest.undefs
20628 cat >>$CONFIG_STATUS <<\_ACEOF
20629 # Let's still pretend it is `configure' which instantiates (i.e., don't
20630 # use $as_me), people would be surprised to read:
20631 # /* config.h. Generated by config.status. */
20632 if test x"$ac_file" = x-; then
20633 echo "/* Generated by configure. */" >$tmp/config.h
20634 else
20635 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20637 cat $tmp/in >>$tmp/config.h
20638 rm -f $tmp/in
20639 if test x"$ac_file" != x-; then
20640 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20641 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20642 echo "$as_me: $ac_file is unchanged" >&6;}
20643 else
20644 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20645 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20646 X"$ac_file" : 'X\(//\)[^/]' \| \
20647 X"$ac_file" : 'X\(//\)$' \| \
20648 X"$ac_file" : 'X\(/\)' \| \
20649 . : '\(.\)' 2>/dev/null ||
20650 echo X"$ac_file" |
20651 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20652 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20653 /^X\(\/\/\)$/{ s//\1/; q; }
20654 /^X\(\/\).*/{ s//\1/; q; }
20655 s/.*/./; q'`
20656 { if $as_mkdir_p; then
20657 mkdir -p "$ac_dir"
20658 else
20659 as_dir="$ac_dir"
20660 as_dirs=
20661 while test ! -d "$as_dir"; do
20662 as_dirs="$as_dir $as_dirs"
20663 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20664 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20665 X"$as_dir" : 'X\(//\)[^/]' \| \
20666 X"$as_dir" : 'X\(//\)$' \| \
20667 X"$as_dir" : 'X\(/\)' \| \
20668 . : '\(.\)' 2>/dev/null ||
20669 echo X"$as_dir" |
20670 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20671 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20672 /^X\(\/\/\)$/{ s//\1/; q; }
20673 /^X\(\/\).*/{ s//\1/; q; }
20674 s/.*/./; q'`
20675 done
20676 test ! -n "$as_dirs" || mkdir $as_dirs
20677 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20678 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20679 { (exit 1); exit 1; }; }; }
20681 rm -f $ac_file
20682 mv $tmp/config.h $ac_file
20684 else
20685 cat $tmp/config.h
20686 rm -f $tmp/config.h
20688 # Compute $ac_file's index in $config_headers.
20689 _am_stamp_count=1
20690 for _am_header in $config_headers :; do
20691 case $_am_header in
20692 $ac_file | $ac_file:* )
20693 break ;;
20695 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20696 esac
20697 done
20698 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20699 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20700 X$ac_file : 'X\(//\)[^/]' \| \
20701 X$ac_file : 'X\(//\)$' \| \
20702 X$ac_file : 'X\(/\)' \| \
20703 . : '\(.\)' 2>/dev/null ||
20704 echo X$ac_file |
20705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20706 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20707 /^X\(\/\/\)$/{ s//\1/; q; }
20708 /^X\(\/\).*/{ s//\1/; q; }
20709 s/.*/./; q'`/stamp-h$_am_stamp_count
20710 done
20711 _ACEOF
20712 cat >>$CONFIG_STATUS <<\_ACEOF
20715 # CONFIG_COMMANDS section.
20717 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20718 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20719 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20720 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20721 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20722 X"$ac_dest" : 'X\(//\)[^/]' \| \
20723 X"$ac_dest" : 'X\(//\)$' \| \
20724 X"$ac_dest" : 'X\(/\)' \| \
20725 . : '\(.\)' 2>/dev/null ||
20726 echo X"$ac_dest" |
20727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20728 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20729 /^X\(\/\/\)$/{ s//\1/; q; }
20730 /^X\(\/\).*/{ s//\1/; q; }
20731 s/.*/./; q'`
20732 { if $as_mkdir_p; then
20733 mkdir -p "$ac_dir"
20734 else
20735 as_dir="$ac_dir"
20736 as_dirs=
20737 while test ! -d "$as_dir"; do
20738 as_dirs="$as_dir $as_dirs"
20739 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20740 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20741 X"$as_dir" : 'X\(//\)[^/]' \| \
20742 X"$as_dir" : 'X\(//\)$' \| \
20743 X"$as_dir" : 'X\(/\)' \| \
20744 . : '\(.\)' 2>/dev/null ||
20745 echo X"$as_dir" |
20746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20747 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20748 /^X\(\/\/\)$/{ s//\1/; q; }
20749 /^X\(\/\).*/{ s//\1/; q; }
20750 s/.*/./; q'`
20751 done
20752 test ! -n "$as_dirs" || mkdir $as_dirs
20753 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20754 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20755 { (exit 1); exit 1; }; }; }
20757 ac_builddir=.
20759 if test "$ac_dir" != .; then
20760 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20761 # A "../" for each directory in $ac_dir_suffix.
20762 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20763 else
20764 ac_dir_suffix= ac_top_builddir=
20767 case $srcdir in
20768 .) # No --srcdir option. We are building in place.
20769 ac_srcdir=.
20770 if test -z "$ac_top_builddir"; then
20771 ac_top_srcdir=.
20772 else
20773 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20774 fi ;;
20775 [\\/]* | ?:[\\/]* ) # Absolute path.
20776 ac_srcdir=$srcdir$ac_dir_suffix;
20777 ac_top_srcdir=$srcdir ;;
20778 *) # Relative path.
20779 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20780 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20781 esac
20783 # Do not use `cd foo && pwd` to compute absolute paths, because
20784 # the directories may not exist.
20785 case `pwd` in
20786 .) ac_abs_builddir="$ac_dir";;
20788 case "$ac_dir" in
20789 .) ac_abs_builddir=`pwd`;;
20790 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20791 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20792 esac;;
20793 esac
20794 case $ac_abs_builddir in
20795 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20797 case ${ac_top_builddir}. in
20798 .) ac_abs_top_builddir=$ac_abs_builddir;;
20799 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20800 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20801 esac;;
20802 esac
20803 case $ac_abs_builddir in
20804 .) ac_abs_srcdir=$ac_srcdir;;
20806 case $ac_srcdir in
20807 .) ac_abs_srcdir=$ac_abs_builddir;;
20808 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20809 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20810 esac;;
20811 esac
20812 case $ac_abs_builddir in
20813 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20815 case $ac_top_srcdir in
20816 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20817 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20818 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20819 esac;;
20820 esac
20823 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20824 echo "$as_me: executing $ac_dest commands" >&6;}
20825 case $ac_dest in
20826 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20827 # Strip MF so we end up with the name of the file.
20828 mf=`echo "$mf" | sed -e 's/:.*$//'`
20829 # Check whether this is an Automake generated Makefile or not.
20830 # We used to match only the files named `Makefile.in', but
20831 # some people rename them; so instead we look at the file content.
20832 # Grep'ing the first line is not enough: some people post-process
20833 # each Makefile.in and add a new line on top of each file to say so.
20834 # So let's grep whole file.
20835 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20836 dirpart=`(dirname "$mf") 2>/dev/null ||
20837 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20838 X"$mf" : 'X\(//\)[^/]' \| \
20839 X"$mf" : 'X\(//\)$' \| \
20840 X"$mf" : 'X\(/\)' \| \
20841 . : '\(.\)' 2>/dev/null ||
20842 echo X"$mf" |
20843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20844 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20845 /^X\(\/\/\)$/{ s//\1/; q; }
20846 /^X\(\/\).*/{ s//\1/; q; }
20847 s/.*/./; q'`
20848 else
20849 continue
20851 # Extract the definition of DEPDIR, am__include, and am__quote
20852 # from the Makefile without running `make'.
20853 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20854 test -z "$DEPDIR" && continue
20855 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20856 test -z "am__include" && continue
20857 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20858 # When using ansi2knr, U may be empty or an underscore; expand it
20859 U=`sed -n 's/^U = //p' < "$mf"`
20860 # Find all dependency output files, they are included files with
20861 # $(DEPDIR) in their names. We invoke sed twice because it is the
20862 # simplest approach to changing $(DEPDIR) to its actual value in the
20863 # expansion.
20864 for file in `sed -n "
20865 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20866 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20867 # Make sure the directory exists.
20868 test -f "$dirpart/$file" && continue
20869 fdir=`(dirname "$file") 2>/dev/null ||
20870 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20871 X"$file" : 'X\(//\)[^/]' \| \
20872 X"$file" : 'X\(//\)$' \| \
20873 X"$file" : 'X\(/\)' \| \
20874 . : '\(.\)' 2>/dev/null ||
20875 echo X"$file" |
20876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20877 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20878 /^X\(\/\/\)$/{ s//\1/; q; }
20879 /^X\(\/\).*/{ s//\1/; q; }
20880 s/.*/./; q'`
20881 { if $as_mkdir_p; then
20882 mkdir -p $dirpart/$fdir
20883 else
20884 as_dir=$dirpart/$fdir
20885 as_dirs=
20886 while test ! -d "$as_dir"; do
20887 as_dirs="$as_dir $as_dirs"
20888 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20889 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20890 X"$as_dir" : 'X\(//\)[^/]' \| \
20891 X"$as_dir" : 'X\(//\)$' \| \
20892 X"$as_dir" : 'X\(/\)' \| \
20893 . : '\(.\)' 2>/dev/null ||
20894 echo X"$as_dir" |
20895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20896 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20897 /^X\(\/\/\)$/{ s//\1/; q; }
20898 /^X\(\/\).*/{ s//\1/; q; }
20899 s/.*/./; q'`
20900 done
20901 test ! -n "$as_dirs" || mkdir $as_dirs
20902 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20903 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20904 { (exit 1); exit 1; }; }; }
20906 # echo "creating $dirpart/$file"
20907 echo '# dummy' > "$dirpart/$file"
20908 done
20909 done
20911 default-1 )
20912 for ac_file in $CONFIG_FILES; do
20913 # Support "outfile[:infile[:infile...]]"
20914 case "$ac_file" in
20915 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20916 esac
20917 # PO directories have a Makefile.in generated from Makefile.in.in.
20918 case "$ac_file" in */Makefile.in)
20919 # Adjust a relative srcdir.
20920 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
20921 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
20922 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
20923 # In autoconf-2.13 it is called $ac_given_srcdir.
20924 # In autoconf-2.50 it is called $srcdir.
20925 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
20926 case "$ac_given_srcdir" in
20927 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
20928 /*) top_srcdir="$ac_given_srcdir" ;;
20929 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
20930 esac
20931 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
20932 rm -f "$ac_dir/POTFILES"
20933 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
20934 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
20935 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
20936 # on $ac_dir but don't depend on user-specified configuration
20937 # parameters.
20938 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
20939 # The LINGUAS file contains the set of available languages.
20940 if test -n "$ALL_LINGUAS"; then
20941 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
20943 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
20944 # Hide the ALL_LINGUAS assigment from automake.
20945 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
20947 case "$ac_given_srcdir" in
20948 .) srcdirpre= ;;
20949 *) srcdirpre='$(srcdir)/' ;;
20950 esac
20951 POFILES=
20952 GMOFILES=
20953 UPDATEPOFILES=
20954 DUMMYPOFILES=
20955 for lang in $ALL_LINGUAS; do
20956 POFILES="$POFILES $srcdirpre$lang.po"
20957 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
20958 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
20959 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
20960 done
20961 # CATALOGS depends on both $ac_dir and the user's LINGUAS
20962 # environment variable.
20963 INST_LINGUAS=
20964 if test -n "$ALL_LINGUAS"; then
20965 for presentlang in $ALL_LINGUAS; do
20966 useit=no
20967 if test "%UNSET%" != "$LINGUAS"; then
20968 desiredlanguages="$LINGUAS"
20969 else
20970 desiredlanguages="$ALL_LINGUAS"
20972 for desiredlang in $desiredlanguages; do
20973 # Use the presentlang catalog if desiredlang is
20974 # a. equal to presentlang, or
20975 # b. a variant of presentlang (because in this case,
20976 # presentlang can be used as a fallback for messages
20977 # which are not translated in the desiredlang catalog).
20978 case "$desiredlang" in
20979 "$presentlang"*) useit=yes;;
20980 esac
20981 done
20982 if test $useit = yes; then
20983 INST_LINGUAS="$INST_LINGUAS $presentlang"
20985 done
20987 CATALOGS=
20988 if test -n "$INST_LINGUAS"; then
20989 for lang in $INST_LINGUAS; do
20990 CATALOGS="$CATALOGS $lang.gmo"
20991 done
20993 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
20994 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"
20995 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
20996 if test -f "$f"; then
20997 case "$f" in
20998 *.orig | *.bak | *~) ;;
20999 *) cat "$f" >> "$ac_dir/Makefile" ;;
21000 esac
21002 done
21005 esac
21006 done ;;
21007 denoiser ) if test $denoiserlevel -gt 0; then
21008 if test ! -d src/utils/scripts; then mkdir -p src/utils/scripts; fi
21009 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" \
21010 $srcdir/src/utils/scripts/denoiser.rules > src/utils/scripts/denoiser.sed
21011 for i in `find . -name 'Makefile' -print`; do
21012 if test -n "`head -n 1 $i | grep '^#'`"; then
21013 sed -f src/utils/scripts/denoiser.sed $i > $i.tmp && mv $i.tmp $i
21015 done
21016 fi ;;
21017 esac
21018 done
21019 _ACEOF
21021 cat >>$CONFIG_STATUS <<\_ACEOF
21023 { (exit 0); exit 0; }
21024 _ACEOF
21025 chmod +x $CONFIG_STATUS
21026 ac_clean_files=$ac_clean_files_save
21029 # configure is writing to config.log, and then calls config.status.
21030 # config.status does its own redirection, appending to config.log.
21031 # Unfortunately, on DOS this fails, as config.log is still kept open
21032 # by configure, so config.status won't be able to write to it; its
21033 # output is simply discarded. So we exec the FD to /dev/null,
21034 # effectively closing config.log, so it can be properly (re)opened and
21035 # appended to by config.status. When coming back to configure, we
21036 # need to make the FD available again.
21037 if test "$no_create" != yes; then
21038 ac_cs_success=:
21039 ac_config_status_args=
21040 test "$silent" = yes &&
21041 ac_config_status_args="$ac_config_status_args --quiet"
21042 exec 5>/dev/null
21043 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21044 exec 5>>config.log
21045 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21046 # would make configure fail if this is the last instruction.
21047 $ac_cs_success || { (exit 1); exit 1; }
21051 if test -n "$svndate"; then
21052 SVN_REVISION=" ($svndate)"
21053 else
21054 SVN_REVISION=
21058 echo
21059 echo
21060 echo " Configure script has finished system check."
21061 echo
21062 echo " Configured aMule ${PACKAGE_VERSION}${SVN_REVISION} for '${host}'."
21063 echo
21064 echo " aMule enabled options:"
21065 echo
21066 echo " **** aMule Core ****"
21067 echo " Prefix where aMule should be installed? ${prefix:-none}"
21068 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
21069 echo " Should aMule be compiled in debug mode? ${USE_DEBUG:-no}"
21070 echo " Should aMule be compiled with profiling? ${USE_PROFILE:-no}"
21071 echo " Should aMule be compiled with optimizations? ${USE_OPTIMIZE:-no}"
21072 echo " Should aMule be compiled with UPnP support? ${ENABLE_UPNP:-yes}"
21073 echo " Should aMule be compiled with IP2country support? ${ENABLE_IP2COUNTRY:-no}"
21074 echo " Should aMule monolithic application be built? ${MONOLITHIC:-yes}"
21075 echo " Should aMule daemon version be built? ${AMULE_DAEMON:-no}"
21076 echo " Should aMule remote gui be built? (EXPERIMENTAL) ${AMULE_GUI:-no}"
21077 echo " Crypto++ library/headers style? ${CRYPTOPP_STYLE:-not found}"
21079 echo
21080 echo " **** aMule TextClient ****"
21081 echo " Should aMule Command Line Client be built? ${AMULECMD:-no}"
21082 echo
21083 echo " **** aMule WebServer ****"
21084 echo " Should aMule WebServer be built? ${WEB:-no}"
21085 echo
21086 echo " **** aMule ED2K Links Handler ****"
21087 echo " Should aMule ED2K Links Handler be built? ${ED2K:-yes}"
21088 echo
21089 echo " **** aMuleLinkCreator ****"
21090 echo " Should aMuleLinkCreator GUI version (alc) be built? ${ALC:-no}"
21091 echo " Should aMuleLinkCreator for console (alcc) be built? ${ALCC:-no}"
21092 echo
21093 echo " **** aMule Statistics ****"
21094 echo " Should C aMule Statistics (CAS) be built? ${CAS:-no}"
21095 echo " Should aMule GUI Statistics (wxCas) be built? ${WXCAS:-no}"
21096 echo " Should xas XChat2 plugin be installed? ${XAS:-yes}"
21098 echo
21099 echo " **** General Libraries and Tools ****"
21100 echo " Should ccache support be enabled? ${enable_ccache:-no}"
21101 echo " Libraries aMule will use to build:"
21102 wxinfo="$WX_PORT"
21103 if test $WX_DEBUG -eq 1; then
21104 wxinfo="$wxinfo,debug"
21107 if test $WX_SHARED -eq 1; then
21108 wxinfo="$wxinfo,shared"
21109 else
21110 wxinfo="$wxinfo,static"
21113 echo " wxWidgets ${WX_VERSION_FULL} ($wxinfo)"
21114 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (${CRYPTOPP_STYLE}, in ${CRYPTOPP_PREFIX})"
21115 if test -n "$with_libupnp_prefix"; then
21116 libupnp_place=" (in $with_libupnp_prefix)"
21119 if test x${ENABLE_UPNP} = xyes; then
21120 echo " libupnp ${LIBUPNP_VERSION:-Not detected}${libupnp_place:-}"
21123 if test x${WEB:-no} != xno; then
21124 if test $regex_found = no; then
21125 regex_found="Not detected"
21126 else
21127 if test -z "$REGEX_LIB"; then
21128 regex_found=system
21129 else
21130 regex_found="standalone (in $REGEX_LIB)"
21135 echo " regex $regex_found"
21137 if test ${enable_nls:-yes} = yes; then
21138 if test x$USE_NLS = xno; then
21139 libintl_found="Not detected"
21140 else
21141 if test x$USE_INCLUDED_LIBINTL = xyes; then
21142 libintl_found="included"
21143 else
21144 libintl_found="system"
21149 echo " libintl $libintl_found"
21151 if test -z "${with_geoip_headers:-}${with_geoip_lib:-}"; then
21152 geoip_style=system
21153 else
21154 geoip_style=user
21157 if test ${ENABLE_IP2COUNTRY:-no} = yes; then
21158 echo " libGeoIP ${geoip_style}"
21161 if test x$LIBPNG_VERSION != xnot_needed; then
21162 echo " libpng ${LIBPNG_VERSION:-Not detected}"
21164 if test x$GDLIB_VERSION != xnot_needed; then
21165 echo " libgd ${GDLIB_VERSION:-Not detected}"
21167 echo " zlib ${ZLIB_VERSION:-Not detected}"
21168 if test ${_mule_has_warnings:-no} = yes; then
21169 echo ""
21170 echo ""
21171 echo " *** Warnings during configuration ***"
21173 if test ${_mule_warning_0:-no} = yes; then
21174 cat <<_MULEEOT
21176 * gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
21177 Please check that gdlib-config is in your default path, check out
21178 LD_LIBRARY_PATH or equivalent variable.
21179 Or this might also be that your gdlib-config has other name.
21180 Please try again with --with-gdlib-config=/usr/bin/gdlib-config (replace
21181 /usr/bin/gdlib-config with a valid path to your gdlib-config).
21182 If you use compiled packages check if you have devel pack installed.
21183 To download the latest version check http://www.boutell.com/gd for sources.
21184 _MULEEOT
21186 if test ${_mule_warning_1:-no} = yes; then
21187 cat <<_MULEEOT
21189 * amuleweb has been disabled because configure could not find a POSIX
21190 compliant regex library.
21191 _MULEEOT
21193 if test ${_mule_warning_2:-no} = yes; then
21194 cat <<_MULEEOT
21196 * libpng >= 1.2.0 not found.
21197 amuleweb will be compiled but file download progress bar images will NOT be
21198 generated.
21199 _MULEEOT
21201 if test ${_mule_warning_3:-no} = yes; then
21202 cat <<_MULEEOT
21204 * Cannot link GeoIP statically, because your linker ($LD) does not support it.
21205 _MULEEOT
21207 if test ${_mule_warning_4:-no} = yes; then
21208 cat <<_MULEEOT
21210 * GeoIP support has been disabled because the GeoIP libraries were not found
21211 _MULEEOT
21213 if test ${_mule_warning_5:-no} = yes; then
21214 cat <<_MULEEOT
21216 * GeoIP support has been disabled because the GeoIP header files were not
21217 found
21218 _MULEEOT
21220 if test ${_mule_warning_6:-no} = yes; then
21221 cat <<_MULEEOT
21223 * UPnP code has been disabled because ${libupnp_error}.
21224 _MULEEOT
21226 if test ${_mule_warning_7:-no} = yes; then
21227 cat <<_MULEEOT
21229 * Cross-compilation detected, so exception handling cannot be tested.
21230 Note that broken exception handling in your compiler may lead to unexpected
21231 crashes.
21232 _MULEEOT
21234 if test ${_mule_warning_8:-no} = yes; then
21235 cat <<_MULEEOT
21237 * bfd.h not found or unusable, please install binutils development package if
21238 you are a developer or want to help testing aMule
21239 _MULEEOT
21241 if test ${_mule_warning_9:-no} = yes; then
21242 cat <<_MULEEOT
21244 * configure cannot check whether malloc() and realloc() are GNU libc
21245 compatible. You have to be ABSOLUTELY sure that they are, otherwise run
21246 configure with the --without-gnu-malloc switch.
21247 _MULEEOT
21249 if test ${_mule_warning_10:-no} = yes; then
21250 cat <<_MULEEOT
21252 * You need to install GNU gettext/gettext-tools to compile aMule with i18n
21253 support.
21254 _MULEEOT