Upstream tarball 20080609
[amule.git] / configure
blob4b8143da0ef4cce8c0f2a37f4d45da6c667fd2bb
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='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 GEOIP_CPPFLAGS GEOIP_LDFLAGS GEOIP_LIBS 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 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 ENABLE_UPNP_TRUE ENABLE_UPNP_FALSE ENABLE_IP2COUNTRY_TRUE ENABLE_IP2COUNTRY_FALSE SYS_WIN32_TRUE SYS_WIN32_FALSE NEED_RC_TRUE NEED_RC_FALSE NEED_CORESERVICES_TRUE NEED_CORESERVICES_FALSE COMPILE_NLS_TRUE COMPILE_NLS_FALSE GENERATE_FLEX_HEADER_TRUE GENERATE_FLEX_HEADER_FALSE READLINE_LIBS LTLIBOBJS'
315 ac_subst_files=''
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
355 ac_prev=
356 for ac_option
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
361 ac_prev=
362 continue
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
369 case $ac_option in
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 bindir=$ac_optarg ;;
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
388 --config-cache | -C)
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 ac_prev=datadir ;;
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
395 datadir=$ac_optarg ;;
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 *) ac_optarg=yes ;;
416 esac
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 libdir=$ac_optarg ;;
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 mandir=$ac_optarg ;;
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
488 no_create=yes ;;
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 prefix=$ac_optarg ;;
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
563 site=$ac_optarg ;;
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 srcdir=$ac_optarg ;;
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
588 -with-* | --with-*)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 *) ac_optarg=yes ;;
598 esac
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
633 *=*)
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
641 export $ac_envvar ;;
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 esac
652 done
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
663 eval ac_val=$`echo $ac_var`
664 case $ac_val in
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
668 esac
669 done
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val=$`echo $ac_var`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
680 esac
681 done
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
697 cross_compiling=yes
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
723 srcdir=$ac_confdir
724 if test ! -r $srcdir/$ac_unique_file; then
725 srcdir=..
727 else
728 ac_srcdir_defaulted=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
734 else
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CXX_set=${CXX+set}
756 ac_env_CXX_value=$CXX
757 ac_cv_env_CXX_set=${CXX+set}
758 ac_cv_env_CXX_value=$CXX
759 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
760 ac_env_CXXFLAGS_value=$CXXFLAGS
761 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
762 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CXXCPP_set=${CXXCPP+set}
772 ac_env_CXXCPP_value=$CXXCPP
773 ac_cv_env_CXXCPP_set=${CXXCPP+set}
774 ac_cv_env_CXXCPP_value=$CXXCPP
775 ac_env_CC_set=${CC+set}
776 ac_env_CC_value=$CC
777 ac_cv_env_CC_set=${CC+set}
778 ac_cv_env_CC_value=$CC
779 ac_env_CFLAGS_set=${CFLAGS+set}
780 ac_env_CFLAGS_value=$CFLAGS
781 ac_cv_env_CFLAGS_set=${CFLAGS+set}
782 ac_cv_env_CFLAGS_value=$CFLAGS
783 ac_env_CPP_set=${CPP+set}
784 ac_env_CPP_value=$CPP
785 ac_cv_env_CPP_set=${CPP+set}
786 ac_cv_env_CPP_value=$CPP
787 ac_env_RC_set=${RC+set}
788 ac_env_RC_value=$RC
789 ac_cv_env_RC_set=${RC+set}
790 ac_cv_env_RC_value=$RC
791 ac_env_RCFLAGS_set=${RCFLAGS+set}
792 ac_env_RCFLAGS_value=$RCFLAGS
793 ac_cv_env_RCFLAGS_set=${RCFLAGS+set}
794 ac_cv_env_RCFLAGS_value=$RCFLAGS
797 # Report the --help message.
799 if test "$ac_init_help" = "long"; then
800 # Omit some internal or obsolete options to make the list less imposing.
801 # This message is too long to be a string in the A/UX 3.1 sh.
802 cat <<_ACEOF
803 \`configure' configures aMule SVN to adapt to many kinds of systems.
805 Usage: $0 [OPTION]... [VAR=VALUE]...
807 To assign environment variables (e.g., CC, CFLAGS...), specify them as
808 VAR=VALUE. See below for descriptions of some of the useful variables.
810 Defaults for the options are specified in brackets.
812 Configuration:
813 -h, --help display this help and exit
814 --help=short display options specific to this package
815 --help=recursive display the short help of all the included packages
816 -V, --version display version information and exit
817 -q, --quiet, --silent do not print \`checking...' messages
818 --cache-file=FILE cache test results in FILE [disabled]
819 -C, --config-cache alias for \`--cache-file=config.cache'
820 -n, --no-create do not create output files
821 --srcdir=DIR find the sources in DIR [configure dir or \`..']
823 _ACEOF
825 cat <<_ACEOF
826 Installation directories:
827 --prefix=PREFIX install architecture-independent files in PREFIX
828 [$ac_default_prefix]
829 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
830 [PREFIX]
832 By default, \`make install' will install all the files in
833 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
834 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
835 for instance \`--prefix=\$HOME'.
837 For better control, use the options below.
839 Fine tuning of the installation directories:
840 --bindir=DIR user executables [EPREFIX/bin]
841 --sbindir=DIR system admin executables [EPREFIX/sbin]
842 --libexecdir=DIR program executables [EPREFIX/libexec]
843 --datadir=DIR read-only architecture-independent data [PREFIX/share]
844 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
845 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
846 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
847 --libdir=DIR object code libraries [EPREFIX/lib]
848 --includedir=DIR C header files [PREFIX/include]
849 --oldincludedir=DIR C header files for non-gcc [/usr/include]
850 --infodir=DIR info documentation [PREFIX/info]
851 --mandir=DIR man documentation [PREFIX/man]
852 _ACEOF
854 cat <<\_ACEOF
856 Program names:
857 --program-prefix=PREFIX prepend PREFIX to installed program names
858 --program-suffix=SUFFIX append SUFFIX to installed program names
859 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
861 X features:
862 --x-includes=DIR X include files are in DIR
863 --x-libraries=DIR X library files are in DIR
865 System types:
866 --build=BUILD configure for building on BUILD [guessed]
867 --host=HOST cross-compile to build programs to run on HOST [BUILD]
868 _ACEOF
871 if test -n "$ac_init_help"; then
872 case $ac_init_help in
873 short | recursive ) echo "Configuration of aMule SVN:";;
874 esac
875 cat <<\_ACEOF
877 Optional Features:
878 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
879 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
880 --enable-maintainer-mode enable make rules and dependencies not useful
881 (and sometimes confusing) to the casual installer
882 --disable-dependency-tracking speeds up one-time build
883 --enable-dependency-tracking do not reject slow dependency extractors
884 --disable-monolithic disable building of the monolithic aMule app
885 --enable-amule-daemon compile aMule daemon version
886 --enable-amulecmd compile aMule command line client
887 --enable-webserver compile aMule WebServer
888 --enable-amule-gui compile aMule remote GUI (EXPERIMENTAL)
889 --enable-cas compile C aMule Statistics
890 --enable-wxcas compile aMule GUI Statistics
891 --disable-ed2k don't compile aMule ed2k links handler
892 --enable-alc compile aMuleLinkCreator GUI version
893 --enable-alcc compile aMuleLinkCreator for console
894 --disable-upnp do not compile UPnP code
895 --enable-geoip compile with GeoIP IP2Country library
896 --disable-rpath do not hardcode runtime library paths
897 --disable-nls do not use Native Language Support
898 --disable-debug disable additional debugging output
899 --enable-optimize enable code optimization
900 --enable-profile enable code profiling
901 --enable-static produce a statically linked executable
902 --enable-ccache enable ccache support for fast recompilation
904 Optional Packages:
905 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
906 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
907 --with-geoip-headers=DIR
908 GeoIP include files location
909 --with-geoip-lib=DIR GeoIP library location
910 --with-geoip-static Explicitly link GeoIP statically (default=no)
911 --without-gnu-malloc Don't assume that we use GNU libc compatible
912 malloc/realloc when cross-compiling
913 --with-zlib=PREFIX use zlib in PREFIX
914 --with-gdlib-prefix=PREFIX
915 prefix where gdlib is installed (optional)
916 --with-gdlib-config=CONFIG
917 gdlib-config script to use (optional)
918 --with-libpng-prefix=PREFIX
919 prefix where libpng is installed (optional)
920 --with-libpng-config=CONFIG
921 libpng-config script to use (optional)
922 --with-wxdir=PATH Use uninstalled version of wxWidgets in PATH
923 --with-wx-config=CONFIG wx-config script to use (optional)
924 --with-wx-prefix=PREFIX Prefix where wxWidgets is installed (optional)
925 --with-wx-exec-prefix=PREFIX
926 Exec prefix where wxWidgets is installed (optional)
927 --with-toolkit Build against a specific wxWidgets toolkit (default
928 is auto)
929 --with-wxshared Force building against a shared build of wxWidgets,
930 even if --disable-shared is given (default is auto)
931 --with-wxdebug Force building against a debug build of wxWidgets,
932 even if --disable-debug is given (default is auto)
933 --with-wxversion Build against a specific version of wxWidgets
934 (default is auto)
935 --with-crypto-prefix=PREFIX
936 prefix where crypto++ is installed
937 --with-x use the X Window System
938 --with-language=<langs> Specify a comma-separated list of languages you want
939 to have installed. See po/LINGUAS for available
940 languages
941 --with-gnu-ld assume the C compiler uses GNU ld default=no
942 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
943 --without-libiconv-prefix don't search for libiconv in includedir and libdir
944 --with-included-gettext use the GNU gettext library included here
945 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
946 --without-libintl-prefix don't search for libintl in includedir and libdir
947 --with-denoise-level=<level>
948 Specifies denoising level (0-4):
949 0 - Do nothing
950 4 - Suppress all normal output
951 (for more information see
952 src/utils/scripts/denoiser.rules)
954 --with-ccache-prefix=PREFIX
955 prefix where ccache is installed
957 Some influential environment variables:
958 CXX C++ compiler command
959 CXXFLAGS C++ compiler flags
960 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
961 nonstandard directory <lib dir>
962 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
963 headers in a nonstandard directory <include dir>
964 CXXCPP C++ preprocessor
965 CC C compiler command
966 CFLAGS C compiler flags
967 CPP C preprocessor
968 RC Resource Compiler
969 RCFLAGS Resource Compiler Flags
971 Use these variables to override the choices made by `configure' or to help
972 it to find libraries and programs with nonstandard names/locations.
974 Report bugs to <admin@amule.org>.
975 _ACEOF
978 if test "$ac_init_help" = "recursive"; then
979 # If there are subdirs, report their specific --help.
980 ac_popdir=`pwd`
981 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
982 test -d $ac_dir || continue
983 ac_builddir=.
985 if test "$ac_dir" != .; then
986 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
987 # A "../" for each directory in $ac_dir_suffix.
988 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
989 else
990 ac_dir_suffix= ac_top_builddir=
993 case $srcdir in
994 .) # No --srcdir option. We are building in place.
995 ac_srcdir=.
996 if test -z "$ac_top_builddir"; then
997 ac_top_srcdir=.
998 else
999 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1000 fi ;;
1001 [\\/]* | ?:[\\/]* ) # Absolute path.
1002 ac_srcdir=$srcdir$ac_dir_suffix;
1003 ac_top_srcdir=$srcdir ;;
1004 *) # Relative path.
1005 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1006 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1007 esac
1009 # Do not use `cd foo && pwd` to compute absolute paths, because
1010 # the directories may not exist.
1011 case `pwd` in
1012 .) ac_abs_builddir="$ac_dir";;
1014 case "$ac_dir" in
1015 .) ac_abs_builddir=`pwd`;;
1016 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1017 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1018 esac;;
1019 esac
1020 case $ac_abs_builddir in
1021 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1023 case ${ac_top_builddir}. in
1024 .) ac_abs_top_builddir=$ac_abs_builddir;;
1025 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1026 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1027 esac;;
1028 esac
1029 case $ac_abs_builddir in
1030 .) ac_abs_srcdir=$ac_srcdir;;
1032 case $ac_srcdir in
1033 .) ac_abs_srcdir=$ac_abs_builddir;;
1034 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1035 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1036 esac;;
1037 esac
1038 case $ac_abs_builddir in
1039 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1041 case $ac_top_srcdir in
1042 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1043 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1044 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1045 esac;;
1046 esac
1048 cd $ac_dir
1049 # Check for guested configure; otherwise get Cygnus style configure.
1050 if test -f $ac_srcdir/configure.gnu; then
1051 echo
1052 $SHELL $ac_srcdir/configure.gnu --help=recursive
1053 elif test -f $ac_srcdir/configure; then
1054 echo
1055 $SHELL $ac_srcdir/configure --help=recursive
1056 elif test -f $ac_srcdir/configure.ac ||
1057 test -f $ac_srcdir/configure.in; then
1058 echo
1059 $ac_configure --help
1060 else
1061 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1063 cd $ac_popdir
1064 done
1067 test -n "$ac_init_help" && exit 0
1068 if $ac_init_version; then
1069 cat <<\_ACEOF
1070 aMule configure SVN
1071 generated by GNU Autoconf 2.59
1073 Copyright (C) 2003 Free Software Foundation, Inc.
1074 This configure script is free software; the Free Software Foundation
1075 gives unlimited permission to copy, distribute and modify it.
1076 _ACEOF
1077 exit 0
1079 exec 5>config.log
1080 cat >&5 <<_ACEOF
1081 This file contains any messages produced by compilers while
1082 running configure, to aid debugging if configure makes a mistake.
1084 It was created by aMule $as_me SVN, which was
1085 generated by GNU Autoconf 2.59. Invocation command line was
1087 $ $0 $@
1089 _ACEOF
1091 cat <<_ASUNAME
1092 ## --------- ##
1093 ## Platform. ##
1094 ## --------- ##
1096 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1097 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1098 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1099 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1100 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1102 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1103 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1105 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1106 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1107 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1108 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1109 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1110 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1111 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1113 _ASUNAME
1115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1116 for as_dir in $PATH
1118 IFS=$as_save_IFS
1119 test -z "$as_dir" && as_dir=.
1120 echo "PATH: $as_dir"
1121 done
1123 } >&5
1125 cat >&5 <<_ACEOF
1128 ## ----------- ##
1129 ## Core tests. ##
1130 ## ----------- ##
1132 _ACEOF
1135 # Keep a trace of the command line.
1136 # Strip out --no-create and --no-recursion so they do not pile up.
1137 # Strip out --silent because we don't want to record it for future runs.
1138 # Also quote any args containing shell meta-characters.
1139 # Make two passes to allow for proper duplicate-argument suppression.
1140 ac_configure_args=
1141 ac_configure_args0=
1142 ac_configure_args1=
1143 ac_sep=
1144 ac_must_keep_next=false
1145 for ac_pass in 1 2
1147 for ac_arg
1149 case $ac_arg in
1150 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1151 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1152 | -silent | --silent | --silen | --sile | --sil)
1153 continue ;;
1154 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1155 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1156 esac
1157 case $ac_pass in
1158 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1160 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1161 if test $ac_must_keep_next = true; then
1162 ac_must_keep_next=false # Got value, back to normal.
1163 else
1164 case $ac_arg in
1165 *=* | --config-cache | -C | -disable-* | --disable-* \
1166 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1167 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1168 | -with-* | --with-* | -without-* | --without-* | --x)
1169 case "$ac_configure_args0 " in
1170 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1171 esac
1173 -* ) ac_must_keep_next=true ;;
1174 esac
1176 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1177 # Get rid of the leading space.
1178 ac_sep=" "
1180 esac
1181 done
1182 done
1183 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1184 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1186 # When interrupted or exit'd, cleanup temporary files, and complete
1187 # config.log. We remove comments because anyway the quotes in there
1188 # would cause problems or look ugly.
1189 # WARNING: Be sure not to use single quotes in there, as some shells,
1190 # such as our DU 5.0 friend, will then `close' the trap.
1191 trap 'exit_status=$?
1192 # Save into config.log some information that might help in debugging.
1194 echo
1196 cat <<\_ASBOX
1197 ## ---------------- ##
1198 ## Cache variables. ##
1199 ## ---------------- ##
1200 _ASBOX
1201 echo
1202 # The following way of writing the cache mishandles newlines in values,
1204 (set) 2>&1 |
1205 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1206 *ac_space=\ *)
1207 sed -n \
1208 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1209 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1212 sed -n \
1213 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1215 esac;
1217 echo
1219 cat <<\_ASBOX
1220 ## ----------------- ##
1221 ## Output variables. ##
1222 ## ----------------- ##
1223 _ASBOX
1224 echo
1225 for ac_var in $ac_subst_vars
1227 eval ac_val=$`echo $ac_var`
1228 echo "$ac_var='"'"'$ac_val'"'"'"
1229 done | sort
1230 echo
1232 if test -n "$ac_subst_files"; then
1233 cat <<\_ASBOX
1234 ## ------------- ##
1235 ## Output files. ##
1236 ## ------------- ##
1237 _ASBOX
1238 echo
1239 for ac_var in $ac_subst_files
1241 eval ac_val=$`echo $ac_var`
1242 echo "$ac_var='"'"'$ac_val'"'"'"
1243 done | sort
1244 echo
1247 if test -s confdefs.h; then
1248 cat <<\_ASBOX
1249 ## ----------- ##
1250 ## confdefs.h. ##
1251 ## ----------- ##
1252 _ASBOX
1253 echo
1254 sed "/^$/d" confdefs.h | sort
1255 echo
1257 test "$ac_signal" != 0 &&
1258 echo "$as_me: caught signal $ac_signal"
1259 echo "$as_me: exit $exit_status"
1260 } >&5
1261 rm -f core *.core &&
1262 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1263 exit $exit_status
1265 for ac_signal in 1 2 13 15; do
1266 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1267 done
1268 ac_signal=0
1270 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1271 rm -rf conftest* confdefs.h
1272 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1273 echo >confdefs.h
1275 # Predefined preprocessor variables.
1277 cat >>confdefs.h <<_ACEOF
1278 #define PACKAGE_NAME "$PACKAGE_NAME"
1279 _ACEOF
1282 cat >>confdefs.h <<_ACEOF
1283 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1284 _ACEOF
1287 cat >>confdefs.h <<_ACEOF
1288 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1289 _ACEOF
1292 cat >>confdefs.h <<_ACEOF
1293 #define PACKAGE_STRING "$PACKAGE_STRING"
1294 _ACEOF
1297 cat >>confdefs.h <<_ACEOF
1298 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1299 _ACEOF
1302 # Let the site file select an alternate cache file if it wants to.
1303 # Prefer explicitly selected file to automatically selected ones.
1304 if test -z "$CONFIG_SITE"; then
1305 if test "x$prefix" != xNONE; then
1306 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1307 else
1308 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1311 for ac_site_file in $CONFIG_SITE; do
1312 if test -r "$ac_site_file"; then
1313 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1314 echo "$as_me: loading site script $ac_site_file" >&6;}
1315 sed 's/^/| /' "$ac_site_file" >&5
1316 . "$ac_site_file"
1318 done
1320 if test -r "$cache_file"; then
1321 # Some versions of bash will fail to source /dev/null (special
1322 # files actually), so we avoid doing that.
1323 if test -f "$cache_file"; then
1324 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1325 echo "$as_me: loading cache $cache_file" >&6;}
1326 case $cache_file in
1327 [\\/]* | ?:[\\/]* ) . $cache_file;;
1328 *) . ./$cache_file;;
1329 esac
1331 else
1332 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1333 echo "$as_me: creating cache $cache_file" >&6;}
1334 >$cache_file
1337 # Check that the precious variables saved in the cache have kept the same
1338 # value.
1339 ac_cache_corrupted=false
1340 for ac_var in `(set) 2>&1 |
1341 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1342 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1343 eval ac_new_set=\$ac_env_${ac_var}_set
1344 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1345 eval ac_new_val="\$ac_env_${ac_var}_value"
1346 case $ac_old_set,$ac_new_set in
1347 set,)
1348 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1349 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1350 ac_cache_corrupted=: ;;
1351 ,set)
1352 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1353 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1354 ac_cache_corrupted=: ;;
1355 ,);;
1357 if test "x$ac_old_val" != "x$ac_new_val"; then
1358 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1359 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1360 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1361 echo "$as_me: former value: $ac_old_val" >&2;}
1362 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1363 echo "$as_me: current value: $ac_new_val" >&2;}
1364 ac_cache_corrupted=:
1365 fi;;
1366 esac
1367 # Pass precious variables to config.status.
1368 if test "$ac_new_set" = set; then
1369 case $ac_new_val in
1370 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1371 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1372 *) ac_arg=$ac_var=$ac_new_val ;;
1373 esac
1374 case " $ac_configure_args " in
1375 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1376 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1377 esac
1379 done
1380 if $ac_cache_corrupted; then
1381 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1382 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1383 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1384 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1385 { (exit 1); exit 1; }; }
1388 ac_ext=c
1389 ac_cpp='$CPP $CPPFLAGS'
1390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1420 am__api_version="1.9"
1421 ac_aux_dir=
1422 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1423 if test -f $ac_dir/install-sh; then
1424 ac_aux_dir=$ac_dir
1425 ac_install_sh="$ac_aux_dir/install-sh -c"
1426 break
1427 elif test -f $ac_dir/install.sh; then
1428 ac_aux_dir=$ac_dir
1429 ac_install_sh="$ac_aux_dir/install.sh -c"
1430 break
1431 elif test -f $ac_dir/shtool; then
1432 ac_aux_dir=$ac_dir
1433 ac_install_sh="$ac_aux_dir/shtool install -c"
1434 break
1436 done
1437 if test -z "$ac_aux_dir"; then
1438 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1439 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1440 { (exit 1); exit 1; }; }
1442 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1443 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1444 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1446 # Find a good install program. We prefer a C program (faster),
1447 # so one script is as good as another. But avoid the broken or
1448 # incompatible versions:
1449 # SysV /etc/install, /usr/sbin/install
1450 # SunOS /usr/etc/install
1451 # IRIX /sbin/install
1452 # AIX /bin/install
1453 # AmigaOS /C/install, which installs bootblocks on floppy discs
1454 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1455 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1456 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1457 # OS/2's system install, which has a completely different semantic
1458 # ./install, which can be erroneously created by make from ./install.sh.
1459 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1460 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1461 if test -z "$INSTALL"; then
1462 if test "${ac_cv_path_install+set}" = set; then
1463 echo $ECHO_N "(cached) $ECHO_C" >&6
1464 else
1465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1466 for as_dir in $PATH
1468 IFS=$as_save_IFS
1469 test -z "$as_dir" && as_dir=.
1470 # Account for people who put trailing slashes in PATH elements.
1471 case $as_dir/ in
1472 ./ | .// | /cC/* | \
1473 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1474 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1475 /usr/ucb/* ) ;;
1477 # OSF1 and SCO ODT 3.0 have their own names for install.
1478 # Don't use installbsd from OSF since it installs stuff as root
1479 # by default.
1480 for ac_prog in ginstall scoinst install; do
1481 for ac_exec_ext in '' $ac_executable_extensions; do
1482 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1483 if test $ac_prog = install &&
1484 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1485 # AIX install. It has an incompatible calling convention.
1487 elif test $ac_prog = install &&
1488 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1489 # program-specific install script used by HP pwplus--don't use.
1491 else
1492 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1493 break 3
1496 done
1497 done
1499 esac
1500 done
1504 if test "${ac_cv_path_install+set}" = set; then
1505 INSTALL=$ac_cv_path_install
1506 else
1507 # As a last resort, use the slow shell script. We don't cache a
1508 # path for INSTALL within a source directory, because that will
1509 # break other packages using the cache if that directory is
1510 # removed, or if the path is relative.
1511 INSTALL=$ac_install_sh
1514 echo "$as_me:$LINENO: result: $INSTALL" >&5
1515 echo "${ECHO_T}$INSTALL" >&6
1517 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1518 # It thinks the first close brace ends the variable substitution.
1519 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1521 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1523 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1525 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1526 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1527 # Just in case
1528 sleep 1
1529 echo timestamp > conftest.file
1530 # Do `set' in a subshell so we don't clobber the current shell's
1531 # arguments. Must try -L first in case configure is actually a
1532 # symlink; some systems play weird games with the mod time of symlinks
1533 # (eg FreeBSD returns the mod time of the symlink's containing
1534 # directory).
1535 if (
1536 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1537 if test "$*" = "X"; then
1538 # -L didn't work.
1539 set X `ls -t $srcdir/configure conftest.file`
1541 rm -f conftest.file
1542 if test "$*" != "X $srcdir/configure conftest.file" \
1543 && test "$*" != "X conftest.file $srcdir/configure"; then
1545 # If neither matched, then we have a broken ls. This can happen
1546 # if, for instance, CONFIG_SHELL is bash and it inherits a
1547 # broken ls alias from the environment. This has actually
1548 # happened. Such a system could not be considered "sane".
1549 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1550 alias in your environment" >&5
1551 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1552 alias in your environment" >&2;}
1553 { (exit 1); exit 1; }; }
1556 test "$2" = conftest.file
1558 then
1559 # Ok.
1561 else
1562 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1563 Check your system clock" >&5
1564 echo "$as_me: error: newly created file is older than distributed files!
1565 Check your system clock" >&2;}
1566 { (exit 1); exit 1; }; }
1568 echo "$as_me:$LINENO: result: yes" >&5
1569 echo "${ECHO_T}yes" >&6
1570 test "$program_prefix" != NONE &&
1571 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1572 # Use a double $ so make ignores it.
1573 test "$program_suffix" != NONE &&
1574 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1575 # Double any \ or $. echo might interpret backslashes.
1576 # By default was `s,x,x', remove it if useless.
1577 cat <<\_ACEOF >conftest.sed
1578 s/[\\$]/&&/g;s/;s,x,x,$//
1579 _ACEOF
1580 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1581 rm conftest.sed
1583 # expand $ac_aux_dir to an absolute path
1584 am_aux_dir=`cd $ac_aux_dir && pwd`
1586 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1587 # Use eval to expand $SHELL
1588 if eval "$MISSING --run true"; then
1589 am_missing_run="$MISSING --run "
1590 else
1591 am_missing_run=
1592 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1593 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1596 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1597 # We used to keeping the `.' as first argument, in order to
1598 # allow $(mkdir_p) to be used without argument. As in
1599 # $(mkdir_p) $(somedir)
1600 # where $(somedir) is conditionally defined. However this is wrong
1601 # for two reasons:
1602 # 1. if the package is installed by a user who cannot write `.'
1603 # make install will fail,
1604 # 2. the above comment should most certainly read
1605 # $(mkdir_p) $(DESTDIR)$(somedir)
1606 # so it does not work when $(somedir) is undefined and
1607 # $(DESTDIR) is not.
1608 # To support the latter case, we have to write
1609 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1610 # so the `.' trick is pointless.
1611 mkdir_p='mkdir -p --'
1612 else
1613 # On NextStep and OpenStep, the `mkdir' command does not
1614 # recognize any option. It will interpret all options as
1615 # directories to create, and then abort because `.' already
1616 # exists.
1617 for d in ./-p ./--version;
1619 test -d $d && rmdir $d
1620 done
1621 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1622 if test -f "$ac_aux_dir/mkinstalldirs"; then
1623 mkdir_p='$(mkinstalldirs)'
1624 else
1625 mkdir_p='$(install_sh) -d'
1629 for ac_prog in gawk mawk nawk awk
1631 # Extract the first word of "$ac_prog", so it can be a program name with args.
1632 set dummy $ac_prog; ac_word=$2
1633 echo "$as_me:$LINENO: checking for $ac_word" >&5
1634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1635 if test "${ac_cv_prog_AWK+set}" = set; then
1636 echo $ECHO_N "(cached) $ECHO_C" >&6
1637 else
1638 if test -n "$AWK"; then
1639 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1640 else
1641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642 for as_dir in $PATH
1644 IFS=$as_save_IFS
1645 test -z "$as_dir" && as_dir=.
1646 for ac_exec_ext in '' $ac_executable_extensions; do
1647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1648 ac_cv_prog_AWK="$ac_prog"
1649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1650 break 2
1652 done
1653 done
1657 AWK=$ac_cv_prog_AWK
1658 if test -n "$AWK"; then
1659 echo "$as_me:$LINENO: result: $AWK" >&5
1660 echo "${ECHO_T}$AWK" >&6
1661 else
1662 echo "$as_me:$LINENO: result: no" >&5
1663 echo "${ECHO_T}no" >&6
1666 test -n "$AWK" && break
1667 done
1669 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1670 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1671 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1672 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1673 echo $ECHO_N "(cached) $ECHO_C" >&6
1674 else
1675 cat >conftest.make <<\_ACEOF
1676 all:
1677 @echo 'ac_maketemp="$(MAKE)"'
1678 _ACEOF
1679 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1680 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1681 if test -n "$ac_maketemp"; then
1682 eval ac_cv_prog_make_${ac_make}_set=yes
1683 else
1684 eval ac_cv_prog_make_${ac_make}_set=no
1686 rm -f conftest.make
1688 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1689 echo "$as_me:$LINENO: result: yes" >&5
1690 echo "${ECHO_T}yes" >&6
1691 SET_MAKE=
1692 else
1693 echo "$as_me:$LINENO: result: no" >&5
1694 echo "${ECHO_T}no" >&6
1695 SET_MAKE="MAKE=${MAKE-make}"
1698 rm -rf .tst 2>/dev/null
1699 mkdir .tst 2>/dev/null
1700 if test -d .tst; then
1701 am__leading_dot=.
1702 else
1703 am__leading_dot=_
1705 rmdir .tst 2>/dev/null
1707 # test to see if srcdir already configured
1708 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1709 test -f $srcdir/config.status; then
1710 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1711 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1712 { (exit 1); exit 1; }; }
1715 # test whether we have cygpath
1716 if test -z "$CYGPATH_W"; then
1717 if (cygpath --version) >/dev/null 2>/dev/null; then
1718 CYGPATH_W='cygpath -w'
1719 else
1720 CYGPATH_W=echo
1725 # Define the identity of the package.
1726 PACKAGE='amule'
1727 VERSION='SVN'
1730 cat >>confdefs.h <<_ACEOF
1731 #define PACKAGE "$PACKAGE"
1732 _ACEOF
1735 cat >>confdefs.h <<_ACEOF
1736 #define VERSION "$VERSION"
1737 _ACEOF
1739 # Some tools Automake needs.
1741 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1744 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1747 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1750 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1753 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1755 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1757 # Installed binaries are usually stripped using `strip' when the user
1758 # run `make install-strip'. However `strip' might not be the right
1759 # tool to use in cross-compilation environments, therefore Automake
1760 # will honor the `STRIP' environment variable to overrule this program.
1761 if test "$cross_compiling" != no; then
1762 if test -n "$ac_tool_prefix"; then
1763 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1764 set dummy ${ac_tool_prefix}strip; ac_word=$2
1765 echo "$as_me:$LINENO: checking for $ac_word" >&5
1766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1767 if test "${ac_cv_prog_STRIP+set}" = set; then
1768 echo $ECHO_N "(cached) $ECHO_C" >&6
1769 else
1770 if test -n "$STRIP"; then
1771 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1772 else
1773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1774 for as_dir in $PATH
1776 IFS=$as_save_IFS
1777 test -z "$as_dir" && as_dir=.
1778 for ac_exec_ext in '' $ac_executable_extensions; do
1779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1780 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1782 break 2
1784 done
1785 done
1789 STRIP=$ac_cv_prog_STRIP
1790 if test -n "$STRIP"; then
1791 echo "$as_me:$LINENO: result: $STRIP" >&5
1792 echo "${ECHO_T}$STRIP" >&6
1793 else
1794 echo "$as_me:$LINENO: result: no" >&5
1795 echo "${ECHO_T}no" >&6
1799 if test -z "$ac_cv_prog_STRIP"; then
1800 ac_ct_STRIP=$STRIP
1801 # Extract the first word of "strip", so it can be a program name with args.
1802 set dummy strip; ac_word=$2
1803 echo "$as_me:$LINENO: checking for $ac_word" >&5
1804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1805 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1806 echo $ECHO_N "(cached) $ECHO_C" >&6
1807 else
1808 if test -n "$ac_ct_STRIP"; then
1809 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1810 else
1811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1812 for as_dir in $PATH
1814 IFS=$as_save_IFS
1815 test -z "$as_dir" && as_dir=.
1816 for ac_exec_ext in '' $ac_executable_extensions; do
1817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1818 ac_cv_prog_ac_ct_STRIP="strip"
1819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1820 break 2
1822 done
1823 done
1825 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1828 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1829 if test -n "$ac_ct_STRIP"; then
1830 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1831 echo "${ECHO_T}$ac_ct_STRIP" >&6
1832 else
1833 echo "$as_me:$LINENO: result: no" >&5
1834 echo "${ECHO_T}no" >&6
1837 STRIP=$ac_ct_STRIP
1838 else
1839 STRIP="$ac_cv_prog_STRIP"
1843 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1845 # We need awk for the "check" target. The system "awk" is bad on
1846 # some platforms.
1847 # Always define AMTAR for backward compatibility.
1849 AMTAR=${AMTAR-"${am_missing_run}tar"}
1851 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1859 ac_config_headers="$ac_config_headers config.h"
1861 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1862 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1863 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1864 if test "${enable_maintainer_mode+set}" = set; then
1865 enableval="$enable_maintainer_mode"
1866 USE_MAINTAINER_MODE=$enableval
1867 else
1868 USE_MAINTAINER_MODE=no
1870 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1871 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1874 if test $USE_MAINTAINER_MODE = yes; then
1875 MAINTAINER_MODE_TRUE=
1876 MAINTAINER_MODE_FALSE='#'
1877 else
1878 MAINTAINER_MODE_TRUE='#'
1879 MAINTAINER_MODE_FALSE=
1882 MAINT=$MAINTAINER_MODE_TRUE
1886 # Make sure we can run config.sub.
1887 $ac_config_sub sun4 >/dev/null 2>&1 ||
1888 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1889 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1890 { (exit 1); exit 1; }; }
1892 echo "$as_me:$LINENO: checking build system type" >&5
1893 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1894 if test "${ac_cv_build+set}" = set; then
1895 echo $ECHO_N "(cached) $ECHO_C" >&6
1896 else
1897 ac_cv_build_alias=$build_alias
1898 test -z "$ac_cv_build_alias" &&
1899 ac_cv_build_alias=`$ac_config_guess`
1900 test -z "$ac_cv_build_alias" &&
1901 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1902 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1903 { (exit 1); exit 1; }; }
1904 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1905 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1906 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1907 { (exit 1); exit 1; }; }
1910 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1911 echo "${ECHO_T}$ac_cv_build" >&6
1912 build=$ac_cv_build
1913 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1914 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1915 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1918 echo "$as_me:$LINENO: checking host system type" >&5
1919 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1920 if test "${ac_cv_host+set}" = set; then
1921 echo $ECHO_N "(cached) $ECHO_C" >&6
1922 else
1923 ac_cv_host_alias=$host_alias
1924 test -z "$ac_cv_host_alias" &&
1925 ac_cv_host_alias=$ac_cv_build_alias
1926 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1927 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1928 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1929 { (exit 1); exit 1; }; }
1932 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1933 echo "${ECHO_T}$ac_cv_host" >&6
1934 host=$ac_cv_host
1935 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1936 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1937 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1941 case "${host_os}" in
1942 darwin*)
1943 SYS=darwin
1944 MULECPPFLAGS="-no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH";
1945 MULELDFLAGS="-bind_at_load"
1946 touch src/Scanner.cpp
1948 openbsd*)
1949 SYS=openbsd
1950 LIBS="$LIBS -L/usr/local/lib"
1951 X11LIBS="-lX11 -L/usr/X11R6/lib"
1952 MULECPPFLAGS="-D__OPENBSD__"
1954 *cygwin* | *mingw32*)
1955 SYS=win32
1956 MULECPPFLAGS="-DNOMINMAX"
1958 solaris*)
1959 SYS=solaris
1960 RESOLV_LIB="-lresolv -lnsl"
1961 X11LIBS="-lX11"
1962 LIBS="$LIBS -lrt"
1964 *netbsd*)
1965 SYS=netbsd
1966 # Now this is against autoconf recommendation that configure should not modify CPPFLAGS and LDFLAGS
1967 # However, these values in NetBSD are required even to run the tests, and this is the easiest way to do it.
1968 # Still, we prepend them, instead of adding, so the user may override them.
1969 CPPFLAGS="-I/usr/pkg/include $CPPFLAGS"
1970 LDFLAGS="-R/usr/pkg/lib -L/usr/pkg/lib $LDFLAGS"
1973 SYS=unknown
1975 esac
1977 # -lpthread is needed by Debian but FreeBSD < 5 doesn't support it
1978 if test ${SYS:-unknown} != win32; then
1980 echo "$as_me:$LINENO: checking if this is a FreeBSD 4 or earlier system" >&5
1981 echo $ECHO_N "checking if this is a FreeBSD 4 or earlier system... $ECHO_C" >&6
1982 if test x"`uname -s`" = xFreeBSD && test 0`uname -r | cut -c 1` -lt 5; then
1984 MULELDFLAGS="$MULELDFLAGS -pthread"
1985 echo "$as_me:$LINENO: result: yes" >&5
1986 echo "${ECHO_T}yes" >&6
1988 else
1990 MULELDFLAGS="$MULELDFLAGS -lpthread"
1991 echo "$as_me:$LINENO: result: no" >&5
1992 echo "${ECHO_T}no" >&6
2002 mule_backup_CFLAGS="$CFLAGS"
2003 mule_backup_CXXFLAGS="$CXXFLAGS"
2004 mule_backup_BUILD_CFLAGS="$BUILD_CFLAGS"
2005 ac_ext=cc
2006 ac_cpp='$CXXCPP $CPPFLAGS'
2007 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2008 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2009 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2010 if test -n "$ac_tool_prefix"; then
2011 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2013 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2014 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2015 echo "$as_me:$LINENO: checking for $ac_word" >&5
2016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2017 if test "${ac_cv_prog_CXX+set}" = set; then
2018 echo $ECHO_N "(cached) $ECHO_C" >&6
2019 else
2020 if test -n "$CXX"; then
2021 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2022 else
2023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024 for as_dir in $PATH
2026 IFS=$as_save_IFS
2027 test -z "$as_dir" && as_dir=.
2028 for ac_exec_ext in '' $ac_executable_extensions; do
2029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2030 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2032 break 2
2034 done
2035 done
2039 CXX=$ac_cv_prog_CXX
2040 if test -n "$CXX"; then
2041 echo "$as_me:$LINENO: result: $CXX" >&5
2042 echo "${ECHO_T}$CXX" >&6
2043 else
2044 echo "$as_me:$LINENO: result: no" >&5
2045 echo "${ECHO_T}no" >&6
2048 test -n "$CXX" && break
2049 done
2051 if test -z "$CXX"; then
2052 ac_ct_CXX=$CXX
2053 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2055 # Extract the first word of "$ac_prog", so it can be a program name with args.
2056 set dummy $ac_prog; ac_word=$2
2057 echo "$as_me:$LINENO: checking for $ac_word" >&5
2058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2059 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2060 echo $ECHO_N "(cached) $ECHO_C" >&6
2061 else
2062 if test -n "$ac_ct_CXX"; then
2063 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2064 else
2065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066 for as_dir in $PATH
2068 IFS=$as_save_IFS
2069 test -z "$as_dir" && as_dir=.
2070 for ac_exec_ext in '' $ac_executable_extensions; do
2071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2072 ac_cv_prog_ac_ct_CXX="$ac_prog"
2073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2074 break 2
2076 done
2077 done
2081 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2082 if test -n "$ac_ct_CXX"; then
2083 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2084 echo "${ECHO_T}$ac_ct_CXX" >&6
2085 else
2086 echo "$as_me:$LINENO: result: no" >&5
2087 echo "${ECHO_T}no" >&6
2090 test -n "$ac_ct_CXX" && break
2091 done
2092 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2094 CXX=$ac_ct_CXX
2098 # Provide some information about the compiler.
2099 echo "$as_me:$LINENO:" \
2100 "checking for C++ compiler version" >&5
2101 ac_compiler=`set X $ac_compile; echo $2`
2102 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2103 (eval $ac_compiler --version </dev/null >&5) 2>&5
2104 ac_status=$?
2105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106 (exit $ac_status); }
2107 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2108 (eval $ac_compiler -v </dev/null >&5) 2>&5
2109 ac_status=$?
2110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111 (exit $ac_status); }
2112 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2113 (eval $ac_compiler -V </dev/null >&5) 2>&5
2114 ac_status=$?
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); }
2118 cat >conftest.$ac_ext <<_ACEOF
2119 /* confdefs.h. */
2120 _ACEOF
2121 cat confdefs.h >>conftest.$ac_ext
2122 cat >>conftest.$ac_ext <<_ACEOF
2123 /* end confdefs.h. */
2126 main ()
2130 return 0;
2132 _ACEOF
2133 ac_clean_files_save=$ac_clean_files
2134 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2135 # Try to create an executable without -o first, disregard a.out.
2136 # It will help us diagnose broken compilers, and finding out an intuition
2137 # of exeext.
2138 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2139 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2140 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2141 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2142 (eval $ac_link_default) 2>&5
2143 ac_status=$?
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); }; then
2146 # Find the output, starting from the most likely. This scheme is
2147 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2148 # resort.
2150 # Be careful to initialize this variable, since it used to be cached.
2151 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2152 ac_cv_exeext=
2153 # b.out is created by i960 compilers.
2154 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2156 test -f "$ac_file" || continue
2157 case $ac_file in
2158 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2160 conftest.$ac_ext )
2161 # This is the source file.
2163 [ab].out )
2164 # We found the default executable, but exeext='' is most
2165 # certainly right.
2166 break;;
2167 *.* )
2168 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2169 # FIXME: I believe we export ac_cv_exeext for Libtool,
2170 # but it would be cool to find out if it's true. Does anybody
2171 # maintain Libtool? --akim.
2172 export ac_cv_exeext
2173 break;;
2175 break;;
2176 esac
2177 done
2178 else
2179 echo "$as_me: failed program was:" >&5
2180 sed 's/^/| /' conftest.$ac_ext >&5
2182 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2183 See \`config.log' for more details." >&5
2184 echo "$as_me: error: C++ compiler cannot create executables
2185 See \`config.log' for more details." >&2;}
2186 { (exit 77); exit 77; }; }
2189 ac_exeext=$ac_cv_exeext
2190 echo "$as_me:$LINENO: result: $ac_file" >&5
2191 echo "${ECHO_T}$ac_file" >&6
2193 # Check the compiler produces executables we can run. If not, either
2194 # the compiler is broken, or we cross compile.
2195 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2196 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2197 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2198 # If not cross compiling, check that we can run a simple program.
2199 if test "$cross_compiling" != yes; then
2200 if { ac_try='./$ac_file'
2201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2202 (eval $ac_try) 2>&5
2203 ac_status=$?
2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205 (exit $ac_status); }; }; then
2206 cross_compiling=no
2207 else
2208 if test "$cross_compiling" = maybe; then
2209 cross_compiling=yes
2210 else
2211 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2212 If you meant to cross compile, use \`--host'.
2213 See \`config.log' for more details." >&5
2214 echo "$as_me: error: cannot run C++ compiled programs.
2215 If you meant to cross compile, use \`--host'.
2216 See \`config.log' for more details." >&2;}
2217 { (exit 1); exit 1; }; }
2221 echo "$as_me:$LINENO: result: yes" >&5
2222 echo "${ECHO_T}yes" >&6
2224 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2225 ac_clean_files=$ac_clean_files_save
2226 # Check the compiler produces executables we can run. If not, either
2227 # the compiler is broken, or we cross compile.
2228 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2229 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2230 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2231 echo "${ECHO_T}$cross_compiling" >&6
2233 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2234 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2236 (eval $ac_link) 2>&5
2237 ac_status=$?
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }; then
2240 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2241 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2242 # work properly (i.e., refer to `conftest.exe'), while it won't with
2243 # `rm'.
2244 for ac_file in conftest.exe conftest conftest.*; do
2245 test -f "$ac_file" || continue
2246 case $ac_file in
2247 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2248 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2249 export ac_cv_exeext
2250 break;;
2251 * ) break;;
2252 esac
2253 done
2254 else
2255 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2256 See \`config.log' for more details." >&5
2257 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2258 See \`config.log' for more details." >&2;}
2259 { (exit 1); exit 1; }; }
2262 rm -f conftest$ac_cv_exeext
2263 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2264 echo "${ECHO_T}$ac_cv_exeext" >&6
2266 rm -f conftest.$ac_ext
2267 EXEEXT=$ac_cv_exeext
2268 ac_exeext=$EXEEXT
2269 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2270 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2271 if test "${ac_cv_objext+set}" = set; then
2272 echo $ECHO_N "(cached) $ECHO_C" >&6
2273 else
2274 cat >conftest.$ac_ext <<_ACEOF
2275 /* confdefs.h. */
2276 _ACEOF
2277 cat confdefs.h >>conftest.$ac_ext
2278 cat >>conftest.$ac_ext <<_ACEOF
2279 /* end confdefs.h. */
2282 main ()
2286 return 0;
2288 _ACEOF
2289 rm -f conftest.o conftest.obj
2290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2291 (eval $ac_compile) 2>&5
2292 ac_status=$?
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); }; then
2295 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2296 case $ac_file in
2297 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2298 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2299 break;;
2300 esac
2301 done
2302 else
2303 echo "$as_me: failed program was:" >&5
2304 sed 's/^/| /' conftest.$ac_ext >&5
2306 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2307 See \`config.log' for more details." >&5
2308 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2309 See \`config.log' for more details." >&2;}
2310 { (exit 1); exit 1; }; }
2313 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2315 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2316 echo "${ECHO_T}$ac_cv_objext" >&6
2317 OBJEXT=$ac_cv_objext
2318 ac_objext=$OBJEXT
2319 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2320 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2321 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2322 echo $ECHO_N "(cached) $ECHO_C" >&6
2323 else
2324 cat >conftest.$ac_ext <<_ACEOF
2325 /* confdefs.h. */
2326 _ACEOF
2327 cat confdefs.h >>conftest.$ac_ext
2328 cat >>conftest.$ac_ext <<_ACEOF
2329 /* end confdefs.h. */
2332 main ()
2334 #ifndef __GNUC__
2335 choke me
2336 #endif
2339 return 0;
2341 _ACEOF
2342 rm -f conftest.$ac_objext
2343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2344 (eval $ac_compile) 2>conftest.er1
2345 ac_status=$?
2346 grep -v '^ *+' conftest.er1 >conftest.err
2347 rm -f conftest.er1
2348 cat conftest.err >&5
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); } &&
2351 { ac_try='test -z "$ac_cxx_werror_flag"
2352 || test ! -s conftest.err'
2353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2354 (eval $ac_try) 2>&5
2355 ac_status=$?
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }; } &&
2358 { ac_try='test -s conftest.$ac_objext'
2359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360 (eval $ac_try) 2>&5
2361 ac_status=$?
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }; }; then
2364 ac_compiler_gnu=yes
2365 else
2366 echo "$as_me: failed program was:" >&5
2367 sed 's/^/| /' conftest.$ac_ext >&5
2369 ac_compiler_gnu=no
2371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2372 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2375 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2376 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2377 GXX=`test $ac_compiler_gnu = yes && echo yes`
2378 ac_test_CXXFLAGS=${CXXFLAGS+set}
2379 ac_save_CXXFLAGS=$CXXFLAGS
2380 CXXFLAGS="-g"
2381 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2382 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2383 if test "${ac_cv_prog_cxx_g+set}" = set; then
2384 echo $ECHO_N "(cached) $ECHO_C" >&6
2385 else
2386 cat >conftest.$ac_ext <<_ACEOF
2387 /* confdefs.h. */
2388 _ACEOF
2389 cat confdefs.h >>conftest.$ac_ext
2390 cat >>conftest.$ac_ext <<_ACEOF
2391 /* end confdefs.h. */
2394 main ()
2398 return 0;
2400 _ACEOF
2401 rm -f conftest.$ac_objext
2402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2403 (eval $ac_compile) 2>conftest.er1
2404 ac_status=$?
2405 grep -v '^ *+' conftest.er1 >conftest.err
2406 rm -f conftest.er1
2407 cat conftest.err >&5
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); } &&
2410 { ac_try='test -z "$ac_cxx_werror_flag"
2411 || test ! -s conftest.err'
2412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413 (eval $ac_try) 2>&5
2414 ac_status=$?
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }; } &&
2417 { ac_try='test -s conftest.$ac_objext'
2418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419 (eval $ac_try) 2>&5
2420 ac_status=$?
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); }; }; then
2423 ac_cv_prog_cxx_g=yes
2424 else
2425 echo "$as_me: failed program was:" >&5
2426 sed 's/^/| /' conftest.$ac_ext >&5
2428 ac_cv_prog_cxx_g=no
2430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2432 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2433 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2434 if test "$ac_test_CXXFLAGS" = set; then
2435 CXXFLAGS=$ac_save_CXXFLAGS
2436 elif test $ac_cv_prog_cxx_g = yes; then
2437 if test "$GXX" = yes; then
2438 CXXFLAGS="-g -O2"
2439 else
2440 CXXFLAGS="-g"
2442 else
2443 if test "$GXX" = yes; then
2444 CXXFLAGS="-O2"
2445 else
2446 CXXFLAGS=
2449 for ac_declaration in \
2450 '' \
2451 'extern "C" void std::exit (int) throw (); using std::exit;' \
2452 'extern "C" void std::exit (int); using std::exit;' \
2453 'extern "C" void exit (int) throw ();' \
2454 'extern "C" void exit (int);' \
2455 'void exit (int);'
2457 cat >conftest.$ac_ext <<_ACEOF
2458 /* confdefs.h. */
2459 _ACEOF
2460 cat confdefs.h >>conftest.$ac_ext
2461 cat >>conftest.$ac_ext <<_ACEOF
2462 /* end confdefs.h. */
2463 $ac_declaration
2464 #include <stdlib.h>
2466 main ()
2468 exit (42);
2470 return 0;
2472 _ACEOF
2473 rm -f conftest.$ac_objext
2474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2475 (eval $ac_compile) 2>conftest.er1
2476 ac_status=$?
2477 grep -v '^ *+' conftest.er1 >conftest.err
2478 rm -f conftest.er1
2479 cat conftest.err >&5
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); } &&
2482 { ac_try='test -z "$ac_cxx_werror_flag"
2483 || test ! -s conftest.err'
2484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2485 (eval $ac_try) 2>&5
2486 ac_status=$?
2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 (exit $ac_status); }; } &&
2489 { ac_try='test -s conftest.$ac_objext'
2490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2491 (eval $ac_try) 2>&5
2492 ac_status=$?
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); }; }; then
2496 else
2497 echo "$as_me: failed program was:" >&5
2498 sed 's/^/| /' conftest.$ac_ext >&5
2500 continue
2502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2503 cat >conftest.$ac_ext <<_ACEOF
2504 /* confdefs.h. */
2505 _ACEOF
2506 cat confdefs.h >>conftest.$ac_ext
2507 cat >>conftest.$ac_ext <<_ACEOF
2508 /* end confdefs.h. */
2509 $ac_declaration
2511 main ()
2513 exit (42);
2515 return 0;
2517 _ACEOF
2518 rm -f conftest.$ac_objext
2519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2520 (eval $ac_compile) 2>conftest.er1
2521 ac_status=$?
2522 grep -v '^ *+' conftest.er1 >conftest.err
2523 rm -f conftest.er1
2524 cat conftest.err >&5
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); } &&
2527 { ac_try='test -z "$ac_cxx_werror_flag"
2528 || test ! -s conftest.err'
2529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2530 (eval $ac_try) 2>&5
2531 ac_status=$?
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }; } &&
2534 { ac_try='test -s conftest.$ac_objext'
2535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2536 (eval $ac_try) 2>&5
2537 ac_status=$?
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }; }; then
2540 break
2541 else
2542 echo "$as_me: failed program was:" >&5
2543 sed 's/^/| /' conftest.$ac_ext >&5
2546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2547 done
2548 rm -f conftest*
2549 if test -n "$ac_declaration"; then
2550 echo '#ifdef __cplusplus' >>confdefs.h
2551 echo $ac_declaration >>confdefs.h
2552 echo '#endif' >>confdefs.h
2555 ac_ext=c
2556 ac_cpp='$CPP $CPPFLAGS'
2557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2560 DEPDIR="${am__leading_dot}deps"
2562 ac_config_commands="$ac_config_commands depfiles"
2565 am_make=${MAKE-make}
2566 cat > confinc << 'END'
2567 am__doit:
2568 @echo done
2569 .PHONY: am__doit
2571 # If we don't find an include directive, just comment out the code.
2572 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2573 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2574 am__include="#"
2575 am__quote=
2576 _am_result=none
2577 # First try GNU make style include.
2578 echo "include confinc" > confmf
2579 # We grep out `Entering directory' and `Leaving directory'
2580 # messages which can occur if `w' ends up in MAKEFLAGS.
2581 # In particular we don't look at `^make:' because GNU make might
2582 # be invoked under some other name (usually "gmake"), in which
2583 # case it prints its new name instead of `make'.
2584 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2585 am__include=include
2586 am__quote=
2587 _am_result=GNU
2589 # Now try BSD make style include.
2590 if test "$am__include" = "#"; then
2591 echo '.include "confinc"' > confmf
2592 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2593 am__include=.include
2594 am__quote="\""
2595 _am_result=BSD
2600 echo "$as_me:$LINENO: result: $_am_result" >&5
2601 echo "${ECHO_T}$_am_result" >&6
2602 rm -f confinc confmf
2604 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2605 if test "${enable_dependency_tracking+set}" = set; then
2606 enableval="$enable_dependency_tracking"
2609 if test "x$enable_dependency_tracking" != xno; then
2610 am_depcomp="$ac_aux_dir/depcomp"
2611 AMDEPBACKSLASH='\'
2615 if test "x$enable_dependency_tracking" != xno; then
2616 AMDEP_TRUE=
2617 AMDEP_FALSE='#'
2618 else
2619 AMDEP_TRUE='#'
2620 AMDEP_FALSE=
2626 depcc="$CXX" am_compiler_list=
2628 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2629 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2630 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2631 echo $ECHO_N "(cached) $ECHO_C" >&6
2632 else
2633 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2634 # We make a subdir and do the tests there. Otherwise we can end up
2635 # making bogus files that we don't know about and never remove. For
2636 # instance it was reported that on HP-UX the gcc test will end up
2637 # making a dummy file named `D' -- because `-MD' means `put the output
2638 # in D'.
2639 mkdir conftest.dir
2640 # Copy depcomp to subdir because otherwise we won't find it if we're
2641 # using a relative directory.
2642 cp "$am_depcomp" conftest.dir
2643 cd conftest.dir
2644 # We will build objects and dependencies in a subdirectory because
2645 # it helps to detect inapplicable dependency modes. For instance
2646 # both Tru64's cc and ICC support -MD to output dependencies as a
2647 # side effect of compilation, but ICC will put the dependencies in
2648 # the current directory while Tru64 will put them in the object
2649 # directory.
2650 mkdir sub
2652 am_cv_CXX_dependencies_compiler_type=none
2653 if test "$am_compiler_list" = ""; then
2654 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2656 for depmode in $am_compiler_list; do
2657 # Setup a source with many dependencies, because some compilers
2658 # like to wrap large dependency lists on column 80 (with \), and
2659 # we should not choose a depcomp mode which is confused by this.
2661 # We need to recreate these files for each test, as the compiler may
2662 # overwrite some of them when testing with obscure command lines.
2663 # This happens at least with the AIX C compiler.
2664 : > sub/conftest.c
2665 for i in 1 2 3 4 5 6; do
2666 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2667 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2668 # Solaris 8's {/usr,}/bin/sh.
2669 touch sub/conftst$i.h
2670 done
2671 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2673 case $depmode in
2674 nosideeffect)
2675 # after this tag, mechanisms are not by side-effect, so they'll
2676 # only be used when explicitly requested
2677 if test "x$enable_dependency_tracking" = xyes; then
2678 continue
2679 else
2680 break
2683 none) break ;;
2684 esac
2685 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2686 # mode. It turns out that the SunPro C++ compiler does not properly
2687 # handle `-M -o', and we need to detect this.
2688 if depmode=$depmode \
2689 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2690 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2691 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2692 >/dev/null 2>conftest.err &&
2693 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2694 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2695 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2696 # icc doesn't choke on unknown options, it will just issue warnings
2697 # or remarks (even with -Werror). So we grep stderr for any message
2698 # that says an option was ignored or not supported.
2699 # When given -MP, icc 7.0 and 7.1 complain thusly:
2700 # icc: Command line warning: ignoring option '-M'; no argument required
2701 # The diagnosis changed in icc 8.0:
2702 # icc: Command line remark: option '-MP' not supported
2703 if (grep 'ignoring option' conftest.err ||
2704 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2705 am_cv_CXX_dependencies_compiler_type=$depmode
2706 break
2709 done
2711 cd ..
2712 rm -rf conftest.dir
2713 else
2714 am_cv_CXX_dependencies_compiler_type=none
2718 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2719 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2720 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2725 test "x$enable_dependency_tracking" != xno \
2726 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2727 am__fastdepCXX_TRUE=
2728 am__fastdepCXX_FALSE='#'
2729 else
2730 am__fastdepCXX_TRUE='#'
2731 am__fastdepCXX_FALSE=
2735 ac_ext=cc
2736 ac_cpp='$CXXCPP $CPPFLAGS'
2737 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2738 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2739 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2740 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2741 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2742 if test -z "$CXXCPP"; then
2743 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2744 echo $ECHO_N "(cached) $ECHO_C" >&6
2745 else
2746 # Double quotes because CXXCPP needs to be expanded
2747 for CXXCPP in "$CXX -E" "/lib/cpp"
2749 ac_preproc_ok=false
2750 for ac_cxx_preproc_warn_flag in '' yes
2752 # Use a header file that comes with gcc, so configuring glibc
2753 # with a fresh cross-compiler works.
2754 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2755 # <limits.h> exists even on freestanding compilers.
2756 # On the NeXT, cc -E runs the code through the compiler's parser,
2757 # not just through cpp. "Syntax error" is here to catch this case.
2758 cat >conftest.$ac_ext <<_ACEOF
2759 /* confdefs.h. */
2760 _ACEOF
2761 cat confdefs.h >>conftest.$ac_ext
2762 cat >>conftest.$ac_ext <<_ACEOF
2763 /* end confdefs.h. */
2764 #ifdef __STDC__
2765 # include <limits.h>
2766 #else
2767 # include <assert.h>
2768 #endif
2769 Syntax error
2770 _ACEOF
2771 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2772 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2773 ac_status=$?
2774 grep -v '^ *+' conftest.er1 >conftest.err
2775 rm -f conftest.er1
2776 cat conftest.err >&5
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); } >/dev/null; then
2779 if test -s conftest.err; then
2780 ac_cpp_err=$ac_cxx_preproc_warn_flag
2781 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2782 else
2783 ac_cpp_err=
2785 else
2786 ac_cpp_err=yes
2788 if test -z "$ac_cpp_err"; then
2790 else
2791 echo "$as_me: failed program was:" >&5
2792 sed 's/^/| /' conftest.$ac_ext >&5
2794 # Broken: fails on valid input.
2795 continue
2797 rm -f conftest.err conftest.$ac_ext
2799 # OK, works on sane cases. Now check whether non-existent headers
2800 # can be detected and how.
2801 cat >conftest.$ac_ext <<_ACEOF
2802 /* confdefs.h. */
2803 _ACEOF
2804 cat confdefs.h >>conftest.$ac_ext
2805 cat >>conftest.$ac_ext <<_ACEOF
2806 /* end confdefs.h. */
2807 #include <ac_nonexistent.h>
2808 _ACEOF
2809 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2810 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2811 ac_status=$?
2812 grep -v '^ *+' conftest.er1 >conftest.err
2813 rm -f conftest.er1
2814 cat conftest.err >&5
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); } >/dev/null; then
2817 if test -s conftest.err; then
2818 ac_cpp_err=$ac_cxx_preproc_warn_flag
2819 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2820 else
2821 ac_cpp_err=
2823 else
2824 ac_cpp_err=yes
2826 if test -z "$ac_cpp_err"; then
2827 # Broken: success on invalid input.
2828 continue
2829 else
2830 echo "$as_me: failed program was:" >&5
2831 sed 's/^/| /' conftest.$ac_ext >&5
2833 # Passes both tests.
2834 ac_preproc_ok=:
2835 break
2837 rm -f conftest.err conftest.$ac_ext
2839 done
2840 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2841 rm -f conftest.err conftest.$ac_ext
2842 if $ac_preproc_ok; then
2843 break
2846 done
2847 ac_cv_prog_CXXCPP=$CXXCPP
2850 CXXCPP=$ac_cv_prog_CXXCPP
2851 else
2852 ac_cv_prog_CXXCPP=$CXXCPP
2854 echo "$as_me:$LINENO: result: $CXXCPP" >&5
2855 echo "${ECHO_T}$CXXCPP" >&6
2856 ac_preproc_ok=false
2857 for ac_cxx_preproc_warn_flag in '' yes
2859 # Use a header file that comes with gcc, so configuring glibc
2860 # with a fresh cross-compiler works.
2861 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2862 # <limits.h> exists even on freestanding compilers.
2863 # On the NeXT, cc -E runs the code through the compiler's parser,
2864 # not just through cpp. "Syntax error" is here to catch this case.
2865 cat >conftest.$ac_ext <<_ACEOF
2866 /* confdefs.h. */
2867 _ACEOF
2868 cat confdefs.h >>conftest.$ac_ext
2869 cat >>conftest.$ac_ext <<_ACEOF
2870 /* end confdefs.h. */
2871 #ifdef __STDC__
2872 # include <limits.h>
2873 #else
2874 # include <assert.h>
2875 #endif
2876 Syntax error
2877 _ACEOF
2878 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2879 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2880 ac_status=$?
2881 grep -v '^ *+' conftest.er1 >conftest.err
2882 rm -f conftest.er1
2883 cat conftest.err >&5
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); } >/dev/null; then
2886 if test -s conftest.err; then
2887 ac_cpp_err=$ac_cxx_preproc_warn_flag
2888 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2889 else
2890 ac_cpp_err=
2892 else
2893 ac_cpp_err=yes
2895 if test -z "$ac_cpp_err"; then
2897 else
2898 echo "$as_me: failed program was:" >&5
2899 sed 's/^/| /' conftest.$ac_ext >&5
2901 # Broken: fails on valid input.
2902 continue
2904 rm -f conftest.err conftest.$ac_ext
2906 # OK, works on sane cases. Now check whether non-existent headers
2907 # can be detected and how.
2908 cat >conftest.$ac_ext <<_ACEOF
2909 /* confdefs.h. */
2910 _ACEOF
2911 cat confdefs.h >>conftest.$ac_ext
2912 cat >>conftest.$ac_ext <<_ACEOF
2913 /* end confdefs.h. */
2914 #include <ac_nonexistent.h>
2915 _ACEOF
2916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2918 ac_status=$?
2919 grep -v '^ *+' conftest.er1 >conftest.err
2920 rm -f conftest.er1
2921 cat conftest.err >&5
2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923 (exit $ac_status); } >/dev/null; then
2924 if test -s conftest.err; then
2925 ac_cpp_err=$ac_cxx_preproc_warn_flag
2926 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2927 else
2928 ac_cpp_err=
2930 else
2931 ac_cpp_err=yes
2933 if test -z "$ac_cpp_err"; then
2934 # Broken: success on invalid input.
2935 continue
2936 else
2937 echo "$as_me: failed program was:" >&5
2938 sed 's/^/| /' conftest.$ac_ext >&5
2940 # Passes both tests.
2941 ac_preproc_ok=:
2942 break
2944 rm -f conftest.err conftest.$ac_ext
2946 done
2947 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2948 rm -f conftest.err conftest.$ac_ext
2949 if $ac_preproc_ok; then
2951 else
2952 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2953 See \`config.log' for more details." >&5
2954 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2955 See \`config.log' for more details." >&2;}
2956 { (exit 1); exit 1; }; }
2959 ac_ext=c
2960 ac_cpp='$CPP $CPPFLAGS'
2961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2965 ac_ext=c
2966 ac_cpp='$CPP $CPPFLAGS'
2967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2970 if test -n "$ac_tool_prefix"; then
2971 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2972 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2973 echo "$as_me:$LINENO: checking for $ac_word" >&5
2974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2975 if test "${ac_cv_prog_CC+set}" = set; then
2976 echo $ECHO_N "(cached) $ECHO_C" >&6
2977 else
2978 if test -n "$CC"; then
2979 ac_cv_prog_CC="$CC" # Let the user override the test.
2980 else
2981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982 for as_dir in $PATH
2984 IFS=$as_save_IFS
2985 test -z "$as_dir" && as_dir=.
2986 for ac_exec_ext in '' $ac_executable_extensions; do
2987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2988 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2990 break 2
2992 done
2993 done
2997 CC=$ac_cv_prog_CC
2998 if test -n "$CC"; then
2999 echo "$as_me:$LINENO: result: $CC" >&5
3000 echo "${ECHO_T}$CC" >&6
3001 else
3002 echo "$as_me:$LINENO: result: no" >&5
3003 echo "${ECHO_T}no" >&6
3007 if test -z "$ac_cv_prog_CC"; then
3008 ac_ct_CC=$CC
3009 # Extract the first word of "gcc", so it can be a program name with args.
3010 set dummy gcc; ac_word=$2
3011 echo "$as_me:$LINENO: checking for $ac_word" >&5
3012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3013 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3014 echo $ECHO_N "(cached) $ECHO_C" >&6
3015 else
3016 if test -n "$ac_ct_CC"; then
3017 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3018 else
3019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020 for as_dir in $PATH
3022 IFS=$as_save_IFS
3023 test -z "$as_dir" && as_dir=.
3024 for ac_exec_ext in '' $ac_executable_extensions; do
3025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3026 ac_cv_prog_ac_ct_CC="gcc"
3027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3028 break 2
3030 done
3031 done
3035 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3036 if test -n "$ac_ct_CC"; then
3037 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3038 echo "${ECHO_T}$ac_ct_CC" >&6
3039 else
3040 echo "$as_me:$LINENO: result: no" >&5
3041 echo "${ECHO_T}no" >&6
3044 CC=$ac_ct_CC
3045 else
3046 CC="$ac_cv_prog_CC"
3049 if test -z "$CC"; then
3050 if test -n "$ac_tool_prefix"; then
3051 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3052 set dummy ${ac_tool_prefix}cc; ac_word=$2
3053 echo "$as_me:$LINENO: checking for $ac_word" >&5
3054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3055 if test "${ac_cv_prog_CC+set}" = set; then
3056 echo $ECHO_N "(cached) $ECHO_C" >&6
3057 else
3058 if test -n "$CC"; then
3059 ac_cv_prog_CC="$CC" # Let the user override the test.
3060 else
3061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3062 for as_dir in $PATH
3064 IFS=$as_save_IFS
3065 test -z "$as_dir" && as_dir=.
3066 for ac_exec_ext in '' $ac_executable_extensions; do
3067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3068 ac_cv_prog_CC="${ac_tool_prefix}cc"
3069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3070 break 2
3072 done
3073 done
3077 CC=$ac_cv_prog_CC
3078 if test -n "$CC"; then
3079 echo "$as_me:$LINENO: result: $CC" >&5
3080 echo "${ECHO_T}$CC" >&6
3081 else
3082 echo "$as_me:$LINENO: result: no" >&5
3083 echo "${ECHO_T}no" >&6
3087 if test -z "$ac_cv_prog_CC"; then
3088 ac_ct_CC=$CC
3089 # Extract the first word of "cc", so it can be a program name with args.
3090 set dummy cc; ac_word=$2
3091 echo "$as_me:$LINENO: checking for $ac_word" >&5
3092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3093 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3094 echo $ECHO_N "(cached) $ECHO_C" >&6
3095 else
3096 if test -n "$ac_ct_CC"; then
3097 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3098 else
3099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100 for as_dir in $PATH
3102 IFS=$as_save_IFS
3103 test -z "$as_dir" && as_dir=.
3104 for ac_exec_ext in '' $ac_executable_extensions; do
3105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3106 ac_cv_prog_ac_ct_CC="cc"
3107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3108 break 2
3110 done
3111 done
3115 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3116 if test -n "$ac_ct_CC"; then
3117 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3118 echo "${ECHO_T}$ac_ct_CC" >&6
3119 else
3120 echo "$as_me:$LINENO: result: no" >&5
3121 echo "${ECHO_T}no" >&6
3124 CC=$ac_ct_CC
3125 else
3126 CC="$ac_cv_prog_CC"
3130 if test -z "$CC"; then
3131 # Extract the first word of "cc", so it can be a program name with args.
3132 set dummy cc; ac_word=$2
3133 echo "$as_me:$LINENO: checking for $ac_word" >&5
3134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3135 if test "${ac_cv_prog_CC+set}" = set; then
3136 echo $ECHO_N "(cached) $ECHO_C" >&6
3137 else
3138 if test -n "$CC"; then
3139 ac_cv_prog_CC="$CC" # Let the user override the test.
3140 else
3141 ac_prog_rejected=no
3142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3143 for as_dir in $PATH
3145 IFS=$as_save_IFS
3146 test -z "$as_dir" && as_dir=.
3147 for ac_exec_ext in '' $ac_executable_extensions; do
3148 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3149 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3150 ac_prog_rejected=yes
3151 continue
3153 ac_cv_prog_CC="cc"
3154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3155 break 2
3157 done
3158 done
3160 if test $ac_prog_rejected = yes; then
3161 # We found a bogon in the path, so make sure we never use it.
3162 set dummy $ac_cv_prog_CC
3163 shift
3164 if test $# != 0; then
3165 # We chose a different compiler from the bogus one.
3166 # However, it has the same basename, so the bogon will be chosen
3167 # first if we set CC to just the basename; use the full file name.
3168 shift
3169 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3174 CC=$ac_cv_prog_CC
3175 if test -n "$CC"; then
3176 echo "$as_me:$LINENO: result: $CC" >&5
3177 echo "${ECHO_T}$CC" >&6
3178 else
3179 echo "$as_me:$LINENO: result: no" >&5
3180 echo "${ECHO_T}no" >&6
3184 if test -z "$CC"; then
3185 if test -n "$ac_tool_prefix"; then
3186 for ac_prog in cl
3188 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3189 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3190 echo "$as_me:$LINENO: checking for $ac_word" >&5
3191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3192 if test "${ac_cv_prog_CC+set}" = set; then
3193 echo $ECHO_N "(cached) $ECHO_C" >&6
3194 else
3195 if test -n "$CC"; then
3196 ac_cv_prog_CC="$CC" # Let the user override the test.
3197 else
3198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199 for as_dir in $PATH
3201 IFS=$as_save_IFS
3202 test -z "$as_dir" && as_dir=.
3203 for ac_exec_ext in '' $ac_executable_extensions; do
3204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3205 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3207 break 2
3209 done
3210 done
3214 CC=$ac_cv_prog_CC
3215 if test -n "$CC"; then
3216 echo "$as_me:$LINENO: result: $CC" >&5
3217 echo "${ECHO_T}$CC" >&6
3218 else
3219 echo "$as_me:$LINENO: result: no" >&5
3220 echo "${ECHO_T}no" >&6
3223 test -n "$CC" && break
3224 done
3226 if test -z "$CC"; then
3227 ac_ct_CC=$CC
3228 for ac_prog in cl
3230 # Extract the first word of "$ac_prog", so it can be a program name with args.
3231 set dummy $ac_prog; ac_word=$2
3232 echo "$as_me:$LINENO: checking for $ac_word" >&5
3233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3234 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3235 echo $ECHO_N "(cached) $ECHO_C" >&6
3236 else
3237 if test -n "$ac_ct_CC"; then
3238 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3239 else
3240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3241 for as_dir in $PATH
3243 IFS=$as_save_IFS
3244 test -z "$as_dir" && as_dir=.
3245 for ac_exec_ext in '' $ac_executable_extensions; do
3246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3247 ac_cv_prog_ac_ct_CC="$ac_prog"
3248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3249 break 2
3251 done
3252 done
3256 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3257 if test -n "$ac_ct_CC"; then
3258 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3259 echo "${ECHO_T}$ac_ct_CC" >&6
3260 else
3261 echo "$as_me:$LINENO: result: no" >&5
3262 echo "${ECHO_T}no" >&6
3265 test -n "$ac_ct_CC" && break
3266 done
3268 CC=$ac_ct_CC
3274 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3275 See \`config.log' for more details." >&5
3276 echo "$as_me: error: no acceptable C compiler found in \$PATH
3277 See \`config.log' for more details." >&2;}
3278 { (exit 1); exit 1; }; }
3280 # Provide some information about the compiler.
3281 echo "$as_me:$LINENO:" \
3282 "checking for C compiler version" >&5
3283 ac_compiler=`set X $ac_compile; echo $2`
3284 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3285 (eval $ac_compiler --version </dev/null >&5) 2>&5
3286 ac_status=$?
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); }
3289 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3290 (eval $ac_compiler -v </dev/null >&5) 2>&5
3291 ac_status=$?
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); }
3294 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3295 (eval $ac_compiler -V </dev/null >&5) 2>&5
3296 ac_status=$?
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); }
3300 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3301 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3302 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
3304 else
3305 cat >conftest.$ac_ext <<_ACEOF
3306 /* confdefs.h. */
3307 _ACEOF
3308 cat confdefs.h >>conftest.$ac_ext
3309 cat >>conftest.$ac_ext <<_ACEOF
3310 /* end confdefs.h. */
3313 main ()
3315 #ifndef __GNUC__
3316 choke me
3317 #endif
3320 return 0;
3322 _ACEOF
3323 rm -f conftest.$ac_objext
3324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3325 (eval $ac_compile) 2>conftest.er1
3326 ac_status=$?
3327 grep -v '^ *+' conftest.er1 >conftest.err
3328 rm -f conftest.er1
3329 cat conftest.err >&5
3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); } &&
3332 { ac_try='test -z "$ac_c_werror_flag"
3333 || test ! -s conftest.err'
3334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3335 (eval $ac_try) 2>&5
3336 ac_status=$?
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); }; } &&
3339 { ac_try='test -s conftest.$ac_objext'
3340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3341 (eval $ac_try) 2>&5
3342 ac_status=$?
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); }; }; then
3345 ac_compiler_gnu=yes
3346 else
3347 echo "$as_me: failed program was:" >&5
3348 sed 's/^/| /' conftest.$ac_ext >&5
3350 ac_compiler_gnu=no
3352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3353 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3356 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3357 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3358 GCC=`test $ac_compiler_gnu = yes && echo yes`
3359 ac_test_CFLAGS=${CFLAGS+set}
3360 ac_save_CFLAGS=$CFLAGS
3361 CFLAGS="-g"
3362 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3363 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3364 if test "${ac_cv_prog_cc_g+set}" = set; then
3365 echo $ECHO_N "(cached) $ECHO_C" >&6
3366 else
3367 cat >conftest.$ac_ext <<_ACEOF
3368 /* confdefs.h. */
3369 _ACEOF
3370 cat confdefs.h >>conftest.$ac_ext
3371 cat >>conftest.$ac_ext <<_ACEOF
3372 /* end confdefs.h. */
3375 main ()
3379 return 0;
3381 _ACEOF
3382 rm -f conftest.$ac_objext
3383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3384 (eval $ac_compile) 2>conftest.er1
3385 ac_status=$?
3386 grep -v '^ *+' conftest.er1 >conftest.err
3387 rm -f conftest.er1
3388 cat conftest.err >&5
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); } &&
3391 { ac_try='test -z "$ac_c_werror_flag"
3392 || test ! -s conftest.err'
3393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3394 (eval $ac_try) 2>&5
3395 ac_status=$?
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); }; } &&
3398 { ac_try='test -s conftest.$ac_objext'
3399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3400 (eval $ac_try) 2>&5
3401 ac_status=$?
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); }; }; then
3404 ac_cv_prog_cc_g=yes
3405 else
3406 echo "$as_me: failed program was:" >&5
3407 sed 's/^/| /' conftest.$ac_ext >&5
3409 ac_cv_prog_cc_g=no
3411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3413 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3414 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3415 if test "$ac_test_CFLAGS" = set; then
3416 CFLAGS=$ac_save_CFLAGS
3417 elif test $ac_cv_prog_cc_g = yes; then
3418 if test "$GCC" = yes; then
3419 CFLAGS="-g -O2"
3420 else
3421 CFLAGS="-g"
3423 else
3424 if test "$GCC" = yes; then
3425 CFLAGS="-O2"
3426 else
3427 CFLAGS=
3430 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3431 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3432 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3433 echo $ECHO_N "(cached) $ECHO_C" >&6
3434 else
3435 ac_cv_prog_cc_stdc=no
3436 ac_save_CC=$CC
3437 cat >conftest.$ac_ext <<_ACEOF
3438 /* confdefs.h. */
3439 _ACEOF
3440 cat confdefs.h >>conftest.$ac_ext
3441 cat >>conftest.$ac_ext <<_ACEOF
3442 /* end confdefs.h. */
3443 #include <stdarg.h>
3444 #include <stdio.h>
3445 #include <sys/types.h>
3446 #include <sys/stat.h>
3447 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3448 struct buf { int x; };
3449 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3450 static char *e (p, i)
3451 char **p;
3452 int i;
3454 return p[i];
3456 static char *f (char * (*g) (char **, int), char **p, ...)
3458 char *s;
3459 va_list v;
3460 va_start (v,p);
3461 s = g (p, va_arg (v,int));
3462 va_end (v);
3463 return s;
3466 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3467 function prototypes and stuff, but not '\xHH' hex character constants.
3468 These don't provoke an error unfortunately, instead are silently treated
3469 as 'x'. The following induces an error, until -std1 is added to get
3470 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3471 array size at least. It's necessary to write '\x00'==0 to get something
3472 that's true only with -std1. */
3473 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3475 int test (int i, double x);
3476 struct s1 {int (*f) (int a);};
3477 struct s2 {int (*f) (double a);};
3478 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3479 int argc;
3480 char **argv;
3482 main ()
3484 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3486 return 0;
3488 _ACEOF
3489 # Don't try gcc -ansi; that turns off useful extensions and
3490 # breaks some systems' header files.
3491 # AIX -qlanglvl=ansi
3492 # Ultrix and OSF/1 -std1
3493 # HP-UX 10.20 and later -Ae
3494 # HP-UX older versions -Aa -D_HPUX_SOURCE
3495 # SVR4 -Xc -D__EXTENSIONS__
3496 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3498 CC="$ac_save_CC $ac_arg"
3499 rm -f conftest.$ac_objext
3500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3501 (eval $ac_compile) 2>conftest.er1
3502 ac_status=$?
3503 grep -v '^ *+' conftest.er1 >conftest.err
3504 rm -f conftest.er1
3505 cat conftest.err >&5
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); } &&
3508 { ac_try='test -z "$ac_c_werror_flag"
3509 || test ! -s conftest.err'
3510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3511 (eval $ac_try) 2>&5
3512 ac_status=$?
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); }; } &&
3515 { ac_try='test -s conftest.$ac_objext'
3516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517 (eval $ac_try) 2>&5
3518 ac_status=$?
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); }; }; then
3521 ac_cv_prog_cc_stdc=$ac_arg
3522 break
3523 else
3524 echo "$as_me: failed program was:" >&5
3525 sed 's/^/| /' conftest.$ac_ext >&5
3528 rm -f conftest.err conftest.$ac_objext
3529 done
3530 rm -f conftest.$ac_ext conftest.$ac_objext
3531 CC=$ac_save_CC
3535 case "x$ac_cv_prog_cc_stdc" in
3536 x|xno)
3537 echo "$as_me:$LINENO: result: none needed" >&5
3538 echo "${ECHO_T}none needed" >&6 ;;
3540 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3541 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3542 CC="$CC $ac_cv_prog_cc_stdc" ;;
3543 esac
3545 # Some people use a C++ compiler to compile C. Since we use `exit',
3546 # in C++ we need to declare it. In case someone uses the same compiler
3547 # for both compiling C and C++ we need to have the C++ compiler decide
3548 # the declaration of exit, since it's the most demanding environment.
3549 cat >conftest.$ac_ext <<_ACEOF
3550 #ifndef __cplusplus
3551 choke me
3552 #endif
3553 _ACEOF
3554 rm -f conftest.$ac_objext
3555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3556 (eval $ac_compile) 2>conftest.er1
3557 ac_status=$?
3558 grep -v '^ *+' conftest.er1 >conftest.err
3559 rm -f conftest.er1
3560 cat conftest.err >&5
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); } &&
3563 { ac_try='test -z "$ac_c_werror_flag"
3564 || test ! -s conftest.err'
3565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3566 (eval $ac_try) 2>&5
3567 ac_status=$?
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); }; } &&
3570 { ac_try='test -s conftest.$ac_objext'
3571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3572 (eval $ac_try) 2>&5
3573 ac_status=$?
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); }; }; then
3576 for ac_declaration in \
3577 '' \
3578 'extern "C" void std::exit (int) throw (); using std::exit;' \
3579 'extern "C" void std::exit (int); using std::exit;' \
3580 'extern "C" void exit (int) throw ();' \
3581 'extern "C" void exit (int);' \
3582 'void exit (int);'
3584 cat >conftest.$ac_ext <<_ACEOF
3585 /* confdefs.h. */
3586 _ACEOF
3587 cat confdefs.h >>conftest.$ac_ext
3588 cat >>conftest.$ac_ext <<_ACEOF
3589 /* end confdefs.h. */
3590 $ac_declaration
3591 #include <stdlib.h>
3593 main ()
3595 exit (42);
3597 return 0;
3599 _ACEOF
3600 rm -f conftest.$ac_objext
3601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3602 (eval $ac_compile) 2>conftest.er1
3603 ac_status=$?
3604 grep -v '^ *+' conftest.er1 >conftest.err
3605 rm -f conftest.er1
3606 cat conftest.err >&5
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); } &&
3609 { ac_try='test -z "$ac_c_werror_flag"
3610 || test ! -s conftest.err'
3611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612 (eval $ac_try) 2>&5
3613 ac_status=$?
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); }; } &&
3616 { ac_try='test -s conftest.$ac_objext'
3617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3618 (eval $ac_try) 2>&5
3619 ac_status=$?
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); }; }; then
3623 else
3624 echo "$as_me: failed program was:" >&5
3625 sed 's/^/| /' conftest.$ac_ext >&5
3627 continue
3629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3630 cat >conftest.$ac_ext <<_ACEOF
3631 /* confdefs.h. */
3632 _ACEOF
3633 cat confdefs.h >>conftest.$ac_ext
3634 cat >>conftest.$ac_ext <<_ACEOF
3635 /* end confdefs.h. */
3636 $ac_declaration
3638 main ()
3640 exit (42);
3642 return 0;
3644 _ACEOF
3645 rm -f conftest.$ac_objext
3646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3647 (eval $ac_compile) 2>conftest.er1
3648 ac_status=$?
3649 grep -v '^ *+' conftest.er1 >conftest.err
3650 rm -f conftest.er1
3651 cat conftest.err >&5
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); } &&
3654 { ac_try='test -z "$ac_c_werror_flag"
3655 || test ! -s conftest.err'
3656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3657 (eval $ac_try) 2>&5
3658 ac_status=$?
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); }; } &&
3661 { ac_try='test -s conftest.$ac_objext'
3662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3663 (eval $ac_try) 2>&5
3664 ac_status=$?
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); }; }; then
3667 break
3668 else
3669 echo "$as_me: failed program was:" >&5
3670 sed 's/^/| /' conftest.$ac_ext >&5
3673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3674 done
3675 rm -f conftest*
3676 if test -n "$ac_declaration"; then
3677 echo '#ifdef __cplusplus' >>confdefs.h
3678 echo $ac_declaration >>confdefs.h
3679 echo '#endif' >>confdefs.h
3682 else
3683 echo "$as_me: failed program was:" >&5
3684 sed 's/^/| /' conftest.$ac_ext >&5
3687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3688 ac_ext=c
3689 ac_cpp='$CPP $CPPFLAGS'
3690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3694 depcc="$CC" am_compiler_list=
3696 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3697 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3698 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3700 else
3701 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3702 # We make a subdir and do the tests there. Otherwise we can end up
3703 # making bogus files that we don't know about and never remove. For
3704 # instance it was reported that on HP-UX the gcc test will end up
3705 # making a dummy file named `D' -- because `-MD' means `put the output
3706 # in D'.
3707 mkdir conftest.dir
3708 # Copy depcomp to subdir because otherwise we won't find it if we're
3709 # using a relative directory.
3710 cp "$am_depcomp" conftest.dir
3711 cd conftest.dir
3712 # We will build objects and dependencies in a subdirectory because
3713 # it helps to detect inapplicable dependency modes. For instance
3714 # both Tru64's cc and ICC support -MD to output dependencies as a
3715 # side effect of compilation, but ICC will put the dependencies in
3716 # the current directory while Tru64 will put them in the object
3717 # directory.
3718 mkdir sub
3720 am_cv_CC_dependencies_compiler_type=none
3721 if test "$am_compiler_list" = ""; then
3722 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3724 for depmode in $am_compiler_list; do
3725 # Setup a source with many dependencies, because some compilers
3726 # like to wrap large dependency lists on column 80 (with \), and
3727 # we should not choose a depcomp mode which is confused by this.
3729 # We need to recreate these files for each test, as the compiler may
3730 # overwrite some of them when testing with obscure command lines.
3731 # This happens at least with the AIX C compiler.
3732 : > sub/conftest.c
3733 for i in 1 2 3 4 5 6; do
3734 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3735 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3736 # Solaris 8's {/usr,}/bin/sh.
3737 touch sub/conftst$i.h
3738 done
3739 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3741 case $depmode in
3742 nosideeffect)
3743 # after this tag, mechanisms are not by side-effect, so they'll
3744 # only be used when explicitly requested
3745 if test "x$enable_dependency_tracking" = xyes; then
3746 continue
3747 else
3748 break
3751 none) break ;;
3752 esac
3753 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3754 # mode. It turns out that the SunPro C++ compiler does not properly
3755 # handle `-M -o', and we need to detect this.
3756 if depmode=$depmode \
3757 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3758 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3759 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3760 >/dev/null 2>conftest.err &&
3761 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3762 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3763 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3764 # icc doesn't choke on unknown options, it will just issue warnings
3765 # or remarks (even with -Werror). So we grep stderr for any message
3766 # that says an option was ignored or not supported.
3767 # When given -MP, icc 7.0 and 7.1 complain thusly:
3768 # icc: Command line warning: ignoring option '-M'; no argument required
3769 # The diagnosis changed in icc 8.0:
3770 # icc: Command line remark: option '-MP' not supported
3771 if (grep 'ignoring option' conftest.err ||
3772 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3773 am_cv_CC_dependencies_compiler_type=$depmode
3774 break
3777 done
3779 cd ..
3780 rm -rf conftest.dir
3781 else
3782 am_cv_CC_dependencies_compiler_type=none
3786 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3787 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3788 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3793 test "x$enable_dependency_tracking" != xno \
3794 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3795 am__fastdepCC_TRUE=
3796 am__fastdepCC_FALSE='#'
3797 else
3798 am__fastdepCC_TRUE='#'
3799 am__fastdepCC_FALSE=
3803 ac_ext=c
3804 ac_cpp='$CPP $CPPFLAGS'
3805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3808 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3809 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3810 # On Suns, sometimes $CPP names a directory.
3811 if test -n "$CPP" && test -d "$CPP"; then
3812 CPP=
3814 if test -z "$CPP"; then
3815 if test "${ac_cv_prog_CPP+set}" = set; then
3816 echo $ECHO_N "(cached) $ECHO_C" >&6
3817 else
3818 # Double quotes because CPP needs to be expanded
3819 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3821 ac_preproc_ok=false
3822 for ac_c_preproc_warn_flag in '' yes
3824 # Use a header file that comes with gcc, so configuring glibc
3825 # with a fresh cross-compiler works.
3826 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3827 # <limits.h> exists even on freestanding compilers.
3828 # On the NeXT, cc -E runs the code through the compiler's parser,
3829 # not just through cpp. "Syntax error" is here to catch this case.
3830 cat >conftest.$ac_ext <<_ACEOF
3831 /* confdefs.h. */
3832 _ACEOF
3833 cat confdefs.h >>conftest.$ac_ext
3834 cat >>conftest.$ac_ext <<_ACEOF
3835 /* end confdefs.h. */
3836 #ifdef __STDC__
3837 # include <limits.h>
3838 #else
3839 # include <assert.h>
3840 #endif
3841 Syntax error
3842 _ACEOF
3843 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3844 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3845 ac_status=$?
3846 grep -v '^ *+' conftest.er1 >conftest.err
3847 rm -f conftest.er1
3848 cat conftest.err >&5
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); } >/dev/null; then
3851 if test -s conftest.err; then
3852 ac_cpp_err=$ac_c_preproc_warn_flag
3853 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3854 else
3855 ac_cpp_err=
3857 else
3858 ac_cpp_err=yes
3860 if test -z "$ac_cpp_err"; then
3862 else
3863 echo "$as_me: failed program was:" >&5
3864 sed 's/^/| /' conftest.$ac_ext >&5
3866 # Broken: fails on valid input.
3867 continue
3869 rm -f conftest.err conftest.$ac_ext
3871 # OK, works on sane cases. Now check whether non-existent headers
3872 # can be detected and how.
3873 cat >conftest.$ac_ext <<_ACEOF
3874 /* confdefs.h. */
3875 _ACEOF
3876 cat confdefs.h >>conftest.$ac_ext
3877 cat >>conftest.$ac_ext <<_ACEOF
3878 /* end confdefs.h. */
3879 #include <ac_nonexistent.h>
3880 _ACEOF
3881 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3882 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3883 ac_status=$?
3884 grep -v '^ *+' conftest.er1 >conftest.err
3885 rm -f conftest.er1
3886 cat conftest.err >&5
3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 (exit $ac_status); } >/dev/null; then
3889 if test -s conftest.err; then
3890 ac_cpp_err=$ac_c_preproc_warn_flag
3891 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3892 else
3893 ac_cpp_err=
3895 else
3896 ac_cpp_err=yes
3898 if test -z "$ac_cpp_err"; then
3899 # Broken: success on invalid input.
3900 continue
3901 else
3902 echo "$as_me: failed program was:" >&5
3903 sed 's/^/| /' conftest.$ac_ext >&5
3905 # Passes both tests.
3906 ac_preproc_ok=:
3907 break
3909 rm -f conftest.err conftest.$ac_ext
3911 done
3912 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3913 rm -f conftest.err conftest.$ac_ext
3914 if $ac_preproc_ok; then
3915 break
3918 done
3919 ac_cv_prog_CPP=$CPP
3922 CPP=$ac_cv_prog_CPP
3923 else
3924 ac_cv_prog_CPP=$CPP
3926 echo "$as_me:$LINENO: result: $CPP" >&5
3927 echo "${ECHO_T}$CPP" >&6
3928 ac_preproc_ok=false
3929 for ac_c_preproc_warn_flag in '' yes
3931 # Use a header file that comes with gcc, so configuring glibc
3932 # with a fresh cross-compiler works.
3933 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3934 # <limits.h> exists even on freestanding compilers.
3935 # On the NeXT, cc -E runs the code through the compiler's parser,
3936 # not just through cpp. "Syntax error" is here to catch this case.
3937 cat >conftest.$ac_ext <<_ACEOF
3938 /* confdefs.h. */
3939 _ACEOF
3940 cat confdefs.h >>conftest.$ac_ext
3941 cat >>conftest.$ac_ext <<_ACEOF
3942 /* end confdefs.h. */
3943 #ifdef __STDC__
3944 # include <limits.h>
3945 #else
3946 # include <assert.h>
3947 #endif
3948 Syntax error
3949 _ACEOF
3950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3951 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3952 ac_status=$?
3953 grep -v '^ *+' conftest.er1 >conftest.err
3954 rm -f conftest.er1
3955 cat conftest.err >&5
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); } >/dev/null; then
3958 if test -s conftest.err; then
3959 ac_cpp_err=$ac_c_preproc_warn_flag
3960 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3961 else
3962 ac_cpp_err=
3964 else
3965 ac_cpp_err=yes
3967 if test -z "$ac_cpp_err"; then
3969 else
3970 echo "$as_me: failed program was:" >&5
3971 sed 's/^/| /' conftest.$ac_ext >&5
3973 # Broken: fails on valid input.
3974 continue
3976 rm -f conftest.err conftest.$ac_ext
3978 # OK, works on sane cases. Now check whether non-existent headers
3979 # can be detected and how.
3980 cat >conftest.$ac_ext <<_ACEOF
3981 /* confdefs.h. */
3982 _ACEOF
3983 cat confdefs.h >>conftest.$ac_ext
3984 cat >>conftest.$ac_ext <<_ACEOF
3985 /* end confdefs.h. */
3986 #include <ac_nonexistent.h>
3987 _ACEOF
3988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3990 ac_status=$?
3991 grep -v '^ *+' conftest.er1 >conftest.err
3992 rm -f conftest.er1
3993 cat conftest.err >&5
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); } >/dev/null; then
3996 if test -s conftest.err; then
3997 ac_cpp_err=$ac_c_preproc_warn_flag
3998 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3999 else
4000 ac_cpp_err=
4002 else
4003 ac_cpp_err=yes
4005 if test -z "$ac_cpp_err"; then
4006 # Broken: success on invalid input.
4007 continue
4008 else
4009 echo "$as_me: failed program was:" >&5
4010 sed 's/^/| /' conftest.$ac_ext >&5
4012 # Passes both tests.
4013 ac_preproc_ok=:
4014 break
4016 rm -f conftest.err conftest.$ac_ext
4018 done
4019 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4020 rm -f conftest.err conftest.$ac_ext
4021 if $ac_preproc_ok; then
4023 else
4024 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4025 See \`config.log' for more details." >&5
4026 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4027 See \`config.log' for more details." >&2;}
4028 { (exit 1); exit 1; }; }
4031 ac_ext=c
4032 ac_cpp='$CPP $CPPFLAGS'
4033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4037 if test "$cross_compiling" = yes; then
4038 ac_build_prefix=
4039 test -n "$build_alias" && ac_build_prefix=$build_alias-
4042 # Even if we're cross-compiling, we want a compiler here
4043 # that is not a cross-compiler.
4044 saved_cross=$cross_compiling
4045 cross_compiling=no
4047 ac_ext=c
4048 ac_cpp='$CPP $BUILD_CPPFLAGS'
4049 ac_compile='$BUILD_CC -c $BUILD_CFLAGS $BUILD_CPPFLAGS conftest.$ac_ext >&5'
4050 ac_link='$BUILD_CC -o conftest$ac_build_exeext $BUILD_CFLAGS $BUILD_CPPFLAGS $BUILD_LDFLAGS conftest.$ac_ext $BUILD_LIBS >&5'
4051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4052 if test -n "$ac_build_prefix"; then
4053 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4054 set dummy ${ac_build_prefix}gcc; ac_word=$2
4055 echo "$as_me:$LINENO: checking for $ac_word" >&5
4056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4057 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
4059 else
4060 if test -n "$BUILD_CC"; then
4061 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4062 else
4063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064 for as_dir in $PATH
4066 IFS=$as_save_IFS
4067 test -z "$as_dir" && as_dir=.
4068 for ac_exec_ext in '' $ac_executable_extensions; do
4069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4070 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4072 break 2
4074 done
4075 done
4079 BUILD_CC=$ac_cv_prog_BUILD_CC
4080 if test -n "$BUILD_CC"; then
4081 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4082 echo "${ECHO_T}$BUILD_CC" >&6
4083 else
4084 echo "$as_me:$LINENO: result: no" >&5
4085 echo "${ECHO_T}no" >&6
4089 if test -z "$ac_cv_prog_BUILD_CC"; then
4090 ac_ct_BUILD_CC=$BUILD_CC
4091 # Extract the first word of "gcc", so it can be a program name with args.
4092 set dummy gcc; ac_word=$2
4093 echo "$as_me:$LINENO: checking for $ac_word" >&5
4094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4095 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4096 echo $ECHO_N "(cached) $ECHO_C" >&6
4097 else
4098 if test -n "$ac_ct_BUILD_CC"; then
4099 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
4100 else
4101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102 for as_dir in $PATH
4104 IFS=$as_save_IFS
4105 test -z "$as_dir" && as_dir=.
4106 for ac_exec_ext in '' $ac_executable_extensions; do
4107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4108 ac_cv_prog_ac_ct_BUILD_CC="gcc"
4109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4110 break 2
4112 done
4113 done
4117 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
4118 if test -n "$ac_ct_BUILD_CC"; then
4119 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4120 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4121 else
4122 echo "$as_me:$LINENO: result: no" >&5
4123 echo "${ECHO_T}no" >&6
4126 BUILD_CC=$ac_ct_BUILD_CC
4127 else
4128 BUILD_CC="$ac_cv_prog_BUILD_CC"
4131 if test -z "$BUILD_CC"; then
4132 if test -n "$ac_build_prefix"; then
4133 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4134 set dummy ${ac_build_prefix}cc; ac_word=$2
4135 echo "$as_me:$LINENO: checking for $ac_word" >&5
4136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4137 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4138 echo $ECHO_N "(cached) $ECHO_C" >&6
4139 else
4140 if test -n "$BUILD_CC"; then
4141 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4142 else
4143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4144 for as_dir in $PATH
4146 IFS=$as_save_IFS
4147 test -z "$as_dir" && as_dir=.
4148 for ac_exec_ext in '' $ac_executable_extensions; do
4149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4150 ac_cv_prog_BUILD_CC="${ac_build_prefix}cc"
4151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4152 break 2
4154 done
4155 done
4159 BUILD_CC=$ac_cv_prog_BUILD_CC
4160 if test -n "$BUILD_CC"; then
4161 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4162 echo "${ECHO_T}$BUILD_CC" >&6
4163 else
4164 echo "$as_me:$LINENO: result: no" >&5
4165 echo "${ECHO_T}no" >&6
4169 if test -z "$ac_cv_prog_BUILD_CC"; then
4170 ac_ct_BUILD_CC=$BUILD_CC
4171 # Extract the first word of "cc", so it can be a program name with args.
4172 set dummy cc; ac_word=$2
4173 echo "$as_me:$LINENO: checking for $ac_word" >&5
4174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4175 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4176 echo $ECHO_N "(cached) $ECHO_C" >&6
4177 else
4178 if test -n "$ac_ct_BUILD_CC"; then
4179 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
4180 else
4181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182 for as_dir in $PATH
4184 IFS=$as_save_IFS
4185 test -z "$as_dir" && as_dir=.
4186 for ac_exec_ext in '' $ac_executable_extensions; do
4187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4188 ac_cv_prog_ac_ct_BUILD_CC="cc"
4189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4190 break 2
4192 done
4193 done
4197 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
4198 if test -n "$ac_ct_BUILD_CC"; then
4199 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4200 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4201 else
4202 echo "$as_me:$LINENO: result: no" >&5
4203 echo "${ECHO_T}no" >&6
4206 BUILD_CC=$ac_ct_BUILD_CC
4207 else
4208 BUILD_CC="$ac_cv_prog_BUILD_CC"
4212 if test -z "$BUILD_CC"; then
4213 # Extract the first word of "cc", so it can be a program name with args.
4214 set dummy cc; ac_word=$2
4215 echo "$as_me:$LINENO: checking for $ac_word" >&5
4216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4217 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4218 echo $ECHO_N "(cached) $ECHO_C" >&6
4219 else
4220 if test -n "$BUILD_CC"; then
4221 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4222 else
4223 ac_prog_rejected=no
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225 for as_dir in $PATH
4227 IFS=$as_save_IFS
4228 test -z "$as_dir" && as_dir=.
4229 for ac_exec_ext in '' $ac_executable_extensions; do
4230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4231 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4232 ac_prog_rejected=yes
4233 continue
4235 ac_cv_prog_BUILD_CC="cc"
4236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4237 break 2
4239 done
4240 done
4242 if test $ac_prog_rejected = yes; then
4243 # We found a bogon in the path, so make sure we never use it.
4244 set dummy $ac_cv_prog_BUILD_CC
4245 shift
4246 if test $# != 0; then
4247 # We chose a different compiler from the bogus one.
4248 # However, it has the same basename, so the bogon will be chosen
4249 # first if we set BUILD_CC to just the basename; use the full file name.
4250 shift
4251 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4256 BUILD_CC=$ac_cv_prog_BUILD_CC
4257 if test -n "$BUILD_CC"; then
4258 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4259 echo "${ECHO_T}$BUILD_CC" >&6
4260 else
4261 echo "$as_me:$LINENO: result: no" >&5
4262 echo "${ECHO_T}no" >&6
4266 if test -z "$BUILD_CC"; then
4267 if test -n "$ac_build_prefix"; then
4268 for ac_prog in cl
4270 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4271 set dummy $ac_build_prefix$ac_prog; ac_word=$2
4272 echo "$as_me:$LINENO: checking for $ac_word" >&5
4273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4274 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4275 echo $ECHO_N "(cached) $ECHO_C" >&6
4276 else
4277 if test -n "$BUILD_CC"; then
4278 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4279 else
4280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281 for as_dir in $PATH
4283 IFS=$as_save_IFS
4284 test -z "$as_dir" && as_dir=.
4285 for ac_exec_ext in '' $ac_executable_extensions; do
4286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4287 ac_cv_prog_BUILD_CC="$ac_build_prefix$ac_prog"
4288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4289 break 2
4291 done
4292 done
4296 BUILD_CC=$ac_cv_prog_BUILD_CC
4297 if test -n "$BUILD_CC"; then
4298 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4299 echo "${ECHO_T}$BUILD_CC" >&6
4300 else
4301 echo "$as_me:$LINENO: result: no" >&5
4302 echo "${ECHO_T}no" >&6
4305 test -n "$BUILD_CC" && break
4306 done
4308 if test -z "$BUILD_CC"; then
4309 ac_ct_BUILD_CC=$BUILD_CC
4310 for ac_prog in cl
4312 # Extract the first word of "$ac_prog", so it can be a program name with args.
4313 set dummy $ac_prog; ac_word=$2
4314 echo "$as_me:$LINENO: checking for $ac_word" >&5
4315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4316 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4317 echo $ECHO_N "(cached) $ECHO_C" >&6
4318 else
4319 if test -n "$ac_ct_BUILD_CC"; then
4320 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
4321 else
4322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323 for as_dir in $PATH
4325 IFS=$as_save_IFS
4326 test -z "$as_dir" && as_dir=.
4327 for ac_exec_ext in '' $ac_executable_extensions; do
4328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4329 ac_cv_prog_ac_ct_BUILD_CC="$ac_prog"
4330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4331 break 2
4333 done
4334 done
4338 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
4339 if test -n "$ac_ct_BUILD_CC"; then
4340 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4341 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4342 else
4343 echo "$as_me:$LINENO: result: no" >&5
4344 echo "${ECHO_T}no" >&6
4347 test -n "$ac_ct_BUILD_CC" && break
4348 done
4350 BUILD_CC=$ac_ct_BUILD_CC
4356 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4357 See \`config.log' for more details." >&5
4358 echo "$as_me: error: no acceptable C compiler found in \$PATH
4359 See \`config.log' for more details." >&2;}
4360 { (exit 1); exit 1; }; }
4362 # Provide some information about the compiler.
4363 echo "$as_me:$LINENO:" \
4364 "checking for C compiler version" >&5
4365 ac_compiler=`set X $ac_compile; echo $2`
4366 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4367 (eval $ac_compiler --version </dev/null >&5) 2>&5
4368 ac_status=$?
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); }
4371 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4372 (eval $ac_compiler -v </dev/null >&5) 2>&5
4373 ac_status=$?
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }
4376 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4377 (eval $ac_compiler -V </dev/null >&5) 2>&5
4378 ac_status=$?
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); }
4382 cat >conftest.$ac_ext <<_ACEOF
4383 /* confdefs.h. */
4384 _ACEOF
4385 cat confdefs.h >>conftest.$ac_ext
4386 cat >>conftest.$ac_ext <<_ACEOF
4387 /* end confdefs.h. */
4390 main ()
4394 return 0;
4396 _ACEOF
4397 ac_clean_files_save=$ac_clean_files
4398 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4399 # Try to create an executable without -o first, disregard a.out.
4400 # It will help us diagnose broken compilers, and finding out an intuition
4401 # of exeext.
4402 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4403 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4404 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4405 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4406 (eval $ac_link_default) 2>&5
4407 ac_status=$?
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); }; then
4410 # Find the output, starting from the most likely. This scheme is
4411 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4412 # resort.
4414 # Be careful to initialize this variable, since it used to be cached.
4415 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4416 ac_cv_build_exeext=
4417 # b.out is created by i960 compilers.
4418 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4420 test -f "$ac_file" || continue
4421 case $ac_file in
4422 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4424 conftest.$ac_ext )
4425 # This is the source file.
4427 [ab].out )
4428 # We found the default executable, but exeext='' is most
4429 # certainly right.
4430 break;;
4431 *.* )
4432 ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4433 # FIXME: I believe we export ac_cv_exeext for Libtool,
4434 # but it would be cool to find out if it's true. Does anybody
4435 # maintain Libtool? --akim.
4436 export ac_cv_build_exeext
4437 break;;
4439 break;;
4440 esac
4441 done
4442 else
4443 echo "$as_me: failed program was:" >&5
4444 sed 's/^/| /' conftest.$ac_ext >&5
4446 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4447 See \`config.log' for more details." >&5
4448 echo "$as_me: error: C compiler cannot create executables
4449 See \`config.log' for more details." >&2;}
4450 { (exit 77); exit 77; }; }
4453 ac_build_exeext=$ac_cv_build_exeext
4454 echo "$as_me:$LINENO: result: $ac_file" >&5
4455 echo "${ECHO_T}$ac_file" >&6
4457 # Check the compiler produces executables we can run. If not, either
4458 # the compiler is broken, or we cross compile.
4459 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4460 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4461 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4462 # If not cross compiling, check that we can run a simple program.
4463 if test "$cross_compiling" != yes; then
4464 if { ac_try='./$ac_file'
4465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4466 (eval $ac_try) 2>&5
4467 ac_status=$?
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); }; }; then
4470 cross_compiling=no
4471 else
4472 if test "$cross_compiling" = maybe; then
4473 cross_compiling=yes
4474 else
4475 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4476 If you meant to cross compile, use \`--host'.
4477 See \`config.log' for more details." >&5
4478 echo "$as_me: error: cannot run C compiled programs.
4479 If you meant to cross compile, use \`--host'.
4480 See \`config.log' for more details." >&2;}
4481 { (exit 1); exit 1; }; }
4485 echo "$as_me:$LINENO: result: yes" >&5
4486 echo "${ECHO_T}yes" >&6
4488 rm -f a.out a.exe conftest$ac_cv_build_exeext b.out
4489 ac_clean_files=$ac_clean_files_save
4490 # Check the compiler produces executables we can run. If not, either
4491 # the compiler is broken, or we cross compile.
4492 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4493 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4494 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4495 echo "${ECHO_T}$cross_compiling" >&6
4497 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4498 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4500 (eval $ac_link) 2>&5
4501 ac_status=$?
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); }; then
4504 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4505 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4506 # work properly (i.e., refer to `conftest.exe'), while it won't with
4507 # `rm'.
4508 for ac_file in conftest.exe conftest conftest.*; do
4509 test -f "$ac_file" || continue
4510 case $ac_file in
4511 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4512 *.* ) ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4513 export ac_cv_build_exeext
4514 break;;
4515 * ) break;;
4516 esac
4517 done
4518 else
4519 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4520 See \`config.log' for more details." >&5
4521 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4522 See \`config.log' for more details." >&2;}
4523 { (exit 1); exit 1; }; }
4526 rm -f conftest$ac_cv_build_exeext
4527 echo "$as_me:$LINENO: result: $ac_cv_build_exeext" >&5
4528 echo "${ECHO_T}$ac_cv_build_exeext" >&6
4530 rm -f conftest.$ac_ext
4531 BUILD_EXEEXT=$ac_cv_build_exeext
4532 ac_build_exeext=$BUILD_EXEEXT
4535 # Restore configuration environment
4536 cross_compiling=$saved_cross
4538 ac_ext=c
4539 ac_cpp='$CPP $CPPFLAGS'
4540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4544 else
4545 BUILD_CC="$CC" ; BUILD_EXEEXT=$EXEEXT
4548 CFLAGS="$mule_backup_CFLAGS"
4549 CXXFLAGS="$mule_backup_CXXFLAGS"
4550 BUILD_CFLAGS="$mule_backup_BUILD_CFLAGS"
4551 for ac_prog in gawk mawk nawk awk
4553 # Extract the first word of "$ac_prog", so it can be a program name with args.
4554 set dummy $ac_prog; ac_word=$2
4555 echo "$as_me:$LINENO: checking for $ac_word" >&5
4556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4557 if test "${ac_cv_prog_AWK+set}" = set; then
4558 echo $ECHO_N "(cached) $ECHO_C" >&6
4559 else
4560 if test -n "$AWK"; then
4561 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4562 else
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 for as_dir in $PATH
4566 IFS=$as_save_IFS
4567 test -z "$as_dir" && as_dir=.
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4570 ac_cv_prog_AWK="$ac_prog"
4571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4572 break 2
4574 done
4575 done
4579 AWK=$ac_cv_prog_AWK
4580 if test -n "$AWK"; then
4581 echo "$as_me:$LINENO: result: $AWK" >&5
4582 echo "${ECHO_T}$AWK" >&6
4583 else
4584 echo "$as_me:$LINENO: result: no" >&5
4585 echo "${ECHO_T}no" >&6
4588 test -n "$AWK" && break
4589 done
4591 echo "$as_me:$LINENO: checking for egrep" >&5
4592 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4593 if test "${ac_cv_prog_egrep+set}" = set; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4595 else
4596 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4597 then ac_cv_prog_egrep='grep -E'
4598 else ac_cv_prog_egrep='egrep'
4601 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4602 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4603 EGREP=$ac_cv_prog_egrep
4606 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4607 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4608 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4609 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4610 echo $ECHO_N "(cached) $ECHO_C" >&6
4611 else
4612 cat >conftest.make <<\_ACEOF
4613 all:
4614 @echo 'ac_maketemp="$(MAKE)"'
4615 _ACEOF
4616 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4617 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4618 if test -n "$ac_maketemp"; then
4619 eval ac_cv_prog_make_${ac_make}_set=yes
4620 else
4621 eval ac_cv_prog_make_${ac_make}_set=no
4623 rm -f conftest.make
4625 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4626 echo "$as_me:$LINENO: result: yes" >&5
4627 echo "${ECHO_T}yes" >&6
4628 SET_MAKE=
4629 else
4630 echo "$as_me:$LINENO: result: no" >&5
4631 echo "${ECHO_T}no" >&6
4632 SET_MAKE="MAKE=${MAKE-make}"
4636 for ac_prog in flex lex
4638 # Extract the first word of "$ac_prog", so it can be a program name with args.
4639 set dummy $ac_prog; ac_word=$2
4640 echo "$as_me:$LINENO: checking for $ac_word" >&5
4641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4642 if test "${ac_cv_prog_LEX+set}" = set; then
4643 echo $ECHO_N "(cached) $ECHO_C" >&6
4644 else
4645 if test -n "$LEX"; then
4646 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4647 else
4648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649 for as_dir in $PATH
4651 IFS=$as_save_IFS
4652 test -z "$as_dir" && as_dir=.
4653 for ac_exec_ext in '' $ac_executable_extensions; do
4654 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4655 ac_cv_prog_LEX="$ac_prog"
4656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4657 break 2
4659 done
4660 done
4664 LEX=$ac_cv_prog_LEX
4665 if test -n "$LEX"; then
4666 echo "$as_me:$LINENO: result: $LEX" >&5
4667 echo "${ECHO_T}$LEX" >&6
4668 else
4669 echo "$as_me:$LINENO: result: no" >&5
4670 echo "${ECHO_T}no" >&6
4673 test -n "$LEX" && break
4674 done
4675 test -n "$LEX" || LEX=":"
4677 if test -z "$LEXLIB"
4678 then
4679 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4680 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4681 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4682 echo $ECHO_N "(cached) $ECHO_C" >&6
4683 else
4684 ac_check_lib_save_LIBS=$LIBS
4685 LIBS="-lfl $LIBS"
4686 cat >conftest.$ac_ext <<_ACEOF
4687 /* confdefs.h. */
4688 _ACEOF
4689 cat confdefs.h >>conftest.$ac_ext
4690 cat >>conftest.$ac_ext <<_ACEOF
4691 /* end confdefs.h. */
4693 /* Override any gcc2 internal prototype to avoid an error. */
4694 #ifdef __cplusplus
4695 extern "C"
4696 #endif
4697 /* We use char because int might match the return type of a gcc2
4698 builtin and then its argument prototype would still apply. */
4699 char yywrap ();
4701 main ()
4703 yywrap ();
4705 return 0;
4707 _ACEOF
4708 rm -f conftest.$ac_objext conftest$ac_exeext
4709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4710 (eval $ac_link) 2>conftest.er1
4711 ac_status=$?
4712 grep -v '^ *+' conftest.er1 >conftest.err
4713 rm -f conftest.er1
4714 cat conftest.err >&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); } &&
4717 { ac_try='test -z "$ac_c_werror_flag"
4718 || test ! -s conftest.err'
4719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4720 (eval $ac_try) 2>&5
4721 ac_status=$?
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); }; } &&
4724 { ac_try='test -s conftest$ac_exeext'
4725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4726 (eval $ac_try) 2>&5
4727 ac_status=$?
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); }; }; then
4730 ac_cv_lib_fl_yywrap=yes
4731 else
4732 echo "$as_me: failed program was:" >&5
4733 sed 's/^/| /' conftest.$ac_ext >&5
4735 ac_cv_lib_fl_yywrap=no
4737 rm -f conftest.err conftest.$ac_objext \
4738 conftest$ac_exeext conftest.$ac_ext
4739 LIBS=$ac_check_lib_save_LIBS
4741 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4742 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4743 if test $ac_cv_lib_fl_yywrap = yes; then
4744 LEXLIB="-lfl"
4745 else
4746 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4747 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4748 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4749 echo $ECHO_N "(cached) $ECHO_C" >&6
4750 else
4751 ac_check_lib_save_LIBS=$LIBS
4752 LIBS="-ll $LIBS"
4753 cat >conftest.$ac_ext <<_ACEOF
4754 /* confdefs.h. */
4755 _ACEOF
4756 cat confdefs.h >>conftest.$ac_ext
4757 cat >>conftest.$ac_ext <<_ACEOF
4758 /* end confdefs.h. */
4760 /* Override any gcc2 internal prototype to avoid an error. */
4761 #ifdef __cplusplus
4762 extern "C"
4763 #endif
4764 /* We use char because int might match the return type of a gcc2
4765 builtin and then its argument prototype would still apply. */
4766 char yywrap ();
4768 main ()
4770 yywrap ();
4772 return 0;
4774 _ACEOF
4775 rm -f conftest.$ac_objext conftest$ac_exeext
4776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4777 (eval $ac_link) 2>conftest.er1
4778 ac_status=$?
4779 grep -v '^ *+' conftest.er1 >conftest.err
4780 rm -f conftest.er1
4781 cat conftest.err >&5
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); } &&
4784 { ac_try='test -z "$ac_c_werror_flag"
4785 || test ! -s conftest.err'
4786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4787 (eval $ac_try) 2>&5
4788 ac_status=$?
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); }; } &&
4791 { ac_try='test -s conftest$ac_exeext'
4792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793 (eval $ac_try) 2>&5
4794 ac_status=$?
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); }; }; then
4797 ac_cv_lib_l_yywrap=yes
4798 else
4799 echo "$as_me: failed program was:" >&5
4800 sed 's/^/| /' conftest.$ac_ext >&5
4802 ac_cv_lib_l_yywrap=no
4804 rm -f conftest.err conftest.$ac_objext \
4805 conftest$ac_exeext conftest.$ac_ext
4806 LIBS=$ac_check_lib_save_LIBS
4808 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4809 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4810 if test $ac_cv_lib_l_yywrap = yes; then
4811 LEXLIB="-ll"
4818 if test "x$LEX" != "x:"; then
4819 echo "$as_me:$LINENO: checking lex output file root" >&5
4820 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4821 if test "${ac_cv_prog_lex_root+set}" = set; then
4822 echo $ECHO_N "(cached) $ECHO_C" >&6
4823 else
4824 # The minimal lex program is just a single line: %%. But some broken lexes
4825 # (Solaris, I think it was) want two %% lines, so accommodate them.
4826 cat >conftest.l <<_ACEOF
4829 _ACEOF
4830 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4831 (eval $LEX conftest.l) 2>&5
4832 ac_status=$?
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); }
4835 if test -f lex.yy.c; then
4836 ac_cv_prog_lex_root=lex.yy
4837 elif test -f lexyy.c; then
4838 ac_cv_prog_lex_root=lexyy
4839 else
4840 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4841 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4842 { (exit 1); exit 1; }; }
4845 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4846 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4847 rm -f conftest.l
4848 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4850 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4851 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4852 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4853 echo $ECHO_N "(cached) $ECHO_C" >&6
4854 else
4855 # POSIX says lex can declare yytext either as a pointer or an array; the
4856 # default is implementation-dependent. Figure out which it is, since
4857 # not all implementations provide the %pointer and %array declarations.
4858 ac_cv_prog_lex_yytext_pointer=no
4859 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4860 ac_save_LIBS=$LIBS
4861 LIBS="$LIBS $LEXLIB"
4862 cat >conftest.$ac_ext <<_ACEOF
4863 `cat $LEX_OUTPUT_ROOT.c`
4864 _ACEOF
4865 rm -f conftest.$ac_objext conftest$ac_exeext
4866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4867 (eval $ac_link) 2>conftest.er1
4868 ac_status=$?
4869 grep -v '^ *+' conftest.er1 >conftest.err
4870 rm -f conftest.er1
4871 cat conftest.err >&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } &&
4874 { ac_try='test -z "$ac_c_werror_flag"
4875 || test ! -s conftest.err'
4876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4877 (eval $ac_try) 2>&5
4878 ac_status=$?
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); }; } &&
4881 { ac_try='test -s conftest$ac_exeext'
4882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4883 (eval $ac_try) 2>&5
4884 ac_status=$?
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); }; }; then
4887 ac_cv_prog_lex_yytext_pointer=yes
4888 else
4889 echo "$as_me: failed program was:" >&5
4890 sed 's/^/| /' conftest.$ac_ext >&5
4893 rm -f conftest.err conftest.$ac_objext \
4894 conftest$ac_exeext conftest.$ac_ext
4895 LIBS=$ac_save_LIBS
4896 rm -f "${LEX_OUTPUT_ROOT}.c"
4899 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4900 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4901 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4903 cat >>confdefs.h <<\_ACEOF
4904 #define YYTEXT_POINTER 1
4905 _ACEOF
4910 # Find a good install program. We prefer a C program (faster),
4911 # so one script is as good as another. But avoid the broken or
4912 # incompatible versions:
4913 # SysV /etc/install, /usr/sbin/install
4914 # SunOS /usr/etc/install
4915 # IRIX /sbin/install
4916 # AIX /bin/install
4917 # AmigaOS /C/install, which installs bootblocks on floppy discs
4918 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4919 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4920 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4921 # OS/2's system install, which has a completely different semantic
4922 # ./install, which can be erroneously created by make from ./install.sh.
4923 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4924 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4925 if test -z "$INSTALL"; then
4926 if test "${ac_cv_path_install+set}" = set; then
4927 echo $ECHO_N "(cached) $ECHO_C" >&6
4928 else
4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 for as_dir in $PATH
4932 IFS=$as_save_IFS
4933 test -z "$as_dir" && as_dir=.
4934 # Account for people who put trailing slashes in PATH elements.
4935 case $as_dir/ in
4936 ./ | .// | /cC/* | \
4937 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4938 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4939 /usr/ucb/* ) ;;
4941 # OSF1 and SCO ODT 3.0 have their own names for install.
4942 # Don't use installbsd from OSF since it installs stuff as root
4943 # by default.
4944 for ac_prog in ginstall scoinst install; do
4945 for ac_exec_ext in '' $ac_executable_extensions; do
4946 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4947 if test $ac_prog = install &&
4948 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4949 # AIX install. It has an incompatible calling convention.
4951 elif test $ac_prog = install &&
4952 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4953 # program-specific install script used by HP pwplus--don't use.
4955 else
4956 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4957 break 3
4960 done
4961 done
4963 esac
4964 done
4968 if test "${ac_cv_path_install+set}" = set; then
4969 INSTALL=$ac_cv_path_install
4970 else
4971 # As a last resort, use the slow shell script. We don't cache a
4972 # path for INSTALL within a source directory, because that will
4973 # break other packages using the cache if that directory is
4974 # removed, or if the path is relative.
4975 INSTALL=$ac_install_sh
4978 echo "$as_me:$LINENO: result: $INSTALL" >&5
4979 echo "${ECHO_T}$INSTALL" >&6
4981 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4982 # It thinks the first close brace ends the variable substitution.
4983 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4985 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4987 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4989 if test -n "$ac_tool_prefix"; then
4990 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4991 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4992 echo "$as_me:$LINENO: checking for $ac_word" >&5
4993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4994 if test "${ac_cv_prog_RANLIB+set}" = set; then
4995 echo $ECHO_N "(cached) $ECHO_C" >&6
4996 else
4997 if test -n "$RANLIB"; then
4998 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4999 else
5000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5001 for as_dir in $PATH
5003 IFS=$as_save_IFS
5004 test -z "$as_dir" && as_dir=.
5005 for ac_exec_ext in '' $ac_executable_extensions; do
5006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5007 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5009 break 2
5011 done
5012 done
5016 RANLIB=$ac_cv_prog_RANLIB
5017 if test -n "$RANLIB"; then
5018 echo "$as_me:$LINENO: result: $RANLIB" >&5
5019 echo "${ECHO_T}$RANLIB" >&6
5020 else
5021 echo "$as_me:$LINENO: result: no" >&5
5022 echo "${ECHO_T}no" >&6
5026 if test -z "$ac_cv_prog_RANLIB"; then
5027 ac_ct_RANLIB=$RANLIB
5028 # Extract the first word of "ranlib", so it can be a program name with args.
5029 set dummy ranlib; ac_word=$2
5030 echo "$as_me:$LINENO: checking for $ac_word" >&5
5031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5032 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5033 echo $ECHO_N "(cached) $ECHO_C" >&6
5034 else
5035 if test -n "$ac_ct_RANLIB"; then
5036 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5037 else
5038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039 for as_dir in $PATH
5041 IFS=$as_save_IFS
5042 test -z "$as_dir" && as_dir=.
5043 for ac_exec_ext in '' $ac_executable_extensions; do
5044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5045 ac_cv_prog_ac_ct_RANLIB="ranlib"
5046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5047 break 2
5049 done
5050 done
5052 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5055 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5056 if test -n "$ac_ct_RANLIB"; then
5057 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5058 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5059 else
5060 echo "$as_me:$LINENO: result: no" >&5
5061 echo "${ECHO_T}no" >&6
5064 RANLIB=$ac_ct_RANLIB
5065 else
5066 RANLIB="$ac_cv_prog_RANLIB"
5069 for ac_prog in 'bison -y' byacc
5071 # Extract the first word of "$ac_prog", so it can be a program name with args.
5072 set dummy $ac_prog; ac_word=$2
5073 echo "$as_me:$LINENO: checking for $ac_word" >&5
5074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5075 if test "${ac_cv_prog_YACC+set}" = set; then
5076 echo $ECHO_N "(cached) $ECHO_C" >&6
5077 else
5078 if test -n "$YACC"; then
5079 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5080 else
5081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082 for as_dir in $PATH
5084 IFS=$as_save_IFS
5085 test -z "$as_dir" && as_dir=.
5086 for ac_exec_ext in '' $ac_executable_extensions; do
5087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5088 ac_cv_prog_YACC="$ac_prog"
5089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5090 break 2
5092 done
5093 done
5097 YACC=$ac_cv_prog_YACC
5098 if test -n "$YACC"; then
5099 echo "$as_me:$LINENO: result: $YACC" >&5
5100 echo "${ECHO_T}$YACC" >&6
5101 else
5102 echo "$as_me:$LINENO: result: no" >&5
5103 echo "${ECHO_T}no" >&6
5106 test -n "$YACC" && break
5107 done
5108 test -n "$YACC" || YACC="yacc"
5111 if test -n "$ac_tool_prefix"; then
5112 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5113 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5114 echo "$as_me:$LINENO: checking for $ac_word" >&5
5115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5116 if test "${ac_cv_prog_RANLIB+set}" = set; then
5117 echo $ECHO_N "(cached) $ECHO_C" >&6
5118 else
5119 if test -n "$RANLIB"; then
5120 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5121 else
5122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123 for as_dir in $PATH
5125 IFS=$as_save_IFS
5126 test -z "$as_dir" && as_dir=.
5127 for ac_exec_ext in '' $ac_executable_extensions; do
5128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5129 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5131 break 2
5133 done
5134 done
5138 RANLIB=$ac_cv_prog_RANLIB
5139 if test -n "$RANLIB"; then
5140 echo "$as_me:$LINENO: result: $RANLIB" >&5
5141 echo "${ECHO_T}$RANLIB" >&6
5142 else
5143 echo "$as_me:$LINENO: result: no" >&5
5144 echo "${ECHO_T}no" >&6
5148 if test -z "$ac_cv_prog_RANLIB"; then
5149 ac_ct_RANLIB=$RANLIB
5150 # Extract the first word of "ranlib", so it can be a program name with args.
5151 set dummy ranlib; ac_word=$2
5152 echo "$as_me:$LINENO: checking for $ac_word" >&5
5153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5154 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5155 echo $ECHO_N "(cached) $ECHO_C" >&6
5156 else
5157 if test -n "$ac_ct_RANLIB"; then
5158 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5159 else
5160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161 for as_dir in $PATH
5163 IFS=$as_save_IFS
5164 test -z "$as_dir" && as_dir=.
5165 for ac_exec_ext in '' $ac_executable_extensions; do
5166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5167 ac_cv_prog_ac_ct_RANLIB="ranlib"
5168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5169 break 2
5171 done
5172 done
5176 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5177 if test -n "$ac_ct_RANLIB"; then
5178 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5179 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5180 else
5181 echo "$as_me:$LINENO: result: no" >&5
5182 echo "${ECHO_T}no" >&6
5185 RANLIB=$ac_ct_RANLIB
5186 else
5187 RANLIB="$ac_cv_prog_RANLIB"
5190 if test -n "$ac_tool_prefix"; then
5191 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5192 set dummy ${ac_tool_prefix}strip; ac_word=$2
5193 echo "$as_me:$LINENO: checking for $ac_word" >&5
5194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5195 if test "${ac_cv_prog_STRIP+set}" = set; then
5196 echo $ECHO_N "(cached) $ECHO_C" >&6
5197 else
5198 if test -n "$STRIP"; then
5199 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5200 else
5201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202 for as_dir in $PATH
5204 IFS=$as_save_IFS
5205 test -z "$as_dir" && as_dir=.
5206 for ac_exec_ext in '' $ac_executable_extensions; do
5207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5208 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5210 break 2
5212 done
5213 done
5217 STRIP=$ac_cv_prog_STRIP
5218 if test -n "$STRIP"; then
5219 echo "$as_me:$LINENO: result: $STRIP" >&5
5220 echo "${ECHO_T}$STRIP" >&6
5221 else
5222 echo "$as_me:$LINENO: result: no" >&5
5223 echo "${ECHO_T}no" >&6
5227 if test -z "$ac_cv_prog_STRIP"; then
5228 ac_ct_STRIP=$STRIP
5229 # Extract the first word of "strip", so it can be a program name with args.
5230 set dummy strip; ac_word=$2
5231 echo "$as_me:$LINENO: checking for $ac_word" >&5
5232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5233 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5234 echo $ECHO_N "(cached) $ECHO_C" >&6
5235 else
5236 if test -n "$ac_ct_STRIP"; then
5237 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5238 else
5239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240 for as_dir in $PATH
5242 IFS=$as_save_IFS
5243 test -z "$as_dir" && as_dir=.
5244 for ac_exec_ext in '' $ac_executable_extensions; do
5245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5246 ac_cv_prog_ac_ct_STRIP="strip"
5247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5248 break 2
5250 done
5251 done
5255 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5256 if test -n "$ac_ct_STRIP"; then
5257 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5258 echo "${ECHO_T}$ac_ct_STRIP" >&6
5259 else
5260 echo "$as_me:$LINENO: result: no" >&5
5261 echo "${ECHO_T}no" >&6
5264 STRIP=$ac_ct_STRIP
5265 else
5266 STRIP="$ac_cv_prog_STRIP"
5269 if test -n "$ac_tool_prefix"; then
5270 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5271 set dummy ${ac_tool_prefix}ar; ac_word=$2
5272 echo "$as_me:$LINENO: checking for $ac_word" >&5
5273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5274 if test "${ac_cv_prog_AR+set}" = set; then
5275 echo $ECHO_N "(cached) $ECHO_C" >&6
5276 else
5277 if test -n "$AR"; then
5278 ac_cv_prog_AR="$AR" # Let the user override the test.
5279 else
5280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281 for as_dir in $PATH
5283 IFS=$as_save_IFS
5284 test -z "$as_dir" && as_dir=.
5285 for ac_exec_ext in '' $ac_executable_extensions; do
5286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5287 ac_cv_prog_AR="${ac_tool_prefix}ar"
5288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5289 break 2
5291 done
5292 done
5296 AR=$ac_cv_prog_AR
5297 if test -n "$AR"; then
5298 echo "$as_me:$LINENO: result: $AR" >&5
5299 echo "${ECHO_T}$AR" >&6
5300 else
5301 echo "$as_me:$LINENO: result: no" >&5
5302 echo "${ECHO_T}no" >&6
5306 if test -z "$ac_cv_prog_AR"; then
5307 ac_ct_AR=$AR
5308 # Extract the first word of "ar", so it can be a program name with args.
5309 set dummy ar; ac_word=$2
5310 echo "$as_me:$LINENO: checking for $ac_word" >&5
5311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5312 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5313 echo $ECHO_N "(cached) $ECHO_C" >&6
5314 else
5315 if test -n "$ac_ct_AR"; then
5316 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5317 else
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319 for as_dir in $PATH
5321 IFS=$as_save_IFS
5322 test -z "$as_dir" && as_dir=.
5323 for ac_exec_ext in '' $ac_executable_extensions; do
5324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5325 ac_cv_prog_ac_ct_AR="ar"
5326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5327 break 2
5329 done
5330 done
5334 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5335 if test -n "$ac_ct_AR"; then
5336 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5337 echo "${ECHO_T}$ac_ct_AR" >&6
5338 else
5339 echo "$as_me:$LINENO: result: no" >&5
5340 echo "${ECHO_T}no" >&6
5343 AR=$ac_ct_AR
5344 else
5345 AR="$ac_cv_prog_AR"
5348 if test -n "$ac_tool_prefix"; then
5349 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5350 set dummy ${ac_tool_prefix}ld; ac_word=$2
5351 echo "$as_me:$LINENO: checking for $ac_word" >&5
5352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5353 if test "${ac_cv_prog_LD+set}" = set; then
5354 echo $ECHO_N "(cached) $ECHO_C" >&6
5355 else
5356 if test -n "$LD"; then
5357 ac_cv_prog_LD="$LD" # Let the user override the test.
5358 else
5359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360 for as_dir in $PATH
5362 IFS=$as_save_IFS
5363 test -z "$as_dir" && as_dir=.
5364 for ac_exec_ext in '' $ac_executable_extensions; do
5365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5366 ac_cv_prog_LD="${ac_tool_prefix}ld"
5367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5368 break 2
5370 done
5371 done
5375 LD=$ac_cv_prog_LD
5376 if test -n "$LD"; then
5377 echo "$as_me:$LINENO: result: $LD" >&5
5378 echo "${ECHO_T}$LD" >&6
5379 else
5380 echo "$as_me:$LINENO: result: no" >&5
5381 echo "${ECHO_T}no" >&6
5385 if test -z "$ac_cv_prog_LD"; then
5386 ac_ct_LD=$LD
5387 # Extract the first word of "ld", so it can be a program name with args.
5388 set dummy ld; ac_word=$2
5389 echo "$as_me:$LINENO: checking for $ac_word" >&5
5390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5391 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5392 echo $ECHO_N "(cached) $ECHO_C" >&6
5393 else
5394 if test -n "$ac_ct_LD"; then
5395 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5396 else
5397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398 for as_dir in $PATH
5400 IFS=$as_save_IFS
5401 test -z "$as_dir" && as_dir=.
5402 for ac_exec_ext in '' $ac_executable_extensions; do
5403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5404 ac_cv_prog_ac_ct_LD="ld"
5405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5406 break 2
5408 done
5409 done
5413 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5414 if test -n "$ac_ct_LD"; then
5415 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5416 echo "${ECHO_T}$ac_ct_LD" >&6
5417 else
5418 echo "$as_me:$LINENO: result: no" >&5
5419 echo "${ECHO_T}no" >&6
5422 LD=$ac_ct_LD
5423 else
5424 LD="$ac_cv_prog_LD"
5428 # Check whether --enable-monolithic or --disable-monolithic was given.
5429 if test "${enable_monolithic+set}" = set; then
5430 enableval="$enable_monolithic"
5431 MONOLITHIC=$enableval
5432 else
5433 MONOLITHIC=yes
5436 # Check whether --enable-amule-daemon or --disable-amule-daemon was given.
5437 if test "${enable_amule_daemon+set}" = set; then
5438 enableval="$enable_amule_daemon"
5439 AMULE_DAEMON=$enableval
5440 else
5441 AMULE_DAEMON=no
5444 # Check whether --enable-amulecmd or --disable-amulecmd was given.
5445 if test "${enable_amulecmd+set}" = set; then
5446 enableval="$enable_amulecmd"
5447 AMULECMD=$enableval
5448 else
5449 AMULECMD=no
5452 # Check whether --enable-webserver or --disable-webserver was given.
5453 if test "${enable_webserver+set}" = set; then
5454 enableval="$enable_webserver"
5455 WEB=$enableval
5456 else
5457 WEB=no
5460 # Check whether --enable-amule-gui or --disable-amule-gui was given.
5461 if test "${enable_amule_gui+set}" = set; then
5462 enableval="$enable_amule_gui"
5463 AMULE_GUI=$enableval
5464 else
5465 AMULE_GUI=no
5468 # Check whether --enable-cas or --disable-cas was given.
5469 if test "${enable_cas+set}" = set; then
5470 enableval="$enable_cas"
5471 CAS=$enableval
5472 else
5473 CAS=no
5476 # Check whether --enable-wxcas or --disable-wxcas was given.
5477 if test "${enable_wxcas+set}" = set; then
5478 enableval="$enable_wxcas"
5479 WXCAS=$enableval
5480 else
5481 WXCAS=no
5484 # Check whether --enable-ed2k or --disable-ed2k was given.
5485 if test "${enable_ed2k+set}" = set; then
5486 enableval="$enable_ed2k"
5487 ED2K=$enableval
5488 else
5489 ED2K=yes
5492 # Check whether --enable-alc or --disable-alc was given.
5493 if test "${enable_alc+set}" = set; then
5494 enableval="$enable_alc"
5495 ALC=$enableval
5496 else
5497 ALC=no
5500 # Check whether --enable-alcc or --disable-alcc was given.
5501 if test "${enable_alcc+set}" = set; then
5502 enableval="$enable_alcc"
5503 ALCC=$enableval
5504 else
5505 ALCC=no
5508 # Check whether --enable-monolithic or --disable-monolithic was given.
5509 if test "${enable_monolithic+set}" = set; then
5510 enableval="$enable_monolithic"
5511 MONOLITHIC=$enableval
5512 else
5513 MONOLITHIC=yes
5516 # Check whether --enable-upnp or --disable-upnp was given.
5517 if test "${enable_upnp+set}" = set; then
5518 enableval="$enable_upnp"
5519 ENABLE_UPNP=$enableval
5520 else
5521 ENABLE_UPNP=yes
5524 # Check whether --enable-geoip or --disable-geoip was given.
5525 if test "${enable_geoip+set}" = set; then
5526 enableval="$enable_geoip"
5527 ENABLE_IP2COUNTRY=$enableval
5528 else
5529 ENABLE_IP2COUNTRY=no
5533 # Check whether --with-geoip-headers or --without-geoip-headers was given.
5534 if test "${with_geoip_headers+set}" = set; then
5535 withval="$with_geoip_headers"
5536 GEOIP_CPPFLAGS="-I$withval"
5540 # Check whether --with-geoip-lib or --without-geoip-lib was given.
5541 if test "${with_geoip_lib+set}" = set; then
5542 withval="$with_geoip_lib"
5543 GEOIP_LDFLAGS="-L$withval"
5547 # Check whether --with-geoip-static or --without-geoip-static was given.
5548 if test "${with_geoip_static+set}" = set; then
5549 withval="$with_geoip_static"
5550 if test "$withval" != "no"; then
5551 GEOIP_LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic"
5556 # Default is yes, because they're most likely compatible.
5557 # However, this is only used when cross-compiling.
5559 # Check whether --with-gnu-malloc or --without-gnu-malloc was given.
5560 if test "${with_gnu_malloc+set}" = set; then
5561 withval="$with_gnu_malloc"
5562 gnumalloc=$withval
5563 else
5564 gnumalloc=yes
5568 # Checking for libs before all other stuff to break
5569 # configure as soon as possible in case of a missing one
5570 # to avoid losing too much time
5572 # Check for zlib
5575 # Check whether --with-zlib or --without-zlib was given.
5576 if test "${with_zlib+set}" = set; then
5577 withval="$with_zlib"
5581 case "${with_zlib:-yes}" in
5583 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5584 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5585 { (exit 1); exit 1; }; }
5587 yes | sys)
5590 zlib_prefix="$with_zlib"
5591 esac
5593 mule_backup_CPPFLAGS="$CPPFLAGS"
5594 mule_backup_LDFLAGS="$LDFLAGS"
5595 mule_backup_LIBS="$LIBS"
5596 if test -n "$zlib_prefix"; then
5598 ZLIB_CPPFLAGS="-I$zlib_prefix/include"
5599 ZLIB_LDFLAGS="-L$zlib_prefix/lib"
5600 CPPFLAGS="$CPPFLAGS $ZLIB_CPPFLAGS"
5601 LDFLAGS="$LDFLAGS $ZLIB_LDFLAGS"
5603 else
5605 ZLIB_CPPFLAGS=
5606 ZLIB_LDFLAGS=
5610 ZLIB_LIBS="-lz"
5611 LIBS="$ZLIB_LIBS $LIBS"
5613 echo "$as_me:$LINENO: checking for zlib >= 1.1.4" >&5
5614 echo $ECHO_N "checking for zlib >= 1.1.4... $ECHO_C" >&6
5615 if test "$cross_compiling" = yes; then
5617 result=no
5618 z_version=
5619 cat >conftest.$ac_ext <<_ACEOF
5621 /* confdefs.h. */
5622 _ACEOF
5623 cat confdefs.h >>conftest.$ac_ext
5624 cat >>conftest.$ac_ext <<_ACEOF
5625 /* end confdefs.h. */
5627 #include <zlib.h>
5628 #include <stdio.h>
5631 main ()
5634 printf("\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n\n");
5635 zlibVersion();
5638 return 0;
5641 _ACEOF
5642 rm -f conftest.$ac_objext conftest$ac_exeext
5643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5644 (eval $ac_link) 2>conftest.er1
5645 ac_status=$?
5646 grep -v '^ *+' conftest.er1 >conftest.err
5647 rm -f conftest.er1
5648 cat conftest.err >&5
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); } &&
5651 { ac_try='test -z "$ac_c_werror_flag"
5652 || test ! -s conftest.err'
5653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5654 (eval $ac_try) 2>&5
5655 ac_status=$?
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); }; } &&
5658 { ac_try='test -s conftest$ac_exeext'
5659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5660 (eval $ac_try) 2>&5
5661 ac_status=$?
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); }; }; then
5665 ZLIB_VERSION=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest$ac_exeext | sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'`
5666 cross_zver_max="`echo $ZLIB_VERSION | cut -d. -f1`"
5667 cross_zver_mid="`echo $ZLIB_VERSION | cut -d. -f2`"
5668 cross_zver_min="`echo $ZLIB_VERSION | cut -d. -f3`"
5669 if test "$cross_zver_max" -gt "1"; then
5670 result=yes
5671 elif test "$cross_zver_max" -eq "1"; then
5673 if test "$cross_zver_mid" -gt "1"; then
5674 result=yes
5675 elif test "$cross_zver_mid" -eq "1"; then
5676 if test "$cross_zver_min" -ge "4"; then
5677 result=yes
5685 if test ${result:-no} = yes; then
5686 z_version=" (version $ZLIB_VERSION)"
5690 else
5691 echo "$as_me: failed program was:" >&5
5692 sed 's/^/| /' conftest.$ac_ext >&5
5695 rm -f conftest.err conftest.$ac_objext \
5696 conftest$ac_exeext conftest.$ac_ext
5697 echo "$as_me:$LINENO: result: $result$z_version" >&5
5698 echo "${ECHO_T}$result$z_version" >&6
5700 else
5701 cat >conftest.$ac_ext <<_ACEOF
5703 /* confdefs.h. */
5704 _ACEOF
5705 cat confdefs.h >>conftest.$ac_ext
5706 cat >>conftest.$ac_ext <<_ACEOF
5707 /* end confdefs.h. */
5709 #include <zlib.h>
5710 #include <stdio.h>
5713 main ()
5715 char *zver = zlibVersion();
5716 FILE *f=fopen("conftestval", "w");
5717 if (!f) return 1;
5718 fprintf(f, "%s",
5719 zver[0] > '1' ||
5720 (zver[0] == '1' &&
5721 (zver[2] > '1' ||
5722 (zver[2] == '1' &&
5723 zver[4] >= '4'))) ? "yes" : "no");
5724 fclose(f);
5725 f=fopen("conftestver", "w");
5726 if (f) {
5727 fprintf(f, "%s", ZLIB_VERSION);
5728 fclose(f);
5732 return 0;
5735 _ACEOF
5736 rm -f conftest$ac_exeext
5737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5738 (eval $ac_link) 2>&5
5739 ac_status=$?
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5743 (eval $ac_try) 2>&5
5744 ac_status=$?
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); }; }; then
5748 if test -f conftestval; then
5749 result=`cat conftestval`
5750 else
5751 result=no
5754 if test ${result:-no} = yes; then
5756 if test -f conftestver; then
5758 ZLIB_VERSION=`cat conftestver`
5759 z_version=" (version $ZLIB_VERSION)"
5761 else
5762 z_version=
5768 echo "$as_me:$LINENO: result: $result$z_version" >&5
5769 echo "${ECHO_T}$result$z_version" >&6
5771 else
5772 echo "$as_me: program exited with status $ac_status" >&5
5773 echo "$as_me: failed program was:" >&5
5774 sed 's/^/| /' conftest.$ac_ext >&5
5776 ( exit $ac_status )
5778 result=no
5779 echo "$as_me:$LINENO: result: $result" >&5
5780 echo "${ECHO_T}$result" >&6
5783 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5786 CPPFLAGS="$mule_backup_CPPFLAGS"
5787 LDFLAGS="$mule_backup_LDFLAGS"
5788 LIBS="$mule_backup_LIBS"
5790 if test ${result:-no} = no; then
5792 ZLIB_CPPFLAGS=
5793 ZLIB_LDFLAGS=
5794 ZLIB_LIBS=
5795 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5796 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5797 { (exit 1); exit 1; }; }
5804 if test x$CAS = xyes; then
5806 # Check for gd
5808 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5809 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5810 if test "${ac_cv_header_stdc+set}" = set; then
5811 echo $ECHO_N "(cached) $ECHO_C" >&6
5812 else
5813 cat >conftest.$ac_ext <<_ACEOF
5814 /* confdefs.h. */
5815 _ACEOF
5816 cat confdefs.h >>conftest.$ac_ext
5817 cat >>conftest.$ac_ext <<_ACEOF
5818 /* end confdefs.h. */
5819 #include <stdlib.h>
5820 #include <stdarg.h>
5821 #include <string.h>
5822 #include <float.h>
5825 main ()
5829 return 0;
5831 _ACEOF
5832 rm -f conftest.$ac_objext
5833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5834 (eval $ac_compile) 2>conftest.er1
5835 ac_status=$?
5836 grep -v '^ *+' conftest.er1 >conftest.err
5837 rm -f conftest.er1
5838 cat conftest.err >&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); } &&
5841 { ac_try='test -z "$ac_c_werror_flag"
5842 || test ! -s conftest.err'
5843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5844 (eval $ac_try) 2>&5
5845 ac_status=$?
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); }; } &&
5848 { ac_try='test -s conftest.$ac_objext'
5849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5850 (eval $ac_try) 2>&5
5851 ac_status=$?
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); }; }; then
5854 ac_cv_header_stdc=yes
5855 else
5856 echo "$as_me: failed program was:" >&5
5857 sed 's/^/| /' conftest.$ac_ext >&5
5859 ac_cv_header_stdc=no
5861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5863 if test $ac_cv_header_stdc = yes; then
5864 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5865 cat >conftest.$ac_ext <<_ACEOF
5866 /* confdefs.h. */
5867 _ACEOF
5868 cat confdefs.h >>conftest.$ac_ext
5869 cat >>conftest.$ac_ext <<_ACEOF
5870 /* end confdefs.h. */
5871 #include <string.h>
5873 _ACEOF
5874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5875 $EGREP "memchr" >/dev/null 2>&1; then
5877 else
5878 ac_cv_header_stdc=no
5880 rm -f conftest*
5884 if test $ac_cv_header_stdc = yes; then
5885 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5886 cat >conftest.$ac_ext <<_ACEOF
5887 /* confdefs.h. */
5888 _ACEOF
5889 cat confdefs.h >>conftest.$ac_ext
5890 cat >>conftest.$ac_ext <<_ACEOF
5891 /* end confdefs.h. */
5892 #include <stdlib.h>
5894 _ACEOF
5895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5896 $EGREP "free" >/dev/null 2>&1; then
5898 else
5899 ac_cv_header_stdc=no
5901 rm -f conftest*
5905 if test $ac_cv_header_stdc = yes; then
5906 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5907 if test "$cross_compiling" = yes; then
5909 else
5910 cat >conftest.$ac_ext <<_ACEOF
5911 /* confdefs.h. */
5912 _ACEOF
5913 cat confdefs.h >>conftest.$ac_ext
5914 cat >>conftest.$ac_ext <<_ACEOF
5915 /* end confdefs.h. */
5916 #include <ctype.h>
5917 #if ((' ' & 0x0FF) == 0x020)
5918 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5919 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5920 #else
5921 # define ISLOWER(c) \
5922 (('a' <= (c) && (c) <= 'i') \
5923 || ('j' <= (c) && (c) <= 'r') \
5924 || ('s' <= (c) && (c) <= 'z'))
5925 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5926 #endif
5928 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5930 main ()
5932 int i;
5933 for (i = 0; i < 256; i++)
5934 if (XOR (islower (i), ISLOWER (i))
5935 || toupper (i) != TOUPPER (i))
5936 exit(2);
5937 exit (0);
5939 _ACEOF
5940 rm -f conftest$ac_exeext
5941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5942 (eval $ac_link) 2>&5
5943 ac_status=$?
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947 (eval $ac_try) 2>&5
5948 ac_status=$?
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); }; }; then
5952 else
5953 echo "$as_me: program exited with status $ac_status" >&5
5954 echo "$as_me: failed program was:" >&5
5955 sed 's/^/| /' conftest.$ac_ext >&5
5957 ( exit $ac_status )
5958 ac_cv_header_stdc=no
5960 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5964 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5965 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5966 if test $ac_cv_header_stdc = yes; then
5968 cat >>confdefs.h <<\_ACEOF
5969 #define STDC_HEADERS 1
5970 _ACEOF
5974 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5984 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5985 inttypes.h stdint.h unistd.h
5987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5988 echo "$as_me:$LINENO: checking for $ac_header" >&5
5989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5991 echo $ECHO_N "(cached) $ECHO_C" >&6
5992 else
5993 cat >conftest.$ac_ext <<_ACEOF
5994 /* confdefs.h. */
5995 _ACEOF
5996 cat confdefs.h >>conftest.$ac_ext
5997 cat >>conftest.$ac_ext <<_ACEOF
5998 /* end confdefs.h. */
5999 $ac_includes_default
6001 #include <$ac_header>
6002 _ACEOF
6003 rm -f conftest.$ac_objext
6004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6005 (eval $ac_compile) 2>conftest.er1
6006 ac_status=$?
6007 grep -v '^ *+' conftest.er1 >conftest.err
6008 rm -f conftest.er1
6009 cat conftest.err >&5
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); } &&
6012 { ac_try='test -z "$ac_c_werror_flag"
6013 || test ! -s conftest.err'
6014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6015 (eval $ac_try) 2>&5
6016 ac_status=$?
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); }; } &&
6019 { ac_try='test -s conftest.$ac_objext'
6020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6021 (eval $ac_try) 2>&5
6022 ac_status=$?
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); }; }; then
6025 eval "$as_ac_Header=yes"
6026 else
6027 echo "$as_me: failed program was:" >&5
6028 sed 's/^/| /' conftest.$ac_ext >&5
6030 eval "$as_ac_Header=no"
6032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6036 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6037 cat >>confdefs.h <<_ACEOF
6038 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6039 _ACEOF
6043 done
6048 # Check whether --with-gdlib-prefix or --without-gdlib-prefix was given.
6049 if test "${with_gdlib_prefix+set}" = set; then
6050 withval="$with_gdlib_prefix"
6054 # Check whether --with-gdlib-config or --without-gdlib-config was given.
6055 if test "${with_gdlib_config+set}" = set; then
6056 withval="$with_gdlib_config"
6060 GDLIB_VERSION=
6062 # do we have gdlib-config name: it can be gdlib-config or gd-config or ...
6063 if test x${GDLIB_CONFIG_NAME+set} != xset; then
6064 GDLIB_CONFIG_NAME=gdlib-config
6067 if test -n "$with_gdlib_config"; then
6068 GDLIB_CONFIG_NAME="$with_gdlib_config"
6072 # deal with optional prefix
6073 if test -n "$with_gdlib_prefix"; then
6074 GDLIB_LOOKUP_PATH="$with_gdlib_prefix/bin"
6078 # don't search the PATH if GDLIB_CONFIG_NAME is absolute filename
6079 if test -x "$GDLIB_CONFIG_NAME"; then
6081 echo "$as_me:$LINENO: checking for gdlib-config" >&5
6082 echo $ECHO_N "checking for gdlib-config... $ECHO_C" >&6
6083 GDLIB_CONFIG_PATH="$GDLIB_CONFIG_NAME"
6084 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6085 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6087 else
6088 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args.
6089 set dummy $GDLIB_CONFIG_NAME; ac_word=$2
6090 echo "$as_me:$LINENO: checking for $ac_word" >&5
6091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6092 if test "${ac_cv_path_GDLIB_CONFIG_PATH+set}" = set; then
6093 echo $ECHO_N "(cached) $ECHO_C" >&6
6094 else
6095 case $GDLIB_CONFIG_PATH in
6096 [\\/]* | ?:[\\/]*)
6097 ac_cv_path_GDLIB_CONFIG_PATH="$GDLIB_CONFIG_PATH" # Let the user override the test with a path.
6100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101 as_dummy="$GDLIB_LOOKUP_PATH:$PATH"
6102 for as_dir in $as_dummy
6104 IFS=$as_save_IFS
6105 test -z "$as_dir" && as_dir=.
6106 for ac_exec_ext in '' $ac_executable_extensions; do
6107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6108 ac_cv_path_GDLIB_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
6109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6110 break 2
6112 done
6113 done
6115 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH="no"
6117 esac
6119 GDLIB_CONFIG_PATH=$ac_cv_path_GDLIB_CONFIG_PATH
6121 if test -n "$GDLIB_CONFIG_PATH"; then
6122 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6123 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6124 else
6125 echo "$as_me:$LINENO: result: no" >&5
6126 echo "${ECHO_T}no" >&6
6132 if test ${GDLIB_CONFIG_PATH:-no} != no; then
6134 echo "$as_me:$LINENO: checking for gdlib version >= 2.0.0" >&5
6135 echo $ECHO_N "checking for gdlib version >= 2.0.0... $ECHO_C" >&6
6136 GDLIB_CONFIG_WITH_ARGS="$GDLIB_CONFIG_PATH $gdlib_config_args"
6138 GDLIB_VERSION=`$GDLIB_CONFIG_WITH_ARGS --version`
6139 gdlib_config_major_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6140 gdlib_config_minor_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6141 gdlib_config_micro_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6143 gdlib_ver_ok=
6144 if test $gdlib_config_major_version -gt 2; then
6145 gdlib_ver_ok=yes
6146 elif test $gdlib_config_major_version -eq 2; then
6148 if test $gdlib_config_minor_version -gt 0; then
6149 gdlib_ver_ok=yes
6150 elif test $gdlib_config_minor_version -eq 0; then
6151 if test $gdlib_config_micro_version -ge 0; then
6152 gdlib_ver_ok=yes
6161 if test -z "$gdlib_ver_ok"; then
6163 if test -z "$GDLIB_VERSION"; then
6164 echo "$as_me:$LINENO: result: no" >&5
6165 echo "${ECHO_T}no" >&6
6166 else
6168 echo "$as_me:$LINENO: result: no (version $GDLIB_VERSION is not new enough)" >&5
6169 echo "${ECHO_T}no (version $GDLIB_VERSION is not new enough)" >&6
6170 GDLIB_VERSION=
6175 else
6177 echo "$as_me:$LINENO: result: yes (version $GDLIB_VERSION)" >&5
6178 echo "${ECHO_T}yes (version $GDLIB_VERSION)" >&6
6179 if test "${ac_cv_header_gd_h+set}" = set; then
6180 echo "$as_me:$LINENO: checking for gd.h" >&5
6181 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6182 if test "${ac_cv_header_gd_h+set}" = set; then
6183 echo $ECHO_N "(cached) $ECHO_C" >&6
6185 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6186 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6187 else
6188 # Is the header compilable?
6189 echo "$as_me:$LINENO: checking gd.h usability" >&5
6190 echo $ECHO_N "checking gd.h usability... $ECHO_C" >&6
6191 cat >conftest.$ac_ext <<_ACEOF
6192 /* confdefs.h. */
6193 _ACEOF
6194 cat confdefs.h >>conftest.$ac_ext
6195 cat >>conftest.$ac_ext <<_ACEOF
6196 /* end confdefs.h. */
6197 $ac_includes_default
6198 #include <gd.h>
6199 _ACEOF
6200 rm -f conftest.$ac_objext
6201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6202 (eval $ac_compile) 2>conftest.er1
6203 ac_status=$?
6204 grep -v '^ *+' conftest.er1 >conftest.err
6205 rm -f conftest.er1
6206 cat conftest.err >&5
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); } &&
6209 { ac_try='test -z "$ac_c_werror_flag"
6210 || test ! -s conftest.err'
6211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6212 (eval $ac_try) 2>&5
6213 ac_status=$?
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); }; } &&
6216 { ac_try='test -s conftest.$ac_objext'
6217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6218 (eval $ac_try) 2>&5
6219 ac_status=$?
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); }; }; then
6222 ac_header_compiler=yes
6223 else
6224 echo "$as_me: failed program was:" >&5
6225 sed 's/^/| /' conftest.$ac_ext >&5
6227 ac_header_compiler=no
6229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6230 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6231 echo "${ECHO_T}$ac_header_compiler" >&6
6233 # Is the header present?
6234 echo "$as_me:$LINENO: checking gd.h presence" >&5
6235 echo $ECHO_N "checking gd.h presence... $ECHO_C" >&6
6236 cat >conftest.$ac_ext <<_ACEOF
6237 /* confdefs.h. */
6238 _ACEOF
6239 cat confdefs.h >>conftest.$ac_ext
6240 cat >>conftest.$ac_ext <<_ACEOF
6241 /* end confdefs.h. */
6242 #include <gd.h>
6243 _ACEOF
6244 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6246 ac_status=$?
6247 grep -v '^ *+' conftest.er1 >conftest.err
6248 rm -f conftest.er1
6249 cat conftest.err >&5
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); } >/dev/null; then
6252 if test -s conftest.err; then
6253 ac_cpp_err=$ac_c_preproc_warn_flag
6254 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6255 else
6256 ac_cpp_err=
6258 else
6259 ac_cpp_err=yes
6261 if test -z "$ac_cpp_err"; then
6262 ac_header_preproc=yes
6263 else
6264 echo "$as_me: failed program was:" >&5
6265 sed 's/^/| /' conftest.$ac_ext >&5
6267 ac_header_preproc=no
6269 rm -f conftest.err conftest.$ac_ext
6270 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6271 echo "${ECHO_T}$ac_header_preproc" >&6
6273 # So? What about this header?
6274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6275 yes:no: )
6276 { echo "$as_me:$LINENO: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&5
6277 echo "$as_me: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6278 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the compiler's result" >&5
6279 echo "$as_me: WARNING: gd.h: proceeding with the compiler's result" >&2;}
6280 ac_header_preproc=yes
6282 no:yes:* )
6283 { echo "$as_me:$LINENO: WARNING: gd.h: present but cannot be compiled" >&5
6284 echo "$as_me: WARNING: gd.h: present but cannot be compiled" >&2;}
6285 { echo "$as_me:$LINENO: WARNING: gd.h: check for missing prerequisite headers?" >&5
6286 echo "$as_me: WARNING: gd.h: check for missing prerequisite headers?" >&2;}
6287 { echo "$as_me:$LINENO: WARNING: gd.h: see the Autoconf documentation" >&5
6288 echo "$as_me: WARNING: gd.h: see the Autoconf documentation" >&2;}
6289 { echo "$as_me:$LINENO: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&5
6290 echo "$as_me: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&2;}
6291 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the preprocessor's result" >&5
6292 echo "$as_me: WARNING: gd.h: proceeding with the preprocessor's result" >&2;}
6293 { echo "$as_me:$LINENO: WARNING: gd.h: in the future, the compiler will take precedence" >&5
6294 echo "$as_me: WARNING: gd.h: in the future, the compiler will take precedence" >&2;}
6296 cat <<\_ASBOX
6297 ## ------------------------------ ##
6298 ## Report this to admin@amule.org ##
6299 ## ------------------------------ ##
6300 _ASBOX
6302 sed "s/^/$as_me: WARNING: /" >&2
6304 esac
6305 echo "$as_me:$LINENO: checking for gd.h" >&5
6306 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6307 if test "${ac_cv_header_gd_h+set}" = set; then
6308 echo $ECHO_N "(cached) $ECHO_C" >&6
6309 else
6310 ac_cv_header_gd_h=$ac_header_preproc
6312 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6313 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6316 if test $ac_cv_header_gd_h = yes; then
6318 GDLIB_CFLAGS="`$GDLIB_CONFIG_WITH_ARGS --cflags`"
6319 GDLIB_LDFLAGS="`$GDLIB_CONFIG_WITH_ARGS --ldflags`"
6320 GDLIB_LIBS="`$GDLIB_CONFIG_WITH_ARGS --libs`"
6322 else
6323 GDLIB_VERSION=
6334 if test -n "$GDLIB_VERSION"; then
6336 CAS_DEFS="-D__GD__"
6337 GDLIB_LIBS="-lgd $GDLIB_LIBS"
6339 else
6340 CAS_DEFS=
6346 if test -z "$CAS_DEFS"; then
6348 { echo "$as_me:$LINENO: 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 gdlib-config).
6355 If you use compiled packages check if you have devel pack installed.
6356 To download the latest version check http://www.boutell.com/gd
6357 for sources." >&5
6358 echo "$as_me: WARNING:
6359 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6360 Please check that gdlib-config is in your default path, check out
6361 LD_LIBRARY_PATH or equivalent variable.
6362 Or this might also be that your gdlib-config has other name.
6363 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6364 (replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
6365 If you use compiled packages check if you have devel pack installed.
6366 To download the latest version check http://www.boutell.com/gd
6367 for sources." >&2;}
6372 else
6373 GDLIB_VERSION="not_needed"
6378 if test x$WEB = xyes; then
6380 echo "$as_me:$LINENO: checking for a POSIX compliant regex library" >&5
6381 echo $ECHO_N "checking for a POSIX compliant regex library... $ECHO_C" >&6
6382 regex_found=no
6383 for REGEX_LIBS in '' -lgnurx -lregex; do
6384 mule_backup_LIBS="$LIBS"
6385 LIBS="$REGEX_LIBS $LIBS"
6386 cat >conftest.$ac_ext <<_ACEOF
6388 /* confdefs.h. */
6389 _ACEOF
6390 cat confdefs.h >>conftest.$ac_ext
6391 cat >>conftest.$ac_ext <<_ACEOF
6392 /* end confdefs.h. */
6394 #include <regex.h>
6397 main ()
6400 regex_t preg;
6401 regcomp(&preg, "", REG_EXTENDED);
6402 regmatch_t *pmatch;
6403 regexec(&preg, "", 0, pmatch, 0);
6404 regfree(&preg);
6407 return 0;
6410 _ACEOF
6411 rm -f conftest.$ac_objext conftest$ac_exeext
6412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6413 (eval $ac_link) 2>conftest.er1
6414 ac_status=$?
6415 grep -v '^ *+' conftest.er1 >conftest.err
6416 rm -f conftest.er1
6417 cat conftest.err >&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } &&
6420 { ac_try='test -z "$ac_c_werror_flag"
6421 || test ! -s conftest.err'
6422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423 (eval $ac_try) 2>&5
6424 ac_status=$?
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); }; } &&
6427 { ac_try='test -s conftest$ac_exeext'
6428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429 (eval $ac_try) 2>&5
6430 ac_status=$?
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; }; then
6434 LIBS="$mule_backup_LIBS"
6435 regex_found=yes
6436 break;
6438 else
6439 echo "$as_me: failed program was:" >&5
6440 sed 's/^/| /' conftest.$ac_ext >&5
6442 LIBS="$mule_backup_LIBS"
6444 rm -f conftest.err conftest.$ac_objext \
6445 conftest$ac_exeext conftest.$ac_ext
6446 done
6447 echo "$as_me:$LINENO: result: $regex_found" >&5
6448 echo "${ECHO_T}$regex_found" >&6
6449 if test $regex_found = yes; then
6451 else
6452 WEB=disabled
6458 if test x$WEB = xyes; then
6461 # Check whether --with-libpng-prefix or --without-libpng-prefix was given.
6462 if test "${with_libpng_prefix+set}" = set; then
6463 withval="$with_libpng_prefix"
6467 # Check whether --with-libpng-config or --without-libpng-config was given.
6468 if test "${with_libpng_config+set}" = set; then
6469 withval="$with_libpng_config"
6473 LIBPNG_VERSION=
6475 # do we have libpng-config name: it can be libpng-config or libpng12-config or ...
6476 if test x${LIBPNG_CONFIG_NAME+set} != xset; then
6477 LIBPNG_CONFIG_NAME=libpng-config
6480 if test -n "$with_libpng_config"; then
6481 LIBPNG_CONFIG_NAME="$with_libpng_config"
6485 # deal with optional prefix
6486 if test -n "$with_libpng_prefix"; then
6487 LIBPNG_LOOKUP_PATH="$with_libpng_prefix/bin"
6491 # don't search the PATH if LIBPNG_CONFIG_NAME is absolute filename
6492 if test -x "$LIBPNG_CONFIG_NAME"; then
6494 echo "$as_me:$LINENO: checking for libpng-config" >&5
6495 echo $ECHO_N "checking for libpng-config... $ECHO_C" >&6
6496 LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_NAME"
6497 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6498 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6500 else
6501 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
6502 set dummy $LIBPNG_CONFIG_NAME; ac_word=$2
6503 echo "$as_me:$LINENO: checking for $ac_word" >&5
6504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6505 if test "${ac_cv_path_LIBPNG_CONFIG_PATH+set}" = set; then
6506 echo $ECHO_N "(cached) $ECHO_C" >&6
6507 else
6508 case $LIBPNG_CONFIG_PATH in
6509 [\\/]* | ?:[\\/]*)
6510 ac_cv_path_LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
6513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514 as_dummy="$LIBPNG_LOOKUP_PATH:$PATH"
6515 for as_dir in $as_dummy
6517 IFS=$as_save_IFS
6518 test -z "$as_dir" && as_dir=.
6519 for ac_exec_ext in '' $ac_executable_extensions; do
6520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6521 ac_cv_path_LIBPNG_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
6522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6523 break 2
6525 done
6526 done
6528 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH="no"
6530 esac
6532 LIBPNG_CONFIG_PATH=$ac_cv_path_LIBPNG_CONFIG_PATH
6534 if test -n "$LIBPNG_CONFIG_PATH"; then
6535 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6536 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6537 else
6538 echo "$as_me:$LINENO: result: no" >&5
6539 echo "${ECHO_T}no" >&6
6545 if test ${LIBPNG_CONFIG_PATH:-no} != no; then
6547 echo "$as_me:$LINENO: checking for libpng version >= 1.2.0" >&5
6548 echo $ECHO_N "checking for libpng version >= 1.2.0... $ECHO_C" >&6
6550 LIBPNG_CONFIG_WITH_ARGS="$LIBPNG_CONFIG_PATH $libpng_config_args"
6552 LIBPNG_VERSION=`$LIBPNG_CONFIG_WITH_ARGS --version`
6553 libpng_config_major_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6554 libpng_config_minor_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6555 libpng_config_micro_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6557 libpng_ver_ok=
6558 if test $libpng_config_major_version -gt 1; then
6559 libpng_ver_ok=yes
6560 elif test $libpng_config_major_version -eq 1; then
6562 if test $libpng_config_minor_version -gt 2; then
6563 libpng_ver_ok=yes
6564 elif test $libpng_config_minor_version -eq 2; then
6565 if test $libpng_config_micro_version -ge 0; then
6566 libpng_ver_ok=yes
6575 if test -z "$libpng_ver_ok"; then
6577 if test -z "$LIBPNG_VERSION"; then
6578 echo "$as_me:$LINENO: result: no" >&5
6579 echo "${ECHO_T}no" >&6
6580 else
6582 echo "$as_me:$LINENO: result: no (version $LIBPNG_VERSION is not new enough)" >&5
6583 echo "${ECHO_T}no (version $LIBPNG_VERSION is not new enough)" >&6
6584 LIBPNG_VERSION=
6589 else
6591 LIBPNG_LIBS=`$LIBPNG_CONFIG_WITH_ARGS --libs`
6592 LIBPNG_LDFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --ldflags | sed -e "s/ *${LIBPNG_LIBS}$//"`
6593 LIBPNG_CFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
6594 echo "$as_me:$LINENO: result: yes (version $LIBPNG_VERSION)" >&5
6595 echo "${ECHO_T}yes (version $LIBPNG_VERSION)" >&6
6600 else
6602 # Try hard to find a usable libpng
6603 # Some RedHat RPMs miss libpng-config, so test for
6604 # the usability with default options.
6605 echo "$as_me:$LINENO: checking for libpng >= 1.2.0" >&5
6606 echo $ECHO_N "checking for libpng >= 1.2.0... $ECHO_C" >&6
6607 mule_backup_LIBS="$LIBS"
6608 LIBS="-lpng -lz -lm $LIBS"
6609 if test "$cross_compiling" = yes; then
6611 echo "$as_me:$LINENO: result: cross-compilation detected, checking only the header" >&5
6612 echo "${ECHO_T}cross-compilation detected, checking only the header" >&6
6613 if test "${ac_cv_header_png_h+set}" = set; then
6614 echo "$as_me:$LINENO: checking for png.h" >&5
6615 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
6616 if test "${ac_cv_header_png_h+set}" = set; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6619 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
6620 echo "${ECHO_T}$ac_cv_header_png_h" >&6
6621 else
6622 # Is the header compilable?
6623 echo "$as_me:$LINENO: checking png.h usability" >&5
6624 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
6625 cat >conftest.$ac_ext <<_ACEOF
6626 /* confdefs.h. */
6627 _ACEOF
6628 cat confdefs.h >>conftest.$ac_ext
6629 cat >>conftest.$ac_ext <<_ACEOF
6630 /* end confdefs.h. */
6631 $ac_includes_default
6632 #include <png.h>
6633 _ACEOF
6634 rm -f conftest.$ac_objext
6635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6636 (eval $ac_compile) 2>conftest.er1
6637 ac_status=$?
6638 grep -v '^ *+' conftest.er1 >conftest.err
6639 rm -f conftest.er1
6640 cat conftest.err >&5
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); } &&
6643 { ac_try='test -z "$ac_c_werror_flag"
6644 || test ! -s conftest.err'
6645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6646 (eval $ac_try) 2>&5
6647 ac_status=$?
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); }; } &&
6650 { ac_try='test -s conftest.$ac_objext'
6651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6652 (eval $ac_try) 2>&5
6653 ac_status=$?
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); }; }; then
6656 ac_header_compiler=yes
6657 else
6658 echo "$as_me: failed program was:" >&5
6659 sed 's/^/| /' conftest.$ac_ext >&5
6661 ac_header_compiler=no
6663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6664 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6665 echo "${ECHO_T}$ac_header_compiler" >&6
6667 # Is the header present?
6668 echo "$as_me:$LINENO: checking png.h presence" >&5
6669 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
6670 cat >conftest.$ac_ext <<_ACEOF
6671 /* confdefs.h. */
6672 _ACEOF
6673 cat confdefs.h >>conftest.$ac_ext
6674 cat >>conftest.$ac_ext <<_ACEOF
6675 /* end confdefs.h. */
6676 #include <png.h>
6677 _ACEOF
6678 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6679 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6680 ac_status=$?
6681 grep -v '^ *+' conftest.er1 >conftest.err
6682 rm -f conftest.er1
6683 cat conftest.err >&5
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); } >/dev/null; then
6686 if test -s conftest.err; then
6687 ac_cpp_err=$ac_c_preproc_warn_flag
6688 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6689 else
6690 ac_cpp_err=
6692 else
6693 ac_cpp_err=yes
6695 if test -z "$ac_cpp_err"; then
6696 ac_header_preproc=yes
6697 else
6698 echo "$as_me: failed program was:" >&5
6699 sed 's/^/| /' conftest.$ac_ext >&5
6701 ac_header_preproc=no
6703 rm -f conftest.err conftest.$ac_ext
6704 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6705 echo "${ECHO_T}$ac_header_preproc" >&6
6707 # So? What about this header?
6708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6709 yes:no: )
6710 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
6711 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6712 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
6713 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
6714 ac_header_preproc=yes
6716 no:yes:* )
6717 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
6718 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
6719 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
6720 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
6721 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
6722 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
6723 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
6724 echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
6725 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
6726 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
6727 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
6728 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
6730 cat <<\_ASBOX
6731 ## ------------------------------ ##
6732 ## Report this to admin@amule.org ##
6733 ## ------------------------------ ##
6734 _ASBOX
6736 sed "s/^/$as_me: WARNING: /" >&2
6738 esac
6739 echo "$as_me:$LINENO: checking for png.h" >&5
6740 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
6741 if test "${ac_cv_header_png_h+set}" = set; then
6742 echo $ECHO_N "(cached) $ECHO_C" >&6
6743 else
6744 ac_cv_header_png_h=$ac_header_preproc
6746 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
6747 echo "${ECHO_T}$ac_cv_header_png_h" >&6
6750 if test $ac_cv_header_png_h = yes; then
6752 LIBPNG_VERSION="detected"
6753 LIBPNG_LIBS="-lpng -lz -lm"
6759 else
6760 cat >conftest.$ac_ext <<_ACEOF
6762 /* confdefs.h. */
6763 _ACEOF
6764 cat confdefs.h >>conftest.$ac_ext
6765 cat >>conftest.$ac_ext <<_ACEOF
6766 /* end confdefs.h. */
6768 #include <png.h>
6769 #include <stdio.h>
6771 /* Check linking to png library */
6772 void dummy() {
6773 png_check_sig(NULL, 0);
6777 main ()
6779 /* png.h defines PNG_LIBPNG_VER=xyyzz */
6780 FILE *f=fopen("conftestval", "w");
6781 if (!f) exit(1);
6782 fprintf(f, "%s", (PNG_LIBPNG_VER >= 1 * 10000 + 2 * 100 + 0) ? "yes" : "no");
6783 fclose(f);
6784 f=fopen("conftestver", "w");
6785 if (!f) exit(0);
6786 fprintf(f, "%s", PNG_LIBPNG_VER_STRING);
6787 fclose(f);
6788 exit(0);
6791 return 0;
6794 _ACEOF
6795 rm -f conftest$ac_exeext
6796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6797 (eval $ac_link) 2>&5
6798 ac_status=$?
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6802 (eval $ac_try) 2>&5
6803 ac_status=$?
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); }; }; then
6807 if test -f conftestval; then
6808 result=`cat conftestval`
6809 else
6810 result=no
6813 if test ${result:-no} = yes; then
6815 if test -f conftestver; then
6817 LIBPNG_VERSION=`cat conftestver`
6818 lib_version=" (version $LIBPNG_VERSION)"
6820 else
6822 lib_version=
6823 LIBPNG_VERSION="detected"
6830 echo "$as_me:$LINENO: result: $result$lib_version" >&5
6831 echo "${ECHO_T}$result$lib_version" >&6
6832 LIBPNG_LIBS="-lpng -lz -lm"
6834 else
6835 echo "$as_me: program exited with status $ac_status" >&5
6836 echo "$as_me: failed program was:" >&5
6837 sed 's/^/| /' conftest.$ac_ext >&5
6839 ( exit $ac_status )
6841 result=no
6842 echo "$as_me:$LINENO: result: $result" >&5
6843 echo "${ECHO_T}$result" >&6
6846 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6848 LIBS="$mule_backup_LIBS"
6853 if test -n "$LIBPNG_VERSION"; then
6854 AMULEWEB_DEFS="-DWITH_LIBPNG"
6855 else
6856 { echo "$as_me:$LINENO: WARNING: libpng-devel >= 1.2.0 is needed for amuleweb" >&5
6857 echo "$as_me: WARNING: libpng-devel >= 1.2.0 is needed for amuleweb" >&2;}
6863 else
6864 LIBPNG_VERSION="not_needed"
6869 # Check for perl File::Copy
6870 echo "$as_me:$LINENO: checking for File::Copy" >&5
6871 echo $ECHO_N "checking for File::Copy... $ECHO_C" >&6
6872 if perl -e "require File::Copy" 2>/dev/null; then
6873 echo "$as_me:$LINENO: result: ok" >&5
6874 echo "${ECHO_T}ok" >&6
6875 else
6876 { { echo "$as_me:$LINENO: error: File::Copy perl module is required" >&5
6877 echo "$as_me: error: File::Copy perl module is required" >&2;}
6878 { (exit 1); exit 1; }; }
6883 # Check if we need the GUI
6884 echo "$as_me:$LINENO: checking whether we need the GUI" >&5
6885 echo $ECHO_N "checking whether we need the GUI... $ECHO_C" >&6
6886 if test x$MONOLITHIC = xyes; then
6887 need_gui=yes
6890 if test x$WXCAS = xyes; then
6891 need_gui=yes
6894 if test x$ALC = xyes; then
6895 need_gui=yes
6898 if test x$AMULE_GUI = xyes; then
6899 need_gui=yes
6902 if test x${need_gui:+set} != xset; then
6903 need_gui=no
6906 echo "$as_me:$LINENO: result: $need_gui" >&5
6907 echo "${ECHO_T}$need_gui" >&6
6910 # Check for GeoIP (required for IP2Country capability)
6911 if test ${ENABLE_IP2COUNTRY:-no} = yes; then
6913 GEOIP_LIBS="-lGeoIP"
6914 GEOIP_CPPFLAGS="$GEOIP_CPPFLAGS -DENABLE_IP2COUNTRY=1"
6915 mule_backup_CPPFLAGS="$CPPFLAGS"
6916 CPPFLAGS="$CPPFLAGS $GEOIP_CPPFLAGS"
6917 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6918 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
6919 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
6920 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6921 echo $ECHO_N "(cached) $ECHO_C" >&6
6923 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
6924 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
6925 else
6926 # Is the header compilable?
6927 echo "$as_me:$LINENO: checking GeoIP.h usability" >&5
6928 echo $ECHO_N "checking GeoIP.h usability... $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 $ac_includes_default
6936 #include <GeoIP.h>
6937 _ACEOF
6938 rm -f conftest.$ac_objext
6939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6940 (eval $ac_compile) 2>conftest.er1
6941 ac_status=$?
6942 grep -v '^ *+' conftest.er1 >conftest.err
6943 rm -f conftest.er1
6944 cat conftest.err >&5
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); } &&
6947 { ac_try='test -z "$ac_c_werror_flag"
6948 || test ! -s conftest.err'
6949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6950 (eval $ac_try) 2>&5
6951 ac_status=$?
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); }; } &&
6954 { ac_try='test -s conftest.$ac_objext'
6955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6956 (eval $ac_try) 2>&5
6957 ac_status=$?
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); }; }; then
6960 ac_header_compiler=yes
6961 else
6962 echo "$as_me: failed program was:" >&5
6963 sed 's/^/| /' conftest.$ac_ext >&5
6965 ac_header_compiler=no
6967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6968 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6969 echo "${ECHO_T}$ac_header_compiler" >&6
6971 # Is the header present?
6972 echo "$as_me:$LINENO: checking GeoIP.h presence" >&5
6973 echo $ECHO_N "checking GeoIP.h presence... $ECHO_C" >&6
6974 cat >conftest.$ac_ext <<_ACEOF
6975 /* confdefs.h. */
6976 _ACEOF
6977 cat confdefs.h >>conftest.$ac_ext
6978 cat >>conftest.$ac_ext <<_ACEOF
6979 /* end confdefs.h. */
6980 #include <GeoIP.h>
6981 _ACEOF
6982 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6984 ac_status=$?
6985 grep -v '^ *+' conftest.er1 >conftest.err
6986 rm -f conftest.er1
6987 cat conftest.err >&5
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); } >/dev/null; then
6990 if test -s conftest.err; then
6991 ac_cpp_err=$ac_c_preproc_warn_flag
6992 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6993 else
6994 ac_cpp_err=
6996 else
6997 ac_cpp_err=yes
6999 if test -z "$ac_cpp_err"; then
7000 ac_header_preproc=yes
7001 else
7002 echo "$as_me: failed program was:" >&5
7003 sed 's/^/| /' conftest.$ac_ext >&5
7005 ac_header_preproc=no
7007 rm -f conftest.err conftest.$ac_ext
7008 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7009 echo "${ECHO_T}$ac_header_preproc" >&6
7011 # So? What about this header?
7012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7013 yes:no: )
7014 { echo "$as_me:$LINENO: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&5
7015 echo "$as_me: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7016 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the compiler's result" >&5
7017 echo "$as_me: WARNING: GeoIP.h: proceeding with the compiler's result" >&2;}
7018 ac_header_preproc=yes
7020 no:yes:* )
7021 { echo "$as_me:$LINENO: WARNING: GeoIP.h: present but cannot be compiled" >&5
7022 echo "$as_me: WARNING: GeoIP.h: present but cannot be compiled" >&2;}
7023 { echo "$as_me:$LINENO: WARNING: GeoIP.h: check for missing prerequisite headers?" >&5
7024 echo "$as_me: WARNING: GeoIP.h: check for missing prerequisite headers?" >&2;}
7025 { echo "$as_me:$LINENO: WARNING: GeoIP.h: see the Autoconf documentation" >&5
7026 echo "$as_me: WARNING: GeoIP.h: see the Autoconf documentation" >&2;}
7027 { echo "$as_me:$LINENO: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&5
7028 echo "$as_me: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&2;}
7029 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&5
7030 echo "$as_me: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&2;}
7031 { echo "$as_me:$LINENO: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&5
7032 echo "$as_me: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&2;}
7034 cat <<\_ASBOX
7035 ## ------------------------------ ##
7036 ## Report this to admin@amule.org ##
7037 ## ------------------------------ ##
7038 _ASBOX
7040 sed "s/^/$as_me: WARNING: /" >&2
7042 esac
7043 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
7044 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
7045 if test "${ac_cv_header_GeoIP_h+set}" = set; then
7046 echo $ECHO_N "(cached) $ECHO_C" >&6
7047 else
7048 ac_cv_header_GeoIP_h=$ac_header_preproc
7050 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
7051 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
7054 if test $ac_cv_header_GeoIP_h = yes; then
7056 else
7057 { { echo "$as_me:$LINENO: error: --enable-geoip passed to configure, but the GeoIP header files were not found" >&5
7058 echo "$as_me: error: --enable-geoip passed to configure, but the GeoIP header files were not found" >&2;}
7059 { (exit 1); exit 1; }; }
7063 echo "$as_me:$LINENO: checking for GeoIP_open in -lGeoIP" >&5
7064 echo $ECHO_N "checking for GeoIP_open in -lGeoIP... $ECHO_C" >&6
7065 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then
7066 echo $ECHO_N "(cached) $ECHO_C" >&6
7067 else
7068 ac_check_lib_save_LIBS=$LIBS
7069 LIBS="-lGeoIP $LIBS"
7070 cat >conftest.$ac_ext <<_ACEOF
7071 /* confdefs.h. */
7072 _ACEOF
7073 cat confdefs.h >>conftest.$ac_ext
7074 cat >>conftest.$ac_ext <<_ACEOF
7075 /* end confdefs.h. */
7077 /* Override any gcc2 internal prototype to avoid an error. */
7078 #ifdef __cplusplus
7079 extern "C"
7080 #endif
7081 /* We use char because int might match the return type of a gcc2
7082 builtin and then its argument prototype would still apply. */
7083 char GeoIP_open ();
7085 main ()
7087 GeoIP_open ();
7089 return 0;
7091 _ACEOF
7092 rm -f conftest.$ac_objext conftest$ac_exeext
7093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7094 (eval $ac_link) 2>conftest.er1
7095 ac_status=$?
7096 grep -v '^ *+' conftest.er1 >conftest.err
7097 rm -f conftest.er1
7098 cat conftest.err >&5
7099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100 (exit $ac_status); } &&
7101 { ac_try='test -z "$ac_c_werror_flag"
7102 || test ! -s conftest.err'
7103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7104 (eval $ac_try) 2>&5
7105 ac_status=$?
7106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107 (exit $ac_status); }; } &&
7108 { ac_try='test -s conftest$ac_exeext'
7109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7110 (eval $ac_try) 2>&5
7111 ac_status=$?
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); }; }; then
7114 ac_cv_lib_GeoIP_GeoIP_open=yes
7115 else
7116 echo "$as_me: failed program was:" >&5
7117 sed 's/^/| /' conftest.$ac_ext >&5
7119 ac_cv_lib_GeoIP_GeoIP_open=no
7121 rm -f conftest.err conftest.$ac_objext \
7122 conftest$ac_exeext conftest.$ac_ext
7123 LIBS=$ac_check_lib_save_LIBS
7125 echo "$as_me:$LINENO: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
7126 echo "${ECHO_T}$ac_cv_lib_GeoIP_GeoIP_open" >&6
7127 if test $ac_cv_lib_GeoIP_GeoIP_open = yes; then
7129 cat >>confdefs.h <<\_ACEOF
7130 #define SUPPORT_GEOIP 1
7131 _ACEOF
7133 else
7134 { { echo "$as_me:$LINENO: error: --enable-geoip passed to configure, but the GeoIP libraries were not found" >&5
7135 echo "$as_me: error: --enable-geoip passed to configure, but the GeoIP libraries were not found" >&2;}
7136 { (exit 1); exit 1; }; }
7139 CPPFLAGS="$mule_backup_CPPFLAGS"
7145 # Check for wx
7148 # Check whether --with-wxdir or --without-wxdir was given.
7149 if test "${with_wxdir+set}" = set; then
7150 withval="$with_wxdir"
7151 wx_config_name="$withval/wx-config"
7152 wx_config_args="--inplace"
7155 # Check whether --with-wx-config or --without-wx-config was given.
7156 if test "${with_wx_config+set}" = set; then
7157 withval="$with_wx_config"
7158 wx_config_name="$withval"
7161 # Check whether --with-wx-prefix or --without-wx-prefix was given.
7162 if test "${with_wx_prefix+set}" = set; then
7163 withval="$with_wx_prefix"
7164 wx_config_prefix="$withval"
7165 else
7166 wx_config_prefix=""
7169 # Check whether --with-wx-exec-prefix or --without-wx-exec-prefix was given.
7170 if test "${with_wx_exec_prefix+set}" = set; then
7171 withval="$with_wx_exec_prefix"
7172 wx_config_exec_prefix="$withval"
7173 else
7174 wx_config_exec_prefix=""
7188 # Check whether --with-toolkit or --without-toolkit was given.
7189 if test "${with_toolkit+set}" = set; then
7190 withval="$with_toolkit"
7192 else
7193 withval="auto"
7196 echo "$as_me:$LINENO: checking for the --with-toolkit option" >&5
7197 echo $ECHO_N "checking for the --with-toolkit option... $ECHO_C" >&6
7198 if test "$withval" = "auto" ; then
7199 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7200 echo "${ECHO_T}will be automatically detected" >&6
7201 TOOLKIT="auto"
7202 else
7203 TOOLKIT="$withval"
7205 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a \
7206 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
7207 "$TOOLKIT" != "x11" -a "$TOOLKIT" != "mac" -a \
7208 "$TOOLKIT" != "mgl" -a "$TOOLKIT" != "dfb" -a \
7209 "$TOOLKIT" != "base" ; then
7210 { { echo "$as_me:$LINENO: error:
7211 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base)
7212 " >&5
7213 echo "$as_me: error:
7214 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base)
7215 " >&2;}
7216 { (exit 1); exit 1; }; }
7219 echo "$as_me:$LINENO: result: $TOOLKIT" >&5
7220 echo "${ECHO_T}$TOOLKIT" >&6
7227 # Check whether --with-wxshared or --without-wxshared was given.
7228 if test "${with_wxshared+set}" = set; then
7229 withval="$with_wxshared"
7231 else
7232 withval="auto"
7235 echo "$as_me:$LINENO: checking for the --with-wxshared option" >&5
7236 echo $ECHO_N "checking for the --with-wxshared option... $ECHO_C" >&6
7237 if test "$withval" = "yes" ; then
7238 echo "$as_me:$LINENO: result: yes" >&5
7239 echo "${ECHO_T}yes" >&6
7240 WX_SHARED=1
7242 elif test "1" = "1" -a "$withval" = "no" ; then
7243 echo "$as_me:$LINENO: result: no" >&5
7244 echo "${ECHO_T}no" >&6
7245 WX_SHARED=0
7246 elif test "$withval" = "auto" ; then
7247 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7248 echo "${ECHO_T}will be automatically detected" >&6
7249 WX_SHARED="auto"
7250 else
7251 { { echo "$as_me:$LINENO: error:
7252 Unrecognized option value (allowed values: yes, auto)
7253 " >&5
7254 echo "$as_me: error:
7255 Unrecognized option value (allowed values: yes, auto)
7256 " >&2;}
7257 { (exit 1); exit 1; }; }
7264 # Check whether --with-wxdebug or --without-wxdebug was given.
7265 if test "${with_wxdebug+set}" = set; then
7266 withval="$with_wxdebug"
7268 else
7269 withval="auto"
7272 echo "$as_me:$LINENO: checking for the --with-wxdebug option" >&5
7273 echo $ECHO_N "checking for the --with-wxdebug option... $ECHO_C" >&6
7274 if test "$withval" = "yes" ; then
7275 echo "$as_me:$LINENO: result: yes" >&5
7276 echo "${ECHO_T}yes" >&6
7277 WX_DEBUG=1
7279 elif test "1" = "1" -a "$withval" = "no" ; then
7280 echo "$as_me:$LINENO: result: no" >&5
7281 echo "${ECHO_T}no" >&6
7282 WX_DEBUG=0
7283 elif test "$withval" = "auto" ; then
7284 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7285 echo "${ECHO_T}will be automatically detected" >&6
7286 WX_DEBUG="auto"
7287 else
7288 { { echo "$as_me:$LINENO: error:
7289 Unrecognized option value (allowed values: yes, auto)
7290 " >&5
7291 echo "$as_me: error:
7292 Unrecognized option value (allowed values: yes, auto)
7293 " >&2;}
7294 { (exit 1); exit 1; }; }
7301 # Check whether --with-wxversion or --without-wxversion was given.
7302 if test "${with_wxversion+set}" = set; then
7303 withval="$with_wxversion"
7305 else
7306 withval="auto"
7309 echo "$as_me:$LINENO: checking for the --with-wxversion option" >&5
7310 echo $ECHO_N "checking for the --with-wxversion option... $ECHO_C" >&6
7311 if test "$withval" = "auto" ; then
7312 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7313 echo "${ECHO_T}will be automatically detected" >&6
7314 WX_VERSION="auto"
7315 else
7317 wx_requested_major_version=`echo $withval | \
7318 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
7319 wx_requested_minor_version=`echo $withval | \
7320 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
7322 if test "${#wx_requested_major_version}" != "1" -o \
7323 "${#wx_requested_minor_version}" != "1" ; then
7324 { { echo "$as_me:$LINENO: error:
7325 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7326 " >&5
7327 echo "$as_me: error:
7328 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7329 " >&2;}
7330 { (exit 1); exit 1; }; }
7333 WX_VERSION="$wx_requested_major_version"".""$wx_requested_minor_version"
7334 echo "$as_me:$LINENO: result: $WX_VERSION" >&5
7335 echo "${ECHO_T}$WX_VERSION" >&6
7339 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7340 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
7341 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
7342 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
7343 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
7344 echo "[dbg] VERSION: $VERSION, WX_VERSION: $WX_VERSION"
7347 # Force using a static wxWidgets library if the executable is to be linked statically.
7348 if test ${enable_static:-no} = yes; then
7349 WX_SHARED=0
7352 # Force using a unicode build of the library
7353 WX_UNICODE=1
7354 DEBUG=$WX_DEBUG
7356 if test "$WX_SHARED" = "1" ; then
7357 WXCONFIG_FLAGS="--static=no "
7358 elif test "$WX_SHARED" = "0" ; then
7359 WXCONFIG_FLAGS="--static=yes "
7362 if test "$WX_DEBUG" = "1" ; then
7363 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=yes "
7364 elif test "$WX_DEBUG" = "0" ; then
7365 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=no "
7368 if test "$WX_UNICODE" = "1" ; then
7369 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=yes "
7370 elif test "$WX_UNICODE" = "0" ; then
7371 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=no "
7374 if test "$TOOLKIT" != "auto" ; then
7375 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
7378 if test "$WX_VERSION" != "auto" ; then
7379 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--version=$WX_VERSION "
7382 WXCONFIG_FLAGS=${WXCONFIG_FLAGS% }
7384 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7385 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
7389 if test x${WX_CONFIG_NAME+set} != xset ; then
7390 WX_CONFIG_NAME=wx-config
7393 if test "x$wx_config_name" != x ; then
7394 WX_CONFIG_NAME="$wx_config_name"
7397 if test x$wx_config_exec_prefix != x ; then
7398 wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
7399 WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
7401 if test x$wx_config_prefix != x ; then
7402 wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
7403 WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
7405 if test "$cross_compiling" = "yes"; then
7406 wx_config_args="$wx_config_args --host=$host_alias"
7409 if test -x "$WX_CONFIG_NAME" ; then
7410 echo "$as_me:$LINENO: checking for wx-config" >&5
7411 echo $ECHO_N "checking for wx-config... $ECHO_C" >&6
7412 WX_CONFIG_PATH="$WX_CONFIG_NAME"
7413 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7414 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7415 else
7416 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
7417 set dummy $WX_CONFIG_NAME; ac_word=$2
7418 echo "$as_me:$LINENO: checking for $ac_word" >&5
7419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7420 if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7422 else
7423 case $WX_CONFIG_PATH in
7424 [\\/]* | ?:[\\/]*)
7425 ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path.
7428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7429 as_dummy=""$WX_LOOKUP_PATH:$PATH""
7430 for as_dir in $as_dummy
7432 IFS=$as_save_IFS
7433 test -z "$as_dir" && as_dir=.
7434 for ac_exec_ext in '' $ac_executable_extensions; do
7435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7436 ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7438 break 2
7440 done
7441 done
7443 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no"
7445 esac
7447 WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH
7449 if test -n "$WX_CONFIG_PATH"; then
7450 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7451 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7452 else
7453 echo "$as_me:$LINENO: result: no" >&5
7454 echo "${ECHO_T}no" >&6
7459 if test "$WX_CONFIG_PATH" != "no" ; then
7460 WX_VERSION_FULL=""
7462 min_wx_version=2.8.0
7463 if test -z "$WXCONFIG_FLAGS" ; then
7464 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version" >&5
7465 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version... $ECHO_C" >&6
7466 else
7467 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
7468 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... $ECHO_C" >&6
7471 WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS "
7473 WX_VERSION_FULL=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
7474 wx_config_major_version=`echo $WX_VERSION_FULL | \
7475 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7476 wx_config_minor_version=`echo $WX_VERSION_FULL | \
7477 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7478 wx_config_micro_version=`echo $WX_VERSION_FULL | \
7479 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7481 wx_requested_major_version=`echo $min_wx_version | \
7482 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7483 wx_requested_minor_version=`echo $min_wx_version | \
7484 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7485 wx_requested_micro_version=`echo $min_wx_version | \
7486 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7489 wx_ver_ok=""
7490 if test "x$WX_VERSION_FULL" != x ; then
7491 if test $wx_config_major_version -gt $wx_requested_major_version; then
7492 wx_ver_ok=yes
7493 else
7494 if test $wx_config_major_version -eq $wx_requested_major_version; then
7495 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
7496 wx_ver_ok=yes
7497 else
7498 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
7499 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
7500 wx_ver_ok=yes
7509 if test -n "$wx_ver_ok"; then
7511 echo "$as_me:$LINENO: result: yes (version $WX_VERSION_FULL)" >&5
7512 echo "${ECHO_T}yes (version $WX_VERSION_FULL)" >&6
7513 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs`
7515 echo "$as_me:$LINENO: checking for wxWidgets static library" >&5
7516 echo $ECHO_N "checking for wxWidgets static library... $ECHO_C" >&6
7517 WX_LIBS_STATIC=`$WX_CONFIG_WITH_ARGS --static --libs 2>/dev/null`
7518 if test "x$WX_LIBS_STATIC" = "x"; then
7519 echo "$as_me:$LINENO: result: no" >&5
7520 echo "${ECHO_T}no" >&6
7521 else
7522 echo "$as_me:$LINENO: result: yes" >&5
7523 echo "${ECHO_T}yes" >&6
7526 wx_has_cppflags=""
7527 if test $wx_config_major_version -gt 2; then
7528 wx_has_cppflags=yes
7529 else
7530 if test $wx_config_major_version -eq 2; then
7531 if test $wx_config_minor_version -gt 2; then
7532 wx_has_cppflags=yes
7533 else
7534 if test $wx_config_minor_version -eq 2; then
7535 if test $wx_config_micro_version -ge 6; then
7536 wx_has_cppflags=yes
7543 wx_has_rescomp=""
7544 if test $wx_config_major_version -gt 2; then
7545 wx_has_rescomp=yes
7546 else
7547 if test $wx_config_major_version -eq 2; then
7548 if test $wx_config_minor_version -ge 7; then
7549 wx_has_rescomp=yes
7553 if test "x$wx_has_rescomp" = x ; then
7554 WX_RESCOMP=
7555 else
7556 WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
7559 if test "x$wx_has_cppflags" = x ; then
7560 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
7561 WX_CPPFLAGS=$WX_CFLAGS
7562 WX_CXXFLAGS=$WX_CFLAGS
7564 WX_CFLAGS_ONLY=$WX_CFLAGS
7565 WX_CXXFLAGS_ONLY=$WX_CFLAGS
7566 else
7567 WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags`
7568 WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags`
7569 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
7571 WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
7572 WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
7575 wxWin=1
7577 else
7579 if test "x$WX_VERSION_FULL" = x; then
7580 echo "$as_me:$LINENO: result: no" >&5
7581 echo "${ECHO_T}no" >&6
7582 else
7583 echo "$as_me:$LINENO: result: no (version $WX_VERSION_FULL is not new enough)" >&5
7584 echo "${ECHO_T}no (version $WX_VERSION_FULL is not new enough)" >&6
7587 WX_CFLAGS=""
7588 WX_CPPFLAGS=""
7589 WX_CXXFLAGS=""
7590 WX_LIBS=""
7591 WX_LIBS_STATIC=""
7592 WX_RESCOMP=""
7594 if test ! -z "$WXCONFIG_FLAGS"; then
7596 wx_error_message="
7597 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
7598 build with the following settings:
7599 $WXCONFIG_FLAGS
7600 but such build is not available.
7602 To see the wxWidgets builds available on this system, please use
7603 'wx-config --list' command. To use the default build, returned by
7604 'wx-config --selected-config', use the options with their 'auto'
7605 default values."
7609 wx_error_message="
7610 The requested wxWidgets build couldn't be found.
7611 $wx_error_message
7613 If you still get this error, then check that 'wx-config' is
7614 in path, the directory where wxWidgets libraries are installed
7615 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
7616 or equivalent variable and wxWidgets version is 2.8.0 or above."
7618 { { echo "$as_me:$LINENO: error: $wx_error_message" >&5
7619 echo "$as_me: error: $wx_error_message" >&2;}
7620 { (exit 1); exit 1; }; }
7623 else
7625 WX_CFLAGS=""
7626 WX_CPPFLAGS=""
7627 WX_CXXFLAGS=""
7628 WX_LIBS=""
7629 WX_LIBS_STATIC=""
7630 WX_RESCOMP=""
7646 WX_VERSION_MAJOR="$wx_config_major_version"
7647 WX_VERSION_MINOR="$wx_config_minor_version"
7651 if test "$wxWin" != 1; then
7652 { { echo "$as_me:$LINENO: error:
7653 wxWidgets must be installed on your system but wx-config
7654 script couldn't be found. Please check that wx-config is
7655 in path or specified by --with-wx-config=path flag, the
7656 directory where wxWidgets libraries are installed (returned
7657 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7658 equivalent variable and wxWidgets version is 2.8.0 or above.
7659 " >&5
7660 echo "$as_me: error:
7661 wxWidgets must be installed on your system but wx-config
7662 script couldn't be found. Please check that wx-config is
7663 in path or specified by --with-wx-config=path flag, the
7664 directory where wxWidgets libraries are installed (returned
7665 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7666 equivalent variable and wxWidgets version is 2.8.0 or above.
7667 " >&2;}
7668 { (exit 1); exit 1; }; }
7671 WX_VERSION="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
7672 if test $WX_VERSION -lt 26 ; then
7674 { { echo "$as_me:$LINENO: error:
7675 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7676 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7677 version of wxWidgets.
7678 " >&5
7679 echo "$as_me: error:
7680 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7681 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7682 version of wxWidgets.
7683 " >&2;}
7684 { (exit 1); exit 1; }; }
7687 WX_SELECTEDCONFIG=$($WX_CONFIG_WITH_ARGS --selected_config)
7689 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7690 echo "[dbg] Using wx-config --selected-config"
7691 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
7695 if test $WX_SHARED = "1"; then
7696 STATIC=0
7697 elif test $WX_SHARED = "0"; then
7698 STATIC=1
7699 elif test $WX_SHARED = "auto"; then
7700 STATIC="auto"
7704 if test "$UNICODE" = "auto" ; then
7706 echo "$as_me:$LINENO: checking if wxWidgets was built with UNICODE enabled" >&5
7707 echo $ECHO_N "checking if wxWidgets was built with UNICODE enabled... $ECHO_C" >&6
7709 WX_UNICODE=$(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
7711 if test "$WX_UNICODE" != "0"; then
7712 WX_UNICODE=1
7713 echo "$as_me:$LINENO: result: yes" >&5
7714 echo "${ECHO_T}yes" >&6
7716 else
7717 WX_UNICODE=0
7718 echo "$as_me:$LINENO: result: no" >&5
7719 echo "${ECHO_T}no" >&6
7722 else
7724 WX_UNICODE=$UNICODE
7728 if test "$DEBUG" = "auto" ; then
7730 echo "$as_me:$LINENO: checking if wxWidgets was built in DEBUG mode" >&5
7731 echo $ECHO_N "checking if wxWidgets was built in DEBUG mode... $ECHO_C" >&6
7733 WX_DEBUG=$(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
7735 if test "$WX_DEBUG" != "0"; then
7736 WX_DEBUG=1
7737 echo "$as_me:$LINENO: result: yes" >&5
7738 echo "${ECHO_T}yes" >&6
7740 else
7741 WX_DEBUG=0
7742 echo "$as_me:$LINENO: result: no" >&5
7743 echo "${ECHO_T}no" >&6
7746 else
7748 WX_DEBUG=$DEBUG
7752 if test "$STATIC" = "auto" ; then
7754 echo "$as_me:$LINENO: checking if wxWidgets was built in STATIC mode" >&5
7755 echo $ECHO_N "checking if wxWidgets was built in STATIC mode... $ECHO_C" >&6
7757 WX_STATIC=$(expr "$WX_SELECTEDCONFIG" : ".*static.*")
7759 if test "$WX_STATIC" != "0"; then
7760 WX_STATIC=1
7761 echo "$as_me:$LINENO: result: yes" >&5
7762 echo "${ECHO_T}yes" >&6
7764 else
7765 WX_STATIC=0
7766 echo "$as_me:$LINENO: result: no" >&5
7767 echo "${ECHO_T}no" >&6
7770 else
7772 WX_STATIC=$STATIC
7776 if test "$WX_STATIC" != "0"; then
7777 WX_SHARED=0
7778 else
7779 WX_SHARED=1
7786 if test "$TOOLKIT" = "auto" ; then
7788 echo "$as_me:$LINENO: checking which wxWidgets toolkit was selected" >&5
7789 echo $ECHO_N "checking which wxWidgets toolkit was selected... $ECHO_C" >&6
7791 WX_GTKPORT1=$(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
7792 WX_GTKPORT2=$(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
7793 WX_MSWPORT=$(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
7794 WX_MOTIFPORT=$(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
7795 WX_MACPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
7796 WX_X11PORT=$(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
7797 WX_MGLPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mgl.*")
7798 WX_DFBPORT=$(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
7799 WX_BASEPORT=$(expr "$WX_SELECTEDCONFIG" : ".*base.*")
7801 WX_PORT="unknown"
7802 if test "$WX_GTKPORT1" != "0"; then WX_PORT="gtk1"; fi
7803 if test "$WX_GTKPORT2" != "0"; then WX_PORT="gtk2"; fi
7804 if test "$WX_MSWPORT" != "0"; then WX_PORT="msw"; fi
7805 if test "$WX_MOTIFPORT" != "0"; then WX_PORT="motif"; fi
7806 if test "$WX_MACPORT" != "0"; then WX_PORT="mac"; fi
7807 if test "$WX_X11PORT" != "0"; then WX_PORT="x11"; fi
7808 if test "$WX_MGLPORT" != "0"; then WX_PORT="mgl"; fi
7809 if test "$WX_DFBPORT" != "0"; then WX_PORT="dfb"; fi
7810 if test "$WX_BASEPORT" != "0"; then WX_PORT="base"; fi
7813 if test "$WX_PORT" = "unknown" ; then
7814 { { echo "$as_me:$LINENO: error:
7815 Cannot detect the currently installed wxWidgets port !
7816 Please check your 'wx-config --cxxflags'...
7817 " >&5
7818 echo "$as_me: error:
7819 Cannot detect the currently installed wxWidgets port !
7820 Please check your 'wx-config --cxxflags'...
7821 " >&2;}
7822 { (exit 1); exit 1; }; }
7825 echo "$as_me:$LINENO: result: $WX_PORT" >&5
7826 echo "${ECHO_T}$WX_PORT" >&6
7827 else
7829 if test -z "$TOOLKIT" ; then
7830 WX_PORT=$TOOLKIT
7831 else
7832 WX_PORT=$PORT
7838 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7839 echo "[dbg] Values of all WX_* options after final detection:"
7840 echo "[dbg] WX_DEBUG: $WX_DEBUG"
7841 echo "[dbg] WX_UNICODE: $WX_UNICODE"
7842 echo "[dbg] WX_SHARED: $WX_SHARED"
7843 echo "[dbg] WX_VERSION: $WX_VERSION"
7844 echo "[dbg] WX_PORT: $WX_PORT"
7847 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
7848 { { echo "$as_me:$LINENO: error:
7849 Cannot build shared library against a static build of wxWidgets !
7850 This error happens because the wxWidgets build which was selected
7851 has been detected as static while you asked to build $PACKAGE_NAME
7852 as shared library and this is not possible.
7853 Use the '--disable-shared' option to build $PACKAGE_NAME
7854 as static library or '--with-wxshared' to use wxWidgets as shared library.
7855 " >&5
7856 echo "$as_me: error:
7857 Cannot build shared library against a static build of wxWidgets !
7858 This error happens because the wxWidgets build which was selected
7859 has been detected as static while you asked to build $PACKAGE_NAME
7860 as shared library and this is not possible.
7861 Use the '--disable-shared' option to build $PACKAGE_NAME
7862 as static library or '--with-wxshared' to use wxWidgets as shared library.
7863 " >&2;}
7864 { (exit 1); exit 1; }; }
7867 if test "$DEBUG" = "auto"; then
7868 DEBUG=$WX_DEBUG
7870 if test "$DEBUG" = "1"; then
7871 BUILD="debug"
7872 elif test "$DEBUG" = ""; then
7873 BUILD="release"
7876 if test "$UNICODE" = "auto"; then
7877 UNICODE=$WX_UNICODE
7879 if test "$SHARED" = "auto"; then
7880 SHARED=$WX_SHARED
7882 if test "$TOOLKIT" = "auto"; then
7883 TOOLKIT=$WX_PORT
7888 # We also need wxBase
7889 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs adv,core,net`
7890 WXBASE_LIBS=`$WX_CONFIG_WITH_ARGS --libs net`
7891 WXBASE_CPPFLAGS="$WX_CPPFLAGS -DwxUSE_GUI=0"
7895 if test ${SYS:-unknown} = win32; then
7897 if test -n "$ac_tool_prefix"; then
7898 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7899 set dummy ${ac_tool_prefix}windres; ac_word=$2
7900 echo "$as_me:$LINENO: checking for $ac_word" >&5
7901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7902 if test "${ac_cv_prog_RC+set}" = set; then
7903 echo $ECHO_N "(cached) $ECHO_C" >&6
7904 else
7905 if test -n "$RC"; then
7906 ac_cv_prog_RC="$RC" # Let the user override the test.
7907 else
7908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7909 for as_dir in $PATH
7911 IFS=$as_save_IFS
7912 test -z "$as_dir" && as_dir=.
7913 for ac_exec_ext in '' $ac_executable_extensions; do
7914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7915 ac_cv_prog_RC="${ac_tool_prefix}windres"
7916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7917 break 2
7919 done
7920 done
7924 RC=$ac_cv_prog_RC
7925 if test -n "$RC"; then
7926 echo "$as_me:$LINENO: result: $RC" >&5
7927 echo "${ECHO_T}$RC" >&6
7928 else
7929 echo "$as_me:$LINENO: result: no" >&5
7930 echo "${ECHO_T}no" >&6
7934 if test -z "$ac_cv_prog_RC"; then
7935 ac_ct_RC=$RC
7936 # Extract the first word of "windres", so it can be a program name with args.
7937 set dummy windres; ac_word=$2
7938 echo "$as_me:$LINENO: checking for $ac_word" >&5
7939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7940 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then
7941 echo $ECHO_N "(cached) $ECHO_C" >&6
7942 else
7943 if test -n "$ac_ct_RC"; then
7944 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
7945 else
7946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7947 for as_dir in $PATH
7949 IFS=$as_save_IFS
7950 test -z "$as_dir" && as_dir=.
7951 for ac_exec_ext in '' $ac_executable_extensions; do
7952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7953 ac_cv_prog_ac_ct_RC="windres"
7954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7955 break 2
7957 done
7958 done
7960 test -z "$ac_cv_prog_ac_ct_RC" && ac_cv_prog_ac_ct_RC=":"
7963 ac_ct_RC=$ac_cv_prog_ac_ct_RC
7964 if test -n "$ac_ct_RC"; then
7965 echo "$as_me:$LINENO: result: $ac_ct_RC" >&5
7966 echo "${ECHO_T}$ac_ct_RC" >&6
7967 else
7968 echo "$as_me:$LINENO: result: no" >&5
7969 echo "${ECHO_T}no" >&6
7972 RC=$ac_ct_RC
7973 else
7974 RC="$ac_cv_prog_RC"
7977 MULERCFLAGS=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
7982 # Check for Crypto++
7985 # Check whether --with-crypto-prefix or --without-crypto-prefix was given.
7986 if test "${with_crypto_prefix+set}" = set; then
7987 withval="$with_crypto_prefix"
7991 echo "$as_me:$LINENO: checking for crypto++ version >= 5.1" >&5
7992 echo $ECHO_N "checking for crypto++ version >= 5.1... $ECHO_C" >&6
7994 cryptopp_file_with_version="cryptlib.h"
7996 CRYPTOPP_STYLE="unknown"
7997 CRYPTOPP_LIB_NAME="unknown"
7998 cryptopp_includedir="unknown"
7999 CRYPTOPP_INCLUDE_PREFIX="unknown"
8000 cryptopp_libdir="unknown"
8002 for CRYPTOPP_PREFIX in "$with_crypto_prefix" /usr /usr/local /opt /opt/local /usr/pkg /mingw ; do
8003 if test -z "$CRYPTOPP_PREFIX"; then
8004 continue
8008 # Find the Cryptopp header
8009 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8011 CRYPTOPP_STYLE="sources"
8012 CRYPTOPP_LIB_NAME="cryptopp"
8013 cryptopp_includedir=
8014 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
8015 cryptopp_libdir=
8016 break
8018 elif test -f $CRYPTOPP_PREFIX/include/cryptopp/$cryptopp_file_with_version; then
8020 CRYPTOPP_STYLE="installed"
8021 CRYPTOPP_LIB_NAME="cryptopp"
8022 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8023 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8024 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8025 break
8027 elif test -f $CRYPTOPP_PREFIX/include/crypto++/$cryptopp_file_with_version; then
8029 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8030 CRYPTOPP_STYLE="gentoo_debian"
8031 CRYPTOPP_LIB_NAME="crypto++"
8032 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8033 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8034 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8035 break
8039 done
8041 if test $CRYPTOPP_STYLE = "unknown"; then
8042 result=no
8043 else
8045 # Find out the crypto++ version and check against the minimum required
8046 cryptopp_header_path="${cryptopp_includedir+$cryptopp_includedir/}$CRYPTOPP_INCLUDE_PREFIX/$cryptopp_file_with_version"
8047 CRYPTOPP_VERSION_STRING=`grep "Reference Manual" $cryptopp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
8048 CRYPTOPP_VERSION_NUMBER=`echo $CRYPTOPP_VERSION_STRING | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8049 minvers=`echo 5.1 | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8051 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then
8053 result=yes
8054 resultstr=" (version $CRYPTOPP_VERSION_STRING, $CRYPTOPP_STYLE)"
8055 if test -n "$cryptopp_includedir"; then
8056 CRYPTOPP_CPPFLAGS="-I$cryptopp_includedir"
8057 else
8058 CRYPTOPP_CPPFLAGS=
8061 if test -n "$cryptopp_libdir"; then
8063 CRYPTOPP_LDFLAGS="-L$cryptopp_libdir"
8064 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME"
8066 else
8068 CRYPTOPP_LDFLAGS=
8069 CRYPTOPP_LIBS="${CRYPTOPP_INCLUDE_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a"
8075 cat >>confdefs.h <<_ACEOF
8076 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX
8077 _ACEOF
8080 else
8082 result=no
8083 resultstr=" (version $CRYPTOPP_VERSION_STRING is not new enough)"
8091 echo "$as_me:$LINENO: result: $result$resultstr" >&5
8092 echo "${ECHO_T}$result$resultstr" >&6
8094 if test ${result:-no} = yes; then
8096 # Check for CryptoPP >= 5.5
8097 if test $CRYPTOPP_VERSION_NUMBER -ge "5005000"; then
8098 CRYPTOPP_CPPFLAGS="$CRYPTOPP_CPPFLAGS -D__WEAK_CRYPTO__"
8102 else
8104 { { echo "$as_me:$LINENO: error:
8105 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8106 Please try again with --with-crypto-prefix=/my_crypto_prefix
8107 (replace /my_crypto_prefix with a valid path to your crypto++
8108 installation directory)." >&5
8109 echo "$as_me: error:
8110 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8111 Please try again with --with-crypto-prefix=/my_crypto_prefix
8112 (replace /my_crypto_prefix with a valid path to your crypto++
8113 installation directory)." >&2;}
8114 { (exit 1); exit 1; }; }
8121 ac_ext=cc
8122 ac_cpp='$CXXCPP $CPPFLAGS'
8123 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8124 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8125 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8130 echo "$as_me:$LINENO: checking if we're using the GNU C++ library" >&5
8131 echo $ECHO_N "checking if we're using the GNU C++ library... $ECHO_C" >&6
8132 cat >conftest.$ac_ext <<_ACEOF
8134 /* confdefs.h. */
8135 _ACEOF
8136 cat confdefs.h >>conftest.$ac_ext
8137 cat >>conftest.$ac_ext <<_ACEOF
8138 /* end confdefs.h. */
8140 #include <string>
8141 #ifndef __GLIBCXX__
8142 #error Non-GNU C++ library found.
8143 #endif
8146 _ACEOF
8147 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8148 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8149 ac_status=$?
8150 grep -v '^ *+' conftest.er1 >conftest.err
8151 rm -f conftest.er1
8152 cat conftest.err >&5
8153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154 (exit $ac_status); } >/dev/null; then
8155 if test -s conftest.err; then
8156 ac_cpp_err=$ac_cxx_preproc_warn_flag
8157 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8158 else
8159 ac_cpp_err=
8161 else
8162 ac_cpp_err=yes
8164 if test -z "$ac_cpp_err"; then
8165 GLIBCXX=yes
8166 else
8167 echo "$as_me: failed program was:" >&5
8168 sed 's/^/| /' conftest.$ac_ext >&5
8170 GLIBCXX=no
8172 rm -f conftest.err conftest.$ac_ext
8173 echo "$as_me:$LINENO: result: $GLIBCXX" >&5
8174 echo "${ECHO_T}$GLIBCXX" >&6
8177 mule_backup_CPPFLAGS="$CPPFLAGS"
8178 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
8180 echo "$as_me:$LINENO: checking that wxWidgets has support for large files" >&5
8181 echo $ECHO_N "checking that wxWidgets has support for large files... $ECHO_C" >&6
8182 cat >conftest.$ac_ext <<_ACEOF
8184 /* confdefs.h. */
8185 _ACEOF
8186 cat confdefs.h >>conftest.$ac_ext
8187 cat >>conftest.$ac_ext <<_ACEOF
8188 /* end confdefs.h. */
8190 #include <wx/wx.h>
8191 #if !HAVE_LARGEFILE_SUPPORT && !defined(_LARGE_FILES) && !defined(__WXMSW__)
8192 #error No LargeFile support!
8193 #endif
8196 _ACEOF
8197 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8198 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8199 ac_status=$?
8200 grep -v '^ *+' conftest.er1 >conftest.err
8201 rm -f conftest.er1
8202 cat conftest.err >&5
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); } >/dev/null; then
8205 if test -s conftest.err; then
8206 ac_cpp_err=$ac_cxx_preproc_warn_flag
8207 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8208 else
8209 ac_cpp_err=
8211 else
8212 ac_cpp_err=yes
8214 if test -z "$ac_cpp_err"; then
8216 echo "$as_me:$LINENO: result: yes" >&5
8217 echo "${ECHO_T}yes" >&6
8219 else
8220 echo "$as_me: failed program was:" >&5
8221 sed 's/^/| /' conftest.$ac_ext >&5
8224 echo "$as_me:$LINENO: result: no" >&5
8225 echo "${ECHO_T}no" >&6
8226 { { echo "$as_me:$LINENO: error:
8227 Support for large files in wxWidgets is required by aMule.
8228 To continue you must recompile wxWidgets with support for
8229 large files enabled." >&5
8230 echo "$as_me: error:
8231 Support for large files in wxWidgets is required by aMule.
8232 To continue you must recompile wxWidgets with support for
8233 large files enabled." >&2;}
8234 { (exit 1); exit 1; }; }
8237 rm -f conftest.err conftest.$ac_ext
8239 CPPFLAGS="$mule_backup_CPPFLAGS"
8242 # Check if the compiler is broken, wrt. exceptions.
8244 echo "$as_me:$LINENO: checking for exception-handling" >&5
8245 echo $ECHO_N "checking for exception-handling... $ECHO_C" >&6
8246 if test "$cross_compiling" = yes; then
8248 echo "$as_me:$LINENO: result: undeterminable" >&5
8249 echo "${ECHO_T}undeterminable" >&6
8250 { echo "$as_me:$LINENO: WARNING:
8251 Cross-compilation detected, so exception handling cannot be tested.
8252 Note that broken exception handling in your compiler may lead to
8253 unexpected crashes." >&5
8254 echo "$as_me: WARNING:
8255 Cross-compilation detected, so exception handling cannot be tested.
8256 Note that broken exception handling in your compiler may lead to
8257 unexpected crashes." >&2;}
8259 else
8260 cat >conftest.$ac_ext <<_ACEOF
8262 /* confdefs.h. */
8263 _ACEOF
8264 cat confdefs.h >>conftest.$ac_ext
8265 cat >>conftest.$ac_ext <<_ACEOF
8266 /* end confdefs.h. */
8269 main ()
8272 try {
8273 throw 1;
8274 } catch (int) {
8275 return 0;
8277 return 1;
8280 return 0;
8283 _ACEOF
8284 rm -f conftest$ac_exeext
8285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8286 (eval $ac_link) 2>&5
8287 ac_status=$?
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8291 (eval $ac_try) 2>&5
8292 ac_status=$?
8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 (exit $ac_status); }; }; then
8296 echo "$as_me:$LINENO: result: yes" >&5
8297 echo "${ECHO_T}yes" >&6
8299 else
8300 echo "$as_me: program exited with status $ac_status" >&5
8301 echo "$as_me: failed program was:" >&5
8302 sed 's/^/| /' conftest.$ac_ext >&5
8304 ( exit $ac_status )
8306 echo "$as_me:$LINENO: result: no" >&5
8307 echo "${ECHO_T}no" >&6
8308 { { echo "$as_me:$LINENO: error: Exception handling does not work. Broken compiler?" >&5
8309 echo "$as_me: error: Exception handling does not work. Broken compiler?" >&2;}
8310 { (exit 1); exit 1; }; }
8313 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8318 echo "$as_me:$LINENO: checking for <cxxabi.h> and __cxa_demangle()" >&5
8319 echo $ECHO_N "checking for <cxxabi.h> and __cxa_demangle()... $ECHO_C" >&6
8320 cat >conftest.$ac_ext <<_ACEOF
8322 /* confdefs.h. */
8323 _ACEOF
8324 cat confdefs.h >>conftest.$ac_ext
8325 cat >>conftest.$ac_ext <<_ACEOF
8326 /* end confdefs.h. */
8328 #include <cxxabi.h>
8331 main ()
8334 int status;
8335 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
8336 std::type_info *ti = abi::__cxa_current_exception_type();
8339 return 0;
8342 _ACEOF
8343 rm -f conftest.$ac_objext conftest$ac_exeext
8344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8345 (eval $ac_link) 2>conftest.er1
8346 ac_status=$?
8347 grep -v '^ *+' conftest.er1 >conftest.err
8348 rm -f conftest.er1
8349 cat conftest.err >&5
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); } &&
8352 { ac_try='test -z "$ac_cxx_werror_flag"
8353 || test ! -s conftest.err'
8354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8355 (eval $ac_try) 2>&5
8356 ac_status=$?
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); }; } &&
8359 { ac_try='test -s conftest$ac_exeext'
8360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8361 (eval $ac_try) 2>&5
8362 ac_status=$?
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); }; }; then
8368 cat >>confdefs.h <<\_ACEOF
8369 #define HAVE_CXXABI 1
8370 _ACEOF
8372 echo "$as_me:$LINENO: result: yes" >&5
8373 echo "${ECHO_T}yes" >&6
8375 else
8376 echo "$as_me: failed program was:" >&5
8377 sed 's/^/| /' conftest.$ac_ext >&5
8380 echo "$as_me:$LINENO: result: no" >&5
8381 echo "${ECHO_T}no" >&6
8384 rm -f conftest.err conftest.$ac_objext \
8385 conftest$ac_exeext conftest.$ac_ext
8387 ac_ext=c
8388 ac_cpp='$CPP $CPPFLAGS'
8389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8394 # Check for bfd.h (to have proper backtraces without using wxExecute)
8396 echo "$as_me:$LINENO: checking for bfd" >&5
8397 echo $ECHO_N "checking for bfd... $ECHO_C" >&6
8398 mule_backup_LIBS="$LIBS"
8399 LIBS="-lbfd -liberty $LIBS"
8400 cat >conftest.$ac_ext <<_ACEOF
8402 /* confdefs.h. */
8403 _ACEOF
8404 cat confdefs.h >>conftest.$ac_ext
8405 cat >>conftest.$ac_ext <<_ACEOF
8406 /* end confdefs.h. */
8408 #include <ansidecl.h>
8409 #include <bfd.h>
8412 main ()
8415 char *dummy = bfd_errmsg(bfd_get_error());
8418 return 0;
8421 _ACEOF
8422 rm -f conftest.$ac_objext conftest$ac_exeext
8423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8424 (eval $ac_link) 2>conftest.er1
8425 ac_status=$?
8426 grep -v '^ *+' conftest.er1 >conftest.err
8427 rm -f conftest.er1
8428 cat conftest.err >&5
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); } &&
8431 { ac_try='test -z "$ac_c_werror_flag"
8432 || test ! -s conftest.err'
8433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8434 (eval $ac_try) 2>&5
8435 ac_status=$?
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); }; } &&
8438 { ac_try='test -s conftest$ac_exeext'
8439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8440 (eval $ac_try) 2>&5
8441 ac_status=$?
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); }; }; then
8445 echo "$as_me:$LINENO: result: yes" >&5
8446 echo "${ECHO_T}yes" >&6
8447 BFD_CPPFLAGS="-DHAVE_BFD"
8448 BFD_LIBS="-lbfd -liberty"
8450 else
8451 echo "$as_me: failed program was:" >&5
8452 sed 's/^/| /' conftest.$ac_ext >&5
8455 echo "$as_me:$LINENO: result: no" >&5
8456 echo "${ECHO_T}no" >&6
8457 { echo "$as_me:$LINENO: WARNING:
8458 bfd.h not found or unusable, please install binutils development
8459 package if you are a developer or want to help testing aMule" >&5
8460 echo "$as_me: WARNING:
8461 bfd.h not found or unusable, please install binutils development
8462 package if you are a developer or want to help testing aMule" >&2;}
8465 rm -f conftest.err conftest.$ac_objext \
8466 conftest$ac_exeext conftest.$ac_ext
8467 LIBS="$mule_backup_LIBS"
8471 echo "$as_me:$LINENO: checking for <execinfo.h> and backtrace()" >&5
8472 echo $ECHO_N "checking for <execinfo.h> and backtrace()... $ECHO_C" >&6
8473 cat >conftest.$ac_ext <<_ACEOF
8475 /* confdefs.h. */
8476 _ACEOF
8477 cat confdefs.h >>conftest.$ac_ext
8478 cat >>conftest.$ac_ext <<_ACEOF
8479 /* end confdefs.h. */
8481 #include <execinfo.h>
8484 main ()
8487 void *bt[1];
8488 int n = backtrace(&bt, 1);
8489 const char **bt_syms = backtrace_symbols(bt, n);
8492 return 0;
8495 _ACEOF
8496 rm -f conftest.$ac_objext conftest$ac_exeext
8497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8498 (eval $ac_link) 2>conftest.er1
8499 ac_status=$?
8500 grep -v '^ *+' conftest.er1 >conftest.err
8501 rm -f conftest.er1
8502 cat conftest.err >&5
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); } &&
8505 { ac_try='test -z "$ac_c_werror_flag"
8506 || test ! -s conftest.err'
8507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8508 (eval $ac_try) 2>&5
8509 ac_status=$?
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); }; } &&
8512 { ac_try='test -s conftest$ac_exeext'
8513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8514 (eval $ac_try) 2>&5
8515 ac_status=$?
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); }; }; then
8521 cat >>confdefs.h <<\_ACEOF
8522 #define HAVE_EXECINFO 1
8523 _ACEOF
8525 echo "$as_me:$LINENO: result: yes" >&5
8526 echo "${ECHO_T}yes" >&6
8528 else
8529 echo "$as_me: failed program was:" >&5
8530 sed 's/^/| /' conftest.$ac_ext >&5
8533 echo "$as_me:$LINENO: result: no" >&5
8534 echo "${ECHO_T}no" >&6
8537 rm -f conftest.err conftest.$ac_objext \
8538 conftest$ac_exeext conftest.$ac_ext
8541 # Ok, we have all needed libs, now checking for other stuff
8542 if test "$LEX" = "flex"; then
8544 echo "$as_me:$LINENO: checking for extended flex capabilities" >&5
8545 echo $ECHO_N "checking for extended flex capabilities... $ECHO_C" >&6
8547 extended_flex=`flex --help | grep header-file`
8548 if test -n "$extended_flex"; then
8549 HAVE_FLEX_EXTENDED=yes
8550 else
8551 HAVE_FLEX_EXTENDED=no
8554 echo "$as_me:$LINENO: result: $HAVE_FLEX_EXTENDED" >&5
8555 echo "${ECHO_T}$HAVE_FLEX_EXTENDED" >&6
8557 if test $HAVE_FLEX_EXTENDED = no; then
8558 { echo "$as_me:$LINENO: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&5
8559 echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&6;}
8563 else
8564 HAVE_FLEX_EXTENDED=no
8568 # Flush standard test results for speeding cache
8569 cat >confcache <<\_ACEOF
8570 # This file is a shell script that caches the results of configure
8571 # tests run on this system so they can be shared between configure
8572 # scripts and configure runs, see configure's option --config-cache.
8573 # It is not useful on other systems. If it contains results you don't
8574 # want to keep, you may remove or edit it.
8576 # config.status only pays attention to the cache file if you give it
8577 # the --recheck option to rerun configure.
8579 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8580 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8581 # following values.
8583 _ACEOF
8585 # The following way of writing the cache mishandles newlines in values,
8586 # but we know of no workaround that is simple, portable, and efficient.
8587 # So, don't put newlines in cache variables' values.
8588 # Ultrix sh set writes to stderr and can't be redirected directly,
8589 # and sets the high bit in the cache file unless we assign to the vars.
8591 (set) 2>&1 |
8592 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8593 *ac_space=\ *)
8594 # `set' does not quote correctly, so add quotes (double-quote
8595 # substitution turns \\\\ into \\, and sed turns \\ into \).
8596 sed -n \
8597 "s/'/'\\\\''/g;
8598 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8601 # `set' quotes correctly as required by POSIX, so do not add quotes.
8602 sed -n \
8603 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8605 esac;
8607 sed '
8608 t clear
8609 : clear
8610 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8611 t end
8612 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8613 : end' >>confcache
8614 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8615 if test -w $cache_file; then
8616 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8617 cat confcache >$cache_file
8618 else
8619 echo "not updating unwritable cache $cache_file"
8622 rm -f confcache
8624 # Checks for header files.
8625 echo "$as_me:$LINENO: checking for X" >&5
8626 echo $ECHO_N "checking for X... $ECHO_C" >&6
8629 # Check whether --with-x or --without-x was given.
8630 if test "${with_x+set}" = set; then
8631 withval="$with_x"
8634 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8635 if test "x$with_x" = xno; then
8636 # The user explicitly disabled X.
8637 have_x=disabled
8638 else
8639 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8640 # Both variables are already set.
8641 have_x=yes
8642 else
8643 if test "${ac_cv_have_x+set}" = set; then
8644 echo $ECHO_N "(cached) $ECHO_C" >&6
8645 else
8646 # One or both of the vars are not set, and there is no cached value.
8647 ac_x_includes=no ac_x_libraries=no
8648 rm -fr conftest.dir
8649 if mkdir conftest.dir; then
8650 cd conftest.dir
8651 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8652 cat >Imakefile <<'_ACEOF'
8653 acfindx:
8654 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8655 _ACEOF
8656 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8657 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8658 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8659 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8660 for ac_extension in a so sl; do
8661 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8662 test -f $ac_im_libdir/libX11.$ac_extension; then
8663 ac_im_usrlibdir=$ac_im_libdir; break
8665 done
8666 # Screen out bogus values from the imake configuration. They are
8667 # bogus both because they are the default anyway, and because
8668 # using them would break gcc on systems where it needs fixed includes.
8669 case $ac_im_incroot in
8670 /usr/include) ;;
8671 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8672 esac
8673 case $ac_im_usrlibdir in
8674 /usr/lib | /lib) ;;
8675 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8676 esac
8678 cd ..
8679 rm -fr conftest.dir
8682 # Standard set of common directories for X headers.
8683 # Check X11 before X11Rn because it is often a symlink to the current release.
8684 ac_x_header_dirs='
8685 /usr/X11/include
8686 /usr/X11R6/include
8687 /usr/X11R5/include
8688 /usr/X11R4/include
8690 /usr/include/X11
8691 /usr/include/X11R6
8692 /usr/include/X11R5
8693 /usr/include/X11R4
8695 /usr/local/X11/include
8696 /usr/local/X11R6/include
8697 /usr/local/X11R5/include
8698 /usr/local/X11R4/include
8700 /usr/local/include/X11
8701 /usr/local/include/X11R6
8702 /usr/local/include/X11R5
8703 /usr/local/include/X11R4
8705 /usr/X386/include
8706 /usr/x386/include
8707 /usr/XFree86/include/X11
8709 /usr/include
8710 /usr/local/include
8711 /usr/unsupported/include
8712 /usr/athena/include
8713 /usr/local/x11r5/include
8714 /usr/lpp/Xamples/include
8716 /usr/openwin/include
8717 /usr/openwin/share/include'
8719 if test "$ac_x_includes" = no; then
8720 # Guess where to find include files, by looking for Intrinsic.h.
8721 # First, try using that file with no special directory specified.
8722 cat >conftest.$ac_ext <<_ACEOF
8723 /* confdefs.h. */
8724 _ACEOF
8725 cat confdefs.h >>conftest.$ac_ext
8726 cat >>conftest.$ac_ext <<_ACEOF
8727 /* end confdefs.h. */
8728 #include <X11/Intrinsic.h>
8729 _ACEOF
8730 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8731 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8732 ac_status=$?
8733 grep -v '^ *+' conftest.er1 >conftest.err
8734 rm -f conftest.er1
8735 cat conftest.err >&5
8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737 (exit $ac_status); } >/dev/null; then
8738 if test -s conftest.err; then
8739 ac_cpp_err=$ac_c_preproc_warn_flag
8740 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8741 else
8742 ac_cpp_err=
8744 else
8745 ac_cpp_err=yes
8747 if test -z "$ac_cpp_err"; then
8748 # We can compile using X headers with no special include directory.
8749 ac_x_includes=
8750 else
8751 echo "$as_me: failed program was:" >&5
8752 sed 's/^/| /' conftest.$ac_ext >&5
8754 for ac_dir in $ac_x_header_dirs; do
8755 if test -r "$ac_dir/X11/Intrinsic.h"; then
8756 ac_x_includes=$ac_dir
8757 break
8759 done
8761 rm -f conftest.err conftest.$ac_ext
8762 fi # $ac_x_includes = no
8764 if test "$ac_x_libraries" = no; then
8765 # Check for the libraries.
8766 # See if we find them without any special options.
8767 # Don't add to $LIBS permanently.
8768 ac_save_LIBS=$LIBS
8769 LIBS="-lXt $LIBS"
8770 cat >conftest.$ac_ext <<_ACEOF
8771 /* confdefs.h. */
8772 _ACEOF
8773 cat confdefs.h >>conftest.$ac_ext
8774 cat >>conftest.$ac_ext <<_ACEOF
8775 /* end confdefs.h. */
8776 #include <X11/Intrinsic.h>
8778 main ()
8780 XtMalloc (0)
8782 return 0;
8784 _ACEOF
8785 rm -f conftest.$ac_objext conftest$ac_exeext
8786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8787 (eval $ac_link) 2>conftest.er1
8788 ac_status=$?
8789 grep -v '^ *+' conftest.er1 >conftest.err
8790 rm -f conftest.er1
8791 cat conftest.err >&5
8792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793 (exit $ac_status); } &&
8794 { ac_try='test -z "$ac_c_werror_flag"
8795 || test ! -s conftest.err'
8796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8797 (eval $ac_try) 2>&5
8798 ac_status=$?
8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 (exit $ac_status); }; } &&
8801 { ac_try='test -s conftest$ac_exeext'
8802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8803 (eval $ac_try) 2>&5
8804 ac_status=$?
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); }; }; then
8807 LIBS=$ac_save_LIBS
8808 # We can link X programs with no special library path.
8809 ac_x_libraries=
8810 else
8811 echo "$as_me: failed program was:" >&5
8812 sed 's/^/| /' conftest.$ac_ext >&5
8814 LIBS=$ac_save_LIBS
8815 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8817 # Don't even attempt the hair of trying to link an X program!
8818 for ac_extension in a so sl; do
8819 if test -r $ac_dir/libXt.$ac_extension; then
8820 ac_x_libraries=$ac_dir
8821 break 2
8823 done
8824 done
8826 rm -f conftest.err conftest.$ac_objext \
8827 conftest$ac_exeext conftest.$ac_ext
8828 fi # $ac_x_libraries = no
8830 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8831 # Didn't find X anywhere. Cache the known absence of X.
8832 ac_cv_have_x="have_x=no"
8833 else
8834 # Record where we found X for the cache.
8835 ac_cv_have_x="have_x=yes \
8836 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8841 eval "$ac_cv_have_x"
8842 fi # $with_x != no
8844 if test "$have_x" != yes; then
8845 echo "$as_me:$LINENO: result: $have_x" >&5
8846 echo "${ECHO_T}$have_x" >&6
8847 no_x=yes
8848 else
8849 # If each of the values was on the command line, it overrides each guess.
8850 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8851 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8852 # Update the cache value to reflect the command line values.
8853 ac_cv_have_x="have_x=yes \
8854 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8855 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8856 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8859 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8860 # for constant arguments. Useless!
8861 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8862 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8863 if test "${ac_cv_working_alloca_h+set}" = set; then
8864 echo $ECHO_N "(cached) $ECHO_C" >&6
8865 else
8866 cat >conftest.$ac_ext <<_ACEOF
8867 /* confdefs.h. */
8868 _ACEOF
8869 cat confdefs.h >>conftest.$ac_ext
8870 cat >>conftest.$ac_ext <<_ACEOF
8871 /* end confdefs.h. */
8872 #include <alloca.h>
8874 main ()
8876 char *p = (char *) alloca (2 * sizeof (int));
8878 return 0;
8880 _ACEOF
8881 rm -f conftest.$ac_objext conftest$ac_exeext
8882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8883 (eval $ac_link) 2>conftest.er1
8884 ac_status=$?
8885 grep -v '^ *+' conftest.er1 >conftest.err
8886 rm -f conftest.er1
8887 cat conftest.err >&5
8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889 (exit $ac_status); } &&
8890 { ac_try='test -z "$ac_c_werror_flag"
8891 || test ! -s conftest.err'
8892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8893 (eval $ac_try) 2>&5
8894 ac_status=$?
8895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 (exit $ac_status); }; } &&
8897 { ac_try='test -s conftest$ac_exeext'
8898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8899 (eval $ac_try) 2>&5
8900 ac_status=$?
8901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902 (exit $ac_status); }; }; then
8903 ac_cv_working_alloca_h=yes
8904 else
8905 echo "$as_me: failed program was:" >&5
8906 sed 's/^/| /' conftest.$ac_ext >&5
8908 ac_cv_working_alloca_h=no
8910 rm -f conftest.err conftest.$ac_objext \
8911 conftest$ac_exeext conftest.$ac_ext
8913 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8914 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8915 if test $ac_cv_working_alloca_h = yes; then
8917 cat >>confdefs.h <<\_ACEOF
8918 #define HAVE_ALLOCA_H 1
8919 _ACEOF
8923 echo "$as_me:$LINENO: checking for alloca" >&5
8924 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8925 if test "${ac_cv_func_alloca_works+set}" = set; then
8926 echo $ECHO_N "(cached) $ECHO_C" >&6
8927 else
8928 cat >conftest.$ac_ext <<_ACEOF
8929 /* confdefs.h. */
8930 _ACEOF
8931 cat confdefs.h >>conftest.$ac_ext
8932 cat >>conftest.$ac_ext <<_ACEOF
8933 /* end confdefs.h. */
8934 #ifdef __GNUC__
8935 # define alloca __builtin_alloca
8936 #else
8937 # ifdef _MSC_VER
8938 # include <malloc.h>
8939 # define alloca _alloca
8940 # else
8941 # if HAVE_ALLOCA_H
8942 # include <alloca.h>
8943 # else
8944 # ifdef _AIX
8945 #pragma alloca
8946 # else
8947 # ifndef alloca /* predefined by HP cc +Olibcalls */
8948 char *alloca ();
8949 # endif
8950 # endif
8951 # endif
8952 # endif
8953 #endif
8956 main ()
8958 char *p = (char *) alloca (1);
8960 return 0;
8962 _ACEOF
8963 rm -f conftest.$ac_objext conftest$ac_exeext
8964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8965 (eval $ac_link) 2>conftest.er1
8966 ac_status=$?
8967 grep -v '^ *+' conftest.er1 >conftest.err
8968 rm -f conftest.er1
8969 cat conftest.err >&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); } &&
8972 { ac_try='test -z "$ac_c_werror_flag"
8973 || test ! -s conftest.err'
8974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8975 (eval $ac_try) 2>&5
8976 ac_status=$?
8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); }; } &&
8979 { ac_try='test -s conftest$ac_exeext'
8980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8981 (eval $ac_try) 2>&5
8982 ac_status=$?
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); }; }; then
8985 ac_cv_func_alloca_works=yes
8986 else
8987 echo "$as_me: failed program was:" >&5
8988 sed 's/^/| /' conftest.$ac_ext >&5
8990 ac_cv_func_alloca_works=no
8992 rm -f conftest.err conftest.$ac_objext \
8993 conftest$ac_exeext conftest.$ac_ext
8995 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8996 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8998 if test $ac_cv_func_alloca_works = yes; then
9000 cat >>confdefs.h <<\_ACEOF
9001 #define HAVE_ALLOCA 1
9002 _ACEOF
9004 else
9005 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9006 # that cause trouble. Some versions do not even contain alloca or
9007 # contain a buggy version. If you still want to use their alloca,
9008 # use ar to extract alloca.o from them instead of compiling alloca.c.
9010 ALLOCA=alloca.$ac_objext
9012 cat >>confdefs.h <<\_ACEOF
9013 #define C_ALLOCA 1
9014 _ACEOF
9017 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9018 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9019 if test "${ac_cv_os_cray+set}" = set; then
9020 echo $ECHO_N "(cached) $ECHO_C" >&6
9021 else
9022 cat >conftest.$ac_ext <<_ACEOF
9023 /* confdefs.h. */
9024 _ACEOF
9025 cat confdefs.h >>conftest.$ac_ext
9026 cat >>conftest.$ac_ext <<_ACEOF
9027 /* end confdefs.h. */
9028 #if defined(CRAY) && ! defined(CRAY2)
9029 webecray
9030 #else
9031 wenotbecray
9032 #endif
9034 _ACEOF
9035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9036 $EGREP "webecray" >/dev/null 2>&1; then
9037 ac_cv_os_cray=yes
9038 else
9039 ac_cv_os_cray=no
9041 rm -f conftest*
9044 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9045 echo "${ECHO_T}$ac_cv_os_cray" >&6
9046 if test $ac_cv_os_cray = yes; then
9047 for ac_func in _getb67 GETB67 getb67; do
9048 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9049 echo "$as_me:$LINENO: checking for $ac_func" >&5
9050 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9051 if eval "test \"\${$as_ac_var+set}\" = set"; then
9052 echo $ECHO_N "(cached) $ECHO_C" >&6
9053 else
9054 cat >conftest.$ac_ext <<_ACEOF
9055 /* confdefs.h. */
9056 _ACEOF
9057 cat confdefs.h >>conftest.$ac_ext
9058 cat >>conftest.$ac_ext <<_ACEOF
9059 /* end confdefs.h. */
9060 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9062 #define $ac_func innocuous_$ac_func
9064 /* System header to define __stub macros and hopefully few prototypes,
9065 which can conflict with char $ac_func (); below.
9066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9067 <limits.h> exists even on freestanding compilers. */
9069 #ifdef __STDC__
9070 # include <limits.h>
9071 #else
9072 # include <assert.h>
9073 #endif
9075 #undef $ac_func
9077 /* Override any gcc2 internal prototype to avoid an error. */
9078 #ifdef __cplusplus
9079 extern "C"
9081 #endif
9082 /* We use char because int might match the return type of a gcc2
9083 builtin and then its argument prototype would still apply. */
9084 char $ac_func ();
9085 /* The GNU C library defines this for functions which it implements
9086 to always fail with ENOSYS. Some functions are actually named
9087 something starting with __ and the normal name is an alias. */
9088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9089 choke me
9090 #else
9091 char (*f) () = $ac_func;
9092 #endif
9093 #ifdef __cplusplus
9095 #endif
9098 main ()
9100 return f != $ac_func;
9102 return 0;
9104 _ACEOF
9105 rm -f conftest.$ac_objext conftest$ac_exeext
9106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9107 (eval $ac_link) 2>conftest.er1
9108 ac_status=$?
9109 grep -v '^ *+' conftest.er1 >conftest.err
9110 rm -f conftest.er1
9111 cat conftest.err >&5
9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 (exit $ac_status); } &&
9114 { ac_try='test -z "$ac_c_werror_flag"
9115 || test ! -s conftest.err'
9116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9117 (eval $ac_try) 2>&5
9118 ac_status=$?
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); }; } &&
9121 { ac_try='test -s conftest$ac_exeext'
9122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9123 (eval $ac_try) 2>&5
9124 ac_status=$?
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); }; }; then
9127 eval "$as_ac_var=yes"
9128 else
9129 echo "$as_me: failed program was:" >&5
9130 sed 's/^/| /' conftest.$ac_ext >&5
9132 eval "$as_ac_var=no"
9134 rm -f conftest.err conftest.$ac_objext \
9135 conftest$ac_exeext conftest.$ac_ext
9137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9138 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9139 if test `eval echo '${'$as_ac_var'}'` = yes; then
9141 cat >>confdefs.h <<_ACEOF
9142 #define CRAY_STACKSEG_END $ac_func
9143 _ACEOF
9145 break
9148 done
9151 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9152 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9153 if test "${ac_cv_c_stack_direction+set}" = set; then
9154 echo $ECHO_N "(cached) $ECHO_C" >&6
9155 else
9156 if test "$cross_compiling" = yes; then
9157 ac_cv_c_stack_direction=0
9158 else
9159 cat >conftest.$ac_ext <<_ACEOF
9160 /* confdefs.h. */
9161 _ACEOF
9162 cat confdefs.h >>conftest.$ac_ext
9163 cat >>conftest.$ac_ext <<_ACEOF
9164 /* end confdefs.h. */
9166 find_stack_direction ()
9168 static char *addr = 0;
9169 auto char dummy;
9170 if (addr == 0)
9172 addr = &dummy;
9173 return find_stack_direction ();
9175 else
9176 return (&dummy > addr) ? 1 : -1;
9180 main ()
9182 exit (find_stack_direction () < 0);
9184 _ACEOF
9185 rm -f conftest$ac_exeext
9186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9187 (eval $ac_link) 2>&5
9188 ac_status=$?
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9192 (eval $ac_try) 2>&5
9193 ac_status=$?
9194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195 (exit $ac_status); }; }; then
9196 ac_cv_c_stack_direction=1
9197 else
9198 echo "$as_me: program exited with status $ac_status" >&5
9199 echo "$as_me: failed program was:" >&5
9200 sed 's/^/| /' conftest.$ac_ext >&5
9202 ( exit $ac_status )
9203 ac_cv_c_stack_direction=-1
9205 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9208 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9209 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9211 cat >>confdefs.h <<_ACEOF
9212 #define STACK_DIRECTION $ac_cv_c_stack_direction
9213 _ACEOF
9223 ac_header_dirent=no
9224 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9225 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9226 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9227 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9229 echo $ECHO_N "(cached) $ECHO_C" >&6
9230 else
9231 cat >conftest.$ac_ext <<_ACEOF
9232 /* confdefs.h. */
9233 _ACEOF
9234 cat confdefs.h >>conftest.$ac_ext
9235 cat >>conftest.$ac_ext <<_ACEOF
9236 /* end confdefs.h. */
9237 #include <sys/types.h>
9238 #include <$ac_hdr>
9241 main ()
9243 if ((DIR *) 0)
9244 return 0;
9246 return 0;
9248 _ACEOF
9249 rm -f conftest.$ac_objext
9250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9251 (eval $ac_compile) 2>conftest.er1
9252 ac_status=$?
9253 grep -v '^ *+' conftest.er1 >conftest.err
9254 rm -f conftest.er1
9255 cat conftest.err >&5
9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 (exit $ac_status); } &&
9258 { ac_try='test -z "$ac_c_werror_flag"
9259 || test ! -s conftest.err'
9260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9261 (eval $ac_try) 2>&5
9262 ac_status=$?
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); }; } &&
9265 { ac_try='test -s conftest.$ac_objext'
9266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9267 (eval $ac_try) 2>&5
9268 ac_status=$?
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); }; }; then
9271 eval "$as_ac_Header=yes"
9272 else
9273 echo "$as_me: failed program was:" >&5
9274 sed 's/^/| /' conftest.$ac_ext >&5
9276 eval "$as_ac_Header=no"
9278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9281 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9283 cat >>confdefs.h <<_ACEOF
9284 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9285 _ACEOF
9287 ac_header_dirent=$ac_hdr; break
9290 done
9291 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9292 if test $ac_header_dirent = dirent.h; then
9293 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9294 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9295 if test "${ac_cv_search_opendir+set}" = set; then
9296 echo $ECHO_N "(cached) $ECHO_C" >&6
9297 else
9298 ac_func_search_save_LIBS=$LIBS
9299 ac_cv_search_opendir=no
9300 cat >conftest.$ac_ext <<_ACEOF
9301 /* confdefs.h. */
9302 _ACEOF
9303 cat confdefs.h >>conftest.$ac_ext
9304 cat >>conftest.$ac_ext <<_ACEOF
9305 /* end confdefs.h. */
9307 /* Override any gcc2 internal prototype to avoid an error. */
9308 #ifdef __cplusplus
9309 extern "C"
9310 #endif
9311 /* We use char because int might match the return type of a gcc2
9312 builtin and then its argument prototype would still apply. */
9313 char opendir ();
9315 main ()
9317 opendir ();
9319 return 0;
9321 _ACEOF
9322 rm -f conftest.$ac_objext conftest$ac_exeext
9323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9324 (eval $ac_link) 2>conftest.er1
9325 ac_status=$?
9326 grep -v '^ *+' conftest.er1 >conftest.err
9327 rm -f conftest.er1
9328 cat conftest.err >&5
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); } &&
9331 { ac_try='test -z "$ac_c_werror_flag"
9332 || test ! -s conftest.err'
9333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9334 (eval $ac_try) 2>&5
9335 ac_status=$?
9336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337 (exit $ac_status); }; } &&
9338 { ac_try='test -s conftest$ac_exeext'
9339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9340 (eval $ac_try) 2>&5
9341 ac_status=$?
9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 (exit $ac_status); }; }; then
9344 ac_cv_search_opendir="none required"
9345 else
9346 echo "$as_me: failed program was:" >&5
9347 sed 's/^/| /' conftest.$ac_ext >&5
9350 rm -f conftest.err conftest.$ac_objext \
9351 conftest$ac_exeext conftest.$ac_ext
9352 if test "$ac_cv_search_opendir" = no; then
9353 for ac_lib in dir; do
9354 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9355 cat >conftest.$ac_ext <<_ACEOF
9356 /* confdefs.h. */
9357 _ACEOF
9358 cat confdefs.h >>conftest.$ac_ext
9359 cat >>conftest.$ac_ext <<_ACEOF
9360 /* end confdefs.h. */
9362 /* Override any gcc2 internal prototype to avoid an error. */
9363 #ifdef __cplusplus
9364 extern "C"
9365 #endif
9366 /* We use char because int might match the return type of a gcc2
9367 builtin and then its argument prototype would still apply. */
9368 char opendir ();
9370 main ()
9372 opendir ();
9374 return 0;
9376 _ACEOF
9377 rm -f conftest.$ac_objext conftest$ac_exeext
9378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9379 (eval $ac_link) 2>conftest.er1
9380 ac_status=$?
9381 grep -v '^ *+' conftest.er1 >conftest.err
9382 rm -f conftest.er1
9383 cat conftest.err >&5
9384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9385 (exit $ac_status); } &&
9386 { ac_try='test -z "$ac_c_werror_flag"
9387 || test ! -s conftest.err'
9388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9389 (eval $ac_try) 2>&5
9390 ac_status=$?
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); }; } &&
9393 { ac_try='test -s conftest$ac_exeext'
9394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9395 (eval $ac_try) 2>&5
9396 ac_status=$?
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); }; }; then
9399 ac_cv_search_opendir="-l$ac_lib"
9400 break
9401 else
9402 echo "$as_me: failed program was:" >&5
9403 sed 's/^/| /' conftest.$ac_ext >&5
9406 rm -f conftest.err conftest.$ac_objext \
9407 conftest$ac_exeext conftest.$ac_ext
9408 done
9410 LIBS=$ac_func_search_save_LIBS
9412 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9413 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9414 if test "$ac_cv_search_opendir" != no; then
9415 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9419 else
9420 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9421 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9422 if test "${ac_cv_search_opendir+set}" = set; then
9423 echo $ECHO_N "(cached) $ECHO_C" >&6
9424 else
9425 ac_func_search_save_LIBS=$LIBS
9426 ac_cv_search_opendir=no
9427 cat >conftest.$ac_ext <<_ACEOF
9428 /* confdefs.h. */
9429 _ACEOF
9430 cat confdefs.h >>conftest.$ac_ext
9431 cat >>conftest.$ac_ext <<_ACEOF
9432 /* end confdefs.h. */
9434 /* Override any gcc2 internal prototype to avoid an error. */
9435 #ifdef __cplusplus
9436 extern "C"
9437 #endif
9438 /* We use char because int might match the return type of a gcc2
9439 builtin and then its argument prototype would still apply. */
9440 char opendir ();
9442 main ()
9444 opendir ();
9446 return 0;
9448 _ACEOF
9449 rm -f conftest.$ac_objext conftest$ac_exeext
9450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9451 (eval $ac_link) 2>conftest.er1
9452 ac_status=$?
9453 grep -v '^ *+' conftest.er1 >conftest.err
9454 rm -f conftest.er1
9455 cat conftest.err >&5
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); } &&
9458 { ac_try='test -z "$ac_c_werror_flag"
9459 || test ! -s conftest.err'
9460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9461 (eval $ac_try) 2>&5
9462 ac_status=$?
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); }; } &&
9465 { ac_try='test -s conftest$ac_exeext'
9466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9467 (eval $ac_try) 2>&5
9468 ac_status=$?
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); }; }; then
9471 ac_cv_search_opendir="none required"
9472 else
9473 echo "$as_me: failed program was:" >&5
9474 sed 's/^/| /' conftest.$ac_ext >&5
9477 rm -f conftest.err conftest.$ac_objext \
9478 conftest$ac_exeext conftest.$ac_ext
9479 if test "$ac_cv_search_opendir" = no; then
9480 for ac_lib in x; do
9481 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9482 cat >conftest.$ac_ext <<_ACEOF
9483 /* confdefs.h. */
9484 _ACEOF
9485 cat confdefs.h >>conftest.$ac_ext
9486 cat >>conftest.$ac_ext <<_ACEOF
9487 /* end confdefs.h. */
9489 /* Override any gcc2 internal prototype to avoid an error. */
9490 #ifdef __cplusplus
9491 extern "C"
9492 #endif
9493 /* We use char because int might match the return type of a gcc2
9494 builtin and then its argument prototype would still apply. */
9495 char opendir ();
9497 main ()
9499 opendir ();
9501 return 0;
9503 _ACEOF
9504 rm -f conftest.$ac_objext conftest$ac_exeext
9505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9506 (eval $ac_link) 2>conftest.er1
9507 ac_status=$?
9508 grep -v '^ *+' conftest.er1 >conftest.err
9509 rm -f conftest.er1
9510 cat conftest.err >&5
9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); } &&
9513 { ac_try='test -z "$ac_c_werror_flag"
9514 || test ! -s conftest.err'
9515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9516 (eval $ac_try) 2>&5
9517 ac_status=$?
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); }; } &&
9520 { ac_try='test -s conftest$ac_exeext'
9521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9522 (eval $ac_try) 2>&5
9523 ac_status=$?
9524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 (exit $ac_status); }; }; then
9526 ac_cv_search_opendir="-l$ac_lib"
9527 break
9528 else
9529 echo "$as_me: failed program was:" >&5
9530 sed 's/^/| /' conftest.$ac_ext >&5
9533 rm -f conftest.err conftest.$ac_objext \
9534 conftest$ac_exeext conftest.$ac_ext
9535 done
9537 LIBS=$ac_func_search_save_LIBS
9539 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9540 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9541 if test "$ac_cv_search_opendir" != no; then
9542 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9548 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9549 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9550 if test "${ac_cv_header_stdc+set}" = set; then
9551 echo $ECHO_N "(cached) $ECHO_C" >&6
9552 else
9553 cat >conftest.$ac_ext <<_ACEOF
9554 /* confdefs.h. */
9555 _ACEOF
9556 cat confdefs.h >>conftest.$ac_ext
9557 cat >>conftest.$ac_ext <<_ACEOF
9558 /* end confdefs.h. */
9559 #include <stdlib.h>
9560 #include <stdarg.h>
9561 #include <string.h>
9562 #include <float.h>
9565 main ()
9569 return 0;
9571 _ACEOF
9572 rm -f conftest.$ac_objext
9573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9574 (eval $ac_compile) 2>conftest.er1
9575 ac_status=$?
9576 grep -v '^ *+' conftest.er1 >conftest.err
9577 rm -f conftest.er1
9578 cat conftest.err >&5
9579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580 (exit $ac_status); } &&
9581 { ac_try='test -z "$ac_c_werror_flag"
9582 || test ! -s conftest.err'
9583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9584 (eval $ac_try) 2>&5
9585 ac_status=$?
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); }; } &&
9588 { ac_try='test -s conftest.$ac_objext'
9589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9590 (eval $ac_try) 2>&5
9591 ac_status=$?
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); }; }; then
9594 ac_cv_header_stdc=yes
9595 else
9596 echo "$as_me: failed program was:" >&5
9597 sed 's/^/| /' conftest.$ac_ext >&5
9599 ac_cv_header_stdc=no
9601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9603 if test $ac_cv_header_stdc = yes; then
9604 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9605 cat >conftest.$ac_ext <<_ACEOF
9606 /* confdefs.h. */
9607 _ACEOF
9608 cat confdefs.h >>conftest.$ac_ext
9609 cat >>conftest.$ac_ext <<_ACEOF
9610 /* end confdefs.h. */
9611 #include <string.h>
9613 _ACEOF
9614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9615 $EGREP "memchr" >/dev/null 2>&1; then
9617 else
9618 ac_cv_header_stdc=no
9620 rm -f conftest*
9624 if test $ac_cv_header_stdc = yes; then
9625 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9626 cat >conftest.$ac_ext <<_ACEOF
9627 /* confdefs.h. */
9628 _ACEOF
9629 cat confdefs.h >>conftest.$ac_ext
9630 cat >>conftest.$ac_ext <<_ACEOF
9631 /* end confdefs.h. */
9632 #include <stdlib.h>
9634 _ACEOF
9635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9636 $EGREP "free" >/dev/null 2>&1; then
9638 else
9639 ac_cv_header_stdc=no
9641 rm -f conftest*
9645 if test $ac_cv_header_stdc = yes; then
9646 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9647 if test "$cross_compiling" = yes; then
9649 else
9650 cat >conftest.$ac_ext <<_ACEOF
9651 /* confdefs.h. */
9652 _ACEOF
9653 cat confdefs.h >>conftest.$ac_ext
9654 cat >>conftest.$ac_ext <<_ACEOF
9655 /* end confdefs.h. */
9656 #include <ctype.h>
9657 #if ((' ' & 0x0FF) == 0x020)
9658 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9659 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9660 #else
9661 # define ISLOWER(c) \
9662 (('a' <= (c) && (c) <= 'i') \
9663 || ('j' <= (c) && (c) <= 'r') \
9664 || ('s' <= (c) && (c) <= 'z'))
9665 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9666 #endif
9668 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9670 main ()
9672 int i;
9673 for (i = 0; i < 256; i++)
9674 if (XOR (islower (i), ISLOWER (i))
9675 || toupper (i) != TOUPPER (i))
9676 exit(2);
9677 exit (0);
9679 _ACEOF
9680 rm -f conftest$ac_exeext
9681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9682 (eval $ac_link) 2>&5
9683 ac_status=$?
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9687 (eval $ac_try) 2>&5
9688 ac_status=$?
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); }; }; then
9692 else
9693 echo "$as_me: program exited with status $ac_status" >&5
9694 echo "$as_me: failed program was:" >&5
9695 sed 's/^/| /' conftest.$ac_ext >&5
9697 ( exit $ac_status )
9698 ac_cv_header_stdc=no
9700 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9704 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9705 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9706 if test $ac_cv_header_stdc = yes; then
9708 cat >>confdefs.h <<\_ACEOF
9709 #define STDC_HEADERS 1
9710 _ACEOF
9744 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/mount.h sys/param.h sys/resource.h sys/select.h sys/socket.h sys/statvfs.h sys/time.h sys/timeb.h sys/types.h unistd.h
9746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9748 echo "$as_me:$LINENO: checking for $ac_header" >&5
9749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9751 echo $ECHO_N "(cached) $ECHO_C" >&6
9753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9755 else
9756 # Is the header compilable?
9757 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9758 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9759 cat >conftest.$ac_ext <<_ACEOF
9760 /* confdefs.h. */
9761 _ACEOF
9762 cat confdefs.h >>conftest.$ac_ext
9763 cat >>conftest.$ac_ext <<_ACEOF
9764 /* end confdefs.h. */
9765 $ac_includes_default
9766 #include <$ac_header>
9767 _ACEOF
9768 rm -f conftest.$ac_objext
9769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9770 (eval $ac_compile) 2>conftest.er1
9771 ac_status=$?
9772 grep -v '^ *+' conftest.er1 >conftest.err
9773 rm -f conftest.er1
9774 cat conftest.err >&5
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 (exit $ac_status); } &&
9777 { ac_try='test -z "$ac_c_werror_flag"
9778 || test ! -s conftest.err'
9779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9780 (eval $ac_try) 2>&5
9781 ac_status=$?
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); }; } &&
9784 { ac_try='test -s conftest.$ac_objext'
9785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9786 (eval $ac_try) 2>&5
9787 ac_status=$?
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 (exit $ac_status); }; }; then
9790 ac_header_compiler=yes
9791 else
9792 echo "$as_me: failed program was:" >&5
9793 sed 's/^/| /' conftest.$ac_ext >&5
9795 ac_header_compiler=no
9797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9798 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9799 echo "${ECHO_T}$ac_header_compiler" >&6
9801 # Is the header present?
9802 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9804 cat >conftest.$ac_ext <<_ACEOF
9805 /* confdefs.h. */
9806 _ACEOF
9807 cat confdefs.h >>conftest.$ac_ext
9808 cat >>conftest.$ac_ext <<_ACEOF
9809 /* end confdefs.h. */
9810 #include <$ac_header>
9811 _ACEOF
9812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9814 ac_status=$?
9815 grep -v '^ *+' conftest.er1 >conftest.err
9816 rm -f conftest.er1
9817 cat conftest.err >&5
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); } >/dev/null; then
9820 if test -s conftest.err; then
9821 ac_cpp_err=$ac_c_preproc_warn_flag
9822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9823 else
9824 ac_cpp_err=
9826 else
9827 ac_cpp_err=yes
9829 if test -z "$ac_cpp_err"; then
9830 ac_header_preproc=yes
9831 else
9832 echo "$as_me: failed program was:" >&5
9833 sed 's/^/| /' conftest.$ac_ext >&5
9835 ac_header_preproc=no
9837 rm -f conftest.err conftest.$ac_ext
9838 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9839 echo "${ECHO_T}$ac_header_preproc" >&6
9841 # So? What about this header?
9842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9843 yes:no: )
9844 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9847 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9848 ac_header_preproc=yes
9850 no:yes:* )
9851 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9852 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9853 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9854 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9855 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9856 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9857 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9858 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9861 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9862 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9864 cat <<\_ASBOX
9865 ## ------------------------------ ##
9866 ## Report this to admin@amule.org ##
9867 ## ------------------------------ ##
9868 _ASBOX
9870 sed "s/^/$as_me: WARNING: /" >&2
9872 esac
9873 echo "$as_me:$LINENO: checking for $ac_header" >&5
9874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9876 echo $ECHO_N "(cached) $ECHO_C" >&6
9877 else
9878 eval "$as_ac_Header=\$ac_header_preproc"
9880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9885 cat >>confdefs.h <<_ACEOF
9886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9887 _ACEOF
9891 done
9893 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9894 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9895 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9896 echo $ECHO_N "(cached) $ECHO_C" >&6
9897 else
9898 cat >conftest.$ac_ext <<_ACEOF
9899 /* confdefs.h. */
9900 _ACEOF
9901 cat confdefs.h >>conftest.$ac_ext
9902 cat >>conftest.$ac_ext <<_ACEOF
9903 /* end confdefs.h. */
9904 #include <sys/types.h>
9905 #include <sys/wait.h>
9906 #ifndef WEXITSTATUS
9907 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9908 #endif
9909 #ifndef WIFEXITED
9910 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9911 #endif
9914 main ()
9916 int s;
9917 wait (&s);
9918 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9920 return 0;
9922 _ACEOF
9923 rm -f conftest.$ac_objext
9924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9925 (eval $ac_compile) 2>conftest.er1
9926 ac_status=$?
9927 grep -v '^ *+' conftest.er1 >conftest.err
9928 rm -f conftest.er1
9929 cat conftest.err >&5
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); } &&
9932 { ac_try='test -z "$ac_c_werror_flag"
9933 || test ! -s conftest.err'
9934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9935 (eval $ac_try) 2>&5
9936 ac_status=$?
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); }; } &&
9939 { ac_try='test -s conftest.$ac_objext'
9940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9941 (eval $ac_try) 2>&5
9942 ac_status=$?
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); }; }; then
9945 ac_cv_header_sys_wait_h=yes
9946 else
9947 echo "$as_me: failed program was:" >&5
9948 sed 's/^/| /' conftest.$ac_ext >&5
9950 ac_cv_header_sys_wait_h=no
9952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9954 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9955 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9956 if test $ac_cv_header_sys_wait_h = yes; then
9958 cat >>confdefs.h <<\_ACEOF
9959 #define HAVE_SYS_WAIT_H 1
9960 _ACEOF
9965 # Checks for typedefs, structures, and compiler characteristics.
9966 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
9967 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
9968 if test "${ac_cv_header_stdbool_h+set}" = set; then
9969 echo $ECHO_N "(cached) $ECHO_C" >&6
9970 else
9971 cat >conftest.$ac_ext <<_ACEOF
9972 /* confdefs.h. */
9973 _ACEOF
9974 cat confdefs.h >>conftest.$ac_ext
9975 cat >>conftest.$ac_ext <<_ACEOF
9976 /* end confdefs.h. */
9978 #include <stdbool.h>
9979 #ifndef bool
9980 # error bool is not defined
9981 #endif
9982 #ifndef false
9983 # error false is not defined
9984 #endif
9985 #if false
9986 # error false is not 0
9987 #endif
9988 #ifndef true
9989 # error true is not defined
9990 #endif
9991 #if true != 1
9992 # error true is not 1
9993 #endif
9994 #ifndef __bool_true_false_are_defined
9995 # error __bool_true_false_are_defined is not defined
9996 #endif
9998 struct s { _Bool s: 1; _Bool t; } s;
10000 char a[true == 1 ? 1 : -1];
10001 char b[false == 0 ? 1 : -1];
10002 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10003 char d[(bool) -0.5 == true ? 1 : -1];
10004 bool e = &s;
10005 char f[(_Bool) -0.0 == false ? 1 : -1];
10006 char g[true];
10007 char h[sizeof (_Bool)];
10008 char i[sizeof s.t];
10011 main ()
10013 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
10015 return 0;
10017 _ACEOF
10018 rm -f conftest.$ac_objext
10019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10020 (eval $ac_compile) 2>conftest.er1
10021 ac_status=$?
10022 grep -v '^ *+' conftest.er1 >conftest.err
10023 rm -f conftest.er1
10024 cat conftest.err >&5
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); } &&
10027 { ac_try='test -z "$ac_c_werror_flag"
10028 || test ! -s conftest.err'
10029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10030 (eval $ac_try) 2>&5
10031 ac_status=$?
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); }; } &&
10034 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10040 ac_cv_header_stdbool_h=yes
10041 else
10042 echo "$as_me: failed program was:" >&5
10043 sed 's/^/| /' conftest.$ac_ext >&5
10045 ac_cv_header_stdbool_h=no
10047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10049 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
10050 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
10051 echo "$as_me:$LINENO: checking for _Bool" >&5
10052 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
10053 if test "${ac_cv_type__Bool+set}" = set; then
10054 echo $ECHO_N "(cached) $ECHO_C" >&6
10055 else
10056 cat >conftest.$ac_ext <<_ACEOF
10057 /* confdefs.h. */
10058 _ACEOF
10059 cat confdefs.h >>conftest.$ac_ext
10060 cat >>conftest.$ac_ext <<_ACEOF
10061 /* end confdefs.h. */
10062 $ac_includes_default
10064 main ()
10066 if ((_Bool *) 0)
10067 return 0;
10068 if (sizeof (_Bool))
10069 return 0;
10071 return 0;
10073 _ACEOF
10074 rm -f conftest.$ac_objext
10075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10076 (eval $ac_compile) 2>conftest.er1
10077 ac_status=$?
10078 grep -v '^ *+' conftest.er1 >conftest.err
10079 rm -f conftest.er1
10080 cat conftest.err >&5
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); } &&
10083 { ac_try='test -z "$ac_c_werror_flag"
10084 || test ! -s conftest.err'
10085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10086 (eval $ac_try) 2>&5
10087 ac_status=$?
10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 (exit $ac_status); }; } &&
10090 { ac_try='test -s conftest.$ac_objext'
10091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10092 (eval $ac_try) 2>&5
10093 ac_status=$?
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); }; }; then
10096 ac_cv_type__Bool=yes
10097 else
10098 echo "$as_me: failed program was:" >&5
10099 sed 's/^/| /' conftest.$ac_ext >&5
10101 ac_cv_type__Bool=no
10103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10105 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10106 echo "${ECHO_T}$ac_cv_type__Bool" >&6
10107 if test $ac_cv_type__Bool = yes; then
10109 cat >>confdefs.h <<_ACEOF
10110 #define HAVE__BOOL 1
10111 _ACEOF
10116 if test $ac_cv_header_stdbool_h = yes; then
10118 cat >>confdefs.h <<\_ACEOF
10119 #define HAVE_STDBOOL_H 1
10120 _ACEOF
10124 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10125 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10126 if test "${ac_cv_c_const+set}" = set; then
10127 echo $ECHO_N "(cached) $ECHO_C" >&6
10128 else
10129 cat >conftest.$ac_ext <<_ACEOF
10130 /* confdefs.h. */
10131 _ACEOF
10132 cat confdefs.h >>conftest.$ac_ext
10133 cat >>conftest.$ac_ext <<_ACEOF
10134 /* end confdefs.h. */
10137 main ()
10139 /* FIXME: Include the comments suggested by Paul. */
10140 #ifndef __cplusplus
10141 /* Ultrix mips cc rejects this. */
10142 typedef int charset[2];
10143 const charset x;
10144 /* SunOS 4.1.1 cc rejects this. */
10145 char const *const *ccp;
10146 char **p;
10147 /* NEC SVR4.0.2 mips cc rejects this. */
10148 struct point {int x, y;};
10149 static struct point const zero = {0,0};
10150 /* AIX XL C 1.02.0.0 rejects this.
10151 It does not let you subtract one const X* pointer from another in
10152 an arm of an if-expression whose if-part is not a constant
10153 expression */
10154 const char *g = "string";
10155 ccp = &g + (g ? g-g : 0);
10156 /* HPUX 7.0 cc rejects these. */
10157 ++ccp;
10158 p = (char**) ccp;
10159 ccp = (char const *const *) p;
10160 { /* SCO 3.2v4 cc rejects this. */
10161 char *t;
10162 char const *s = 0 ? (char *) 0 : (char const *) 0;
10164 *t++ = 0;
10166 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10167 int x[] = {25, 17};
10168 const int *foo = &x[0];
10169 ++foo;
10171 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10172 typedef const int *iptr;
10173 iptr p = 0;
10174 ++p;
10176 { /* AIX XL C 1.02.0.0 rejects this saying
10177 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10178 struct s { int j; const int *ap[3]; };
10179 struct s *b; b->j = 5;
10181 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10182 const int foo = 10;
10184 #endif
10187 return 0;
10189 _ACEOF
10190 rm -f conftest.$ac_objext
10191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10192 (eval $ac_compile) 2>conftest.er1
10193 ac_status=$?
10194 grep -v '^ *+' conftest.er1 >conftest.err
10195 rm -f conftest.er1
10196 cat conftest.err >&5
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); } &&
10199 { ac_try='test -z "$ac_c_werror_flag"
10200 || test ! -s conftest.err'
10201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10202 (eval $ac_try) 2>&5
10203 ac_status=$?
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); }; } &&
10206 { ac_try='test -s conftest.$ac_objext'
10207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10208 (eval $ac_try) 2>&5
10209 ac_status=$?
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); }; }; then
10212 ac_cv_c_const=yes
10213 else
10214 echo "$as_me: failed program was:" >&5
10215 sed 's/^/| /' conftest.$ac_ext >&5
10217 ac_cv_c_const=no
10219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10221 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10222 echo "${ECHO_T}$ac_cv_c_const" >&6
10223 if test $ac_cv_c_const = no; then
10225 cat >>confdefs.h <<\_ACEOF
10226 #define const
10227 _ACEOF
10231 echo "$as_me:$LINENO: checking for inline" >&5
10232 echo $ECHO_N "checking for inline... $ECHO_C" >&6
10233 if test "${ac_cv_c_inline+set}" = set; then
10234 echo $ECHO_N "(cached) $ECHO_C" >&6
10235 else
10236 ac_cv_c_inline=no
10237 for ac_kw in inline __inline__ __inline; do
10238 cat >conftest.$ac_ext <<_ACEOF
10239 /* confdefs.h. */
10240 _ACEOF
10241 cat confdefs.h >>conftest.$ac_ext
10242 cat >>conftest.$ac_ext <<_ACEOF
10243 /* end confdefs.h. */
10244 #ifndef __cplusplus
10245 typedef int foo_t;
10246 static $ac_kw foo_t static_foo () {return 0; }
10247 $ac_kw foo_t foo () {return 0; }
10248 #endif
10250 _ACEOF
10251 rm -f conftest.$ac_objext
10252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10253 (eval $ac_compile) 2>conftest.er1
10254 ac_status=$?
10255 grep -v '^ *+' conftest.er1 >conftest.err
10256 rm -f conftest.er1
10257 cat conftest.err >&5
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); } &&
10260 { ac_try='test -z "$ac_c_werror_flag"
10261 || test ! -s conftest.err'
10262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10263 (eval $ac_try) 2>&5
10264 ac_status=$?
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); }; } &&
10267 { ac_try='test -s conftest.$ac_objext'
10268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10269 (eval $ac_try) 2>&5
10270 ac_status=$?
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); }; }; then
10273 ac_cv_c_inline=$ac_kw; break
10274 else
10275 echo "$as_me: failed program was:" >&5
10276 sed 's/^/| /' conftest.$ac_ext >&5
10279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10280 done
10283 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10284 echo "${ECHO_T}$ac_cv_c_inline" >&6
10287 case $ac_cv_c_inline in
10288 inline | yes) ;;
10290 case $ac_cv_c_inline in
10291 no) ac_val=;;
10292 *) ac_val=$ac_cv_c_inline;;
10293 esac
10294 cat >>confdefs.h <<_ACEOF
10295 #ifndef __cplusplus
10296 #define inline $ac_val
10297 #endif
10298 _ACEOF
10300 esac
10302 echo "$as_me:$LINENO: checking for mode_t" >&5
10303 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10304 if test "${ac_cv_type_mode_t+set}" = set; then
10305 echo $ECHO_N "(cached) $ECHO_C" >&6
10306 else
10307 cat >conftest.$ac_ext <<_ACEOF
10308 /* confdefs.h. */
10309 _ACEOF
10310 cat confdefs.h >>conftest.$ac_ext
10311 cat >>conftest.$ac_ext <<_ACEOF
10312 /* end confdefs.h. */
10313 $ac_includes_default
10315 main ()
10317 if ((mode_t *) 0)
10318 return 0;
10319 if (sizeof (mode_t))
10320 return 0;
10322 return 0;
10324 _ACEOF
10325 rm -f conftest.$ac_objext
10326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10327 (eval $ac_compile) 2>conftest.er1
10328 ac_status=$?
10329 grep -v '^ *+' conftest.er1 >conftest.err
10330 rm -f conftest.er1
10331 cat conftest.err >&5
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); } &&
10334 { ac_try='test -z "$ac_c_werror_flag"
10335 || test ! -s conftest.err'
10336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10337 (eval $ac_try) 2>&5
10338 ac_status=$?
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); }; } &&
10341 { ac_try='test -s conftest.$ac_objext'
10342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10343 (eval $ac_try) 2>&5
10344 ac_status=$?
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); }; }; then
10347 ac_cv_type_mode_t=yes
10348 else
10349 echo "$as_me: failed program was:" >&5
10350 sed 's/^/| /' conftest.$ac_ext >&5
10352 ac_cv_type_mode_t=no
10354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10356 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10357 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10358 if test $ac_cv_type_mode_t = yes; then
10360 else
10362 cat >>confdefs.h <<_ACEOF
10363 #define mode_t int
10364 _ACEOF
10368 echo "$as_me:$LINENO: checking for off_t" >&5
10369 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10370 if test "${ac_cv_type_off_t+set}" = set; then
10371 echo $ECHO_N "(cached) $ECHO_C" >&6
10372 else
10373 cat >conftest.$ac_ext <<_ACEOF
10374 /* confdefs.h. */
10375 _ACEOF
10376 cat confdefs.h >>conftest.$ac_ext
10377 cat >>conftest.$ac_ext <<_ACEOF
10378 /* end confdefs.h. */
10379 $ac_includes_default
10381 main ()
10383 if ((off_t *) 0)
10384 return 0;
10385 if (sizeof (off_t))
10386 return 0;
10388 return 0;
10390 _ACEOF
10391 rm -f conftest.$ac_objext
10392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10393 (eval $ac_compile) 2>conftest.er1
10394 ac_status=$?
10395 grep -v '^ *+' conftest.er1 >conftest.err
10396 rm -f conftest.er1
10397 cat conftest.err >&5
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); } &&
10400 { ac_try='test -z "$ac_c_werror_flag"
10401 || test ! -s conftest.err'
10402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10403 (eval $ac_try) 2>&5
10404 ac_status=$?
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); }; } &&
10407 { ac_try='test -s conftest.$ac_objext'
10408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10409 (eval $ac_try) 2>&5
10410 ac_status=$?
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); }; }; then
10413 ac_cv_type_off_t=yes
10414 else
10415 echo "$as_me: failed program was:" >&5
10416 sed 's/^/| /' conftest.$ac_ext >&5
10418 ac_cv_type_off_t=no
10420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10422 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10423 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10424 if test $ac_cv_type_off_t = yes; then
10426 else
10428 cat >>confdefs.h <<_ACEOF
10429 #define off_t long
10430 _ACEOF
10434 echo "$as_me:$LINENO: checking for size_t" >&5
10435 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10436 if test "${ac_cv_type_size_t+set}" = set; then
10437 echo $ECHO_N "(cached) $ECHO_C" >&6
10438 else
10439 cat >conftest.$ac_ext <<_ACEOF
10440 /* confdefs.h. */
10441 _ACEOF
10442 cat confdefs.h >>conftest.$ac_ext
10443 cat >>conftest.$ac_ext <<_ACEOF
10444 /* end confdefs.h. */
10445 $ac_includes_default
10447 main ()
10449 if ((size_t *) 0)
10450 return 0;
10451 if (sizeof (size_t))
10452 return 0;
10454 return 0;
10456 _ACEOF
10457 rm -f conftest.$ac_objext
10458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10459 (eval $ac_compile) 2>conftest.er1
10460 ac_status=$?
10461 grep -v '^ *+' conftest.er1 >conftest.err
10462 rm -f conftest.er1
10463 cat conftest.err >&5
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); } &&
10466 { ac_try='test -z "$ac_c_werror_flag"
10467 || test ! -s conftest.err'
10468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10469 (eval $ac_try) 2>&5
10470 ac_status=$?
10471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); }; } &&
10473 { ac_try='test -s conftest.$ac_objext'
10474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10475 (eval $ac_try) 2>&5
10476 ac_status=$?
10477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478 (exit $ac_status); }; }; then
10479 ac_cv_type_size_t=yes
10480 else
10481 echo "$as_me: failed program was:" >&5
10482 sed 's/^/| /' conftest.$ac_ext >&5
10484 ac_cv_type_size_t=no
10486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10488 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10489 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10490 if test $ac_cv_type_size_t = yes; then
10492 else
10494 cat >>confdefs.h <<_ACEOF
10495 #define size_t unsigned
10496 _ACEOF
10500 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10501 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10502 if test "${ac_cv_header_time+set}" = set; then
10503 echo $ECHO_N "(cached) $ECHO_C" >&6
10504 else
10505 cat >conftest.$ac_ext <<_ACEOF
10506 /* confdefs.h. */
10507 _ACEOF
10508 cat confdefs.h >>conftest.$ac_ext
10509 cat >>conftest.$ac_ext <<_ACEOF
10510 /* end confdefs.h. */
10511 #include <sys/types.h>
10512 #include <sys/time.h>
10513 #include <time.h>
10516 main ()
10518 if ((struct tm *) 0)
10519 return 0;
10521 return 0;
10523 _ACEOF
10524 rm -f conftest.$ac_objext
10525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10526 (eval $ac_compile) 2>conftest.er1
10527 ac_status=$?
10528 grep -v '^ *+' conftest.er1 >conftest.err
10529 rm -f conftest.er1
10530 cat conftest.err >&5
10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); } &&
10533 { ac_try='test -z "$ac_c_werror_flag"
10534 || test ! -s conftest.err'
10535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10536 (eval $ac_try) 2>&5
10537 ac_status=$?
10538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539 (exit $ac_status); }; } &&
10540 { ac_try='test -s conftest.$ac_objext'
10541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10542 (eval $ac_try) 2>&5
10543 ac_status=$?
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); }; }; then
10546 ac_cv_header_time=yes
10547 else
10548 echo "$as_me: failed program was:" >&5
10549 sed 's/^/| /' conftest.$ac_ext >&5
10551 ac_cv_header_time=no
10553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10555 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10556 echo "${ECHO_T}$ac_cv_header_time" >&6
10557 if test $ac_cv_header_time = yes; then
10559 cat >>confdefs.h <<\_ACEOF
10560 #define TIME_WITH_SYS_TIME 1
10561 _ACEOF
10565 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10566 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10567 if test "${ac_cv_struct_tm+set}" = set; then
10568 echo $ECHO_N "(cached) $ECHO_C" >&6
10569 else
10570 cat >conftest.$ac_ext <<_ACEOF
10571 /* confdefs.h. */
10572 _ACEOF
10573 cat confdefs.h >>conftest.$ac_ext
10574 cat >>conftest.$ac_ext <<_ACEOF
10575 /* end confdefs.h. */
10576 #include <sys/types.h>
10577 #include <time.h>
10580 main ()
10582 struct tm *tp; tp->tm_sec;
10584 return 0;
10586 _ACEOF
10587 rm -f conftest.$ac_objext
10588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10589 (eval $ac_compile) 2>conftest.er1
10590 ac_status=$?
10591 grep -v '^ *+' conftest.er1 >conftest.err
10592 rm -f conftest.er1
10593 cat conftest.err >&5
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); } &&
10596 { ac_try='test -z "$ac_c_werror_flag"
10597 || test ! -s conftest.err'
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); }; } &&
10603 { ac_try='test -s conftest.$ac_objext'
10604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10605 (eval $ac_try) 2>&5
10606 ac_status=$?
10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); }; }; then
10609 ac_cv_struct_tm=time.h
10610 else
10611 echo "$as_me: failed program was:" >&5
10612 sed 's/^/| /' conftest.$ac_ext >&5
10614 ac_cv_struct_tm=sys/time.h
10616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10618 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10619 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10620 if test $ac_cv_struct_tm = sys/time.h; then
10622 cat >>confdefs.h <<\_ACEOF
10623 #define TM_IN_SYS_TIME 1
10624 _ACEOF
10628 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10629 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10630 if test "${ac_cv_type_uid_t+set}" = set; then
10631 echo $ECHO_N "(cached) $ECHO_C" >&6
10632 else
10633 cat >conftest.$ac_ext <<_ACEOF
10634 /* confdefs.h. */
10635 _ACEOF
10636 cat confdefs.h >>conftest.$ac_ext
10637 cat >>conftest.$ac_ext <<_ACEOF
10638 /* end confdefs.h. */
10639 #include <sys/types.h>
10641 _ACEOF
10642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10643 $EGREP "uid_t" >/dev/null 2>&1; then
10644 ac_cv_type_uid_t=yes
10645 else
10646 ac_cv_type_uid_t=no
10648 rm -f conftest*
10651 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10652 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10653 if test $ac_cv_type_uid_t = no; then
10655 cat >>confdefs.h <<\_ACEOF
10656 #define uid_t int
10657 _ACEOF
10660 cat >>confdefs.h <<\_ACEOF
10661 #define gid_t int
10662 _ACEOF
10666 echo "$as_me:$LINENO: checking for working volatile" >&5
10667 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
10668 if test "${ac_cv_c_volatile+set}" = set; then
10669 echo $ECHO_N "(cached) $ECHO_C" >&6
10670 else
10671 cat >conftest.$ac_ext <<_ACEOF
10672 /* confdefs.h. */
10673 _ACEOF
10674 cat confdefs.h >>conftest.$ac_ext
10675 cat >>conftest.$ac_ext <<_ACEOF
10676 /* end confdefs.h. */
10679 main ()
10682 volatile int x;
10683 int * volatile y;
10685 return 0;
10687 _ACEOF
10688 rm -f conftest.$ac_objext
10689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10690 (eval $ac_compile) 2>conftest.er1
10691 ac_status=$?
10692 grep -v '^ *+' conftest.er1 >conftest.err
10693 rm -f conftest.er1
10694 cat conftest.err >&5
10695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); } &&
10697 { ac_try='test -z "$ac_c_werror_flag"
10698 || test ! -s conftest.err'
10699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10700 (eval $ac_try) 2>&5
10701 ac_status=$?
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); }; } &&
10704 { ac_try='test -s conftest.$ac_objext'
10705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10706 (eval $ac_try) 2>&5
10707 ac_status=$?
10708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 (exit $ac_status); }; }; then
10710 ac_cv_c_volatile=yes
10711 else
10712 echo "$as_me: failed program was:" >&5
10713 sed 's/^/| /' conftest.$ac_ext >&5
10715 ac_cv_c_volatile=no
10717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10719 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
10720 echo "${ECHO_T}$ac_cv_c_volatile" >&6
10721 if test $ac_cv_c_volatile = no; then
10723 cat >>confdefs.h <<\_ACEOF
10724 #define volatile
10725 _ACEOF
10729 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10730 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10731 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10732 echo $ECHO_N "(cached) $ECHO_C" >&6
10733 else
10734 cat >conftest.$ac_ext <<_ACEOF
10735 /* confdefs.h. */
10736 _ACEOF
10737 cat confdefs.h >>conftest.$ac_ext
10738 cat >>conftest.$ac_ext <<_ACEOF
10739 /* end confdefs.h. */
10740 $ac_includes_default
10742 main ()
10744 if ((ptrdiff_t *) 0)
10745 return 0;
10746 if (sizeof (ptrdiff_t))
10747 return 0;
10749 return 0;
10751 _ACEOF
10752 rm -f conftest.$ac_objext
10753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10754 (eval $ac_compile) 2>conftest.er1
10755 ac_status=$?
10756 grep -v '^ *+' conftest.er1 >conftest.err
10757 rm -f conftest.er1
10758 cat conftest.err >&5
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); } &&
10761 { ac_try='test -z "$ac_c_werror_flag"
10762 || test ! -s conftest.err'
10763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10764 (eval $ac_try) 2>&5
10765 ac_status=$?
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); }; } &&
10768 { ac_try='test -s conftest.$ac_objext'
10769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10770 (eval $ac_try) 2>&5
10771 ac_status=$?
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); }; }; then
10774 ac_cv_type_ptrdiff_t=yes
10775 else
10776 echo "$as_me: failed program was:" >&5
10777 sed 's/^/| /' conftest.$ac_ext >&5
10779 ac_cv_type_ptrdiff_t=no
10781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10783 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10784 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10785 if test $ac_cv_type_ptrdiff_t = yes; then
10787 cat >>confdefs.h <<_ACEOF
10788 #define HAVE_PTRDIFF_T 1
10789 _ACEOF
10795 # Checks for library functions.
10796 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
10797 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
10798 if test "${ac_cv_func_closedir_void+set}" = set; then
10799 echo $ECHO_N "(cached) $ECHO_C" >&6
10800 else
10801 if test "$cross_compiling" = yes; then
10802 ac_cv_func_closedir_void=yes
10803 else
10804 cat >conftest.$ac_ext <<_ACEOF
10805 /* confdefs.h. */
10806 _ACEOF
10807 cat confdefs.h >>conftest.$ac_ext
10808 cat >>conftest.$ac_ext <<_ACEOF
10809 /* end confdefs.h. */
10810 $ac_includes_default
10811 #include <$ac_header_dirent>
10812 #ifndef __cplusplus
10813 int closedir ();
10814 #endif
10817 main ()
10819 exit (closedir (opendir (".")) != 0);
10821 return 0;
10823 _ACEOF
10824 rm -f conftest$ac_exeext
10825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10826 (eval $ac_link) 2>&5
10827 ac_status=$?
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10831 (eval $ac_try) 2>&5
10832 ac_status=$?
10833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834 (exit $ac_status); }; }; then
10835 ac_cv_func_closedir_void=no
10836 else
10837 echo "$as_me: program exited with status $ac_status" >&5
10838 echo "$as_me: failed program was:" >&5
10839 sed 's/^/| /' conftest.$ac_ext >&5
10841 ( exit $ac_status )
10842 ac_cv_func_closedir_void=yes
10844 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10847 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
10848 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
10849 if test $ac_cv_func_closedir_void = yes; then
10851 cat >>confdefs.h <<\_ACEOF
10852 #define CLOSEDIR_VOID 1
10853 _ACEOF
10857 if test $ac_cv_c_compiler_gnu = yes; then
10858 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10859 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10860 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10861 echo $ECHO_N "(cached) $ECHO_C" >&6
10862 else
10863 ac_pattern="Autoconf.*'x'"
10864 cat >conftest.$ac_ext <<_ACEOF
10865 /* confdefs.h. */
10866 _ACEOF
10867 cat confdefs.h >>conftest.$ac_ext
10868 cat >>conftest.$ac_ext <<_ACEOF
10869 /* end confdefs.h. */
10870 #include <sgtty.h>
10871 Autoconf TIOCGETP
10872 _ACEOF
10873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10874 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10875 ac_cv_prog_gcc_traditional=yes
10876 else
10877 ac_cv_prog_gcc_traditional=no
10879 rm -f conftest*
10882 if test $ac_cv_prog_gcc_traditional = no; then
10883 cat >conftest.$ac_ext <<_ACEOF
10884 /* confdefs.h. */
10885 _ACEOF
10886 cat confdefs.h >>conftest.$ac_ext
10887 cat >>conftest.$ac_ext <<_ACEOF
10888 /* end confdefs.h. */
10889 #include <termio.h>
10890 Autoconf TCGETA
10891 _ACEOF
10892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10893 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10894 ac_cv_prog_gcc_traditional=yes
10896 rm -f conftest*
10900 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10901 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10902 if test $ac_cv_prog_gcc_traditional = yes; then
10903 CC="$CC -traditional"
10907 echo "$as_me:$LINENO: checking for pid_t" >&5
10908 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10909 if test "${ac_cv_type_pid_t+set}" = set; then
10910 echo $ECHO_N "(cached) $ECHO_C" >&6
10911 else
10912 cat >conftest.$ac_ext <<_ACEOF
10913 /* confdefs.h. */
10914 _ACEOF
10915 cat confdefs.h >>conftest.$ac_ext
10916 cat >>conftest.$ac_ext <<_ACEOF
10917 /* end confdefs.h. */
10918 $ac_includes_default
10920 main ()
10922 if ((pid_t *) 0)
10923 return 0;
10924 if (sizeof (pid_t))
10925 return 0;
10927 return 0;
10929 _ACEOF
10930 rm -f conftest.$ac_objext
10931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10932 (eval $ac_compile) 2>conftest.er1
10933 ac_status=$?
10934 grep -v '^ *+' conftest.er1 >conftest.err
10935 rm -f conftest.er1
10936 cat conftest.err >&5
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); } &&
10939 { ac_try='test -z "$ac_c_werror_flag"
10940 || test ! -s conftest.err'
10941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10942 (eval $ac_try) 2>&5
10943 ac_status=$?
10944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); }; } &&
10946 { ac_try='test -s conftest.$ac_objext'
10947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10948 (eval $ac_try) 2>&5
10949 ac_status=$?
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); }; }; then
10952 ac_cv_type_pid_t=yes
10953 else
10954 echo "$as_me: failed program was:" >&5
10955 sed 's/^/| /' conftest.$ac_ext >&5
10957 ac_cv_type_pid_t=no
10959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10961 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10962 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10963 if test $ac_cv_type_pid_t = yes; then
10965 else
10967 cat >>confdefs.h <<_ACEOF
10968 #define pid_t int
10969 _ACEOF
10975 for ac_header in unistd.h vfork.h
10977 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10979 echo "$as_me:$LINENO: checking for $ac_header" >&5
10980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10982 echo $ECHO_N "(cached) $ECHO_C" >&6
10984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10985 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10986 else
10987 # Is the header compilable?
10988 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10989 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
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
10997 #include <$ac_header>
10998 _ACEOF
10999 rm -f conftest.$ac_objext
11000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11001 (eval $ac_compile) 2>conftest.er1
11002 ac_status=$?
11003 grep -v '^ *+' conftest.er1 >conftest.err
11004 rm -f conftest.er1
11005 cat conftest.err >&5
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); } &&
11008 { ac_try='test -z "$ac_c_werror_flag"
11009 || test ! -s conftest.err'
11010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11011 (eval $ac_try) 2>&5
11012 ac_status=$?
11013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); }; } &&
11015 { ac_try='test -s conftest.$ac_objext'
11016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11017 (eval $ac_try) 2>&5
11018 ac_status=$?
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); }; }; then
11021 ac_header_compiler=yes
11022 else
11023 echo "$as_me: failed program was:" >&5
11024 sed 's/^/| /' conftest.$ac_ext >&5
11026 ac_header_compiler=no
11028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11029 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11030 echo "${ECHO_T}$ac_header_compiler" >&6
11032 # Is the header present?
11033 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11034 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11035 cat >conftest.$ac_ext <<_ACEOF
11036 /* confdefs.h. */
11037 _ACEOF
11038 cat confdefs.h >>conftest.$ac_ext
11039 cat >>conftest.$ac_ext <<_ACEOF
11040 /* end confdefs.h. */
11041 #include <$ac_header>
11042 _ACEOF
11043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11044 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11045 ac_status=$?
11046 grep -v '^ *+' conftest.er1 >conftest.err
11047 rm -f conftest.er1
11048 cat conftest.err >&5
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); } >/dev/null; then
11051 if test -s conftest.err; then
11052 ac_cpp_err=$ac_c_preproc_warn_flag
11053 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11054 else
11055 ac_cpp_err=
11057 else
11058 ac_cpp_err=yes
11060 if test -z "$ac_cpp_err"; then
11061 ac_header_preproc=yes
11062 else
11063 echo "$as_me: failed program was:" >&5
11064 sed 's/^/| /' conftest.$ac_ext >&5
11066 ac_header_preproc=no
11068 rm -f conftest.err conftest.$ac_ext
11069 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11070 echo "${ECHO_T}$ac_header_preproc" >&6
11072 # So? What about this header?
11073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11074 yes:no: )
11075 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11076 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11078 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11079 ac_header_preproc=yes
11081 no:yes:* )
11082 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11083 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11084 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11085 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11086 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11087 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11088 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11089 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11090 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11091 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11092 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11093 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11095 cat <<\_ASBOX
11096 ## ------------------------------ ##
11097 ## Report this to admin@amule.org ##
11098 ## ------------------------------ ##
11099 _ASBOX
11101 sed "s/^/$as_me: WARNING: /" >&2
11103 esac
11104 echo "$as_me:$LINENO: checking for $ac_header" >&5
11105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11107 echo $ECHO_N "(cached) $ECHO_C" >&6
11108 else
11109 eval "$as_ac_Header=\$ac_header_preproc"
11111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11116 cat >>confdefs.h <<_ACEOF
11117 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11118 _ACEOF
11122 done
11126 for ac_func in fork vfork
11128 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11129 echo "$as_me:$LINENO: checking for $ac_func" >&5
11130 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11131 if eval "test \"\${$as_ac_var+set}\" = set"; then
11132 echo $ECHO_N "(cached) $ECHO_C" >&6
11133 else
11134 cat >conftest.$ac_ext <<_ACEOF
11135 /* confdefs.h. */
11136 _ACEOF
11137 cat confdefs.h >>conftest.$ac_ext
11138 cat >>conftest.$ac_ext <<_ACEOF
11139 /* end confdefs.h. */
11140 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11142 #define $ac_func innocuous_$ac_func
11144 /* System header to define __stub macros and hopefully few prototypes,
11145 which can conflict with char $ac_func (); below.
11146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11147 <limits.h> exists even on freestanding compilers. */
11149 #ifdef __STDC__
11150 # include <limits.h>
11151 #else
11152 # include <assert.h>
11153 #endif
11155 #undef $ac_func
11157 /* Override any gcc2 internal prototype to avoid an error. */
11158 #ifdef __cplusplus
11159 extern "C"
11161 #endif
11162 /* We use char because int might match the return type of a gcc2
11163 builtin and then its argument prototype would still apply. */
11164 char $ac_func ();
11165 /* The GNU C library defines this for functions which it implements
11166 to always fail with ENOSYS. Some functions are actually named
11167 something starting with __ and the normal name is an alias. */
11168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11169 choke me
11170 #else
11171 char (*f) () = $ac_func;
11172 #endif
11173 #ifdef __cplusplus
11175 #endif
11178 main ()
11180 return f != $ac_func;
11182 return 0;
11184 _ACEOF
11185 rm -f conftest.$ac_objext conftest$ac_exeext
11186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11187 (eval $ac_link) 2>conftest.er1
11188 ac_status=$?
11189 grep -v '^ *+' conftest.er1 >conftest.err
11190 rm -f conftest.er1
11191 cat conftest.err >&5
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); } &&
11194 { ac_try='test -z "$ac_c_werror_flag"
11195 || test ! -s conftest.err'
11196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11197 (eval $ac_try) 2>&5
11198 ac_status=$?
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); }; } &&
11201 { ac_try='test -s conftest$ac_exeext'
11202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11203 (eval $ac_try) 2>&5
11204 ac_status=$?
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); }; }; then
11207 eval "$as_ac_var=yes"
11208 else
11209 echo "$as_me: failed program was:" >&5
11210 sed 's/^/| /' conftest.$ac_ext >&5
11212 eval "$as_ac_var=no"
11214 rm -f conftest.err conftest.$ac_objext \
11215 conftest$ac_exeext conftest.$ac_ext
11217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11218 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11219 if test `eval echo '${'$as_ac_var'}'` = yes; then
11220 cat >>confdefs.h <<_ACEOF
11221 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11222 _ACEOF
11225 done
11227 if test "x$ac_cv_func_fork" = xyes; then
11228 echo "$as_me:$LINENO: checking for working fork" >&5
11229 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
11230 if test "${ac_cv_func_fork_works+set}" = set; then
11231 echo $ECHO_N "(cached) $ECHO_C" >&6
11232 else
11233 if test "$cross_compiling" = yes; then
11234 ac_cv_func_fork_works=cross
11235 else
11236 cat >conftest.$ac_ext <<_ACEOF
11237 /* By Ruediger Kuhlmann. */
11238 #include <sys/types.h>
11239 #if HAVE_UNISTD_H
11240 # include <unistd.h>
11241 #endif
11242 /* Some systems only have a dummy stub for fork() */
11243 int main ()
11245 if (fork() < 0)
11246 exit (1);
11247 exit (0);
11249 _ACEOF
11250 rm -f conftest$ac_exeext
11251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11252 (eval $ac_link) 2>&5
11253 ac_status=$?
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11257 (eval $ac_try) 2>&5
11258 ac_status=$?
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); }; }; then
11261 ac_cv_func_fork_works=yes
11262 else
11263 echo "$as_me: program exited with status $ac_status" >&5
11264 echo "$as_me: failed program was:" >&5
11265 sed 's/^/| /' conftest.$ac_ext >&5
11267 ( exit $ac_status )
11268 ac_cv_func_fork_works=no
11270 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11273 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11274 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11276 else
11277 ac_cv_func_fork_works=$ac_cv_func_fork
11279 if test "x$ac_cv_func_fork_works" = xcross; then
11280 case $host in
11281 *-*-amigaos* | *-*-msdosdjgpp*)
11282 # Override, as these systems have only a dummy fork() stub
11283 ac_cv_func_fork_works=no
11286 ac_cv_func_fork_works=yes
11288 esac
11289 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11290 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11292 ac_cv_func_vfork_works=$ac_cv_func_vfork
11293 if test "x$ac_cv_func_vfork" = xyes; then
11294 echo "$as_me:$LINENO: checking for working vfork" >&5
11295 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11296 if test "${ac_cv_func_vfork_works+set}" = set; then
11297 echo $ECHO_N "(cached) $ECHO_C" >&6
11298 else
11299 if test "$cross_compiling" = yes; then
11300 ac_cv_func_vfork_works=cross
11301 else
11302 cat >conftest.$ac_ext <<_ACEOF
11303 /* confdefs.h. */
11304 _ACEOF
11305 cat confdefs.h >>conftest.$ac_ext
11306 cat >>conftest.$ac_ext <<_ACEOF
11307 /* end confdefs.h. */
11308 /* Thanks to Paul Eggert for this test. */
11309 #include <stdio.h>
11310 #include <stdlib.h>
11311 #include <sys/types.h>
11312 #include <sys/stat.h>
11313 #include <sys/wait.h>
11314 #if HAVE_UNISTD_H
11315 # include <unistd.h>
11316 #endif
11317 #if HAVE_VFORK_H
11318 # include <vfork.h>
11319 #endif
11320 /* On some sparc systems, changes by the child to local and incoming
11321 argument registers are propagated back to the parent. The compiler
11322 is told about this with #include <vfork.h>, but some compilers
11323 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11324 static variable whose address is put into a register that is
11325 clobbered by the vfork. */
11326 static void
11327 #ifdef __cplusplus
11328 sparc_address_test (int arg)
11329 # else
11330 sparc_address_test (arg) int arg;
11331 #endif
11333 static pid_t child;
11334 if (!child) {
11335 child = vfork ();
11336 if (child < 0) {
11337 perror ("vfork");
11338 _exit(2);
11340 if (!child) {
11341 arg = getpid();
11342 write(-1, "", 0);
11343 _exit (arg);
11349 main ()
11351 pid_t parent = getpid ();
11352 pid_t child;
11354 sparc_address_test (0);
11356 child = vfork ();
11358 if (child == 0) {
11359 /* Here is another test for sparc vfork register problems. This
11360 test uses lots of local variables, at least as many local
11361 variables as main has allocated so far including compiler
11362 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11363 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11364 reuse the register of parent for one of the local variables,
11365 since it will think that parent can't possibly be used any more
11366 in this routine. Assigning to the local variable will thus
11367 munge parent in the parent process. */
11368 pid_t
11369 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11370 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11371 /* Convince the compiler that p..p7 are live; otherwise, it might
11372 use the same hardware register for all 8 local variables. */
11373 if (p != p1 || p != p2 || p != p3 || p != p4
11374 || p != p5 || p != p6 || p != p7)
11375 _exit(1);
11377 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11378 from child file descriptors. If the child closes a descriptor
11379 before it execs or exits, this munges the parent's descriptor
11380 as well. Test for this by closing stdout in the child. */
11381 _exit(close(fileno(stdout)) != 0);
11382 } else {
11383 int status;
11384 struct stat st;
11386 while (wait(&status) != child)
11388 exit(
11389 /* Was there some problem with vforking? */
11390 child < 0
11392 /* Did the child fail? (This shouldn't happen.) */
11393 || status
11395 /* Did the vfork/compiler bug occur? */
11396 || parent != getpid()
11398 /* Did the file descriptor bug occur? */
11399 || fstat(fileno(stdout), &st) != 0
11403 _ACEOF
11404 rm -f conftest$ac_exeext
11405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11406 (eval $ac_link) 2>&5
11407 ac_status=$?
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11411 (eval $ac_try) 2>&5
11412 ac_status=$?
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); }; }; then
11415 ac_cv_func_vfork_works=yes
11416 else
11417 echo "$as_me: program exited with status $ac_status" >&5
11418 echo "$as_me: failed program was:" >&5
11419 sed 's/^/| /' conftest.$ac_ext >&5
11421 ( exit $ac_status )
11422 ac_cv_func_vfork_works=no
11424 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11427 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11428 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11431 if test "x$ac_cv_func_fork_works" = xcross; then
11432 ac_cv_func_vfork_works=$ac_cv_func_vfork
11433 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11434 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11437 if test "x$ac_cv_func_vfork_works" = xyes; then
11439 cat >>confdefs.h <<\_ACEOF
11440 #define HAVE_WORKING_VFORK 1
11441 _ACEOF
11443 else
11445 cat >>confdefs.h <<\_ACEOF
11446 #define vfork fork
11447 _ACEOF
11450 if test "x$ac_cv_func_fork_works" = xyes; then
11452 cat >>confdefs.h <<\_ACEOF
11453 #define HAVE_WORKING_FORK 1
11454 _ACEOF
11458 if test x$SYS != xwin32; then
11460 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
11461 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
11462 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
11463 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
11464 echo $ECHO_N "(cached) $ECHO_C" >&6
11465 else
11466 ac_check_lib_save_LIBS=$LIBS
11467 LIBS="-lsun $LIBS"
11468 cat >conftest.$ac_ext <<_ACEOF
11469 /* confdefs.h. */
11470 _ACEOF
11471 cat confdefs.h >>conftest.$ac_ext
11472 cat >>conftest.$ac_ext <<_ACEOF
11473 /* end confdefs.h. */
11475 /* Override any gcc2 internal prototype to avoid an error. */
11476 #ifdef __cplusplus
11477 extern "C"
11478 #endif
11479 /* We use char because int might match the return type of a gcc2
11480 builtin and then its argument prototype would still apply. */
11481 char getmntent ();
11483 main ()
11485 getmntent ();
11487 return 0;
11489 _ACEOF
11490 rm -f conftest.$ac_objext conftest$ac_exeext
11491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11492 (eval $ac_link) 2>conftest.er1
11493 ac_status=$?
11494 grep -v '^ *+' conftest.er1 >conftest.err
11495 rm -f conftest.er1
11496 cat conftest.err >&5
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); } &&
11499 { ac_try='test -z "$ac_c_werror_flag"
11500 || test ! -s conftest.err'
11501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11502 (eval $ac_try) 2>&5
11503 ac_status=$?
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); }; } &&
11506 { ac_try='test -s conftest$ac_exeext'
11507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11508 (eval $ac_try) 2>&5
11509 ac_status=$?
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); }; }; then
11512 ac_cv_lib_sun_getmntent=yes
11513 else
11514 echo "$as_me: failed program was:" >&5
11515 sed 's/^/| /' conftest.$ac_ext >&5
11517 ac_cv_lib_sun_getmntent=no
11519 rm -f conftest.err conftest.$ac_objext \
11520 conftest$ac_exeext conftest.$ac_ext
11521 LIBS=$ac_check_lib_save_LIBS
11523 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
11524 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
11525 if test $ac_cv_lib_sun_getmntent = yes; then
11526 LIBS="-lsun $LIBS"
11527 else
11528 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
11529 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
11530 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
11531 echo $ECHO_N "(cached) $ECHO_C" >&6
11532 else
11533 ac_check_lib_save_LIBS=$LIBS
11534 LIBS="-lseq $LIBS"
11535 cat >conftest.$ac_ext <<_ACEOF
11536 /* confdefs.h. */
11537 _ACEOF
11538 cat confdefs.h >>conftest.$ac_ext
11539 cat >>conftest.$ac_ext <<_ACEOF
11540 /* end confdefs.h. */
11542 /* Override any gcc2 internal prototype to avoid an error. */
11543 #ifdef __cplusplus
11544 extern "C"
11545 #endif
11546 /* We use char because int might match the return type of a gcc2
11547 builtin and then its argument prototype would still apply. */
11548 char getmntent ();
11550 main ()
11552 getmntent ();
11554 return 0;
11556 _ACEOF
11557 rm -f conftest.$ac_objext conftest$ac_exeext
11558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11559 (eval $ac_link) 2>conftest.er1
11560 ac_status=$?
11561 grep -v '^ *+' conftest.er1 >conftest.err
11562 rm -f conftest.er1
11563 cat conftest.err >&5
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); } &&
11566 { ac_try='test -z "$ac_c_werror_flag"
11567 || test ! -s conftest.err'
11568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11569 (eval $ac_try) 2>&5
11570 ac_status=$?
11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); }; } &&
11573 { ac_try='test -s conftest$ac_exeext'
11574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11575 (eval $ac_try) 2>&5
11576 ac_status=$?
11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); }; }; then
11579 ac_cv_lib_seq_getmntent=yes
11580 else
11581 echo "$as_me: failed program was:" >&5
11582 sed 's/^/| /' conftest.$ac_ext >&5
11584 ac_cv_lib_seq_getmntent=no
11586 rm -f conftest.err conftest.$ac_objext \
11587 conftest$ac_exeext conftest.$ac_ext
11588 LIBS=$ac_check_lib_save_LIBS
11590 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
11591 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
11592 if test $ac_cv_lib_seq_getmntent = yes; then
11593 LIBS="-lseq $LIBS"
11594 else
11595 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
11596 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
11597 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
11598 echo $ECHO_N "(cached) $ECHO_C" >&6
11599 else
11600 ac_check_lib_save_LIBS=$LIBS
11601 LIBS="-lgen $LIBS"
11602 cat >conftest.$ac_ext <<_ACEOF
11603 /* confdefs.h. */
11604 _ACEOF
11605 cat confdefs.h >>conftest.$ac_ext
11606 cat >>conftest.$ac_ext <<_ACEOF
11607 /* end confdefs.h. */
11609 /* Override any gcc2 internal prototype to avoid an error. */
11610 #ifdef __cplusplus
11611 extern "C"
11612 #endif
11613 /* We use char because int might match the return type of a gcc2
11614 builtin and then its argument prototype would still apply. */
11615 char getmntent ();
11617 main ()
11619 getmntent ();
11621 return 0;
11623 _ACEOF
11624 rm -f conftest.$ac_objext conftest$ac_exeext
11625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11626 (eval $ac_link) 2>conftest.er1
11627 ac_status=$?
11628 grep -v '^ *+' conftest.er1 >conftest.err
11629 rm -f conftest.er1
11630 cat conftest.err >&5
11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); } &&
11633 { ac_try='test -z "$ac_c_werror_flag"
11634 || test ! -s conftest.err'
11635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11636 (eval $ac_try) 2>&5
11637 ac_status=$?
11638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639 (exit $ac_status); }; } &&
11640 { ac_try='test -s conftest$ac_exeext'
11641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11642 (eval $ac_try) 2>&5
11643 ac_status=$?
11644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645 (exit $ac_status); }; }; then
11646 ac_cv_lib_gen_getmntent=yes
11647 else
11648 echo "$as_me: failed program was:" >&5
11649 sed 's/^/| /' conftest.$ac_ext >&5
11651 ac_cv_lib_gen_getmntent=no
11653 rm -f conftest.err conftest.$ac_objext \
11654 conftest$ac_exeext conftest.$ac_ext
11655 LIBS=$ac_check_lib_save_LIBS
11657 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
11658 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
11659 if test $ac_cv_lib_gen_getmntent = yes; then
11660 LIBS="-lgen $LIBS"
11668 for ac_func in getmntent
11670 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11671 echo "$as_me:$LINENO: checking for $ac_func" >&5
11672 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11673 if eval "test \"\${$as_ac_var+set}\" = set"; then
11674 echo $ECHO_N "(cached) $ECHO_C" >&6
11675 else
11676 cat >conftest.$ac_ext <<_ACEOF
11677 /* confdefs.h. */
11678 _ACEOF
11679 cat confdefs.h >>conftest.$ac_ext
11680 cat >>conftest.$ac_ext <<_ACEOF
11681 /* end confdefs.h. */
11682 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11684 #define $ac_func innocuous_$ac_func
11686 /* System header to define __stub macros and hopefully few prototypes,
11687 which can conflict with char $ac_func (); below.
11688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11689 <limits.h> exists even on freestanding compilers. */
11691 #ifdef __STDC__
11692 # include <limits.h>
11693 #else
11694 # include <assert.h>
11695 #endif
11697 #undef $ac_func
11699 /* Override any gcc2 internal prototype to avoid an error. */
11700 #ifdef __cplusplus
11701 extern "C"
11703 #endif
11704 /* We use char because int might match the return type of a gcc2
11705 builtin and then its argument prototype would still apply. */
11706 char $ac_func ();
11707 /* The GNU C library defines this for functions which it implements
11708 to always fail with ENOSYS. Some functions are actually named
11709 something starting with __ and the normal name is an alias. */
11710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11711 choke me
11712 #else
11713 char (*f) () = $ac_func;
11714 #endif
11715 #ifdef __cplusplus
11717 #endif
11720 main ()
11722 return f != $ac_func;
11724 return 0;
11726 _ACEOF
11727 rm -f conftest.$ac_objext conftest$ac_exeext
11728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11729 (eval $ac_link) 2>conftest.er1
11730 ac_status=$?
11731 grep -v '^ *+' conftest.er1 >conftest.err
11732 rm -f conftest.er1
11733 cat conftest.err >&5
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); } &&
11736 { ac_try='test -z "$ac_c_werror_flag"
11737 || test ! -s conftest.err'
11738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11739 (eval $ac_try) 2>&5
11740 ac_status=$?
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); }; } &&
11743 { ac_try='test -s conftest$ac_exeext'
11744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11745 (eval $ac_try) 2>&5
11746 ac_status=$?
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); }; }; then
11749 eval "$as_ac_var=yes"
11750 else
11751 echo "$as_me: failed program was:" >&5
11752 sed 's/^/| /' conftest.$ac_ext >&5
11754 eval "$as_ac_var=no"
11756 rm -f conftest.err conftest.$ac_objext \
11757 conftest$ac_exeext conftest.$ac_ext
11759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11760 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11761 if test `eval echo '${'$as_ac_var'}'` = yes; then
11762 cat >>confdefs.h <<_ACEOF
11763 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11764 _ACEOF
11767 done
11770 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
11771 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
11772 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
11773 echo $ECHO_N "(cached) $ECHO_C" >&6
11774 else
11775 rm -f conftest.sym conftest.file
11776 echo >conftest.file
11777 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
11778 if test "$cross_compiling" = yes; then
11779 ac_cv_func_lstat_dereferences_slashed_symlink=no
11780 else
11781 cat >conftest.$ac_ext <<_ACEOF
11782 /* confdefs.h. */
11783 _ACEOF
11784 cat confdefs.h >>conftest.$ac_ext
11785 cat >>conftest.$ac_ext <<_ACEOF
11786 /* end confdefs.h. */
11787 $ac_includes_default
11789 main ()
11791 struct stat sbuf;
11792 /* Linux will dereference the symlink and fail.
11793 That is better in the sense that it means we will not
11794 have to compile and use the lstat wrapper. */
11795 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
11797 return 0;
11799 _ACEOF
11800 rm -f conftest$ac_exeext
11801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11802 (eval $ac_link) 2>&5
11803 ac_status=$?
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11807 (eval $ac_try) 2>&5
11808 ac_status=$?
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); }; }; then
11811 ac_cv_func_lstat_dereferences_slashed_symlink=yes
11812 else
11813 echo "$as_me: program exited with status $ac_status" >&5
11814 echo "$as_me: failed program was:" >&5
11815 sed 's/^/| /' conftest.$ac_ext >&5
11817 ( exit $ac_status )
11818 ac_cv_func_lstat_dereferences_slashed_symlink=no
11820 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11822 else
11823 # If the `ln -s' command failed, then we probably don't even
11824 # have an lstat function.
11825 ac_cv_func_lstat_dereferences_slashed_symlink=no
11827 rm -f conftest.sym conftest.file
11830 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11831 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
11833 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11835 cat >>confdefs.h <<_ACEOF
11836 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11837 _ACEOF
11840 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
11841 case $LIBOBJS in
11842 "lstat.$ac_objext" | \
11843 *" lstat.$ac_objext" | \
11844 "lstat.$ac_objext "* | \
11845 *" lstat.$ac_objext "* ) ;;
11846 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
11847 esac
11851 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
11852 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
11853 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
11854 echo $ECHO_N "(cached) $ECHO_C" >&6
11855 else
11856 if test "$cross_compiling" = yes; then
11857 ac_cv_func_lstat_empty_string_bug=yes
11858 else
11859 cat >conftest.$ac_ext <<_ACEOF
11860 /* confdefs.h. */
11861 _ACEOF
11862 cat confdefs.h >>conftest.$ac_ext
11863 cat >>conftest.$ac_ext <<_ACEOF
11864 /* end confdefs.h. */
11865 $ac_includes_default
11867 main ()
11869 struct stat sbuf;
11870 exit (lstat ("", &sbuf) ? 1 : 0);
11872 return 0;
11874 _ACEOF
11875 rm -f conftest$ac_exeext
11876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11877 (eval $ac_link) 2>&5
11878 ac_status=$?
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11882 (eval $ac_try) 2>&5
11883 ac_status=$?
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); }; }; then
11886 ac_cv_func_lstat_empty_string_bug=yes
11887 else
11888 echo "$as_me: program exited with status $ac_status" >&5
11889 echo "$as_me: failed program was:" >&5
11890 sed 's/^/| /' conftest.$ac_ext >&5
11892 ( exit $ac_status )
11893 ac_cv_func_lstat_empty_string_bug=no
11895 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11898 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
11899 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
11900 if test $ac_cv_func_lstat_empty_string_bug = yes; then
11901 case $LIBOBJS in
11902 "lstat.$ac_objext" | \
11903 *" lstat.$ac_objext" | \
11904 "lstat.$ac_objext "* | \
11905 *" lstat.$ac_objext "* ) ;;
11906 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
11907 esac
11910 cat >>confdefs.h <<_ACEOF
11911 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
11912 _ACEOF
11916 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
11917 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
11918 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
11919 echo $ECHO_N "(cached) $ECHO_C" >&6
11920 else
11921 rm -f conftest.sym conftest.file
11922 echo >conftest.file
11923 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
11924 if test "$cross_compiling" = yes; then
11925 ac_cv_func_lstat_dereferences_slashed_symlink=no
11926 else
11927 cat >conftest.$ac_ext <<_ACEOF
11928 /* confdefs.h. */
11929 _ACEOF
11930 cat confdefs.h >>conftest.$ac_ext
11931 cat >>conftest.$ac_ext <<_ACEOF
11932 /* end confdefs.h. */
11933 $ac_includes_default
11935 main ()
11937 struct stat sbuf;
11938 /* Linux will dereference the symlink and fail.
11939 That is better in the sense that it means we will not
11940 have to compile and use the lstat wrapper. */
11941 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
11943 return 0;
11945 _ACEOF
11946 rm -f conftest$ac_exeext
11947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11948 (eval $ac_link) 2>&5
11949 ac_status=$?
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11953 (eval $ac_try) 2>&5
11954 ac_status=$?
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); }; }; then
11957 ac_cv_func_lstat_dereferences_slashed_symlink=yes
11958 else
11959 echo "$as_me: program exited with status $ac_status" >&5
11960 echo "$as_me: failed program was:" >&5
11961 sed 's/^/| /' conftest.$ac_ext >&5
11963 ( exit $ac_status )
11964 ac_cv_func_lstat_dereferences_slashed_symlink=no
11966 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11968 else
11969 # If the `ln -s' command failed, then we probably don't even
11970 # have an lstat function.
11971 ac_cv_func_lstat_dereferences_slashed_symlink=no
11973 rm -f conftest.sym conftest.file
11976 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11977 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
11979 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11981 cat >>confdefs.h <<_ACEOF
11982 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11983 _ACEOF
11986 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
11987 case $LIBOBJS in
11988 "lstat.$ac_objext" | \
11989 *" lstat.$ac_objext" | \
11990 "lstat.$ac_objext "* | \
11991 *" lstat.$ac_objext "* ) ;;
11992 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
11993 esac
12000 echo "$as_me:$LINENO: checking for working memcmp" >&5
12001 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
12002 if test "${ac_cv_func_memcmp_working+set}" = set; then
12003 echo $ECHO_N "(cached) $ECHO_C" >&6
12004 else
12005 if test "$cross_compiling" = yes; then
12006 ac_cv_func_memcmp_working=no
12007 else
12008 cat >conftest.$ac_ext <<_ACEOF
12009 /* confdefs.h. */
12010 _ACEOF
12011 cat confdefs.h >>conftest.$ac_ext
12012 cat >>conftest.$ac_ext <<_ACEOF
12013 /* end confdefs.h. */
12014 $ac_includes_default
12016 main ()
12019 /* Some versions of memcmp are not 8-bit clean. */
12020 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
12021 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12022 exit (1);
12024 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12025 or more and with at least one buffer not starting on a 4-byte boundary.
12026 William Lewis provided this test program. */
12028 char foo[21];
12029 char bar[21];
12030 int i;
12031 for (i = 0; i < 4; i++)
12033 char *a = foo + i;
12034 char *b = bar + i;
12035 strcpy (a, "--------01111111");
12036 strcpy (b, "--------10000000");
12037 if (memcmp (a, b, 16) >= 0)
12038 exit (1);
12040 exit (0);
12044 return 0;
12046 _ACEOF
12047 rm -f conftest$ac_exeext
12048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12049 (eval $ac_link) 2>&5
12050 ac_status=$?
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12054 (eval $ac_try) 2>&5
12055 ac_status=$?
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 (exit $ac_status); }; }; then
12058 ac_cv_func_memcmp_working=yes
12059 else
12060 echo "$as_me: program exited with status $ac_status" >&5
12061 echo "$as_me: failed program was:" >&5
12062 sed 's/^/| /' conftest.$ac_ext >&5
12064 ( exit $ac_status )
12065 ac_cv_func_memcmp_working=no
12067 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12070 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
12071 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
12072 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
12073 "memcmp.$ac_objext" | \
12074 *" memcmp.$ac_objext" | \
12075 "memcmp.$ac_objext "* | \
12076 *" memcmp.$ac_objext "* ) ;;
12077 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
12078 esac
12083 for ac_header in stdlib.h unistd.h
12085 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12087 echo "$as_me:$LINENO: checking for $ac_header" >&5
12088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12090 echo $ECHO_N "(cached) $ECHO_C" >&6
12092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12093 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12094 else
12095 # Is the header compilable?
12096 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12097 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12098 cat >conftest.$ac_ext <<_ACEOF
12099 /* confdefs.h. */
12100 _ACEOF
12101 cat confdefs.h >>conftest.$ac_ext
12102 cat >>conftest.$ac_ext <<_ACEOF
12103 /* end confdefs.h. */
12104 $ac_includes_default
12105 #include <$ac_header>
12106 _ACEOF
12107 rm -f conftest.$ac_objext
12108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12109 (eval $ac_compile) 2>conftest.er1
12110 ac_status=$?
12111 grep -v '^ *+' conftest.er1 >conftest.err
12112 rm -f conftest.er1
12113 cat conftest.err >&5
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); } &&
12116 { ac_try='test -z "$ac_c_werror_flag"
12117 || test ! -s conftest.err'
12118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12119 (eval $ac_try) 2>&5
12120 ac_status=$?
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); }; } &&
12123 { ac_try='test -s conftest.$ac_objext'
12124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12125 (eval $ac_try) 2>&5
12126 ac_status=$?
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); }; }; then
12129 ac_header_compiler=yes
12130 else
12131 echo "$as_me: failed program was:" >&5
12132 sed 's/^/| /' conftest.$ac_ext >&5
12134 ac_header_compiler=no
12136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12137 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12138 echo "${ECHO_T}$ac_header_compiler" >&6
12140 # Is the header present?
12141 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12142 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12143 cat >conftest.$ac_ext <<_ACEOF
12144 /* confdefs.h. */
12145 _ACEOF
12146 cat confdefs.h >>conftest.$ac_ext
12147 cat >>conftest.$ac_ext <<_ACEOF
12148 /* end confdefs.h. */
12149 #include <$ac_header>
12150 _ACEOF
12151 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12152 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12153 ac_status=$?
12154 grep -v '^ *+' conftest.er1 >conftest.err
12155 rm -f conftest.er1
12156 cat conftest.err >&5
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); } >/dev/null; then
12159 if test -s conftest.err; then
12160 ac_cpp_err=$ac_c_preproc_warn_flag
12161 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12162 else
12163 ac_cpp_err=
12165 else
12166 ac_cpp_err=yes
12168 if test -z "$ac_cpp_err"; then
12169 ac_header_preproc=yes
12170 else
12171 echo "$as_me: failed program was:" >&5
12172 sed 's/^/| /' conftest.$ac_ext >&5
12174 ac_header_preproc=no
12176 rm -f conftest.err conftest.$ac_ext
12177 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12178 echo "${ECHO_T}$ac_header_preproc" >&6
12180 # So? What about this header?
12181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12182 yes:no: )
12183 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12184 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12186 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12187 ac_header_preproc=yes
12189 no:yes:* )
12190 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12191 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12192 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12193 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12194 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12195 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12196 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12197 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12199 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12200 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12201 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12203 cat <<\_ASBOX
12204 ## ------------------------------ ##
12205 ## Report this to admin@amule.org ##
12206 ## ------------------------------ ##
12207 _ASBOX
12209 sed "s/^/$as_me: WARNING: /" >&2
12211 esac
12212 echo "$as_me:$LINENO: checking for $ac_header" >&5
12213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12214 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12215 echo $ECHO_N "(cached) $ECHO_C" >&6
12216 else
12217 eval "$as_ac_Header=\$ac_header_preproc"
12219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12224 cat >>confdefs.h <<_ACEOF
12225 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12226 _ACEOF
12230 done
12233 for ac_func in getpagesize
12235 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12236 echo "$as_me:$LINENO: checking for $ac_func" >&5
12237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12238 if eval "test \"\${$as_ac_var+set}\" = set"; then
12239 echo $ECHO_N "(cached) $ECHO_C" >&6
12240 else
12241 cat >conftest.$ac_ext <<_ACEOF
12242 /* confdefs.h. */
12243 _ACEOF
12244 cat confdefs.h >>conftest.$ac_ext
12245 cat >>conftest.$ac_ext <<_ACEOF
12246 /* end confdefs.h. */
12247 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12249 #define $ac_func innocuous_$ac_func
12251 /* System header to define __stub macros and hopefully few prototypes,
12252 which can conflict with char $ac_func (); below.
12253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12254 <limits.h> exists even on freestanding compilers. */
12256 #ifdef __STDC__
12257 # include <limits.h>
12258 #else
12259 # include <assert.h>
12260 #endif
12262 #undef $ac_func
12264 /* Override any gcc2 internal prototype to avoid an error. */
12265 #ifdef __cplusplus
12266 extern "C"
12268 #endif
12269 /* We use char because int might match the return type of a gcc2
12270 builtin and then its argument prototype would still apply. */
12271 char $ac_func ();
12272 /* The GNU C library defines this for functions which it implements
12273 to always fail with ENOSYS. Some functions are actually named
12274 something starting with __ and the normal name is an alias. */
12275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12276 choke me
12277 #else
12278 char (*f) () = $ac_func;
12279 #endif
12280 #ifdef __cplusplus
12282 #endif
12285 main ()
12287 return f != $ac_func;
12289 return 0;
12291 _ACEOF
12292 rm -f conftest.$ac_objext conftest$ac_exeext
12293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12294 (eval $ac_link) 2>conftest.er1
12295 ac_status=$?
12296 grep -v '^ *+' conftest.er1 >conftest.err
12297 rm -f conftest.er1
12298 cat conftest.err >&5
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); } &&
12301 { ac_try='test -z "$ac_c_werror_flag"
12302 || test ! -s conftest.err'
12303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12304 (eval $ac_try) 2>&5
12305 ac_status=$?
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); }; } &&
12308 { ac_try='test -s 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 eval "$as_ac_var=yes"
12315 else
12316 echo "$as_me: failed program was:" >&5
12317 sed 's/^/| /' conftest.$ac_ext >&5
12319 eval "$as_ac_var=no"
12321 rm -f conftest.err conftest.$ac_objext \
12322 conftest$ac_exeext conftest.$ac_ext
12324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12325 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12326 if test `eval echo '${'$as_ac_var'}'` = yes; then
12327 cat >>confdefs.h <<_ACEOF
12328 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12329 _ACEOF
12332 done
12334 echo "$as_me:$LINENO: checking for working mmap" >&5
12335 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
12336 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12337 echo $ECHO_N "(cached) $ECHO_C" >&6
12338 else
12339 if test "$cross_compiling" = yes; then
12340 ac_cv_func_mmap_fixed_mapped=no
12341 else
12342 cat >conftest.$ac_ext <<_ACEOF
12343 /* confdefs.h. */
12344 _ACEOF
12345 cat confdefs.h >>conftest.$ac_ext
12346 cat >>conftest.$ac_ext <<_ACEOF
12347 /* end confdefs.h. */
12348 $ac_includes_default
12349 /* malloc might have been renamed as rpl_malloc. */
12350 #undef malloc
12352 /* Thanks to Mike Haertel and Jim Avera for this test.
12353 Here is a matrix of mmap possibilities:
12354 mmap private not fixed
12355 mmap private fixed at somewhere currently unmapped
12356 mmap private fixed at somewhere already mapped
12357 mmap shared not fixed
12358 mmap shared fixed at somewhere currently unmapped
12359 mmap shared fixed at somewhere already mapped
12360 For private mappings, we should verify that changes cannot be read()
12361 back from the file, nor mmap's back from the file at a different
12362 address. (There have been systems where private was not correctly
12363 implemented like the infamous i386 svr4.0, and systems where the
12364 VM page cache was not coherent with the file system buffer cache
12365 like early versions of FreeBSD and possibly contemporary NetBSD.)
12366 For shared mappings, we should conversely verify that changes get
12367 propagated back to all the places they're supposed to be.
12369 Grep wants private fixed already mapped.
12370 The main things grep needs to know about mmap are:
12371 * does it exist and is it safe to write into the mmap'd area
12372 * how to use it (BSD variants) */
12374 #include <fcntl.h>
12375 #include <sys/mman.h>
12377 #if !STDC_HEADERS && !HAVE_STDLIB_H
12378 char *malloc ();
12379 #endif
12381 /* This mess was copied from the GNU getpagesize.h. */
12382 #if !HAVE_GETPAGESIZE
12383 /* Assume that all systems that can run configure have sys/param.h. */
12384 # if !HAVE_SYS_PARAM_H
12385 # define HAVE_SYS_PARAM_H 1
12386 # endif
12388 # ifdef _SC_PAGESIZE
12389 # define getpagesize() sysconf(_SC_PAGESIZE)
12390 # else /* no _SC_PAGESIZE */
12391 # if HAVE_SYS_PARAM_H
12392 # include <sys/param.h>
12393 # ifdef EXEC_PAGESIZE
12394 # define getpagesize() EXEC_PAGESIZE
12395 # else /* no EXEC_PAGESIZE */
12396 # ifdef NBPG
12397 # define getpagesize() NBPG * CLSIZE
12398 # ifndef CLSIZE
12399 # define CLSIZE 1
12400 # endif /* no CLSIZE */
12401 # else /* no NBPG */
12402 # ifdef NBPC
12403 # define getpagesize() NBPC
12404 # else /* no NBPC */
12405 # ifdef PAGESIZE
12406 # define getpagesize() PAGESIZE
12407 # endif /* PAGESIZE */
12408 # endif /* no NBPC */
12409 # endif /* no NBPG */
12410 # endif /* no EXEC_PAGESIZE */
12411 # else /* no HAVE_SYS_PARAM_H */
12412 # define getpagesize() 8192 /* punt totally */
12413 # endif /* no HAVE_SYS_PARAM_H */
12414 # endif /* no _SC_PAGESIZE */
12416 #endif /* no HAVE_GETPAGESIZE */
12419 main ()
12421 char *data, *data2, *data3;
12422 int i, pagesize;
12423 int fd;
12425 pagesize = getpagesize ();
12427 /* First, make a file with some known garbage in it. */
12428 data = (char *) malloc (pagesize);
12429 if (!data)
12430 exit (1);
12431 for (i = 0; i < pagesize; ++i)
12432 *(data + i) = rand ();
12433 umask (0);
12434 fd = creat ("conftest.mmap", 0600);
12435 if (fd < 0)
12436 exit (1);
12437 if (write (fd, data, pagesize) != pagesize)
12438 exit (1);
12439 close (fd);
12441 /* Next, try to mmap the file at a fixed address which already has
12442 something else allocated at it. If we can, also make sure that
12443 we see the same garbage. */
12444 fd = open ("conftest.mmap", O_RDWR);
12445 if (fd < 0)
12446 exit (1);
12447 data2 = (char *) malloc (2 * pagesize);
12448 if (!data2)
12449 exit (1);
12450 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
12451 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12452 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12453 exit (1);
12454 for (i = 0; i < pagesize; ++i)
12455 if (*(data + i) != *(data2 + i))
12456 exit (1);
12458 /* Finally, make sure that changes to the mapped area do not
12459 percolate back to the file as seen by read(). (This is a bug on
12460 some variants of i386 svr4.0.) */
12461 for (i = 0; i < pagesize; ++i)
12462 *(data2 + i) = *(data2 + i) + 1;
12463 data3 = (char *) malloc (pagesize);
12464 if (!data3)
12465 exit (1);
12466 if (read (fd, data3, pagesize) != pagesize)
12467 exit (1);
12468 for (i = 0; i < pagesize; ++i)
12469 if (*(data + i) != *(data3 + i))
12470 exit (1);
12471 close (fd);
12472 exit (0);
12474 _ACEOF
12475 rm -f conftest$ac_exeext
12476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12477 (eval $ac_link) 2>&5
12478 ac_status=$?
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12482 (eval $ac_try) 2>&5
12483 ac_status=$?
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); }; }; then
12486 ac_cv_func_mmap_fixed_mapped=yes
12487 else
12488 echo "$as_me: program exited with status $ac_status" >&5
12489 echo "$as_me: failed program was:" >&5
12490 sed 's/^/| /' conftest.$ac_ext >&5
12492 ( exit $ac_status )
12493 ac_cv_func_mmap_fixed_mapped=no
12495 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12498 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12499 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12500 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12502 cat >>confdefs.h <<\_ACEOF
12503 #define HAVE_MMAP 1
12504 _ACEOF
12507 rm -f conftest.mmap
12511 for ac_header in sys/select.h sys/socket.h
12513 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12514 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12515 echo "$as_me:$LINENO: checking for $ac_header" >&5
12516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12518 echo $ECHO_N "(cached) $ECHO_C" >&6
12520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12521 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12522 else
12523 # Is the header compilable?
12524 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12525 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12526 cat >conftest.$ac_ext <<_ACEOF
12527 /* confdefs.h. */
12528 _ACEOF
12529 cat confdefs.h >>conftest.$ac_ext
12530 cat >>conftest.$ac_ext <<_ACEOF
12531 /* end confdefs.h. */
12532 $ac_includes_default
12533 #include <$ac_header>
12534 _ACEOF
12535 rm -f conftest.$ac_objext
12536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12537 (eval $ac_compile) 2>conftest.er1
12538 ac_status=$?
12539 grep -v '^ *+' conftest.er1 >conftest.err
12540 rm -f conftest.er1
12541 cat conftest.err >&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } &&
12544 { ac_try='test -z "$ac_c_werror_flag"
12545 || test ! -s conftest.err'
12546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12547 (eval $ac_try) 2>&5
12548 ac_status=$?
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); }; } &&
12551 { ac_try='test -s conftest.$ac_objext'
12552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553 (eval $ac_try) 2>&5
12554 ac_status=$?
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; }; then
12557 ac_header_compiler=yes
12558 else
12559 echo "$as_me: failed program was:" >&5
12560 sed 's/^/| /' conftest.$ac_ext >&5
12562 ac_header_compiler=no
12564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12565 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12566 echo "${ECHO_T}$ac_header_compiler" >&6
12568 # Is the header present?
12569 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12570 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12571 cat >conftest.$ac_ext <<_ACEOF
12572 /* confdefs.h. */
12573 _ACEOF
12574 cat confdefs.h >>conftest.$ac_ext
12575 cat >>conftest.$ac_ext <<_ACEOF
12576 /* end confdefs.h. */
12577 #include <$ac_header>
12578 _ACEOF
12579 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12580 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12581 ac_status=$?
12582 grep -v '^ *+' conftest.er1 >conftest.err
12583 rm -f conftest.er1
12584 cat conftest.err >&5
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); } >/dev/null; then
12587 if test -s conftest.err; then
12588 ac_cpp_err=$ac_c_preproc_warn_flag
12589 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12590 else
12591 ac_cpp_err=
12593 else
12594 ac_cpp_err=yes
12596 if test -z "$ac_cpp_err"; then
12597 ac_header_preproc=yes
12598 else
12599 echo "$as_me: failed program was:" >&5
12600 sed 's/^/| /' conftest.$ac_ext >&5
12602 ac_header_preproc=no
12604 rm -f conftest.err conftest.$ac_ext
12605 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12606 echo "${ECHO_T}$ac_header_preproc" >&6
12608 # So? What about this header?
12609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12610 yes:no: )
12611 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12612 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12614 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12615 ac_header_preproc=yes
12617 no:yes:* )
12618 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12619 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12620 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12621 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12622 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12623 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12624 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12625 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12627 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12628 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12629 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12631 cat <<\_ASBOX
12632 ## ------------------------------ ##
12633 ## Report this to admin@amule.org ##
12634 ## ------------------------------ ##
12635 _ASBOX
12637 sed "s/^/$as_me: WARNING: /" >&2
12639 esac
12640 echo "$as_me:$LINENO: checking for $ac_header" >&5
12641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12642 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12643 echo $ECHO_N "(cached) $ECHO_C" >&6
12644 else
12645 eval "$as_ac_Header=\$ac_header_preproc"
12647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12648 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12651 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12652 cat >>confdefs.h <<_ACEOF
12653 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12654 _ACEOF
12658 done
12660 echo "$as_me:$LINENO: checking types of arguments for select" >&5
12661 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
12662 if test "${ac_cv_func_select_args+set}" = set; then
12663 echo $ECHO_N "(cached) $ECHO_C" >&6
12664 else
12665 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
12666 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
12667 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
12668 cat >conftest.$ac_ext <<_ACEOF
12669 /* confdefs.h. */
12670 _ACEOF
12671 cat confdefs.h >>conftest.$ac_ext
12672 cat >>conftest.$ac_ext <<_ACEOF
12673 /* end confdefs.h. */
12674 $ac_includes_default
12675 #if HAVE_SYS_SELECT_H
12676 # include <sys/select.h>
12677 #endif
12678 #if HAVE_SYS_SOCKET_H
12679 # include <sys/socket.h>
12680 #endif
12683 main ()
12685 extern int select ($ac_arg1,
12686 $ac_arg234, $ac_arg234, $ac_arg234,
12687 $ac_arg5);
12689 return 0;
12691 _ACEOF
12692 rm -f conftest.$ac_objext
12693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12694 (eval $ac_compile) 2>conftest.er1
12695 ac_status=$?
12696 grep -v '^ *+' conftest.er1 >conftest.err
12697 rm -f conftest.er1
12698 cat conftest.err >&5
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); } &&
12701 { ac_try='test -z "$ac_c_werror_flag"
12702 || test ! -s conftest.err'
12703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12704 (eval $ac_try) 2>&5
12705 ac_status=$?
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); }; } &&
12708 { ac_try='test -s conftest.$ac_objext'
12709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12710 (eval $ac_try) 2>&5
12711 ac_status=$?
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); }; }; then
12714 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12715 else
12716 echo "$as_me: failed program was:" >&5
12717 sed 's/^/| /' conftest.$ac_ext >&5
12720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12721 done
12722 done
12723 done
12724 # Provide a safe default value.
12725 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
12728 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
12729 echo "${ECHO_T}$ac_cv_func_select_args" >&6
12730 ac_save_IFS=$IFS; IFS=','
12731 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12732 IFS=$ac_save_IFS
12733 shift
12735 cat >>confdefs.h <<_ACEOF
12736 #define SELECT_TYPE_ARG1 $1
12737 _ACEOF
12740 cat >>confdefs.h <<_ACEOF
12741 #define SELECT_TYPE_ARG234 ($2)
12742 _ACEOF
12745 cat >>confdefs.h <<_ACEOF
12746 #define SELECT_TYPE_ARG5 ($3)
12747 _ACEOF
12749 rm -f conftest*
12751 echo "$as_me:$LINENO: checking for function prototypes" >&5
12752 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
12753 if test "$ac_cv_prog_cc_stdc" != no; then
12754 echo "$as_me:$LINENO: result: yes" >&5
12755 echo "${ECHO_T}yes" >&6
12757 cat >>confdefs.h <<\_ACEOF
12758 #define PROTOTYPES 1
12759 _ACEOF
12762 cat >>confdefs.h <<\_ACEOF
12763 #define __PROTOTYPES 1
12764 _ACEOF
12766 else
12767 echo "$as_me:$LINENO: result: no" >&5
12768 echo "${ECHO_T}no" >&6
12771 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
12772 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
12773 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
12774 echo $ECHO_N "(cached) $ECHO_C" >&6
12775 else
12776 ac_cv_func_setvbuf_reversed=no
12777 cat >conftest.$ac_ext <<_ACEOF
12778 /* confdefs.h. */
12779 _ACEOF
12780 cat confdefs.h >>conftest.$ac_ext
12781 cat >>conftest.$ac_ext <<_ACEOF
12782 /* end confdefs.h. */
12783 #include <stdio.h>
12784 # if PROTOTYPES
12785 int (setvbuf) (FILE *, int, char *, size_t);
12786 # endif
12788 main ()
12790 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
12792 return 0;
12794 _ACEOF
12795 rm -f conftest.$ac_objext conftest$ac_exeext
12796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12797 (eval $ac_link) 2>conftest.er1
12798 ac_status=$?
12799 grep -v '^ *+' conftest.er1 >conftest.err
12800 rm -f conftest.er1
12801 cat conftest.err >&5
12802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803 (exit $ac_status); } &&
12804 { ac_try='test -z "$ac_c_werror_flag"
12805 || test ! -s conftest.err'
12806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12807 (eval $ac_try) 2>&5
12808 ac_status=$?
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); }; } &&
12811 { ac_try='test -s conftest$ac_exeext'
12812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12813 (eval $ac_try) 2>&5
12814 ac_status=$?
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); }; }; then
12817 cat >conftest.$ac_ext <<_ACEOF
12818 /* confdefs.h. */
12819 _ACEOF
12820 cat confdefs.h >>conftest.$ac_ext
12821 cat >>conftest.$ac_ext <<_ACEOF
12822 /* end confdefs.h. */
12823 #include <stdio.h>
12824 # if PROTOTYPES
12825 int (setvbuf) (FILE *, int, char *, size_t);
12826 # endif
12828 main ()
12830 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
12832 return 0;
12834 _ACEOF
12835 rm -f conftest.$ac_objext conftest$ac_exeext
12836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12837 (eval $ac_link) 2>conftest.er1
12838 ac_status=$?
12839 grep -v '^ *+' conftest.er1 >conftest.err
12840 rm -f conftest.er1
12841 cat conftest.err >&5
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); } &&
12844 { ac_try='test -z "$ac_c_werror_flag"
12845 || test ! -s conftest.err'
12846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12847 (eval $ac_try) 2>&5
12848 ac_status=$?
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); }; } &&
12851 { ac_try='test -s conftest$ac_exeext'
12852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12853 (eval $ac_try) 2>&5
12854 ac_status=$?
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); }; }; then
12857 # It compiles and links either way, so it must not be declared
12858 # with a prototype and most likely this is a K&R C compiler.
12859 # Try running it.
12860 if test "$cross_compiling" = yes; then
12861 : # Assume setvbuf is not reversed when cross-compiling.
12862 else
12863 cat >conftest.$ac_ext <<_ACEOF
12864 /* confdefs.h. */
12865 _ACEOF
12866 cat confdefs.h >>conftest.$ac_ext
12867 cat >>conftest.$ac_ext <<_ACEOF
12868 /* end confdefs.h. */
12869 #include <stdio.h>
12871 main ()
12873 /* This call has the arguments reversed.
12874 A reversed system may check and see that the address of buf
12875 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
12876 char buf;
12877 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
12878 exit (1);
12879 putchar ('\r');
12880 exit (0); /* Non-reversed systems SEGV here. */
12882 return 0;
12884 _ACEOF
12885 rm -f conftest$ac_exeext
12886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12887 (eval $ac_link) 2>&5
12888 ac_status=$?
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12892 (eval $ac_try) 2>&5
12893 ac_status=$?
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); }; }; then
12896 ac_cv_func_setvbuf_reversed=yes
12897 else
12898 echo "$as_me: program exited with status $ac_status" >&5
12899 echo "$as_me: failed program was:" >&5
12900 sed 's/^/| /' conftest.$ac_ext >&5
12902 ( exit $ac_status )
12903 rm -f core *.core
12905 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12907 ac_cv_func_setvbuf_reversed=yes
12908 else
12909 echo "$as_me: failed program was:" >&5
12910 sed 's/^/| /' conftest.$ac_ext >&5
12913 rm -f conftest.err conftest.$ac_objext \
12914 conftest$ac_exeext conftest.$ac_ext
12915 else
12916 echo "$as_me: failed program was:" >&5
12917 sed 's/^/| /' conftest.$ac_ext >&5
12920 rm -f conftest.err conftest.$ac_objext \
12921 conftest$ac_exeext conftest.$ac_ext
12923 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
12924 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
12925 if test $ac_cv_func_setvbuf_reversed = yes; then
12927 cat >>confdefs.h <<\_ACEOF
12928 #define SETVBUF_REVERSED 1
12929 _ACEOF
12933 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12934 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12935 if test "${ac_cv_type_signal+set}" = set; then
12936 echo $ECHO_N "(cached) $ECHO_C" >&6
12937 else
12938 cat >conftest.$ac_ext <<_ACEOF
12939 /* confdefs.h. */
12940 _ACEOF
12941 cat confdefs.h >>conftest.$ac_ext
12942 cat >>conftest.$ac_ext <<_ACEOF
12943 /* end confdefs.h. */
12944 #include <sys/types.h>
12945 #include <signal.h>
12946 #ifdef signal
12947 # undef signal
12948 #endif
12949 #ifdef __cplusplus
12950 extern "C" void (*signal (int, void (*)(int)))(int);
12951 #else
12952 void (*signal ()) ();
12953 #endif
12956 main ()
12958 int i;
12960 return 0;
12962 _ACEOF
12963 rm -f conftest.$ac_objext
12964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12965 (eval $ac_compile) 2>conftest.er1
12966 ac_status=$?
12967 grep -v '^ *+' conftest.er1 >conftest.err
12968 rm -f conftest.er1
12969 cat conftest.err >&5
12970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971 (exit $ac_status); } &&
12972 { ac_try='test -z "$ac_c_werror_flag"
12973 || test ! -s conftest.err'
12974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12975 (eval $ac_try) 2>&5
12976 ac_status=$?
12977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978 (exit $ac_status); }; } &&
12979 { ac_try='test -s conftest.$ac_objext'
12980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12981 (eval $ac_try) 2>&5
12982 ac_status=$?
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); }; }; then
12985 ac_cv_type_signal=void
12986 else
12987 echo "$as_me: failed program was:" >&5
12988 sed 's/^/| /' conftest.$ac_ext >&5
12990 ac_cv_type_signal=int
12992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12994 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12995 echo "${ECHO_T}$ac_cv_type_signal" >&6
12997 cat >>confdefs.h <<_ACEOF
12998 #define RETSIGTYPE $ac_cv_type_signal
12999 _ACEOF
13002 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
13003 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
13004 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
13005 echo $ECHO_N "(cached) $ECHO_C" >&6
13006 else
13007 if test "$cross_compiling" = yes; then
13008 ac_cv_func_stat_empty_string_bug=yes
13009 else
13010 cat >conftest.$ac_ext <<_ACEOF
13011 /* confdefs.h. */
13012 _ACEOF
13013 cat confdefs.h >>conftest.$ac_ext
13014 cat >>conftest.$ac_ext <<_ACEOF
13015 /* end confdefs.h. */
13016 $ac_includes_default
13018 main ()
13020 struct stat sbuf;
13021 exit (stat ("", &sbuf) ? 1 : 0);
13023 return 0;
13025 _ACEOF
13026 rm -f conftest$ac_exeext
13027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13028 (eval $ac_link) 2>&5
13029 ac_status=$?
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13033 (eval $ac_try) 2>&5
13034 ac_status=$?
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); }; }; then
13037 ac_cv_func_stat_empty_string_bug=yes
13038 else
13039 echo "$as_me: program exited with status $ac_status" >&5
13040 echo "$as_me: failed program was:" >&5
13041 sed 's/^/| /' conftest.$ac_ext >&5
13043 ( exit $ac_status )
13044 ac_cv_func_stat_empty_string_bug=no
13046 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13049 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
13050 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
13051 if test $ac_cv_func_stat_empty_string_bug = yes; then
13052 case $LIBOBJS in
13053 "stat.$ac_objext" | \
13054 *" stat.$ac_objext" | \
13055 "stat.$ac_objext "* | \
13056 *" stat.$ac_objext "* ) ;;
13057 *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
13058 esac
13061 cat >>confdefs.h <<_ACEOF
13062 #define HAVE_STAT_EMPTY_STRING_BUG 1
13063 _ACEOF
13068 for ac_func in strftime
13070 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13071 echo "$as_me:$LINENO: checking for $ac_func" >&5
13072 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13073 if eval "test \"\${$as_ac_var+set}\" = set"; then
13074 echo $ECHO_N "(cached) $ECHO_C" >&6
13075 else
13076 cat >conftest.$ac_ext <<_ACEOF
13077 /* confdefs.h. */
13078 _ACEOF
13079 cat confdefs.h >>conftest.$ac_ext
13080 cat >>conftest.$ac_ext <<_ACEOF
13081 /* end confdefs.h. */
13082 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13083 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13084 #define $ac_func innocuous_$ac_func
13086 /* System header to define __stub macros and hopefully few prototypes,
13087 which can conflict with char $ac_func (); below.
13088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13089 <limits.h> exists even on freestanding compilers. */
13091 #ifdef __STDC__
13092 # include <limits.h>
13093 #else
13094 # include <assert.h>
13095 #endif
13097 #undef $ac_func
13099 /* Override any gcc2 internal prototype to avoid an error. */
13100 #ifdef __cplusplus
13101 extern "C"
13103 #endif
13104 /* We use char because int might match the return type of a gcc2
13105 builtin and then its argument prototype would still apply. */
13106 char $ac_func ();
13107 /* The GNU C library defines this for functions which it implements
13108 to always fail with ENOSYS. Some functions are actually named
13109 something starting with __ and the normal name is an alias. */
13110 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13111 choke me
13112 #else
13113 char (*f) () = $ac_func;
13114 #endif
13115 #ifdef __cplusplus
13117 #endif
13120 main ()
13122 return f != $ac_func;
13124 return 0;
13126 _ACEOF
13127 rm -f conftest.$ac_objext conftest$ac_exeext
13128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13129 (eval $ac_link) 2>conftest.er1
13130 ac_status=$?
13131 grep -v '^ *+' conftest.er1 >conftest.err
13132 rm -f conftest.er1
13133 cat conftest.err >&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); } &&
13136 { ac_try='test -z "$ac_c_werror_flag"
13137 || test ! -s conftest.err'
13138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13139 (eval $ac_try) 2>&5
13140 ac_status=$?
13141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142 (exit $ac_status); }; } &&
13143 { ac_try='test -s conftest$ac_exeext'
13144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13145 (eval $ac_try) 2>&5
13146 ac_status=$?
13147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148 (exit $ac_status); }; }; then
13149 eval "$as_ac_var=yes"
13150 else
13151 echo "$as_me: failed program was:" >&5
13152 sed 's/^/| /' conftest.$ac_ext >&5
13154 eval "$as_ac_var=no"
13156 rm -f conftest.err conftest.$ac_objext \
13157 conftest$ac_exeext conftest.$ac_ext
13159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13160 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13161 if test `eval echo '${'$as_ac_var'}'` = yes; then
13162 cat >>confdefs.h <<_ACEOF
13163 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13164 _ACEOF
13166 else
13167 # strftime is in -lintl on SCO UNIX.
13168 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
13169 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
13170 if test "${ac_cv_lib_intl_strftime+set}" = set; then
13171 echo $ECHO_N "(cached) $ECHO_C" >&6
13172 else
13173 ac_check_lib_save_LIBS=$LIBS
13174 LIBS="-lintl $LIBS"
13175 cat >conftest.$ac_ext <<_ACEOF
13176 /* confdefs.h. */
13177 _ACEOF
13178 cat confdefs.h >>conftest.$ac_ext
13179 cat >>conftest.$ac_ext <<_ACEOF
13180 /* end confdefs.h. */
13182 /* Override any gcc2 internal prototype to avoid an error. */
13183 #ifdef __cplusplus
13184 extern "C"
13185 #endif
13186 /* We use char because int might match the return type of a gcc2
13187 builtin and then its argument prototype would still apply. */
13188 char strftime ();
13190 main ()
13192 strftime ();
13194 return 0;
13196 _ACEOF
13197 rm -f conftest.$ac_objext conftest$ac_exeext
13198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13199 (eval $ac_link) 2>conftest.er1
13200 ac_status=$?
13201 grep -v '^ *+' conftest.er1 >conftest.err
13202 rm -f conftest.er1
13203 cat conftest.err >&5
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); } &&
13206 { ac_try='test -z "$ac_c_werror_flag"
13207 || test ! -s conftest.err'
13208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13209 (eval $ac_try) 2>&5
13210 ac_status=$?
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); }; } &&
13213 { ac_try='test -s conftest$ac_exeext'
13214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13215 (eval $ac_try) 2>&5
13216 ac_status=$?
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); }; }; then
13219 ac_cv_lib_intl_strftime=yes
13220 else
13221 echo "$as_me: failed program was:" >&5
13222 sed 's/^/| /' conftest.$ac_ext >&5
13224 ac_cv_lib_intl_strftime=no
13226 rm -f conftest.err conftest.$ac_objext \
13227 conftest$ac_exeext conftest.$ac_ext
13228 LIBS=$ac_check_lib_save_LIBS
13230 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
13231 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
13232 if test $ac_cv_lib_intl_strftime = yes; then
13233 cat >>confdefs.h <<\_ACEOF
13234 #define HAVE_STRFTIME 1
13235 _ACEOF
13237 LIBS="-lintl $LIBS"
13241 done
13243 echo "$as_me:$LINENO: checking for working strtod" >&5
13244 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
13245 if test "${ac_cv_func_strtod+set}" = set; then
13246 echo $ECHO_N "(cached) $ECHO_C" >&6
13247 else
13248 if test "$cross_compiling" = yes; then
13249 ac_cv_func_strtod=no
13250 else
13251 cat >conftest.$ac_ext <<_ACEOF
13252 /* confdefs.h. */
13253 _ACEOF
13254 cat confdefs.h >>conftest.$ac_ext
13255 cat >>conftest.$ac_ext <<_ACEOF
13256 /* end confdefs.h. */
13258 double strtod ();
13260 main()
13263 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
13264 char *string = " +69";
13265 char *term;
13266 double value;
13267 value = strtod (string, &term);
13268 if (value != 69 || term != (string + 4))
13269 exit (1);
13273 /* Under Solaris 2.4, strtod returns the wrong value for the
13274 terminating character under some conditions. */
13275 char *string = "NaN";
13276 char *term;
13277 strtod (string, &term);
13278 if (term != string && *(term - 1) == 0)
13279 exit (1);
13281 exit (0);
13284 _ACEOF
13285 rm -f conftest$ac_exeext
13286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13287 (eval $ac_link) 2>&5
13288 ac_status=$?
13289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13292 (eval $ac_try) 2>&5
13293 ac_status=$?
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); }; }; then
13296 ac_cv_func_strtod=yes
13297 else
13298 echo "$as_me: program exited with status $ac_status" >&5
13299 echo "$as_me: failed program was:" >&5
13300 sed 's/^/| /' conftest.$ac_ext >&5
13302 ( exit $ac_status )
13303 ac_cv_func_strtod=no
13305 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13308 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
13309 echo "${ECHO_T}$ac_cv_func_strtod" >&6
13310 if test $ac_cv_func_strtod = no; then
13311 case $LIBOBJS in
13312 "strtod.$ac_objext" | \
13313 *" strtod.$ac_objext" | \
13314 "strtod.$ac_objext "* | \
13315 *" strtod.$ac_objext "* ) ;;
13316 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;;
13317 esac
13319 echo "$as_me:$LINENO: checking for pow" >&5
13320 echo $ECHO_N "checking for pow... $ECHO_C" >&6
13321 if test "${ac_cv_func_pow+set}" = set; then
13322 echo $ECHO_N "(cached) $ECHO_C" >&6
13323 else
13324 cat >conftest.$ac_ext <<_ACEOF
13325 /* confdefs.h. */
13326 _ACEOF
13327 cat confdefs.h >>conftest.$ac_ext
13328 cat >>conftest.$ac_ext <<_ACEOF
13329 /* end confdefs.h. */
13330 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
13331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13332 #define pow innocuous_pow
13334 /* System header to define __stub macros and hopefully few prototypes,
13335 which can conflict with char pow (); below.
13336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13337 <limits.h> exists even on freestanding compilers. */
13339 #ifdef __STDC__
13340 # include <limits.h>
13341 #else
13342 # include <assert.h>
13343 #endif
13345 #undef pow
13347 /* Override any gcc2 internal prototype to avoid an error. */
13348 #ifdef __cplusplus
13349 extern "C"
13351 #endif
13352 /* We use char because int might match the return type of a gcc2
13353 builtin and then its argument prototype would still apply. */
13354 char pow ();
13355 /* The GNU C library defines this for functions which it implements
13356 to always fail with ENOSYS. Some functions are actually named
13357 something starting with __ and the normal name is an alias. */
13358 #if defined (__stub_pow) || defined (__stub___pow)
13359 choke me
13360 #else
13361 char (*f) () = pow;
13362 #endif
13363 #ifdef __cplusplus
13365 #endif
13368 main ()
13370 return f != pow;
13372 return 0;
13374 _ACEOF
13375 rm -f conftest.$ac_objext conftest$ac_exeext
13376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13377 (eval $ac_link) 2>conftest.er1
13378 ac_status=$?
13379 grep -v '^ *+' conftest.er1 >conftest.err
13380 rm -f conftest.er1
13381 cat conftest.err >&5
13382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); } &&
13384 { ac_try='test -z "$ac_c_werror_flag"
13385 || test ! -s conftest.err'
13386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13387 (eval $ac_try) 2>&5
13388 ac_status=$?
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); }; } &&
13391 { ac_try='test -s conftest$ac_exeext'
13392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13393 (eval $ac_try) 2>&5
13394 ac_status=$?
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); }; }; then
13397 ac_cv_func_pow=yes
13398 else
13399 echo "$as_me: failed program was:" >&5
13400 sed 's/^/| /' conftest.$ac_ext >&5
13402 ac_cv_func_pow=no
13404 rm -f conftest.err conftest.$ac_objext \
13405 conftest$ac_exeext conftest.$ac_ext
13407 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
13408 echo "${ECHO_T}$ac_cv_func_pow" >&6
13410 if test $ac_cv_func_pow = no; then
13411 echo "$as_me:$LINENO: checking for pow in -lm" >&5
13412 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
13413 if test "${ac_cv_lib_m_pow+set}" = set; then
13414 echo $ECHO_N "(cached) $ECHO_C" >&6
13415 else
13416 ac_check_lib_save_LIBS=$LIBS
13417 LIBS="-lm $LIBS"
13418 cat >conftest.$ac_ext <<_ACEOF
13419 /* confdefs.h. */
13420 _ACEOF
13421 cat confdefs.h >>conftest.$ac_ext
13422 cat >>conftest.$ac_ext <<_ACEOF
13423 /* end confdefs.h. */
13425 /* Override any gcc2 internal prototype to avoid an error. */
13426 #ifdef __cplusplus
13427 extern "C"
13428 #endif
13429 /* We use char because int might match the return type of a gcc2
13430 builtin and then its argument prototype would still apply. */
13431 char pow ();
13433 main ()
13435 pow ();
13437 return 0;
13439 _ACEOF
13440 rm -f conftest.$ac_objext conftest$ac_exeext
13441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13442 (eval $ac_link) 2>conftest.er1
13443 ac_status=$?
13444 grep -v '^ *+' conftest.er1 >conftest.err
13445 rm -f conftest.er1
13446 cat conftest.err >&5
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); } &&
13449 { ac_try='test -z "$ac_c_werror_flag"
13450 || test ! -s conftest.err'
13451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13452 (eval $ac_try) 2>&5
13453 ac_status=$?
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); }; } &&
13456 { ac_try='test -s conftest$ac_exeext'
13457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458 (eval $ac_try) 2>&5
13459 ac_status=$?
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); }; }; then
13462 ac_cv_lib_m_pow=yes
13463 else
13464 echo "$as_me: failed program was:" >&5
13465 sed 's/^/| /' conftest.$ac_ext >&5
13467 ac_cv_lib_m_pow=no
13469 rm -f conftest.err conftest.$ac_objext \
13470 conftest$ac_exeext conftest.$ac_ext
13471 LIBS=$ac_check_lib_save_LIBS
13473 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
13474 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
13475 if test $ac_cv_lib_m_pow = yes; then
13476 POW_LIB=-lm
13477 else
13478 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
13479 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
13487 for ac_func in vprintf
13489 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13490 echo "$as_me:$LINENO: checking for $ac_func" >&5
13491 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13492 if eval "test \"\${$as_ac_var+set}\" = set"; then
13493 echo $ECHO_N "(cached) $ECHO_C" >&6
13494 else
13495 cat >conftest.$ac_ext <<_ACEOF
13496 /* confdefs.h. */
13497 _ACEOF
13498 cat confdefs.h >>conftest.$ac_ext
13499 cat >>conftest.$ac_ext <<_ACEOF
13500 /* end confdefs.h. */
13501 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13503 #define $ac_func innocuous_$ac_func
13505 /* System header to define __stub macros and hopefully few prototypes,
13506 which can conflict with char $ac_func (); below.
13507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13508 <limits.h> exists even on freestanding compilers. */
13510 #ifdef __STDC__
13511 # include <limits.h>
13512 #else
13513 # include <assert.h>
13514 #endif
13516 #undef $ac_func
13518 /* Override any gcc2 internal prototype to avoid an error. */
13519 #ifdef __cplusplus
13520 extern "C"
13522 #endif
13523 /* We use char because int might match the return type of a gcc2
13524 builtin and then its argument prototype would still apply. */
13525 char $ac_func ();
13526 /* The GNU C library defines this for functions which it implements
13527 to always fail with ENOSYS. Some functions are actually named
13528 something starting with __ and the normal name is an alias. */
13529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13530 choke me
13531 #else
13532 char (*f) () = $ac_func;
13533 #endif
13534 #ifdef __cplusplus
13536 #endif
13539 main ()
13541 return f != $ac_func;
13543 return 0;
13545 _ACEOF
13546 rm -f conftest.$ac_objext conftest$ac_exeext
13547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13548 (eval $ac_link) 2>conftest.er1
13549 ac_status=$?
13550 grep -v '^ *+' conftest.er1 >conftest.err
13551 rm -f conftest.er1
13552 cat conftest.err >&5
13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); } &&
13555 { ac_try='test -z "$ac_c_werror_flag"
13556 || test ! -s conftest.err'
13557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13558 (eval $ac_try) 2>&5
13559 ac_status=$?
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); }; } &&
13562 { ac_try='test -s conftest$ac_exeext'
13563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13564 (eval $ac_try) 2>&5
13565 ac_status=$?
13566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567 (exit $ac_status); }; }; then
13568 eval "$as_ac_var=yes"
13569 else
13570 echo "$as_me: failed program was:" >&5
13571 sed 's/^/| /' conftest.$ac_ext >&5
13573 eval "$as_ac_var=no"
13575 rm -f conftest.err conftest.$ac_objext \
13576 conftest$ac_exeext conftest.$ac_ext
13578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13579 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13580 if test `eval echo '${'$as_ac_var'}'` = yes; then
13581 cat >>confdefs.h <<_ACEOF
13582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13583 _ACEOF
13585 echo "$as_me:$LINENO: checking for _doprnt" >&5
13586 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
13587 if test "${ac_cv_func__doprnt+set}" = set; then
13588 echo $ECHO_N "(cached) $ECHO_C" >&6
13589 else
13590 cat >conftest.$ac_ext <<_ACEOF
13591 /* confdefs.h. */
13592 _ACEOF
13593 cat confdefs.h >>conftest.$ac_ext
13594 cat >>conftest.$ac_ext <<_ACEOF
13595 /* end confdefs.h. */
13596 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
13597 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13598 #define _doprnt innocuous__doprnt
13600 /* System header to define __stub macros and hopefully few prototypes,
13601 which can conflict with char _doprnt (); below.
13602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13603 <limits.h> exists even on freestanding compilers. */
13605 #ifdef __STDC__
13606 # include <limits.h>
13607 #else
13608 # include <assert.h>
13609 #endif
13611 #undef _doprnt
13613 /* Override any gcc2 internal prototype to avoid an error. */
13614 #ifdef __cplusplus
13615 extern "C"
13617 #endif
13618 /* We use char because int might match the return type of a gcc2
13619 builtin and then its argument prototype would still apply. */
13620 char _doprnt ();
13621 /* The GNU C library defines this for functions which it implements
13622 to always fail with ENOSYS. Some functions are actually named
13623 something starting with __ and the normal name is an alias. */
13624 #if defined (__stub__doprnt) || defined (__stub____doprnt)
13625 choke me
13626 #else
13627 char (*f) () = _doprnt;
13628 #endif
13629 #ifdef __cplusplus
13631 #endif
13634 main ()
13636 return f != _doprnt;
13638 return 0;
13640 _ACEOF
13641 rm -f conftest.$ac_objext conftest$ac_exeext
13642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13643 (eval $ac_link) 2>conftest.er1
13644 ac_status=$?
13645 grep -v '^ *+' conftest.er1 >conftest.err
13646 rm -f conftest.er1
13647 cat conftest.err >&5
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 (exit $ac_status); } &&
13650 { ac_try='test -z "$ac_c_werror_flag"
13651 || test ! -s conftest.err'
13652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13653 (eval $ac_try) 2>&5
13654 ac_status=$?
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); }; } &&
13657 { ac_try='test -s conftest$ac_exeext'
13658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13659 (eval $ac_try) 2>&5
13660 ac_status=$?
13661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662 (exit $ac_status); }; }; then
13663 ac_cv_func__doprnt=yes
13664 else
13665 echo "$as_me: failed program was:" >&5
13666 sed 's/^/| /' conftest.$ac_ext >&5
13668 ac_cv_func__doprnt=no
13670 rm -f conftest.err conftest.$ac_objext \
13671 conftest$ac_exeext conftest.$ac_ext
13673 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13674 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
13675 if test $ac_cv_func__doprnt = yes; then
13677 cat >>confdefs.h <<\_ACEOF
13678 #define HAVE_DOPRNT 1
13679 _ACEOF
13684 done
13687 if test $cross_compiling = yes -a $gnumalloc = yes; then
13689 { echo "$as_me:$LINENO: WARNING:
13690 configure cannot check whether malloc() and realloc() are GNU libc
13691 compatible. You have to be ABSOLUTELY sure that they are, otherwise
13692 run configure with the --without-gnu-malloc switch." >&5
13693 echo "$as_me: WARNING:
13694 configure cannot check whether malloc() and realloc() are GNU libc
13695 compatible. You have to be ABSOLUTELY sure that they are, otherwise
13696 run configure with the --without-gnu-malloc switch." >&2;}
13697 ac_cv_func_malloc_0_nonnull=yes
13698 ac_cv_func_realloc_0_nonnull=yes
13703 for ac_header in stdlib.h
13705 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13707 echo "$as_me:$LINENO: checking for $ac_header" >&5
13708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13710 echo $ECHO_N "(cached) $ECHO_C" >&6
13712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13713 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13714 else
13715 # Is the header compilable?
13716 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13717 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13718 cat >conftest.$ac_ext <<_ACEOF
13719 /* confdefs.h. */
13720 _ACEOF
13721 cat confdefs.h >>conftest.$ac_ext
13722 cat >>conftest.$ac_ext <<_ACEOF
13723 /* end confdefs.h. */
13724 $ac_includes_default
13725 #include <$ac_header>
13726 _ACEOF
13727 rm -f conftest.$ac_objext
13728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13729 (eval $ac_compile) 2>conftest.er1
13730 ac_status=$?
13731 grep -v '^ *+' conftest.er1 >conftest.err
13732 rm -f conftest.er1
13733 cat conftest.err >&5
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); } &&
13736 { ac_try='test -z "$ac_c_werror_flag"
13737 || test ! -s conftest.err'
13738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13739 (eval $ac_try) 2>&5
13740 ac_status=$?
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); }; } &&
13743 { ac_try='test -s conftest.$ac_objext'
13744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13745 (eval $ac_try) 2>&5
13746 ac_status=$?
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); }; }; then
13749 ac_header_compiler=yes
13750 else
13751 echo "$as_me: failed program was:" >&5
13752 sed 's/^/| /' conftest.$ac_ext >&5
13754 ac_header_compiler=no
13756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13757 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13758 echo "${ECHO_T}$ac_header_compiler" >&6
13760 # Is the header present?
13761 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13763 cat >conftest.$ac_ext <<_ACEOF
13764 /* confdefs.h. */
13765 _ACEOF
13766 cat confdefs.h >>conftest.$ac_ext
13767 cat >>conftest.$ac_ext <<_ACEOF
13768 /* end confdefs.h. */
13769 #include <$ac_header>
13770 _ACEOF
13771 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13772 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13773 ac_status=$?
13774 grep -v '^ *+' conftest.er1 >conftest.err
13775 rm -f conftest.er1
13776 cat conftest.err >&5
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); } >/dev/null; then
13779 if test -s conftest.err; then
13780 ac_cpp_err=$ac_c_preproc_warn_flag
13781 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13782 else
13783 ac_cpp_err=
13785 else
13786 ac_cpp_err=yes
13788 if test -z "$ac_cpp_err"; then
13789 ac_header_preproc=yes
13790 else
13791 echo "$as_me: failed program was:" >&5
13792 sed 's/^/| /' conftest.$ac_ext >&5
13794 ac_header_preproc=no
13796 rm -f conftest.err conftest.$ac_ext
13797 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13798 echo "${ECHO_T}$ac_header_preproc" >&6
13800 # So? What about this header?
13801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13802 yes:no: )
13803 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13804 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13806 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13807 ac_header_preproc=yes
13809 no:yes:* )
13810 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13811 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13812 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13813 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13814 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13815 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13816 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13817 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13819 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13820 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13821 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13823 cat <<\_ASBOX
13824 ## ------------------------------ ##
13825 ## Report this to admin@amule.org ##
13826 ## ------------------------------ ##
13827 _ASBOX
13829 sed "s/^/$as_me: WARNING: /" >&2
13831 esac
13832 echo "$as_me:$LINENO: checking for $ac_header" >&5
13833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13835 echo $ECHO_N "(cached) $ECHO_C" >&6
13836 else
13837 eval "$as_ac_Header=\$ac_header_preproc"
13839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13840 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13844 cat >>confdefs.h <<_ACEOF
13845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13846 _ACEOF
13850 done
13852 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
13853 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
13854 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
13855 echo $ECHO_N "(cached) $ECHO_C" >&6
13856 else
13857 if test "$cross_compiling" = yes; then
13858 ac_cv_func_malloc_0_nonnull=no
13859 else
13860 cat >conftest.$ac_ext <<_ACEOF
13861 /* confdefs.h. */
13862 _ACEOF
13863 cat confdefs.h >>conftest.$ac_ext
13864 cat >>conftest.$ac_ext <<_ACEOF
13865 /* end confdefs.h. */
13866 #if STDC_HEADERS || HAVE_STDLIB_H
13867 # include <stdlib.h>
13868 #else
13869 char *malloc ();
13870 #endif
13873 main ()
13875 exit (malloc (0) ? 0 : 1);
13877 return 0;
13879 _ACEOF
13880 rm -f conftest$ac_exeext
13881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13882 (eval $ac_link) 2>&5
13883 ac_status=$?
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13887 (eval $ac_try) 2>&5
13888 ac_status=$?
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); }; }; then
13891 ac_cv_func_malloc_0_nonnull=yes
13892 else
13893 echo "$as_me: program exited with status $ac_status" >&5
13894 echo "$as_me: failed program was:" >&5
13895 sed 's/^/| /' conftest.$ac_ext >&5
13897 ( exit $ac_status )
13898 ac_cv_func_malloc_0_nonnull=no
13900 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13903 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
13904 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
13905 if test $ac_cv_func_malloc_0_nonnull = yes; then
13907 cat >>confdefs.h <<\_ACEOF
13908 #define HAVE_MALLOC 1
13909 _ACEOF
13911 else
13912 cat >>confdefs.h <<\_ACEOF
13913 #define HAVE_MALLOC 0
13914 _ACEOF
13916 case $LIBOBJS in
13917 "malloc.$ac_objext" | \
13918 *" malloc.$ac_objext" | \
13919 "malloc.$ac_objext "* | \
13920 *" malloc.$ac_objext "* ) ;;
13921 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
13922 esac
13925 cat >>confdefs.h <<\_ACEOF
13926 #define malloc rpl_malloc
13927 _ACEOF
13934 for ac_header in stdlib.h
13936 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13938 echo "$as_me:$LINENO: checking for $ac_header" >&5
13939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13941 echo $ECHO_N "(cached) $ECHO_C" >&6
13943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13945 else
13946 # Is the header compilable?
13947 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13948 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13949 cat >conftest.$ac_ext <<_ACEOF
13950 /* confdefs.h. */
13951 _ACEOF
13952 cat confdefs.h >>conftest.$ac_ext
13953 cat >>conftest.$ac_ext <<_ACEOF
13954 /* end confdefs.h. */
13955 $ac_includes_default
13956 #include <$ac_header>
13957 _ACEOF
13958 rm -f conftest.$ac_objext
13959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13960 (eval $ac_compile) 2>conftest.er1
13961 ac_status=$?
13962 grep -v '^ *+' conftest.er1 >conftest.err
13963 rm -f conftest.er1
13964 cat conftest.err >&5
13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966 (exit $ac_status); } &&
13967 { ac_try='test -z "$ac_c_werror_flag"
13968 || test ! -s conftest.err'
13969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13970 (eval $ac_try) 2>&5
13971 ac_status=$?
13972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973 (exit $ac_status); }; } &&
13974 { ac_try='test -s conftest.$ac_objext'
13975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13976 (eval $ac_try) 2>&5
13977 ac_status=$?
13978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); }; }; then
13980 ac_header_compiler=yes
13981 else
13982 echo "$as_me: failed program was:" >&5
13983 sed 's/^/| /' conftest.$ac_ext >&5
13985 ac_header_compiler=no
13987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13988 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13989 echo "${ECHO_T}$ac_header_compiler" >&6
13991 # Is the header present?
13992 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13993 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13994 cat >conftest.$ac_ext <<_ACEOF
13995 /* confdefs.h. */
13996 _ACEOF
13997 cat confdefs.h >>conftest.$ac_ext
13998 cat >>conftest.$ac_ext <<_ACEOF
13999 /* end confdefs.h. */
14000 #include <$ac_header>
14001 _ACEOF
14002 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14003 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14004 ac_status=$?
14005 grep -v '^ *+' conftest.er1 >conftest.err
14006 rm -f conftest.er1
14007 cat conftest.err >&5
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); } >/dev/null; then
14010 if test -s conftest.err; then
14011 ac_cpp_err=$ac_c_preproc_warn_flag
14012 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14013 else
14014 ac_cpp_err=
14016 else
14017 ac_cpp_err=yes
14019 if test -z "$ac_cpp_err"; then
14020 ac_header_preproc=yes
14021 else
14022 echo "$as_me: failed program was:" >&5
14023 sed 's/^/| /' conftest.$ac_ext >&5
14025 ac_header_preproc=no
14027 rm -f conftest.err conftest.$ac_ext
14028 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14029 echo "${ECHO_T}$ac_header_preproc" >&6
14031 # So? What about this header?
14032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14033 yes:no: )
14034 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14035 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14037 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14038 ac_header_preproc=yes
14040 no:yes:* )
14041 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14042 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14043 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14044 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14045 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14046 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14047 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14048 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14050 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14051 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14052 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14054 cat <<\_ASBOX
14055 ## ------------------------------ ##
14056 ## Report this to admin@amule.org ##
14057 ## ------------------------------ ##
14058 _ASBOX
14060 sed "s/^/$as_me: WARNING: /" >&2
14062 esac
14063 echo "$as_me:$LINENO: checking for $ac_header" >&5
14064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14066 echo $ECHO_N "(cached) $ECHO_C" >&6
14067 else
14068 eval "$as_ac_Header=\$ac_header_preproc"
14070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14075 cat >>confdefs.h <<_ACEOF
14076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14077 _ACEOF
14081 done
14083 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
14084 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
14085 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
14086 echo $ECHO_N "(cached) $ECHO_C" >&6
14087 else
14088 if test "$cross_compiling" = yes; then
14089 ac_cv_func_realloc_0_nonnull=no
14090 else
14091 cat >conftest.$ac_ext <<_ACEOF
14092 /* confdefs.h. */
14093 _ACEOF
14094 cat confdefs.h >>conftest.$ac_ext
14095 cat >>conftest.$ac_ext <<_ACEOF
14096 /* end confdefs.h. */
14097 #if STDC_HEADERS || HAVE_STDLIB_H
14098 # include <stdlib.h>
14099 #else
14100 char *realloc ();
14101 #endif
14104 main ()
14106 exit (realloc (0, 0) ? 0 : 1);
14108 return 0;
14110 _ACEOF
14111 rm -f conftest$ac_exeext
14112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14113 (eval $ac_link) 2>&5
14114 ac_status=$?
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14118 (eval $ac_try) 2>&5
14119 ac_status=$?
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); }; }; then
14122 ac_cv_func_realloc_0_nonnull=yes
14123 else
14124 echo "$as_me: program exited with status $ac_status" >&5
14125 echo "$as_me: failed program was:" >&5
14126 sed 's/^/| /' conftest.$ac_ext >&5
14128 ( exit $ac_status )
14129 ac_cv_func_realloc_0_nonnull=no
14131 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14134 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
14135 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
14136 if test $ac_cv_func_realloc_0_nonnull = yes; then
14138 cat >>confdefs.h <<\_ACEOF
14139 #define HAVE_REALLOC 1
14140 _ACEOF
14142 else
14143 cat >>confdefs.h <<\_ACEOF
14144 #define HAVE_REALLOC 0
14145 _ACEOF
14147 case $LIBOBJS in
14148 "realloc.$ac_objext" | \
14149 *" realloc.$ac_objext" | \
14150 "realloc.$ac_objext "* | \
14151 *" realloc.$ac_objext "* ) ;;
14152 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
14153 esac
14156 cat >>confdefs.h <<\_ACEOF
14157 #define realloc rpl_realloc
14158 _ACEOF
14197 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
14199 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14200 echo "$as_me:$LINENO: checking for $ac_func" >&5
14201 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14202 if eval "test \"\${$as_ac_var+set}\" = set"; then
14203 echo $ECHO_N "(cached) $ECHO_C" >&6
14204 else
14205 cat >conftest.$ac_ext <<_ACEOF
14206 /* confdefs.h. */
14207 _ACEOF
14208 cat confdefs.h >>conftest.$ac_ext
14209 cat >>conftest.$ac_ext <<_ACEOF
14210 /* end confdefs.h. */
14211 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14213 #define $ac_func innocuous_$ac_func
14215 /* System header to define __stub macros and hopefully few prototypes,
14216 which can conflict with char $ac_func (); below.
14217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14218 <limits.h> exists even on freestanding compilers. */
14220 #ifdef __STDC__
14221 # include <limits.h>
14222 #else
14223 # include <assert.h>
14224 #endif
14226 #undef $ac_func
14228 /* Override any gcc2 internal prototype to avoid an error. */
14229 #ifdef __cplusplus
14230 extern "C"
14232 #endif
14233 /* We use char because int might match the return type of a gcc2
14234 builtin and then its argument prototype would still apply. */
14235 char $ac_func ();
14236 /* The GNU C library defines this for functions which it implements
14237 to always fail with ENOSYS. Some functions are actually named
14238 something starting with __ and the normal name is an alias. */
14239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14240 choke me
14241 #else
14242 char (*f) () = $ac_func;
14243 #endif
14244 #ifdef __cplusplus
14246 #endif
14249 main ()
14251 return f != $ac_func;
14253 return 0;
14255 _ACEOF
14256 rm -f conftest.$ac_objext conftest$ac_exeext
14257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14258 (eval $ac_link) 2>conftest.er1
14259 ac_status=$?
14260 grep -v '^ *+' conftest.er1 >conftest.err
14261 rm -f conftest.er1
14262 cat conftest.err >&5
14263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264 (exit $ac_status); } &&
14265 { ac_try='test -z "$ac_c_werror_flag"
14266 || test ! -s conftest.err'
14267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14268 (eval $ac_try) 2>&5
14269 ac_status=$?
14270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); }; } &&
14272 { ac_try='test -s conftest$ac_exeext'
14273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14274 (eval $ac_try) 2>&5
14275 ac_status=$?
14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); }; }; then
14278 eval "$as_ac_var=yes"
14279 else
14280 echo "$as_me: failed program was:" >&5
14281 sed 's/^/| /' conftest.$ac_ext >&5
14283 eval "$as_ac_var=no"
14285 rm -f conftest.err conftest.$ac_objext \
14286 conftest$ac_exeext conftest.$ac_ext
14288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14289 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14290 if test `eval echo '${'$as_ac_var'}'` = yes; then
14291 cat >>confdefs.h <<_ACEOF
14292 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14293 _ACEOF
14296 done
14298 #-------------------------------------------------------------------------------
14299 # End of autoscan stuff
14300 #-------------------------------------------------------------------------------
14305 for ac_func in mkdir getrlimit setrlimit
14307 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14308 echo "$as_me:$LINENO: checking for $ac_func" >&5
14309 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14310 if eval "test \"\${$as_ac_var+set}\" = set"; then
14311 echo $ECHO_N "(cached) $ECHO_C" >&6
14312 else
14313 cat >conftest.$ac_ext <<_ACEOF
14314 /* confdefs.h. */
14315 _ACEOF
14316 cat confdefs.h >>conftest.$ac_ext
14317 cat >>conftest.$ac_ext <<_ACEOF
14318 /* end confdefs.h. */
14319 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14320 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14321 #define $ac_func innocuous_$ac_func
14323 /* System header to define __stub macros and hopefully few prototypes,
14324 which can conflict with char $ac_func (); below.
14325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14326 <limits.h> exists even on freestanding compilers. */
14328 #ifdef __STDC__
14329 # include <limits.h>
14330 #else
14331 # include <assert.h>
14332 #endif
14334 #undef $ac_func
14336 /* Override any gcc2 internal prototype to avoid an error. */
14337 #ifdef __cplusplus
14338 extern "C"
14340 #endif
14341 /* We use char because int might match the return type of a gcc2
14342 builtin and then its argument prototype would still apply. */
14343 char $ac_func ();
14344 /* The GNU C library defines this for functions which it implements
14345 to always fail with ENOSYS. Some functions are actually named
14346 something starting with __ and the normal name is an alias. */
14347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14348 choke me
14349 #else
14350 char (*f) () = $ac_func;
14351 #endif
14352 #ifdef __cplusplus
14354 #endif
14357 main ()
14359 return f != $ac_func;
14361 return 0;
14363 _ACEOF
14364 rm -f conftest.$ac_objext conftest$ac_exeext
14365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14366 (eval $ac_link) 2>conftest.er1
14367 ac_status=$?
14368 grep -v '^ *+' conftest.er1 >conftest.err
14369 rm -f conftest.er1
14370 cat conftest.err >&5
14371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372 (exit $ac_status); } &&
14373 { ac_try='test -z "$ac_c_werror_flag"
14374 || test ! -s conftest.err'
14375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14376 (eval $ac_try) 2>&5
14377 ac_status=$?
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); }; } &&
14380 { ac_try='test -s conftest$ac_exeext'
14381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14382 (eval $ac_try) 2>&5
14383 ac_status=$?
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); }; }; then
14386 eval "$as_ac_var=yes"
14387 else
14388 echo "$as_me: failed program was:" >&5
14389 sed 's/^/| /' conftest.$ac_ext >&5
14391 eval "$as_ac_var=no"
14393 rm -f conftest.err conftest.$ac_objext \
14394 conftest$ac_exeext conftest.$ac_ext
14396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14397 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14398 if test `eval echo '${'$as_ac_var'}'` = yes; then
14399 cat >>confdefs.h <<_ACEOF
14400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14401 _ACEOF
14404 done
14407 mule_backup_CPPFLAGS="$CPPFLAGS"
14408 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600"
14409 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
14410 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
14411 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
14412 echo $ECHO_N "(cached) $ECHO_C" >&6
14413 else
14414 cat >conftest.$ac_ext <<_ACEOF
14415 /* confdefs.h. */
14416 _ACEOF
14417 cat confdefs.h >>conftest.$ac_ext
14418 cat >>conftest.$ac_ext <<_ACEOF
14419 /* end confdefs.h. */
14420 $ac_includes_default
14422 main ()
14424 #ifndef strerror_r
14425 char *p = (char *) strerror_r;
14426 #endif
14429 return 0;
14431 _ACEOF
14432 rm -f conftest.$ac_objext
14433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14434 (eval $ac_compile) 2>conftest.er1
14435 ac_status=$?
14436 grep -v '^ *+' conftest.er1 >conftest.err
14437 rm -f conftest.er1
14438 cat conftest.err >&5
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); } &&
14441 { ac_try='test -z "$ac_c_werror_flag"
14442 || test ! -s conftest.err'
14443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14444 (eval $ac_try) 2>&5
14445 ac_status=$?
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); }; } &&
14448 { ac_try='test -s conftest.$ac_objext'
14449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14450 (eval $ac_try) 2>&5
14451 ac_status=$?
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); }; }; then
14454 ac_cv_have_decl_strerror_r=yes
14455 else
14456 echo "$as_me: failed program was:" >&5
14457 sed 's/^/| /' conftest.$ac_ext >&5
14459 ac_cv_have_decl_strerror_r=no
14461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14463 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
14464 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
14465 if test $ac_cv_have_decl_strerror_r = yes; then
14467 cat >>confdefs.h <<_ACEOF
14468 #define HAVE_DECL_STRERROR_R 1
14469 _ACEOF
14472 else
14473 cat >>confdefs.h <<_ACEOF
14474 #define HAVE_DECL_STRERROR_R 0
14475 _ACEOF
14482 for ac_func in strerror_r
14484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14485 echo "$as_me:$LINENO: checking for $ac_func" >&5
14486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14487 if eval "test \"\${$as_ac_var+set}\" = set"; then
14488 echo $ECHO_N "(cached) $ECHO_C" >&6
14489 else
14490 cat >conftest.$ac_ext <<_ACEOF
14491 /* confdefs.h. */
14492 _ACEOF
14493 cat confdefs.h >>conftest.$ac_ext
14494 cat >>conftest.$ac_ext <<_ACEOF
14495 /* end confdefs.h. */
14496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14498 #define $ac_func innocuous_$ac_func
14500 /* System header to define __stub macros and hopefully few prototypes,
14501 which can conflict with char $ac_func (); below.
14502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14503 <limits.h> exists even on freestanding compilers. */
14505 #ifdef __STDC__
14506 # include <limits.h>
14507 #else
14508 # include <assert.h>
14509 #endif
14511 #undef $ac_func
14513 /* Override any gcc2 internal prototype to avoid an error. */
14514 #ifdef __cplusplus
14515 extern "C"
14517 #endif
14518 /* We use char because int might match the return type of a gcc2
14519 builtin and then its argument prototype would still apply. */
14520 char $ac_func ();
14521 /* The GNU C library defines this for functions which it implements
14522 to always fail with ENOSYS. Some functions are actually named
14523 something starting with __ and the normal name is an alias. */
14524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14525 choke me
14526 #else
14527 char (*f) () = $ac_func;
14528 #endif
14529 #ifdef __cplusplus
14531 #endif
14534 main ()
14536 return f != $ac_func;
14538 return 0;
14540 _ACEOF
14541 rm -f conftest.$ac_objext conftest$ac_exeext
14542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14543 (eval $ac_link) 2>conftest.er1
14544 ac_status=$?
14545 grep -v '^ *+' conftest.er1 >conftest.err
14546 rm -f conftest.er1
14547 cat conftest.err >&5
14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 (exit $ac_status); } &&
14550 { ac_try='test -z "$ac_c_werror_flag"
14551 || test ! -s conftest.err'
14552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14553 (eval $ac_try) 2>&5
14554 ac_status=$?
14555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556 (exit $ac_status); }; } &&
14557 { ac_try='test -s conftest$ac_exeext'
14558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14559 (eval $ac_try) 2>&5
14560 ac_status=$?
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); }; }; then
14563 eval "$as_ac_var=yes"
14564 else
14565 echo "$as_me: failed program was:" >&5
14566 sed 's/^/| /' conftest.$ac_ext >&5
14568 eval "$as_ac_var=no"
14570 rm -f conftest.err conftest.$ac_objext \
14571 conftest$ac_exeext conftest.$ac_ext
14573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14574 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14575 if test `eval echo '${'$as_ac_var'}'` = yes; then
14576 cat >>confdefs.h <<_ACEOF
14577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14578 _ACEOF
14581 done
14583 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
14584 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
14585 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
14586 echo $ECHO_N "(cached) $ECHO_C" >&6
14587 else
14589 ac_cv_func_strerror_r_char_p=no
14590 if test $ac_cv_have_decl_strerror_r = yes; then
14591 cat >conftest.$ac_ext <<_ACEOF
14592 /* confdefs.h. */
14593 _ACEOF
14594 cat confdefs.h >>conftest.$ac_ext
14595 cat >>conftest.$ac_ext <<_ACEOF
14596 /* end confdefs.h. */
14597 $ac_includes_default
14599 main ()
14602 char buf[100];
14603 char x = *strerror_r (0, buf, sizeof buf);
14604 char *p = strerror_r (0, buf, sizeof buf);
14607 return 0;
14609 _ACEOF
14610 rm -f conftest.$ac_objext
14611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14612 (eval $ac_compile) 2>conftest.er1
14613 ac_status=$?
14614 grep -v '^ *+' conftest.er1 >conftest.err
14615 rm -f conftest.er1
14616 cat conftest.err >&5
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); } &&
14619 { ac_try='test -z "$ac_c_werror_flag"
14620 || test ! -s conftest.err'
14621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14622 (eval $ac_try) 2>&5
14623 ac_status=$?
14624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625 (exit $ac_status); }; } &&
14626 { ac_try='test -s conftest.$ac_objext'
14627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14628 (eval $ac_try) 2>&5
14629 ac_status=$?
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); }; }; then
14632 ac_cv_func_strerror_r_char_p=yes
14633 else
14634 echo "$as_me: failed program was:" >&5
14635 sed 's/^/| /' conftest.$ac_ext >&5
14638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14639 else
14640 # strerror_r is not declared. Choose between
14641 # systems that have relatively inaccessible declarations for the
14642 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
14643 # former has a strerror_r that returns char*, while the latter
14644 # has a strerror_r that returns `int'.
14645 # This test should segfault on the DEC system.
14646 if test "$cross_compiling" = yes; then
14648 else
14649 cat >conftest.$ac_ext <<_ACEOF
14650 /* confdefs.h. */
14651 _ACEOF
14652 cat confdefs.h >>conftest.$ac_ext
14653 cat >>conftest.$ac_ext <<_ACEOF
14654 /* end confdefs.h. */
14655 $ac_includes_default
14656 extern char *strerror_r ();
14658 main ()
14660 char buf[100];
14661 char x = *strerror_r (0, buf, sizeof buf);
14662 exit (!isalpha (x));
14664 return 0;
14666 _ACEOF
14667 rm -f conftest$ac_exeext
14668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14669 (eval $ac_link) 2>&5
14670 ac_status=$?
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14674 (eval $ac_try) 2>&5
14675 ac_status=$?
14676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 (exit $ac_status); }; }; then
14678 ac_cv_func_strerror_r_char_p=yes
14679 else
14680 echo "$as_me: program exited with status $ac_status" >&5
14681 echo "$as_me: failed program was:" >&5
14682 sed 's/^/| /' conftest.$ac_ext >&5
14685 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14690 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
14691 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
14692 if test $ac_cv_func_strerror_r_char_p = yes; then
14694 cat >>confdefs.h <<\_ACEOF
14695 #define STRERROR_R_CHAR_P 1
14696 _ACEOF
14700 CPPFLAGS="$mule_backup_CPPFLAGS"
14702 # Look for a way to preallocate disk space for files.
14704 echo "$as_me:$LINENO: checking for fallocate" >&5
14705 echo $ECHO_N "checking for fallocate... $ECHO_C" >&6
14706 cat >conftest.$ac_ext <<_ACEOF
14708 /* confdefs.h. */
14709 _ACEOF
14710 cat confdefs.h >>conftest.$ac_ext
14711 cat >>conftest.$ac_ext <<_ACEOF
14712 /* end confdefs.h. */
14714 #include <linux/falloc.h>
14717 main ()
14720 fallocate(0, 0, 0, 0);
14723 return 0;
14726 _ACEOF
14727 rm -f conftest.$ac_objext conftest$ac_exeext
14728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14729 (eval $ac_link) 2>conftest.er1
14730 ac_status=$?
14731 grep -v '^ *+' conftest.er1 >conftest.err
14732 rm -f conftest.er1
14733 cat conftest.err >&5
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); } &&
14736 { ac_try='test -z "$ac_c_werror_flag"
14737 || test ! -s conftest.err'
14738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14739 (eval $ac_try) 2>&5
14740 ac_status=$?
14741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); }; } &&
14743 { ac_try='test -s conftest$ac_exeext'
14744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14745 (eval $ac_try) 2>&5
14746 ac_status=$?
14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748 (exit $ac_status); }; }; then
14752 cat >>confdefs.h <<\_ACEOF
14753 #define HAVE_FALLOCATE 1
14754 _ACEOF
14756 echo "$as_me:$LINENO: result: yes" >&5
14757 echo "${ECHO_T}yes" >&6
14759 else
14760 echo "$as_me: failed program was:" >&5
14761 sed 's/^/| /' conftest.$ac_ext >&5
14764 echo "$as_me:$LINENO: result: no" >&5
14765 echo "${ECHO_T}no" >&6
14768 rm -f conftest.err conftest.$ac_objext \
14769 conftest$ac_exeext conftest.$ac_ext
14772 echo "$as_me:$LINENO: checking for SYS_fallocate" >&5
14773 echo $ECHO_N "checking for SYS_fallocate... $ECHO_C" >&6
14774 cat >conftest.$ac_ext <<_ACEOF
14776 /* confdefs.h. */
14777 _ACEOF
14778 cat confdefs.h >>conftest.$ac_ext
14779 cat >>conftest.$ac_ext <<_ACEOF
14780 /* end confdefs.h. */
14782 #include <sys/sycall.h>
14783 #include <sys/types.h>
14784 #include <unistd.h>
14787 main ()
14790 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0);
14793 return 0;
14796 _ACEOF
14797 rm -f conftest.$ac_objext conftest$ac_exeext
14798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14799 (eval $ac_link) 2>conftest.er1
14800 ac_status=$?
14801 grep -v '^ *+' conftest.er1 >conftest.err
14802 rm -f conftest.er1
14803 cat conftest.err >&5
14804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805 (exit $ac_status); } &&
14806 { ac_try='test -z "$ac_c_werror_flag"
14807 || test ! -s conftest.err'
14808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14809 (eval $ac_try) 2>&5
14810 ac_status=$?
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); }; } &&
14813 { ac_try='test -s conftest$ac_exeext'
14814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14815 (eval $ac_try) 2>&5
14816 ac_status=$?
14817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818 (exit $ac_status); }; }; then
14822 cat >>confdefs.h <<\_ACEOF
14823 #define HAVE_SYS_FALLOCATE 1
14824 _ACEOF
14826 echo "$as_me:$LINENO: result: yes" >&5
14827 echo "${ECHO_T}yes" >&6
14829 else
14830 echo "$as_me: failed program was:" >&5
14831 sed 's/^/| /' conftest.$ac_ext >&5
14834 echo "$as_me:$LINENO: result: no" >&5
14835 echo "${ECHO_T}no" >&6
14838 rm -f conftest.err conftest.$ac_objext \
14839 conftest$ac_exeext conftest.$ac_ext
14841 echo "$as_me:$LINENO: checking for posix_fallocate" >&5
14842 echo $ECHO_N "checking for posix_fallocate... $ECHO_C" >&6
14843 cat >conftest.$ac_ext <<_ACEOF
14845 /* confdefs.h. */
14846 _ACEOF
14847 cat confdefs.h >>conftest.$ac_ext
14848 cat >>conftest.$ac_ext <<_ACEOF
14849 /* end confdefs.h. */
14851 #define _XOPEN_SOURCE 600
14852 #include <stdlib.h>
14853 #ifdef HAVE_FCNTL_H
14854 # include <fcntl.h>
14855 #endif
14858 main ()
14861 posix_fallocate(0, 0, 0);
14864 return 0;
14867 _ACEOF
14868 rm -f conftest.$ac_objext conftest$ac_exeext
14869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14870 (eval $ac_link) 2>conftest.er1
14871 ac_status=$?
14872 grep -v '^ *+' conftest.er1 >conftest.err
14873 rm -f conftest.er1
14874 cat conftest.err >&5
14875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); } &&
14877 { ac_try='test -z "$ac_c_werror_flag"
14878 || test ! -s conftest.err'
14879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14880 (eval $ac_try) 2>&5
14881 ac_status=$?
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); }; } &&
14884 { ac_try='test -s conftest$ac_exeext'
14885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14886 (eval $ac_try) 2>&5
14887 ac_status=$?
14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); }; }; then
14893 cat >>confdefs.h <<\_ACEOF
14894 #define HAVE_POSIX_FALLOCATE 1
14895 _ACEOF
14897 echo "$as_me:$LINENO: result: yes" >&5
14898 echo "${ECHO_T}yes" >&6
14900 else
14901 echo "$as_me: failed program was:" >&5
14902 sed 's/^/| /' conftest.$ac_ext >&5
14905 echo "$as_me:$LINENO: result: no" >&5
14906 echo "${ECHO_T}no" >&6
14909 rm -f conftest.err conftest.$ac_objext \
14910 conftest$ac_exeext conftest.$ac_ext
14913 # Checking Native Language Support
14916 MKINSTALLDIRS=
14917 if test -n "$ac_aux_dir"; then
14918 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
14920 if test -z "$MKINSTALLDIRS"; then
14921 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
14928 # Extract the first word of "msgfmt", so it can be a program name with args.
14929 set dummy msgfmt; ac_word=$2
14930 echo "$as_me:$LINENO: checking for $ac_word" >&5
14931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14932 if test "${ac_cv_path_MSGFMT+set}" = set; then
14933 echo $ECHO_N "(cached) $ECHO_C" >&6
14934 else
14935 case "$MSGFMT" in
14937 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14940 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14941 for ac_dir in $PATH; do
14942 test -z "$ac_dir" && ac_dir=.
14943 if test -f $ac_dir/$ac_word; then
14944 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
14945 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14946 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
14947 break
14950 done
14951 IFS="$ac_save_ifs"
14952 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14954 esac
14956 MSGFMT="$ac_cv_path_MSGFMT"
14957 if test "$MSGFMT" != ":"; then
14958 echo "$as_me:$LINENO: result: $MSGFMT" >&5
14959 echo "${ECHO_T}$MSGFMT" >&6
14960 else
14961 echo "$as_me:$LINENO: result: no" >&5
14962 echo "${ECHO_T}no" >&6
14965 # Extract the first word of "gmsgfmt", so it can be a program name with args.
14966 set dummy gmsgfmt; ac_word=$2
14967 echo "$as_me:$LINENO: checking for $ac_word" >&5
14968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14969 if test "${ac_cv_path_GMSGFMT+set}" = set; then
14970 echo $ECHO_N "(cached) $ECHO_C" >&6
14971 else
14972 case $GMSGFMT in
14973 [\\/]* | ?:[\\/]*)
14974 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14978 for as_dir in $PATH
14980 IFS=$as_save_IFS
14981 test -z "$as_dir" && as_dir=.
14982 for ac_exec_ext in '' $ac_executable_extensions; do
14983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14984 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14986 break 2
14988 done
14989 done
14991 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14993 esac
14995 GMSGFMT=$ac_cv_path_GMSGFMT
14997 if test -n "$GMSGFMT"; then
14998 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
14999 echo "${ECHO_T}$GMSGFMT" >&6
15000 else
15001 echo "$as_me:$LINENO: result: no" >&5
15002 echo "${ECHO_T}no" >&6
15006 # Extract the first word of "xgettext", so it can be a program name with args.
15007 set dummy xgettext; ac_word=$2
15008 echo "$as_me:$LINENO: checking for $ac_word" >&5
15009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15010 if test "${ac_cv_path_XGETTEXT+set}" = set; then
15011 echo $ECHO_N "(cached) $ECHO_C" >&6
15012 else
15013 case "$XGETTEXT" in
15015 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15018 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15019 for ac_dir in $PATH; do
15020 test -z "$ac_dir" && ac_dir=.
15021 if test -f $ac_dir/$ac_word; then
15022 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
15023 (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
15024 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
15025 break
15028 done
15029 IFS="$ac_save_ifs"
15030 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15032 esac
15034 XGETTEXT="$ac_cv_path_XGETTEXT"
15035 if test "$XGETTEXT" != ":"; then
15036 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15037 echo "${ECHO_T}$XGETTEXT" >&6
15038 else
15039 echo "$as_me:$LINENO: result: no" >&5
15040 echo "${ECHO_T}no" >&6
15043 rm -f messages.po
15045 # Extract the first word of "msgmerge", so it can be a program name with args.
15046 set dummy msgmerge; ac_word=$2
15047 echo "$as_me:$LINENO: checking for $ac_word" >&5
15048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15049 if test "${ac_cv_path_MSGMERGE+set}" = set; then
15050 echo $ECHO_N "(cached) $ECHO_C" >&6
15051 else
15052 case "$MSGMERGE" in
15054 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15058 for ac_dir in $PATH; do
15059 test -z "$ac_dir" && ac_dir=.
15060 if test -f $ac_dir/$ac_word; then
15061 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
15062 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
15063 break
15066 done
15067 IFS="$ac_save_ifs"
15068 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
15070 esac
15072 MSGMERGE="$ac_cv_path_MSGMERGE"
15073 if test "$MSGMERGE" != ":"; then
15074 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15075 echo "${ECHO_T}$MSGMERGE" >&6
15076 else
15077 echo "$as_me:$LINENO: result: no" >&5
15078 echo "${ECHO_T}no" >&6
15082 if test "$GMSGFMT" != ":"; then
15083 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
15084 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15086 else
15087 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
15088 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
15089 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
15090 GMSGFMT=":"
15094 if test "$XGETTEXT" != ":"; then
15095 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
15096 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15098 else
15099 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
15100 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
15101 XGETTEXT=":"
15103 rm -f messages.po
15106 ac_config_commands="$ac_config_commands default-1"
15109 echo "$as_me:$LINENO: checking for library containing strerror" >&5
15110 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
15111 if test "${ac_cv_search_strerror+set}" = set; then
15112 echo $ECHO_N "(cached) $ECHO_C" >&6
15113 else
15114 ac_func_search_save_LIBS=$LIBS
15115 ac_cv_search_strerror=no
15116 cat >conftest.$ac_ext <<_ACEOF
15117 /* confdefs.h. */
15118 _ACEOF
15119 cat confdefs.h >>conftest.$ac_ext
15120 cat >>conftest.$ac_ext <<_ACEOF
15121 /* end confdefs.h. */
15123 /* Override any gcc2 internal prototype to avoid an error. */
15124 #ifdef __cplusplus
15125 extern "C"
15126 #endif
15127 /* We use char because int might match the return type of a gcc2
15128 builtin and then its argument prototype would still apply. */
15129 char strerror ();
15131 main ()
15133 strerror ();
15135 return 0;
15137 _ACEOF
15138 rm -f conftest.$ac_objext conftest$ac_exeext
15139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15140 (eval $ac_link) 2>conftest.er1
15141 ac_status=$?
15142 grep -v '^ *+' conftest.er1 >conftest.err
15143 rm -f conftest.er1
15144 cat conftest.err >&5
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); } &&
15147 { ac_try='test -z "$ac_c_werror_flag"
15148 || test ! -s conftest.err'
15149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15150 (eval $ac_try) 2>&5
15151 ac_status=$?
15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153 (exit $ac_status); }; } &&
15154 { ac_try='test -s conftest$ac_exeext'
15155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15156 (eval $ac_try) 2>&5
15157 ac_status=$?
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); }; }; then
15160 ac_cv_search_strerror="none required"
15161 else
15162 echo "$as_me: failed program was:" >&5
15163 sed 's/^/| /' conftest.$ac_ext >&5
15166 rm -f conftest.err conftest.$ac_objext \
15167 conftest$ac_exeext conftest.$ac_ext
15168 if test "$ac_cv_search_strerror" = no; then
15169 for ac_lib in cposix; do
15170 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15171 cat >conftest.$ac_ext <<_ACEOF
15172 /* confdefs.h. */
15173 _ACEOF
15174 cat confdefs.h >>conftest.$ac_ext
15175 cat >>conftest.$ac_ext <<_ACEOF
15176 /* end confdefs.h. */
15178 /* Override any gcc2 internal prototype to avoid an error. */
15179 #ifdef __cplusplus
15180 extern "C"
15181 #endif
15182 /* We use char because int might match the return type of a gcc2
15183 builtin and then its argument prototype would still apply. */
15184 char strerror ();
15186 main ()
15188 strerror ();
15190 return 0;
15192 _ACEOF
15193 rm -f conftest.$ac_objext conftest$ac_exeext
15194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15195 (eval $ac_link) 2>conftest.er1
15196 ac_status=$?
15197 grep -v '^ *+' conftest.er1 >conftest.err
15198 rm -f conftest.er1
15199 cat conftest.err >&5
15200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201 (exit $ac_status); } &&
15202 { ac_try='test -z "$ac_c_werror_flag"
15203 || test ! -s conftest.err'
15204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15205 (eval $ac_try) 2>&5
15206 ac_status=$?
15207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208 (exit $ac_status); }; } &&
15209 { ac_try='test -s conftest$ac_exeext'
15210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15211 (eval $ac_try) 2>&5
15212 ac_status=$?
15213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); }; }; then
15215 ac_cv_search_strerror="-l$ac_lib"
15216 break
15217 else
15218 echo "$as_me: failed program was:" >&5
15219 sed 's/^/| /' conftest.$ac_ext >&5
15222 rm -f conftest.err conftest.$ac_objext \
15223 conftest$ac_exeext conftest.$ac_ext
15224 done
15226 LIBS=$ac_func_search_save_LIBS
15228 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
15229 echo "${ECHO_T}$ac_cv_search_strerror" >&6
15230 if test "$ac_cv_search_strerror" != no; then
15231 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
15236 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
15237 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
15238 if test "${ac_cv_gnu_library_2_1+set}" = set; then
15239 echo $ECHO_N "(cached) $ECHO_C" >&6
15240 else
15241 cat >conftest.$ac_ext <<_ACEOF
15242 /* confdefs.h. */
15243 _ACEOF
15244 cat confdefs.h >>conftest.$ac_ext
15245 cat >>conftest.$ac_ext <<_ACEOF
15246 /* end confdefs.h. */
15248 #include <features.h>
15249 #ifdef __GNU_LIBRARY__
15250 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
15251 Lucky GNU user
15252 #endif
15253 #endif
15255 _ACEOF
15256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15257 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
15258 ac_cv_gnu_library_2_1=yes
15259 else
15260 ac_cv_gnu_library_2_1=no
15262 rm -f conftest*
15267 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
15268 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
15270 GLIBC21="$ac_cv_gnu_library_2_1"
15275 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
15276 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
15277 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
15278 echo $ECHO_N "(cached) $ECHO_C" >&6
15279 else
15281 if test "$cross_compiling" = yes; then
15283 # Guess based on the CPU.
15284 case "$host_cpu" in
15285 alpha* | i3456786 | m68k | s390*)
15286 gt_cv_int_divbyzero_sigfpe="guessing yes";;
15288 gt_cv_int_divbyzero_sigfpe="guessing no";;
15289 esac
15291 else
15292 cat >conftest.$ac_ext <<_ACEOF
15293 /* confdefs.h. */
15294 _ACEOF
15295 cat confdefs.h >>conftest.$ac_ext
15296 cat >>conftest.$ac_ext <<_ACEOF
15297 /* end confdefs.h. */
15299 #include <stdlib.h>
15300 #include <signal.h>
15302 static void
15303 #ifdef __cplusplus
15304 sigfpe_handler (int sig)
15305 #else
15306 sigfpe_handler (sig) int sig;
15307 #endif
15309 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
15310 exit (sig != SIGFPE);
15313 int x = 1;
15314 int y = 0;
15315 int z;
15316 int nan;
15318 int main ()
15320 signal (SIGFPE, sigfpe_handler);
15321 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
15322 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
15323 signal (SIGTRAP, sigfpe_handler);
15324 #endif
15325 /* Linux/SPARC yields signal SIGILL. */
15326 #if defined (__sparc__) && defined (__linux__)
15327 signal (SIGILL, sigfpe_handler);
15328 #endif
15330 z = x / y;
15331 nan = y / y;
15332 exit (1);
15335 _ACEOF
15336 rm -f conftest$ac_exeext
15337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15338 (eval $ac_link) 2>&5
15339 ac_status=$?
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15343 (eval $ac_try) 2>&5
15344 ac_status=$?
15345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); }; }; then
15347 gt_cv_int_divbyzero_sigfpe=yes
15348 else
15349 echo "$as_me: program exited with status $ac_status" >&5
15350 echo "$as_me: failed program was:" >&5
15351 sed 's/^/| /' conftest.$ac_ext >&5
15353 ( exit $ac_status )
15354 gt_cv_int_divbyzero_sigfpe=no
15356 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15360 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
15361 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
15362 case "$gt_cv_int_divbyzero_sigfpe" in
15363 *yes) value=1;;
15364 *) value=0;;
15365 esac
15367 cat >>confdefs.h <<_ACEOF
15368 #define INTDIV0_RAISES_SIGFPE $value
15369 _ACEOF
15373 echo "$as_me:$LINENO: checking for inttypes.h" >&5
15374 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
15375 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
15376 echo $ECHO_N "(cached) $ECHO_C" >&6
15377 else
15378 cat >conftest.$ac_ext <<_ACEOF
15379 /* confdefs.h. */
15380 _ACEOF
15381 cat confdefs.h >>conftest.$ac_ext
15382 cat >>conftest.$ac_ext <<_ACEOF
15383 /* end confdefs.h. */
15384 #include <sys/types.h>
15385 #include <inttypes.h>
15387 main ()
15389 uintmax_t i = (uintmax_t) -1;
15391 return 0;
15393 _ACEOF
15394 rm -f conftest.$ac_objext
15395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15396 (eval $ac_compile) 2>conftest.er1
15397 ac_status=$?
15398 grep -v '^ *+' conftest.er1 >conftest.err
15399 rm -f conftest.er1
15400 cat conftest.err >&5
15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 (exit $ac_status); } &&
15403 { ac_try='test -z "$ac_c_werror_flag"
15404 || test ! -s conftest.err'
15405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15406 (eval $ac_try) 2>&5
15407 ac_status=$?
15408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409 (exit $ac_status); }; } &&
15410 { ac_try='test -s conftest.$ac_objext'
15411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15412 (eval $ac_try) 2>&5
15413 ac_status=$?
15414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415 (exit $ac_status); }; }; then
15416 jm_ac_cv_header_inttypes_h=yes
15417 else
15418 echo "$as_me: failed program was:" >&5
15419 sed 's/^/| /' conftest.$ac_ext >&5
15421 jm_ac_cv_header_inttypes_h=no
15423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15425 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
15426 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
15427 if test $jm_ac_cv_header_inttypes_h = yes; then
15429 cat >>confdefs.h <<_ACEOF
15430 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
15431 _ACEOF
15436 echo "$as_me:$LINENO: checking for stdint.h" >&5
15437 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
15438 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
15439 echo $ECHO_N "(cached) $ECHO_C" >&6
15440 else
15441 cat >conftest.$ac_ext <<_ACEOF
15442 /* confdefs.h. */
15443 _ACEOF
15444 cat confdefs.h >>conftest.$ac_ext
15445 cat >>conftest.$ac_ext <<_ACEOF
15446 /* end confdefs.h. */
15447 #include <sys/types.h>
15448 #include <stdint.h>
15450 main ()
15452 uintmax_t i = (uintmax_t) -1;
15454 return 0;
15456 _ACEOF
15457 rm -f conftest.$ac_objext
15458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15459 (eval $ac_compile) 2>conftest.er1
15460 ac_status=$?
15461 grep -v '^ *+' conftest.er1 >conftest.err
15462 rm -f conftest.er1
15463 cat conftest.err >&5
15464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465 (exit $ac_status); } &&
15466 { ac_try='test -z "$ac_c_werror_flag"
15467 || test ! -s conftest.err'
15468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15469 (eval $ac_try) 2>&5
15470 ac_status=$?
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); }; } &&
15473 { ac_try='test -s conftest.$ac_objext'
15474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15475 (eval $ac_try) 2>&5
15476 ac_status=$?
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); }; }; then
15479 jm_ac_cv_header_stdint_h=yes
15480 else
15481 echo "$as_me: failed program was:" >&5
15482 sed 's/^/| /' conftest.$ac_ext >&5
15484 jm_ac_cv_header_stdint_h=no
15486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15488 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
15489 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
15490 if test $jm_ac_cv_header_stdint_h = yes; then
15492 cat >>confdefs.h <<_ACEOF
15493 #define HAVE_STDINT_H_WITH_UINTMAX 1
15494 _ACEOF
15499 echo "$as_me:$LINENO: checking for unsigned long long" >&5
15500 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
15501 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
15502 echo $ECHO_N "(cached) $ECHO_C" >&6
15503 else
15504 cat >conftest.$ac_ext <<_ACEOF
15505 /* confdefs.h. */
15506 _ACEOF
15507 cat confdefs.h >>conftest.$ac_ext
15508 cat >>conftest.$ac_ext <<_ACEOF
15509 /* end confdefs.h. */
15510 unsigned long long ull = 1; int i = 63;
15512 main ()
15514 unsigned long long ullmax = (unsigned long long) -1;
15515 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
15517 return 0;
15519 _ACEOF
15520 rm -f conftest.$ac_objext conftest$ac_exeext
15521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15522 (eval $ac_link) 2>conftest.er1
15523 ac_status=$?
15524 grep -v '^ *+' conftest.er1 >conftest.err
15525 rm -f conftest.er1
15526 cat conftest.err >&5
15527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528 (exit $ac_status); } &&
15529 { ac_try='test -z "$ac_c_werror_flag"
15530 || test ! -s conftest.err'
15531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15532 (eval $ac_try) 2>&5
15533 ac_status=$?
15534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535 (exit $ac_status); }; } &&
15536 { ac_try='test -s conftest$ac_exeext'
15537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15538 (eval $ac_try) 2>&5
15539 ac_status=$?
15540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541 (exit $ac_status); }; }; then
15542 ac_cv_type_unsigned_long_long=yes
15543 else
15544 echo "$as_me: failed program was:" >&5
15545 sed 's/^/| /' conftest.$ac_ext >&5
15547 ac_cv_type_unsigned_long_long=no
15549 rm -f conftest.err conftest.$ac_objext \
15550 conftest$ac_exeext conftest.$ac_ext
15552 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
15553 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
15554 if test $ac_cv_type_unsigned_long_long = yes; then
15556 cat >>confdefs.h <<\_ACEOF
15557 #define HAVE_UNSIGNED_LONG_LONG 1
15558 _ACEOF
15565 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
15567 test $ac_cv_type_unsigned_long_long = yes \
15568 && ac_type='unsigned long long' \
15569 || ac_type='unsigned long'
15571 cat >>confdefs.h <<_ACEOF
15572 #define uintmax_t $ac_type
15573 _ACEOF
15578 echo "$as_me:$LINENO: checking for inttypes.h" >&5
15579 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
15580 if test "${gt_cv_header_inttypes_h+set}" = set; then
15581 echo $ECHO_N "(cached) $ECHO_C" >&6
15582 else
15584 cat >conftest.$ac_ext <<_ACEOF
15585 /* confdefs.h. */
15586 _ACEOF
15587 cat confdefs.h >>conftest.$ac_ext
15588 cat >>conftest.$ac_ext <<_ACEOF
15589 /* end confdefs.h. */
15590 #include <sys/types.h>
15591 #include <inttypes.h>
15593 main ()
15597 return 0;
15599 _ACEOF
15600 rm -f conftest.$ac_objext
15601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15602 (eval $ac_compile) 2>conftest.er1
15603 ac_status=$?
15604 grep -v '^ *+' conftest.er1 >conftest.err
15605 rm -f conftest.er1
15606 cat conftest.err >&5
15607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608 (exit $ac_status); } &&
15609 { ac_try='test -z "$ac_c_werror_flag"
15610 || test ! -s conftest.err'
15611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15612 (eval $ac_try) 2>&5
15613 ac_status=$?
15614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615 (exit $ac_status); }; } &&
15616 { ac_try='test -s conftest.$ac_objext'
15617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15618 (eval $ac_try) 2>&5
15619 ac_status=$?
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); }; }; then
15622 gt_cv_header_inttypes_h=yes
15623 else
15624 echo "$as_me: failed program was:" >&5
15625 sed 's/^/| /' conftest.$ac_ext >&5
15627 gt_cv_header_inttypes_h=no
15629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15632 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
15633 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
15634 if test $gt_cv_header_inttypes_h = yes; then
15636 cat >>confdefs.h <<_ACEOF
15637 #define HAVE_INTTYPES_H 1
15638 _ACEOF
15644 if test $gt_cv_header_inttypes_h = yes; then
15645 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
15646 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
15647 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
15648 echo $ECHO_N "(cached) $ECHO_C" >&6
15649 else
15651 cat >conftest.$ac_ext <<_ACEOF
15652 /* confdefs.h. */
15653 _ACEOF
15654 cat confdefs.h >>conftest.$ac_ext
15655 cat >>conftest.$ac_ext <<_ACEOF
15656 /* end confdefs.h. */
15657 #include <inttypes.h>
15658 #ifdef PRId32
15659 char *p = PRId32;
15660 #endif
15663 main ()
15667 return 0;
15669 _ACEOF
15670 rm -f conftest.$ac_objext
15671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15672 (eval $ac_compile) 2>conftest.er1
15673 ac_status=$?
15674 grep -v '^ *+' conftest.er1 >conftest.err
15675 rm -f conftest.er1
15676 cat conftest.err >&5
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); } &&
15679 { ac_try='test -z "$ac_c_werror_flag"
15680 || test ! -s conftest.err'
15681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15682 (eval $ac_try) 2>&5
15683 ac_status=$?
15684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685 (exit $ac_status); }; } &&
15686 { ac_try='test -s conftest.$ac_objext'
15687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15688 (eval $ac_try) 2>&5
15689 ac_status=$?
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); }; }; then
15692 gt_cv_inttypes_pri_broken=no
15693 else
15694 echo "$as_me: failed program was:" >&5
15695 sed 's/^/| /' conftest.$ac_ext >&5
15697 gt_cv_inttypes_pri_broken=yes
15699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15702 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
15703 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
15705 if test "$gt_cv_inttypes_pri_broken" = yes; then
15707 cat >>confdefs.h <<_ACEOF
15708 #define PRI_MACROS_BROKEN 1
15709 _ACEOF
15714 if test "X$prefix" = "XNONE"; then
15715 acl_final_prefix="$ac_default_prefix"
15716 else
15717 acl_final_prefix="$prefix"
15719 if test "X$exec_prefix" = "XNONE"; then
15720 acl_final_exec_prefix='${prefix}'
15721 else
15722 acl_final_exec_prefix="$exec_prefix"
15724 acl_save_prefix="$prefix"
15725 prefix="$acl_final_prefix"
15726 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
15727 prefix="$acl_save_prefix"
15730 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15731 if test "${with_gnu_ld+set}" = set; then
15732 withval="$with_gnu_ld"
15733 test "$withval" = no || with_gnu_ld=yes
15734 else
15735 with_gnu_ld=no
15737 ac_prog=ld
15738 if test "$GCC" = yes; then
15739 # Check if gcc -print-prog-name=ld gives a path.
15740 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
15741 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
15742 case $host in
15743 *-*-mingw*)
15744 # gcc leaves a trailing carriage return which upsets mingw
15745 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15747 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15748 esac
15749 case $ac_prog in
15750 # Accept absolute paths.
15751 [\\/]* | [A-Za-z]:[\\/]*)
15752 re_direlt='/[^/][^/]*/\.\./'
15753 # Canonicalize the path of ld
15754 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
15755 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15756 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
15757 done
15758 test -z "$LD" && LD="$ac_prog"
15761 # If it fails, then pretend we aren't using GCC.
15762 ac_prog=ld
15765 # If it is relative, then search for the first ld in PATH.
15766 with_gnu_ld=unknown
15768 esac
15769 elif test "$with_gnu_ld" = yes; then
15770 echo "$as_me:$LINENO: checking for GNU ld" >&5
15771 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15772 else
15773 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15774 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15776 if test "${acl_cv_path_LD+set}" = set; then
15777 echo $ECHO_N "(cached) $ECHO_C" >&6
15778 else
15779 if test -z "$LD"; then
15780 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
15781 for ac_dir in $PATH; do
15782 test -z "$ac_dir" && ac_dir=.
15783 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15784 acl_cv_path_LD="$ac_dir/$ac_prog"
15785 # Check to see if the program is GNU ld. I'd rather use --version,
15786 # but apparently some GNU ld's only accept -v.
15787 # Break only if it was the GNU/non-GNU ld that we prefer.
15788 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
15789 test "$with_gnu_ld" != no && break
15790 else
15791 test "$with_gnu_ld" != yes && break
15794 done
15795 IFS="$ac_save_ifs"
15796 else
15797 acl_cv_path_LD="$LD" # Let the user override the test with a path.
15801 LD="$acl_cv_path_LD"
15802 if test -n "$LD"; then
15803 echo "$as_me:$LINENO: result: $LD" >&5
15804 echo "${ECHO_T}$LD" >&6
15805 else
15806 echo "$as_me:$LINENO: result: no" >&5
15807 echo "${ECHO_T}no" >&6
15809 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15810 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15811 { (exit 1); exit 1; }; }
15812 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15813 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15814 if test "${acl_cv_prog_gnu_ld+set}" = set; then
15815 echo $ECHO_N "(cached) $ECHO_C" >&6
15816 else
15817 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15818 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
15819 acl_cv_prog_gnu_ld=yes
15820 else
15821 acl_cv_prog_gnu_ld=no
15824 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
15825 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
15826 with_gnu_ld=$acl_cv_prog_gnu_ld
15830 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
15831 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
15832 if test "${acl_cv_rpath+set}" = set; then
15833 echo $ECHO_N "(cached) $ECHO_C" >&6
15834 else
15836 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
15837 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
15838 . ./conftest.sh
15839 rm -f ./conftest.sh
15840 acl_cv_rpath=done
15843 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
15844 echo "${ECHO_T}$acl_cv_rpath" >&6
15845 wl="$acl_cv_wl"
15846 libext="$acl_cv_libext"
15847 shlibext="$acl_cv_shlibext"
15848 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
15849 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
15850 hardcode_direct="$acl_cv_hardcode_direct"
15851 hardcode_minus_L="$acl_cv_hardcode_minus_L"
15852 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
15853 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
15854 # Check whether --enable-rpath or --disable-rpath was given.
15855 if test "${enable_rpath+set}" = set; then
15856 enableval="$enable_rpath"
15858 else
15859 enable_rpath=yes
15868 use_additional=yes
15870 acl_save_prefix="$prefix"
15871 prefix="$acl_final_prefix"
15872 acl_save_exec_prefix="$exec_prefix"
15873 exec_prefix="$acl_final_exec_prefix"
15875 eval additional_includedir=\"$includedir\"
15876 eval additional_libdir=\"$libdir\"
15878 exec_prefix="$acl_save_exec_prefix"
15879 prefix="$acl_save_prefix"
15882 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
15883 if test "${with_libiconv_prefix+set}" = set; then
15884 withval="$with_libiconv_prefix"
15886 if test "X$withval" = "Xno"; then
15887 use_additional=no
15888 else
15889 if test "X$withval" = "X"; then
15891 acl_save_prefix="$prefix"
15892 prefix="$acl_final_prefix"
15893 acl_save_exec_prefix="$exec_prefix"
15894 exec_prefix="$acl_final_exec_prefix"
15896 eval additional_includedir=\"$includedir\"
15897 eval additional_libdir=\"$libdir\"
15899 exec_prefix="$acl_save_exec_prefix"
15900 prefix="$acl_save_prefix"
15902 else
15903 additional_includedir="$withval/include"
15904 additional_libdir="$withval/lib"
15909 LIBICONV=
15910 LTLIBICONV=
15911 INCICONV=
15912 rpathdirs=
15913 ltrpathdirs=
15914 names_already_handled=
15915 names_next_round='iconv '
15916 while test -n "$names_next_round"; do
15917 names_this_round="$names_next_round"
15918 names_next_round=
15919 for name in $names_this_round; do
15920 already_handled=
15921 for n in $names_already_handled; do
15922 if test "$n" = "$name"; then
15923 already_handled=yes
15924 break
15926 done
15927 if test -z "$already_handled"; then
15928 names_already_handled="$names_already_handled $name"
15929 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15930 eval value=\"\$HAVE_LIB$uppername\"
15931 if test -n "$value"; then
15932 if test "$value" = yes; then
15933 eval value=\"\$LIB$uppername\"
15934 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
15935 eval value=\"\$LTLIB$uppername\"
15936 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
15937 else
15940 else
15941 found_dir=
15942 found_la=
15943 found_so=
15944 found_a=
15945 if test $use_additional = yes; then
15946 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
15947 found_dir="$additional_libdir"
15948 found_so="$additional_libdir/lib$name.$shlibext"
15949 if test -f "$additional_libdir/lib$name.la"; then
15950 found_la="$additional_libdir/lib$name.la"
15952 else
15953 if test -f "$additional_libdir/lib$name.$libext"; then
15954 found_dir="$additional_libdir"
15955 found_a="$additional_libdir/lib$name.$libext"
15956 if test -f "$additional_libdir/lib$name.la"; then
15957 found_la="$additional_libdir/lib$name.la"
15962 if test "X$found_dir" = "X"; then
15963 for x in $LDFLAGS $LTLIBICONV; do
15965 acl_save_prefix="$prefix"
15966 prefix="$acl_final_prefix"
15967 acl_save_exec_prefix="$exec_prefix"
15968 exec_prefix="$acl_final_exec_prefix"
15969 eval x=\"$x\"
15970 exec_prefix="$acl_save_exec_prefix"
15971 prefix="$acl_save_prefix"
15973 case "$x" in
15974 -L*)
15975 dir=`echo "X$x" | sed -e 's/^X-L//'`
15976 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
15977 found_dir="$dir"
15978 found_so="$dir/lib$name.$shlibext"
15979 if test -f "$dir/lib$name.la"; then
15980 found_la="$dir/lib$name.la"
15982 else
15983 if test -f "$dir/lib$name.$libext"; then
15984 found_dir="$dir"
15985 found_a="$dir/lib$name.$libext"
15986 if test -f "$dir/lib$name.la"; then
15987 found_la="$dir/lib$name.la"
15992 esac
15993 if test "X$found_dir" != "X"; then
15994 break
15996 done
15998 if test "X$found_dir" != "X"; then
15999 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16000 if test "X$found_so" != "X"; then
16001 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16002 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16003 else
16004 haveit=
16005 for x in $ltrpathdirs; do
16006 if test "X$x" = "X$found_dir"; then
16007 haveit=yes
16008 break
16010 done
16011 if test -z "$haveit"; then
16012 ltrpathdirs="$ltrpathdirs $found_dir"
16014 if test "$hardcode_direct" = yes; then
16015 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16016 else
16017 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16018 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16019 haveit=
16020 for x in $rpathdirs; do
16021 if test "X$x" = "X$found_dir"; then
16022 haveit=yes
16023 break
16025 done
16026 if test -z "$haveit"; then
16027 rpathdirs="$rpathdirs $found_dir"
16029 else
16030 haveit=
16031 for x in $LDFLAGS $LIBICONV; do
16033 acl_save_prefix="$prefix"
16034 prefix="$acl_final_prefix"
16035 acl_save_exec_prefix="$exec_prefix"
16036 exec_prefix="$acl_final_exec_prefix"
16037 eval x=\"$x\"
16038 exec_prefix="$acl_save_exec_prefix"
16039 prefix="$acl_save_prefix"
16041 if test "X$x" = "X-L$found_dir"; then
16042 haveit=yes
16043 break
16045 done
16046 if test -z "$haveit"; then
16047 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16049 if test "$hardcode_minus_L" != no; then
16050 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16051 else
16052 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16057 else
16058 if test "X$found_a" != "X"; then
16059 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16060 else
16061 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16064 additional_includedir=
16065 case "$found_dir" in
16066 */lib | */lib/)
16067 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16068 additional_includedir="$basedir/include"
16070 esac
16071 if test "X$additional_includedir" != "X"; then
16072 if test "X$additional_includedir" != "X/usr/include"; then
16073 haveit=
16074 if test "X$additional_includedir" = "X/usr/local/include"; then
16075 if test -n "$GCC"; then
16076 case $host_os in
16077 linux*) haveit=yes;;
16078 esac
16081 if test -z "$haveit"; then
16082 for x in $CPPFLAGS $INCICONV; do
16084 acl_save_prefix="$prefix"
16085 prefix="$acl_final_prefix"
16086 acl_save_exec_prefix="$exec_prefix"
16087 exec_prefix="$acl_final_exec_prefix"
16088 eval x=\"$x\"
16089 exec_prefix="$acl_save_exec_prefix"
16090 prefix="$acl_save_prefix"
16092 if test "X$x" = "X-I$additional_includedir"; then
16093 haveit=yes
16094 break
16096 done
16097 if test -z "$haveit"; then
16098 if test -d "$additional_includedir"; then
16099 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16105 if test -n "$found_la"; then
16106 save_libdir="$libdir"
16107 case "$found_la" in
16108 */* | *\\*) . "$found_la" ;;
16109 *) . "./$found_la" ;;
16110 esac
16111 libdir="$save_libdir"
16112 for dep in $dependency_libs; do
16113 case "$dep" in
16114 -L*)
16115 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16116 if test "X$additional_libdir" != "X/usr/lib"; then
16117 haveit=
16118 if test "X$additional_libdir" = "X/usr/local/lib"; then
16119 if test -n "$GCC"; then
16120 case $host_os in
16121 linux*) haveit=yes;;
16122 esac
16125 if test -z "$haveit"; then
16126 haveit=
16127 for x in $LDFLAGS $LIBICONV; do
16129 acl_save_prefix="$prefix"
16130 prefix="$acl_final_prefix"
16131 acl_save_exec_prefix="$exec_prefix"
16132 exec_prefix="$acl_final_exec_prefix"
16133 eval x=\"$x\"
16134 exec_prefix="$acl_save_exec_prefix"
16135 prefix="$acl_save_prefix"
16137 if test "X$x" = "X-L$additional_libdir"; then
16138 haveit=yes
16139 break
16141 done
16142 if test -z "$haveit"; then
16143 if test -d "$additional_libdir"; then
16144 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16147 haveit=
16148 for x in $LDFLAGS $LTLIBICONV; do
16150 acl_save_prefix="$prefix"
16151 prefix="$acl_final_prefix"
16152 acl_save_exec_prefix="$exec_prefix"
16153 exec_prefix="$acl_final_exec_prefix"
16154 eval x=\"$x\"
16155 exec_prefix="$acl_save_exec_prefix"
16156 prefix="$acl_save_prefix"
16158 if test "X$x" = "X-L$additional_libdir"; then
16159 haveit=yes
16160 break
16162 done
16163 if test -z "$haveit"; then
16164 if test -d "$additional_libdir"; then
16165 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16171 -R*)
16172 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16173 if test "$enable_rpath" != no; then
16174 haveit=
16175 for x in $rpathdirs; do
16176 if test "X$x" = "X$dir"; then
16177 haveit=yes
16178 break
16180 done
16181 if test -z "$haveit"; then
16182 rpathdirs="$rpathdirs $dir"
16184 haveit=
16185 for x in $ltrpathdirs; do
16186 if test "X$x" = "X$dir"; then
16187 haveit=yes
16188 break
16190 done
16191 if test -z "$haveit"; then
16192 ltrpathdirs="$ltrpathdirs $dir"
16196 -l*)
16197 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16199 *.la)
16200 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16203 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16204 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16206 esac
16207 done
16209 else
16210 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16211 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16215 done
16216 done
16217 if test "X$rpathdirs" != "X"; then
16218 if test -n "$hardcode_libdir_separator"; then
16219 alldirs=
16220 for found_dir in $rpathdirs; do
16221 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16222 done
16223 acl_save_libdir="$libdir"
16224 libdir="$alldirs"
16225 eval flag=\"$hardcode_libdir_flag_spec\"
16226 libdir="$acl_save_libdir"
16227 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16228 else
16229 for found_dir in $rpathdirs; do
16230 acl_save_libdir="$libdir"
16231 libdir="$found_dir"
16232 eval flag=\"$hardcode_libdir_flag_spec\"
16233 libdir="$acl_save_libdir"
16234 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16235 done
16238 if test "X$ltrpathdirs" != "X"; then
16239 for found_dir in $ltrpathdirs; do
16240 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16241 done
16257 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
16258 stdlib.h string.h unistd.h sys/param.h
16260 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16262 echo "$as_me:$LINENO: checking for $ac_header" >&5
16263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16265 echo $ECHO_N "(cached) $ECHO_C" >&6
16267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16268 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16269 else
16270 # Is the header compilable?
16271 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16272 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16273 cat >conftest.$ac_ext <<_ACEOF
16274 /* confdefs.h. */
16275 _ACEOF
16276 cat confdefs.h >>conftest.$ac_ext
16277 cat >>conftest.$ac_ext <<_ACEOF
16278 /* end confdefs.h. */
16279 $ac_includes_default
16280 #include <$ac_header>
16281 _ACEOF
16282 rm -f conftest.$ac_objext
16283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16284 (eval $ac_compile) 2>conftest.er1
16285 ac_status=$?
16286 grep -v '^ *+' conftest.er1 >conftest.err
16287 rm -f conftest.er1
16288 cat conftest.err >&5
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); } &&
16291 { ac_try='test -z "$ac_c_werror_flag"
16292 || test ! -s conftest.err'
16293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16294 (eval $ac_try) 2>&5
16295 ac_status=$?
16296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297 (exit $ac_status); }; } &&
16298 { ac_try='test -s conftest.$ac_objext'
16299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16300 (eval $ac_try) 2>&5
16301 ac_status=$?
16302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303 (exit $ac_status); }; }; then
16304 ac_header_compiler=yes
16305 else
16306 echo "$as_me: failed program was:" >&5
16307 sed 's/^/| /' conftest.$ac_ext >&5
16309 ac_header_compiler=no
16311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16312 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16313 echo "${ECHO_T}$ac_header_compiler" >&6
16315 # Is the header present?
16316 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16317 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16318 cat >conftest.$ac_ext <<_ACEOF
16319 /* confdefs.h. */
16320 _ACEOF
16321 cat confdefs.h >>conftest.$ac_ext
16322 cat >>conftest.$ac_ext <<_ACEOF
16323 /* end confdefs.h. */
16324 #include <$ac_header>
16325 _ACEOF
16326 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16327 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16328 ac_status=$?
16329 grep -v '^ *+' conftest.er1 >conftest.err
16330 rm -f conftest.er1
16331 cat conftest.err >&5
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); } >/dev/null; then
16334 if test -s conftest.err; then
16335 ac_cpp_err=$ac_c_preproc_warn_flag
16336 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16337 else
16338 ac_cpp_err=
16340 else
16341 ac_cpp_err=yes
16343 if test -z "$ac_cpp_err"; then
16344 ac_header_preproc=yes
16345 else
16346 echo "$as_me: failed program was:" >&5
16347 sed 's/^/| /' conftest.$ac_ext >&5
16349 ac_header_preproc=no
16351 rm -f conftest.err conftest.$ac_ext
16352 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16353 echo "${ECHO_T}$ac_header_preproc" >&6
16355 # So? What about this header?
16356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16357 yes:no: )
16358 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16359 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16361 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16362 ac_header_preproc=yes
16364 no:yes:* )
16365 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16366 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16367 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16368 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16369 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16370 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16371 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16372 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16374 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16375 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16376 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16378 cat <<\_ASBOX
16379 ## ------------------------------ ##
16380 ## Report this to admin@amule.org ##
16381 ## ------------------------------ ##
16382 _ASBOX
16384 sed "s/^/$as_me: WARNING: /" >&2
16386 esac
16387 echo "$as_me:$LINENO: checking for $ac_header" >&5
16388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16390 echo $ECHO_N "(cached) $ECHO_C" >&6
16391 else
16392 eval "$as_ac_Header=\$ac_header_preproc"
16394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16399 cat >>confdefs.h <<_ACEOF
16400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16401 _ACEOF
16405 done
16428 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
16429 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
16430 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
16432 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16433 echo "$as_me:$LINENO: checking for $ac_func" >&5
16434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16435 if eval "test \"\${$as_ac_var+set}\" = set"; then
16436 echo $ECHO_N "(cached) $ECHO_C" >&6
16437 else
16438 cat >conftest.$ac_ext <<_ACEOF
16439 /* confdefs.h. */
16440 _ACEOF
16441 cat confdefs.h >>conftest.$ac_ext
16442 cat >>conftest.$ac_ext <<_ACEOF
16443 /* end confdefs.h. */
16444 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16446 #define $ac_func innocuous_$ac_func
16448 /* System header to define __stub macros and hopefully few prototypes,
16449 which can conflict with char $ac_func (); below.
16450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16451 <limits.h> exists even on freestanding compilers. */
16453 #ifdef __STDC__
16454 # include <limits.h>
16455 #else
16456 # include <assert.h>
16457 #endif
16459 #undef $ac_func
16461 /* Override any gcc2 internal prototype to avoid an error. */
16462 #ifdef __cplusplus
16463 extern "C"
16465 #endif
16466 /* We use char because int might match the return type of a gcc2
16467 builtin and then its argument prototype would still apply. */
16468 char $ac_func ();
16469 /* The GNU C library defines this for functions which it implements
16470 to always fail with ENOSYS. Some functions are actually named
16471 something starting with __ and the normal name is an alias. */
16472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16473 choke me
16474 #else
16475 char (*f) () = $ac_func;
16476 #endif
16477 #ifdef __cplusplus
16479 #endif
16482 main ()
16484 return f != $ac_func;
16486 return 0;
16488 _ACEOF
16489 rm -f conftest.$ac_objext conftest$ac_exeext
16490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16491 (eval $ac_link) 2>conftest.er1
16492 ac_status=$?
16493 grep -v '^ *+' conftest.er1 >conftest.err
16494 rm -f conftest.er1
16495 cat conftest.err >&5
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); } &&
16498 { ac_try='test -z "$ac_c_werror_flag"
16499 || test ! -s conftest.err'
16500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16501 (eval $ac_try) 2>&5
16502 ac_status=$?
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); }; } &&
16505 { ac_try='test -s conftest$ac_exeext'
16506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16507 (eval $ac_try) 2>&5
16508 ac_status=$?
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); }; }; then
16511 eval "$as_ac_var=yes"
16512 else
16513 echo "$as_me: failed program was:" >&5
16514 sed 's/^/| /' conftest.$ac_ext >&5
16516 eval "$as_ac_var=no"
16518 rm -f conftest.err conftest.$ac_objext \
16519 conftest$ac_exeext conftest.$ac_ext
16521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16522 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16523 if test `eval echo '${'$as_ac_var'}'` = yes; then
16524 cat >>confdefs.h <<_ACEOF
16525 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16526 _ACEOF
16529 done
16537 am_save_CPPFLAGS="$CPPFLAGS"
16539 for element in $INCICONV; do
16540 haveit=
16541 for x in $CPPFLAGS; do
16543 acl_save_prefix="$prefix"
16544 prefix="$acl_final_prefix"
16545 acl_save_exec_prefix="$exec_prefix"
16546 exec_prefix="$acl_final_exec_prefix"
16547 eval x=\"$x\"
16548 exec_prefix="$acl_save_exec_prefix"
16549 prefix="$acl_save_prefix"
16551 if test "X$x" = "X$element"; then
16552 haveit=yes
16553 break
16555 done
16556 if test -z "$haveit"; then
16557 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16559 done
16562 echo "$as_me:$LINENO: checking for iconv" >&5
16563 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
16564 if test "${am_cv_func_iconv+set}" = set; then
16565 echo $ECHO_N "(cached) $ECHO_C" >&6
16566 else
16568 am_cv_func_iconv="no, consider installing GNU libiconv"
16569 am_cv_lib_iconv=no
16570 cat >conftest.$ac_ext <<_ACEOF
16571 /* confdefs.h. */
16572 _ACEOF
16573 cat confdefs.h >>conftest.$ac_ext
16574 cat >>conftest.$ac_ext <<_ACEOF
16575 /* end confdefs.h. */
16576 #include <stdlib.h>
16577 #include <iconv.h>
16579 main ()
16581 iconv_t cd = iconv_open("","");
16582 iconv(cd,NULL,NULL,NULL,NULL);
16583 iconv_close(cd);
16585 return 0;
16587 _ACEOF
16588 rm -f conftest.$ac_objext conftest$ac_exeext
16589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16590 (eval $ac_link) 2>conftest.er1
16591 ac_status=$?
16592 grep -v '^ *+' conftest.er1 >conftest.err
16593 rm -f conftest.er1
16594 cat conftest.err >&5
16595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); } &&
16597 { ac_try='test -z "$ac_c_werror_flag"
16598 || test ! -s conftest.err'
16599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16600 (eval $ac_try) 2>&5
16601 ac_status=$?
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); }; } &&
16604 { ac_try='test -s conftest$ac_exeext'
16605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16606 (eval $ac_try) 2>&5
16607 ac_status=$?
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); }; }; then
16610 am_cv_func_iconv=yes
16611 else
16612 echo "$as_me: failed program was:" >&5
16613 sed 's/^/| /' conftest.$ac_ext >&5
16616 rm -f conftest.err conftest.$ac_objext \
16617 conftest$ac_exeext conftest.$ac_ext
16618 if test "$am_cv_func_iconv" != yes; then
16619 am_save_LIBS="$LIBS"
16620 LIBS="$LIBS $LIBICONV"
16621 cat >conftest.$ac_ext <<_ACEOF
16622 /* confdefs.h. */
16623 _ACEOF
16624 cat confdefs.h >>conftest.$ac_ext
16625 cat >>conftest.$ac_ext <<_ACEOF
16626 /* end confdefs.h. */
16627 #include <stdlib.h>
16628 #include <iconv.h>
16630 main ()
16632 iconv_t cd = iconv_open("","");
16633 iconv(cd,NULL,NULL,NULL,NULL);
16634 iconv_close(cd);
16636 return 0;
16638 _ACEOF
16639 rm -f conftest.$ac_objext conftest$ac_exeext
16640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16641 (eval $ac_link) 2>conftest.er1
16642 ac_status=$?
16643 grep -v '^ *+' conftest.er1 >conftest.err
16644 rm -f conftest.er1
16645 cat conftest.err >&5
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); } &&
16648 { ac_try='test -z "$ac_c_werror_flag"
16649 || test ! -s conftest.err'
16650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16651 (eval $ac_try) 2>&5
16652 ac_status=$?
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); }; } &&
16655 { ac_try='test -s conftest$ac_exeext'
16656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16657 (eval $ac_try) 2>&5
16658 ac_status=$?
16659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660 (exit $ac_status); }; }; then
16661 am_cv_lib_iconv=yes
16662 am_cv_func_iconv=yes
16663 else
16664 echo "$as_me: failed program was:" >&5
16665 sed 's/^/| /' conftest.$ac_ext >&5
16668 rm -f conftest.err conftest.$ac_objext \
16669 conftest$ac_exeext conftest.$ac_ext
16670 LIBS="$am_save_LIBS"
16674 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
16675 echo "${ECHO_T}$am_cv_func_iconv" >&6
16676 if test "$am_cv_func_iconv" = yes; then
16678 cat >>confdefs.h <<\_ACEOF
16679 #define HAVE_ICONV 1
16680 _ACEOF
16683 if test "$am_cv_lib_iconv" = yes; then
16684 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
16685 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
16686 echo "$as_me:$LINENO: result: $LIBICONV" >&5
16687 echo "${ECHO_T}$LIBICONV" >&6
16688 else
16689 CPPFLAGS="$am_save_CPPFLAGS"
16690 LIBICONV=
16691 LTLIBICONV=
16696 if test "$am_cv_func_iconv" = yes; then
16697 echo "$as_me:$LINENO: checking for iconv declaration" >&5
16698 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
16699 if test "${am_cv_proto_iconv+set}" = set; then
16700 echo $ECHO_N "(cached) $ECHO_C" >&6
16701 else
16703 cat >conftest.$ac_ext <<_ACEOF
16704 /* confdefs.h. */
16705 _ACEOF
16706 cat confdefs.h >>conftest.$ac_ext
16707 cat >>conftest.$ac_ext <<_ACEOF
16708 /* end confdefs.h. */
16710 #include <stdlib.h>
16711 #include <iconv.h>
16712 extern
16713 #ifdef __cplusplus
16715 #endif
16716 #if defined(__STDC__) || defined(__cplusplus)
16717 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16718 #else
16719 size_t iconv();
16720 #endif
16723 main ()
16727 return 0;
16729 _ACEOF
16730 rm -f conftest.$ac_objext
16731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16732 (eval $ac_compile) 2>conftest.er1
16733 ac_status=$?
16734 grep -v '^ *+' conftest.er1 >conftest.err
16735 rm -f conftest.er1
16736 cat conftest.err >&5
16737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738 (exit $ac_status); } &&
16739 { ac_try='test -z "$ac_c_werror_flag"
16740 || test ! -s conftest.err'
16741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16742 (eval $ac_try) 2>&5
16743 ac_status=$?
16744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745 (exit $ac_status); }; } &&
16746 { ac_try='test -s conftest.$ac_objext'
16747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16748 (eval $ac_try) 2>&5
16749 ac_status=$?
16750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751 (exit $ac_status); }; }; then
16752 am_cv_proto_iconv_arg1=""
16753 else
16754 echo "$as_me: failed program was:" >&5
16755 sed 's/^/| /' conftest.$ac_ext >&5
16757 am_cv_proto_iconv_arg1="const"
16759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16760 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);"
16763 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
16764 echo "$as_me:$LINENO: result: ${ac_t:-
16765 }$am_cv_proto_iconv" >&5
16766 echo "${ECHO_T}${ac_t:-
16767 }$am_cv_proto_iconv" >&6
16769 cat >>confdefs.h <<_ACEOF
16770 #define ICONV_CONST $am_cv_proto_iconv_arg1
16771 _ACEOF
16776 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
16777 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
16778 if test "${am_cv_langinfo_codeset+set}" = set; then
16779 echo $ECHO_N "(cached) $ECHO_C" >&6
16780 else
16781 cat >conftest.$ac_ext <<_ACEOF
16782 /* confdefs.h. */
16783 _ACEOF
16784 cat confdefs.h >>conftest.$ac_ext
16785 cat >>conftest.$ac_ext <<_ACEOF
16786 /* end confdefs.h. */
16787 #include <langinfo.h>
16789 main ()
16791 char* cs = nl_langinfo(CODESET);
16793 return 0;
16795 _ACEOF
16796 rm -f conftest.$ac_objext conftest$ac_exeext
16797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16798 (eval $ac_link) 2>conftest.er1
16799 ac_status=$?
16800 grep -v '^ *+' conftest.er1 >conftest.err
16801 rm -f conftest.er1
16802 cat conftest.err >&5
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); } &&
16805 { ac_try='test -z "$ac_c_werror_flag"
16806 || test ! -s conftest.err'
16807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16808 (eval $ac_try) 2>&5
16809 ac_status=$?
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); }; } &&
16812 { ac_try='test -s conftest$ac_exeext'
16813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16814 (eval $ac_try) 2>&5
16815 ac_status=$?
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); }; }; then
16818 am_cv_langinfo_codeset=yes
16819 else
16820 echo "$as_me: failed program was:" >&5
16821 sed 's/^/| /' conftest.$ac_ext >&5
16823 am_cv_langinfo_codeset=no
16825 rm -f conftest.err conftest.$ac_objext \
16826 conftest$ac_exeext conftest.$ac_ext
16829 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
16830 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
16831 if test $am_cv_langinfo_codeset = yes; then
16833 cat >>confdefs.h <<\_ACEOF
16834 #define HAVE_LANGINFO_CODESET 1
16835 _ACEOF
16839 if test $ac_cv_header_locale_h = yes; then
16841 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
16842 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
16843 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
16844 echo $ECHO_N "(cached) $ECHO_C" >&6
16845 else
16846 cat >conftest.$ac_ext <<_ACEOF
16847 /* confdefs.h. */
16848 _ACEOF
16849 cat confdefs.h >>conftest.$ac_ext
16850 cat >>conftest.$ac_ext <<_ACEOF
16851 /* end confdefs.h. */
16852 #include <locale.h>
16854 main ()
16856 return LC_MESSAGES
16858 return 0;
16860 _ACEOF
16861 rm -f conftest.$ac_objext conftest$ac_exeext
16862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16863 (eval $ac_link) 2>conftest.er1
16864 ac_status=$?
16865 grep -v '^ *+' conftest.er1 >conftest.err
16866 rm -f conftest.er1
16867 cat conftest.err >&5
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); } &&
16870 { ac_try='test -z "$ac_c_werror_flag"
16871 || test ! -s conftest.err'
16872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16873 (eval $ac_try) 2>&5
16874 ac_status=$?
16875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876 (exit $ac_status); }; } &&
16877 { ac_try='test -s conftest$ac_exeext'
16878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16879 (eval $ac_try) 2>&5
16880 ac_status=$?
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 (exit $ac_status); }; }; then
16883 am_cv_val_LC_MESSAGES=yes
16884 else
16885 echo "$as_me: failed program was:" >&5
16886 sed 's/^/| /' conftest.$ac_ext >&5
16888 am_cv_val_LC_MESSAGES=no
16890 rm -f conftest.err conftest.$ac_objext \
16891 conftest$ac_exeext conftest.$ac_ext
16893 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
16894 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
16895 if test $am_cv_val_LC_MESSAGES = yes; then
16897 cat >>confdefs.h <<\_ACEOF
16898 #define HAVE_LC_MESSAGES 1
16899 _ACEOF
16905 for ac_prog in bison
16907 # Extract the first word of "$ac_prog", so it can be a program name with args.
16908 set dummy $ac_prog; ac_word=$2
16909 echo "$as_me:$LINENO: checking for $ac_word" >&5
16910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16911 if test "${ac_cv_prog_INTLBISON+set}" = set; then
16912 echo $ECHO_N "(cached) $ECHO_C" >&6
16913 else
16914 if test -n "$INTLBISON"; then
16915 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
16916 else
16917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16918 for as_dir in $PATH
16920 IFS=$as_save_IFS
16921 test -z "$as_dir" && as_dir=.
16922 for ac_exec_ext in '' $ac_executable_extensions; do
16923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16924 ac_cv_prog_INTLBISON="$ac_prog"
16925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16926 break 2
16928 done
16929 done
16933 INTLBISON=$ac_cv_prog_INTLBISON
16934 if test -n "$INTLBISON"; then
16935 echo "$as_me:$LINENO: result: $INTLBISON" >&5
16936 echo "${ECHO_T}$INTLBISON" >&6
16937 else
16938 echo "$as_me:$LINENO: result: no" >&5
16939 echo "${ECHO_T}no" >&6
16942 test -n "$INTLBISON" && break
16943 done
16945 if test -z "$INTLBISON"; then
16946 ac_verc_fail=yes
16947 else
16948 echo "$as_me:$LINENO: checking version of bison" >&5
16949 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
16950 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
16951 case $ac_prog_version in
16952 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
16953 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
16954 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
16955 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
16956 esac
16957 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
16958 echo "${ECHO_T}$ac_prog_version" >&6
16960 if test $ac_verc_fail = yes; then
16961 INTLBISON=:
16966 # Check whether --with-language or --without-language was given.
16967 if test "${with_language+set}" = set; then
16968 withval="$with_language"
16969 if test "$withval" = "all"; then
16970 LINGUAS='%UNSET%'
16971 else
16972 LINGUAS="`echo $withval | sed -e 's/,/ /g'`"
16991 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16992 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
16993 # Check whether --enable-nls or --disable-nls was given.
16994 if test "${enable_nls+set}" = set; then
16995 enableval="$enable_nls"
16996 USE_NLS=$enableval
16997 else
16998 USE_NLS=yes
17000 echo "$as_me:$LINENO: result: $USE_NLS" >&5
17001 echo "${ECHO_T}$USE_NLS" >&6
17005 BUILD_INCLUDED_LIBINTL=no
17006 USE_INCLUDED_LIBINTL=no
17008 LIBINTL=
17009 LTLIBINTL=
17010 POSUB=
17012 if test "$USE_NLS" = "yes"; then
17013 gt_use_preinstalled_gnugettext=no
17015 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
17016 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
17018 # Check whether --with-included-gettext or --without-included-gettext was given.
17019 if test "${with_included_gettext+set}" = set; then
17020 withval="$with_included_gettext"
17021 nls_cv_force_use_gnu_gettext=$withval
17022 else
17023 nls_cv_force_use_gnu_gettext=no
17025 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
17026 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
17028 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
17029 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
17036 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17037 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
17038 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
17039 echo $ECHO_N "(cached) $ECHO_C" >&6
17040 else
17041 cat >conftest.$ac_ext <<_ACEOF
17042 /* confdefs.h. */
17043 _ACEOF
17044 cat confdefs.h >>conftest.$ac_ext
17045 cat >>conftest.$ac_ext <<_ACEOF
17046 /* end confdefs.h. */
17047 #include <libintl.h>
17048 extern int _nl_msg_cat_cntr;
17049 extern int *_nl_domain_bindings;
17051 main ()
17053 bindtextdomain ("", "");
17054 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
17056 return 0;
17058 _ACEOF
17059 rm -f conftest.$ac_objext conftest$ac_exeext
17060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17061 (eval $ac_link) 2>conftest.er1
17062 ac_status=$?
17063 grep -v '^ *+' conftest.er1 >conftest.err
17064 rm -f conftest.er1
17065 cat conftest.err >&5
17066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067 (exit $ac_status); } &&
17068 { ac_try='test -z "$ac_c_werror_flag"
17069 || test ! -s conftest.err'
17070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17071 (eval $ac_try) 2>&5
17072 ac_status=$?
17073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); }; } &&
17075 { ac_try='test -s conftest$ac_exeext'
17076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17077 (eval $ac_try) 2>&5
17078 ac_status=$?
17079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080 (exit $ac_status); }; }; then
17081 gt_cv_func_gnugettext2_libc=yes
17082 else
17083 echo "$as_me: failed program was:" >&5
17084 sed 's/^/| /' conftest.$ac_ext >&5
17086 gt_cv_func_gnugettext2_libc=no
17088 rm -f conftest.err conftest.$ac_objext \
17089 conftest$ac_exeext conftest.$ac_ext
17091 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
17092 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
17094 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
17098 use_additional=yes
17100 acl_save_prefix="$prefix"
17101 prefix="$acl_final_prefix"
17102 acl_save_exec_prefix="$exec_prefix"
17103 exec_prefix="$acl_final_exec_prefix"
17105 eval additional_includedir=\"$includedir\"
17106 eval additional_libdir=\"$libdir\"
17108 exec_prefix="$acl_save_exec_prefix"
17109 prefix="$acl_save_prefix"
17112 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
17113 if test "${with_libintl_prefix+set}" = set; then
17114 withval="$with_libintl_prefix"
17116 if test "X$withval" = "Xno"; then
17117 use_additional=no
17118 else
17119 if test "X$withval" = "X"; then
17121 acl_save_prefix="$prefix"
17122 prefix="$acl_final_prefix"
17123 acl_save_exec_prefix="$exec_prefix"
17124 exec_prefix="$acl_final_exec_prefix"
17126 eval additional_includedir=\"$includedir\"
17127 eval additional_libdir=\"$libdir\"
17129 exec_prefix="$acl_save_exec_prefix"
17130 prefix="$acl_save_prefix"
17132 else
17133 additional_includedir="$withval/include"
17134 additional_libdir="$withval/lib"
17139 LIBINTL=
17140 LTLIBINTL=
17141 INCINTL=
17142 rpathdirs=
17143 ltrpathdirs=
17144 names_already_handled=
17145 names_next_round='intl '
17146 while test -n "$names_next_round"; do
17147 names_this_round="$names_next_round"
17148 names_next_round=
17149 for name in $names_this_round; do
17150 already_handled=
17151 for n in $names_already_handled; do
17152 if test "$n" = "$name"; then
17153 already_handled=yes
17154 break
17156 done
17157 if test -z "$already_handled"; then
17158 names_already_handled="$names_already_handled $name"
17159 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17160 eval value=\"\$HAVE_LIB$uppername\"
17161 if test -n "$value"; then
17162 if test "$value" = yes; then
17163 eval value=\"\$LIB$uppername\"
17164 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17165 eval value=\"\$LTLIB$uppername\"
17166 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17167 else
17170 else
17171 found_dir=
17172 found_la=
17173 found_so=
17174 found_a=
17175 if test $use_additional = yes; then
17176 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17177 found_dir="$additional_libdir"
17178 found_so="$additional_libdir/lib$name.$shlibext"
17179 if test -f "$additional_libdir/lib$name.la"; then
17180 found_la="$additional_libdir/lib$name.la"
17182 else
17183 if test -f "$additional_libdir/lib$name.$libext"; then
17184 found_dir="$additional_libdir"
17185 found_a="$additional_libdir/lib$name.$libext"
17186 if test -f "$additional_libdir/lib$name.la"; then
17187 found_la="$additional_libdir/lib$name.la"
17192 if test "X$found_dir" = "X"; then
17193 for x in $LDFLAGS $LTLIBINTL; do
17195 acl_save_prefix="$prefix"
17196 prefix="$acl_final_prefix"
17197 acl_save_exec_prefix="$exec_prefix"
17198 exec_prefix="$acl_final_exec_prefix"
17199 eval x=\"$x\"
17200 exec_prefix="$acl_save_exec_prefix"
17201 prefix="$acl_save_prefix"
17203 case "$x" in
17204 -L*)
17205 dir=`echo "X$x" | sed -e 's/^X-L//'`
17206 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17207 found_dir="$dir"
17208 found_so="$dir/lib$name.$shlibext"
17209 if test -f "$dir/lib$name.la"; then
17210 found_la="$dir/lib$name.la"
17212 else
17213 if test -f "$dir/lib$name.$libext"; then
17214 found_dir="$dir"
17215 found_a="$dir/lib$name.$libext"
17216 if test -f "$dir/lib$name.la"; then
17217 found_la="$dir/lib$name.la"
17222 esac
17223 if test "X$found_dir" != "X"; then
17224 break
17226 done
17228 if test "X$found_dir" != "X"; then
17229 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17230 if test "X$found_so" != "X"; then
17231 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17232 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17233 else
17234 haveit=
17235 for x in $ltrpathdirs; do
17236 if test "X$x" = "X$found_dir"; then
17237 haveit=yes
17238 break
17240 done
17241 if test -z "$haveit"; then
17242 ltrpathdirs="$ltrpathdirs $found_dir"
17244 if test "$hardcode_direct" = yes; then
17245 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17246 else
17247 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17248 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17249 haveit=
17250 for x in $rpathdirs; do
17251 if test "X$x" = "X$found_dir"; then
17252 haveit=yes
17253 break
17255 done
17256 if test -z "$haveit"; then
17257 rpathdirs="$rpathdirs $found_dir"
17259 else
17260 haveit=
17261 for x in $LDFLAGS $LIBINTL; do
17263 acl_save_prefix="$prefix"
17264 prefix="$acl_final_prefix"
17265 acl_save_exec_prefix="$exec_prefix"
17266 exec_prefix="$acl_final_exec_prefix"
17267 eval x=\"$x\"
17268 exec_prefix="$acl_save_exec_prefix"
17269 prefix="$acl_save_prefix"
17271 if test "X$x" = "X-L$found_dir"; then
17272 haveit=yes
17273 break
17275 done
17276 if test -z "$haveit"; then
17277 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17279 if test "$hardcode_minus_L" != no; then
17280 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17281 else
17282 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17287 else
17288 if test "X$found_a" != "X"; then
17289 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17290 else
17291 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17294 additional_includedir=
17295 case "$found_dir" in
17296 */lib | */lib/)
17297 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17298 additional_includedir="$basedir/include"
17300 esac
17301 if test "X$additional_includedir" != "X"; then
17302 if test "X$additional_includedir" != "X/usr/include"; then
17303 haveit=
17304 if test "X$additional_includedir" = "X/usr/local/include"; then
17305 if test -n "$GCC"; then
17306 case $host_os in
17307 linux*) haveit=yes;;
17308 esac
17311 if test -z "$haveit"; then
17312 for x in $CPPFLAGS $INCINTL; do
17314 acl_save_prefix="$prefix"
17315 prefix="$acl_final_prefix"
17316 acl_save_exec_prefix="$exec_prefix"
17317 exec_prefix="$acl_final_exec_prefix"
17318 eval x=\"$x\"
17319 exec_prefix="$acl_save_exec_prefix"
17320 prefix="$acl_save_prefix"
17322 if test "X$x" = "X-I$additional_includedir"; then
17323 haveit=yes
17324 break
17326 done
17327 if test -z "$haveit"; then
17328 if test -d "$additional_includedir"; then
17329 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17335 if test -n "$found_la"; then
17336 save_libdir="$libdir"
17337 case "$found_la" in
17338 */* | *\\*) . "$found_la" ;;
17339 *) . "./$found_la" ;;
17340 esac
17341 libdir="$save_libdir"
17342 for dep in $dependency_libs; do
17343 case "$dep" in
17344 -L*)
17345 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17346 if test "X$additional_libdir" != "X/usr/lib"; then
17347 haveit=
17348 if test "X$additional_libdir" = "X/usr/local/lib"; then
17349 if test -n "$GCC"; then
17350 case $host_os in
17351 linux*) haveit=yes;;
17352 esac
17355 if test -z "$haveit"; then
17356 haveit=
17357 for x in $LDFLAGS $LIBINTL; do
17359 acl_save_prefix="$prefix"
17360 prefix="$acl_final_prefix"
17361 acl_save_exec_prefix="$exec_prefix"
17362 exec_prefix="$acl_final_exec_prefix"
17363 eval x=\"$x\"
17364 exec_prefix="$acl_save_exec_prefix"
17365 prefix="$acl_save_prefix"
17367 if test "X$x" = "X-L$additional_libdir"; then
17368 haveit=yes
17369 break
17371 done
17372 if test -z "$haveit"; then
17373 if test -d "$additional_libdir"; then
17374 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17377 haveit=
17378 for x in $LDFLAGS $LTLIBINTL; do
17380 acl_save_prefix="$prefix"
17381 prefix="$acl_final_prefix"
17382 acl_save_exec_prefix="$exec_prefix"
17383 exec_prefix="$acl_final_exec_prefix"
17384 eval x=\"$x\"
17385 exec_prefix="$acl_save_exec_prefix"
17386 prefix="$acl_save_prefix"
17388 if test "X$x" = "X-L$additional_libdir"; then
17389 haveit=yes
17390 break
17392 done
17393 if test -z "$haveit"; then
17394 if test -d "$additional_libdir"; then
17395 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17401 -R*)
17402 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17403 if test "$enable_rpath" != no; then
17404 haveit=
17405 for x in $rpathdirs; do
17406 if test "X$x" = "X$dir"; then
17407 haveit=yes
17408 break
17410 done
17411 if test -z "$haveit"; then
17412 rpathdirs="$rpathdirs $dir"
17414 haveit=
17415 for x in $ltrpathdirs; do
17416 if test "X$x" = "X$dir"; then
17417 haveit=yes
17418 break
17420 done
17421 if test -z "$haveit"; then
17422 ltrpathdirs="$ltrpathdirs $dir"
17426 -l*)
17427 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17429 *.la)
17430 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17433 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17434 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17436 esac
17437 done
17439 else
17440 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17441 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17445 done
17446 done
17447 if test "X$rpathdirs" != "X"; then
17448 if test -n "$hardcode_libdir_separator"; then
17449 alldirs=
17450 for found_dir in $rpathdirs; do
17451 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17452 done
17453 acl_save_libdir="$libdir"
17454 libdir="$alldirs"
17455 eval flag=\"$hardcode_libdir_flag_spec\"
17456 libdir="$acl_save_libdir"
17457 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17458 else
17459 for found_dir in $rpathdirs; do
17460 acl_save_libdir="$libdir"
17461 libdir="$found_dir"
17462 eval flag=\"$hardcode_libdir_flag_spec\"
17463 libdir="$acl_save_libdir"
17464 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17465 done
17468 if test "X$ltrpathdirs" != "X"; then
17469 for found_dir in $ltrpathdirs; do
17470 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17471 done
17474 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
17475 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
17476 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
17477 echo $ECHO_N "(cached) $ECHO_C" >&6
17478 else
17479 gt_save_CPPFLAGS="$CPPFLAGS"
17480 CPPFLAGS="$CPPFLAGS $INCINTL"
17481 gt_save_LIBS="$LIBS"
17482 LIBS="$LIBS $LIBINTL"
17483 cat >conftest.$ac_ext <<_ACEOF
17484 /* confdefs.h. */
17485 _ACEOF
17486 cat confdefs.h >>conftest.$ac_ext
17487 cat >>conftest.$ac_ext <<_ACEOF
17488 /* end confdefs.h. */
17489 #include <libintl.h>
17490 extern int _nl_msg_cat_cntr;
17491 extern
17492 #ifdef __cplusplus
17494 #endif
17495 const char *_nl_expand_alias ();
17497 main ()
17499 bindtextdomain ("", "");
17500 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17502 return 0;
17504 _ACEOF
17505 rm -f conftest.$ac_objext conftest$ac_exeext
17506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17507 (eval $ac_link) 2>conftest.er1
17508 ac_status=$?
17509 grep -v '^ *+' conftest.er1 >conftest.err
17510 rm -f conftest.er1
17511 cat conftest.err >&5
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); } &&
17514 { ac_try='test -z "$ac_c_werror_flag"
17515 || test ! -s conftest.err'
17516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17517 (eval $ac_try) 2>&5
17518 ac_status=$?
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); }; } &&
17521 { ac_try='test -s conftest$ac_exeext'
17522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17523 (eval $ac_try) 2>&5
17524 ac_status=$?
17525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526 (exit $ac_status); }; }; then
17527 gt_cv_func_gnugettext2_libintl=yes
17528 else
17529 echo "$as_me: failed program was:" >&5
17530 sed 's/^/| /' conftest.$ac_ext >&5
17532 gt_cv_func_gnugettext2_libintl=no
17534 rm -f conftest.err conftest.$ac_objext \
17535 conftest$ac_exeext conftest.$ac_ext
17536 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
17537 LIBS="$LIBS $LIBICONV"
17538 cat >conftest.$ac_ext <<_ACEOF
17539 /* confdefs.h. */
17540 _ACEOF
17541 cat confdefs.h >>conftest.$ac_ext
17542 cat >>conftest.$ac_ext <<_ACEOF
17543 /* end confdefs.h. */
17544 #include <libintl.h>
17545 extern int _nl_msg_cat_cntr;
17546 extern
17547 #ifdef __cplusplus
17549 #endif
17550 const char *_nl_expand_alias ();
17552 main ()
17554 bindtextdomain ("", "");
17555 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17557 return 0;
17559 _ACEOF
17560 rm -f conftest.$ac_objext conftest$ac_exeext
17561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17562 (eval $ac_link) 2>conftest.er1
17563 ac_status=$?
17564 grep -v '^ *+' conftest.er1 >conftest.err
17565 rm -f conftest.er1
17566 cat conftest.err >&5
17567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17568 (exit $ac_status); } &&
17569 { ac_try='test -z "$ac_c_werror_flag"
17570 || test ! -s conftest.err'
17571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17572 (eval $ac_try) 2>&5
17573 ac_status=$?
17574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); }; } &&
17576 { ac_try='test -s conftest$ac_exeext'
17577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17578 (eval $ac_try) 2>&5
17579 ac_status=$?
17580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581 (exit $ac_status); }; }; then
17582 LIBINTL="$LIBINTL $LIBICONV"
17583 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17584 gt_cv_func_gnugettext2_libintl=yes
17586 else
17587 echo "$as_me: failed program was:" >&5
17588 sed 's/^/| /' conftest.$ac_ext >&5
17591 rm -f conftest.err conftest.$ac_objext \
17592 conftest$ac_exeext conftest.$ac_ext
17594 CPPFLAGS="$gt_save_CPPFLAGS"
17595 LIBS="$gt_save_LIBS"
17597 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
17598 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
17601 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
17602 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
17603 && test "$PACKAGE" != gettext; }; then
17604 gt_use_preinstalled_gnugettext=yes
17605 else
17606 LIBINTL=
17607 LTLIBINTL=
17608 INCINTL=
17612 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
17613 nls_cv_use_gnu_gettext=yes
17617 if test "$nls_cv_use_gnu_gettext" = "yes"; then
17618 INTLOBJS="\$(GETTOBJS)"
17619 BUILD_INCLUDED_LIBINTL=yes
17620 USE_INCLUDED_LIBINTL=yes
17621 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
17622 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
17623 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
17626 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17627 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17628 CATOBJEXT=.gmo
17632 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17633 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17635 cat >>confdefs.h <<\_ACEOF
17636 #define ENABLE_NLS 1
17637 _ACEOF
17639 else
17640 USE_NLS=no
17644 if test "$USE_NLS" = "yes"; then
17646 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17647 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
17648 echo "$as_me:$LINENO: checking how to link with libintl" >&5
17649 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
17650 echo "$as_me:$LINENO: result: $LIBINTL" >&5
17651 echo "${ECHO_T}$LIBINTL" >&6
17653 for element in $INCINTL; do
17654 haveit=
17655 for x in $CPPFLAGS; do
17657 acl_save_prefix="$prefix"
17658 prefix="$acl_final_prefix"
17659 acl_save_exec_prefix="$exec_prefix"
17660 exec_prefix="$acl_final_exec_prefix"
17661 eval x=\"$x\"
17662 exec_prefix="$acl_save_exec_prefix"
17663 prefix="$acl_save_prefix"
17665 if test "X$x" = "X$element"; then
17666 haveit=yes
17667 break
17669 done
17670 if test -z "$haveit"; then
17671 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17673 done
17678 cat >>confdefs.h <<\_ACEOF
17679 #define HAVE_GETTEXT 1
17680 _ACEOF
17683 cat >>confdefs.h <<\_ACEOF
17684 #define HAVE_DCGETTEXT 1
17685 _ACEOF
17689 POSUB=po
17693 if test "$PACKAGE" = gettext; then
17694 BUILD_INCLUDED_LIBINTL=yes
17702 nls_cv_header_intl=
17703 nls_cv_header_libgt=
17705 DATADIRNAME=share
17708 INSTOBJEXT=.mo
17711 GENCAT=gencat
17714 INTL_LIBTOOL_SUFFIX_PREFIX=
17718 INTLLIBS="$LIBINTL"
17725 if test $USE_INCLUDED_LIBINTL = yes; then
17726 INCINTL=-I\${top_builddir}/intl
17730 if test x$USE_NLS = xyes; then
17732 echo "$as_me:$LINENO: checking for autopoint" >&5
17733 echo $ECHO_N "checking for autopoint... $ECHO_C" >&6
17734 autopoint_version=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
17735 if test -n "$autopoint_version"; then
17737 echo "$as_me:$LINENO: result: yes ($autopoint_version)" >&5
17738 echo "${ECHO_T}yes ($autopoint_version)" >&6
17741 else
17743 echo "$as_me:$LINENO: result: no" >&5
17744 echo "${ECHO_T}no" >&6
17745 USE_NLS=no
17752 if test x$USE_NLS = xno -a x${enable_nls:-yes} = xyes; then
17753 { echo "$as_me:$LINENO: WARNING: You need to install GNU gettext/gettext-tools to compile aMule with i18n support." >&5
17754 echo "$as_me: WARNING: You need to install GNU gettext/gettext-tools to compile aMule with i18n support." >&2;}
17758 if test ${USE_NLS:-no} = yes; then
17760 echo "$as_me:$LINENO: checking for requested languages" >&5
17761 echo $ECHO_N "checking for requested languages... $ECHO_C" >&6
17762 Generate_Langs=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
17764 if test "$AMULE_DAEMON" == "yes"; then
17766 if test -z "$LINGUAS"; then
17767 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
17768 else
17770 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17771 AMULE_DAEMON_MANPAGES="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
17775 AMULE_DAEMON_MANPAGES=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
17777 else
17778 AMULE_DAEMON_MANPAGES=
17784 if test "$AMULECMD" == "yes"; then
17786 if test -z "$LINGUAS"; then
17787 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
17788 else
17790 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17791 AMULECMD_MANPAGES="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
17795 AMULECMD_MANPAGES=`echo $AMULECMD_MANPAGES | tr -d '\n'`
17797 else
17798 AMULECMD_MANPAGES=
17804 if test "$WEB" == "yes"; then
17806 if test -z "$LINGUAS"; then
17807 WEB_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
17808 else
17810 WEB_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17811 WEB_MANPAGES="`basename docs/man/amuleweb.1` $WEB_MANPAGES"
17815 WEB_MANPAGES=`echo $WEB_MANPAGES | tr -d '\n'`
17817 else
17818 WEB_MANPAGES=
17824 if test "$AMULE_GUI" == "yes"; then
17826 if test -z "$LINGUAS"; then
17827 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
17828 else
17830 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17831 AMULE_GUI_MANPAGES="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
17835 AMULE_GUI_MANPAGES=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
17837 else
17838 AMULE_GUI_MANPAGES=
17844 if test "$CAS" == "yes"; then
17846 if test -z "$LINGUAS"; then
17847 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
17848 else
17850 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17851 CAS_MANPAGES="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
17855 CAS_MANPAGES=`echo $CAS_MANPAGES | tr -d '\n'`
17857 else
17858 CAS_MANPAGES=
17864 if test "$WXCAS" == "yes"; then
17866 if test -z "$LINGUAS"; then
17867 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
17868 else
17870 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17871 WXCAS_MANPAGES="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
17875 WXCAS_MANPAGES=`echo $WXCAS_MANPAGES | tr -d '\n'`
17877 else
17878 WXCAS_MANPAGES=
17884 if test "$ED2K" == "yes"; then
17886 if test -z "$LINGUAS"; then
17887 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
17888 else
17890 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17891 ED2K_MANPAGES="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
17895 ED2K_MANPAGES=`echo $ED2K_MANPAGES | tr -d '\n'`
17897 else
17898 ED2K_MANPAGES=
17904 if test "$ALC" == "yes"; then
17906 if test -z "$LINGUAS"; then
17907 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
17908 else
17910 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17911 ALC_MANPAGES="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
17915 ALC_MANPAGES=`echo $ALC_MANPAGES | tr -d '\n'`
17917 else
17918 ALC_MANPAGES=
17924 if test "$ALCC" == "yes"; then
17926 if test -z "$LINGUAS"; then
17927 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
17928 else
17930 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17931 ALCC_MANPAGES="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
17935 ALCC_MANPAGES=`echo $ALCC_MANPAGES | tr -d '\n'`
17937 else
17938 ALCC_MANPAGES=
17944 if test "$MONOLITHIC" == "yes"; then
17946 if test -z "$LINGUAS"; then
17947 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
17948 else
17950 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17951 MONOLITHIC_MANPAGES="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
17955 MONOLITHIC_MANPAGES=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
17957 else
17958 MONOLITHIC_MANPAGES=
17963 echo "$as_me:$LINENO: result: ${LINGUAS:-all}" >&5
17964 echo "${ECHO_T}${LINGUAS:-all}" >&6
17971 # Flush standard test results for speeding cache
17972 cat >confcache <<\_ACEOF
17973 # This file is a shell script that caches the results of configure
17974 # tests run on this system so they can be shared between configure
17975 # scripts and configure runs, see configure's option --config-cache.
17976 # It is not useful on other systems. If it contains results you don't
17977 # want to keep, you may remove or edit it.
17979 # config.status only pays attention to the cache file if you give it
17980 # the --recheck option to rerun configure.
17982 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17983 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17984 # following values.
17986 _ACEOF
17988 # The following way of writing the cache mishandles newlines in values,
17989 # but we know of no workaround that is simple, portable, and efficient.
17990 # So, don't put newlines in cache variables' values.
17991 # Ultrix sh set writes to stderr and can't be redirected directly,
17992 # and sets the high bit in the cache file unless we assign to the vars.
17994 (set) 2>&1 |
17995 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17996 *ac_space=\ *)
17997 # `set' does not quote correctly, so add quotes (double-quote
17998 # substitution turns \\\\ into \\, and sed turns \\ into \).
17999 sed -n \
18000 "s/'/'\\\\''/g;
18001 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18004 # `set' quotes correctly as required by POSIX, so do not add quotes.
18005 sed -n \
18006 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18008 esac;
18010 sed '
18011 t clear
18012 : clear
18013 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18014 t end
18015 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18016 : end' >>confcache
18017 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18018 if test -w $cache_file; then
18019 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18020 cat confcache >$cache_file
18021 else
18022 echo "not updating unwritable cache $cache_file"
18025 rm -f confcache
18027 # Other tests
18028 # aMule options
18031 # Check whether --enable-debug or --disable-debug was given.
18032 if test "${enable_debug+set}" = set; then
18033 enableval="$enable_debug"
18034 USE_DEBUG=${enableval:-yes}
18035 else
18036 USE_DEBUG=yes
18039 if test $USE_DEBUG = yes; then
18041 MULECPPFLAGS="$MULECPPFLAGS -D__DEBUG__"
18043 MULECFLAGS="$MULECFLAGS -g"
18044 MULECXXFLAGS="$MULECXXFLAGS -g"
18046 if test ${GLIBCXX:-no} = yes; then
18047 MULECPPFLAGS="$MULECPPFLAGS -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC"
18050 if test ${GCC:-no} = yes; then
18052 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18053 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18057 if test ${SYS:-unknown} = win32; then
18058 MULERCFLAGS="$MULERCFLAGS -D__DEBUG__"
18062 else
18064 if test ${GCC:-no} = yes; then
18066 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef"
18067 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef"
18076 # Check whether --enable-optimize or --disable-optimize was given.
18077 if test "${enable_optimize+set}" = set; then
18078 enableval="$enable_optimize"
18079 USE_OPTIMIZE=${enableval:-no}
18080 else
18081 USE_OPTIMIZE=no
18084 if test $USE_OPTIMIZE = yes; then
18086 MULECFLAGS="$MULECFLAGS -O2"
18087 MULECXXFLAGS="$MULECXXFLAGS -O2"
18093 # Check whether --enable-profile or --disable-profile was given.
18094 if test "${enable_profile+set}" = set; then
18095 enableval="$enable_profile"
18096 USE_PROFILE=${enableval:-no}
18097 else
18098 USE_PROFILE=no
18101 if test $USE_PROFILE = yes; then
18104 MULECFLAGS="$MULECFLAGS -pg"
18105 MULECXXFLAGS="$MULECXXFLAGS -pg"
18107 MULELDFLAGS="$MULELDFLAGS -pg"
18113 echo "$as_me:$LINENO: checking if the applications should be statically linked" >&5
18114 echo $ECHO_N "checking if the applications should be statically linked... $ECHO_C" >&6
18115 # Check whether --enable-static or --disable-static was given.
18116 if test "${enable_static+set}" = set; then
18117 enableval="$enable_static"
18118 if test ${enableval:-no} = yes; then
18119 MULELDFLAGS="$MULELDFLAGS -static"
18123 echo "$as_me:$LINENO: result: ${enableval:-no}" >&5
18124 echo "${ECHO_T}${enableval:-no}" >&6
18126 MULECPPFLAGS="$MULECPPFLAGS -DUSE_WX_EXTENSIONS"
18129 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
18130 echo "$as_me:$LINENO: checking for docdir" >&5
18131 echo $ECHO_N "checking for docdir... $ECHO_C" >&6
18132 if test -z "$docdir"; then
18133 docdir="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}"
18136 echo "$as_me:$LINENO: result: $docdir" >&5
18137 echo "${ECHO_T}$docdir" >&6
18139 # Try to set the SVN checkout-date
18140 echo "$as_me:$LINENO: checking for SVNDATE" >&5
18141 echo $ECHO_N "checking for SVNDATE... $ECHO_C" >&6
18142 if test -f "$srcdir/SVNDATE" # SVNDATE for tarballs
18143 then
18144 svndate=`cat $srcdir/SVNDATE`
18145 elif test -d $srcdir/.svn # SVNDATE for svn
18146 then
18147 svndate="rev. `svnversion $srcdir | sed -e 's/[0-9][0-9]*:\(.*\)/\1/' -e 's/\([0-9][0-9]*\).*/\1/'`"
18149 echo "$as_me:$LINENO: result: ${svndate:-None required}" >&5
18150 echo "${ECHO_T}${svndate:-None required}" >&6
18151 if test -n "$svndate"; then
18154 cat >>confdefs.h <<_ACEOF
18155 #define SVNDATE "$svndate"
18156 _ACEOF
18158 MULERCFLAGS="$MULERCFLAGS -D__PRERELEASE__"
18162 SVNDATE=$svndate
18166 # Check whether --with-denoise-level or --without-denoise-level was given.
18167 if test "${with_denoise_level+set}" = set; then
18168 withval="$with_denoise_level"
18172 echo "$as_me:$LINENO: checking denoising level" >&5
18173 echo $ECHO_N "checking denoising level... $ECHO_C" >&6
18174 if test ${with_denoise_level:-5} = yes; then
18175 with_denoise_level=5
18178 if test ${with_denoise_level:-5} = no; then
18179 with_denoise_level=0
18182 if test ${with_denoise_level:-5} -gt 4; then
18183 if test "${svndate:+set}" = "set"; then
18184 with_denoise_level=0
18185 else
18186 with_denoise_level=4
18191 echo "$as_me:$LINENO: result: $with_denoise_level" >&5
18192 echo "${ECHO_T}$with_denoise_level" >&6
18194 ac_config_commands="$ac_config_commands denoiser"
18200 if test x$WEB = xyes; then
18201 WEB_TRUE=
18202 WEB_FALSE='#'
18203 else
18204 WEB_TRUE='#'
18205 WEB_FALSE=
18210 if test x$ED2K = xyes; then
18211 ED2K_TRUE=
18212 ED2K_FALSE='#'
18213 else
18214 ED2K_TRUE='#'
18215 ED2K_FALSE=
18220 if test x$CAS = xyes; then
18221 CAS_TRUE=
18222 CAS_FALSE='#'
18223 else
18224 CAS_TRUE='#'
18225 CAS_FALSE=
18230 if test x$WXCAS = xyes; then
18231 WXCAS_TRUE=
18232 WXCAS_FALSE='#'
18233 else
18234 WXCAS_TRUE='#'
18235 WXCAS_FALSE=
18240 if test x$ALC = xyes; then
18241 ALC_TRUE=
18242 ALC_FALSE='#'
18243 else
18244 ALC_TRUE='#'
18245 ALC_FALSE=
18250 if test x$ALCC = xyes; then
18251 ALCC_TRUE=
18252 ALCC_FALSE='#'
18253 else
18254 ALCC_TRUE='#'
18255 ALCC_FALSE=
18260 if test x$AMULE_GUI = xyes; then
18261 AMULE_GUI_TRUE=
18262 AMULE_GUI_FALSE='#'
18263 else
18264 AMULE_GUI_TRUE='#'
18265 AMULE_GUI_FALSE=
18270 if test x$AMULE_DAEMON = xyes; then
18271 AMULE_DAEMON_TRUE=
18272 AMULE_DAEMON_FALSE='#'
18273 else
18274 AMULE_DAEMON_TRUE='#'
18275 AMULE_DAEMON_FALSE=
18280 if test x$AMULECMD = xyes; then
18281 COMPILE_CMD_TRUE=
18282 COMPILE_CMD_FALSE='#'
18283 else
18284 COMPILE_CMD_TRUE='#'
18285 COMPILE_CMD_FALSE=
18290 if test x$MONOLITHIC = xyes; then
18291 MONOLITHIC_TRUE=
18292 MONOLITHIC_FALSE='#'
18293 else
18294 MONOLITHIC_TRUE='#'
18295 MONOLITHIC_FALSE=
18300 if test x$ENABLE_UPNP = xyes -a x$SYS != xwin32; then
18301 ENABLE_UPNP_TRUE=
18302 ENABLE_UPNP_FALSE='#'
18303 else
18304 ENABLE_UPNP_TRUE='#'
18305 ENABLE_UPNP_FALSE=
18310 if test x$ENABLE_IP2COUNTRY = xyes; then
18311 ENABLE_IP2COUNTRY_TRUE=
18312 ENABLE_IP2COUNTRY_FALSE='#'
18313 else
18314 ENABLE_IP2COUNTRY_TRUE='#'
18315 ENABLE_IP2COUNTRY_FALSE=
18320 if test x$SYS = xwin32; then
18321 SYS_WIN32_TRUE=
18322 SYS_WIN32_FALSE='#'
18323 else
18324 SYS_WIN32_TRUE='#'
18325 SYS_WIN32_FALSE=
18330 if test x$SYS = xwin32 -a "$RC" != ":"; then
18331 NEED_RC_TRUE=
18332 NEED_RC_FALSE='#'
18333 else
18334 NEED_RC_TRUE='#'
18335 NEED_RC_FALSE=
18340 if test x$SYS = xdarwin; then
18341 NEED_CORESERVICES_TRUE=
18342 NEED_CORESERVICES_FALSE='#'
18343 else
18344 NEED_CORESERVICES_TRUE='#'
18345 NEED_CORESERVICES_FALSE=
18350 if test x$USE_NLS = xyes; then
18351 COMPILE_NLS_TRUE=
18352 COMPILE_NLS_FALSE='#'
18353 else
18354 COMPILE_NLS_TRUE='#'
18355 COMPILE_NLS_FALSE=
18360 if test x$HAVE_FLEX_EXTENDED = xyes; then
18361 GENERATE_FLEX_HEADER_TRUE=
18362 GENERATE_FLEX_HEADER_FALSE='#'
18363 else
18364 GENERATE_FLEX_HEADER_TRUE='#'
18365 GENERATE_FLEX_HEADER_FALSE=
18369 # Check for readline library
18370 if test x$AMULECMD = xyes -o x$WEB = xyes; then
18372 echo "$as_me:$LINENO: checking for a readline compatible library" >&5
18373 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6
18374 if test "${vl_cv_lib_readline+set}" = set; then
18375 echo $ECHO_N "(cached) $ECHO_C" >&6
18376 else
18378 ORIG_LIBS="$LIBS"
18379 for readline_lib in readline edit editline; do
18380 for termcap_lib in "" termcap curses ncurses; do
18381 if test -z "$termcap_lib"; then
18382 TRY_LIB="-l$readline_lib"
18383 else
18384 TRY_LIB="-l$readline_lib -l$termcap_lib"
18386 LIBS="$ORIG_LIBS $TRY_LIB"
18387 cat >conftest.$ac_ext <<_ACEOF
18388 /* confdefs.h. */
18389 _ACEOF
18390 cat confdefs.h >>conftest.$ac_ext
18391 cat >>conftest.$ac_ext <<_ACEOF
18392 /* end confdefs.h. */
18394 /* Override any gcc2 internal prototype to avoid an error. */
18395 #ifdef __cplusplus
18396 extern "C"
18397 #endif
18398 /* We use char because int might match the return type of a gcc2
18399 builtin and then its argument prototype would still apply. */
18400 char readline ();
18402 main ()
18404 readline ();
18406 return 0;
18408 _ACEOF
18409 rm -f conftest.$ac_objext conftest$ac_exeext
18410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18411 (eval $ac_link) 2>conftest.er1
18412 ac_status=$?
18413 grep -v '^ *+' conftest.er1 >conftest.err
18414 rm -f conftest.er1
18415 cat conftest.err >&5
18416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); } &&
18418 { ac_try='test -z "$ac_c_werror_flag"
18419 || test ! -s conftest.err'
18420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18421 (eval $ac_try) 2>&5
18422 ac_status=$?
18423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424 (exit $ac_status); }; } &&
18425 { ac_try='test -s conftest$ac_exeext'
18426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18427 (eval $ac_try) 2>&5
18428 ac_status=$?
18429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430 (exit $ac_status); }; }; then
18431 vl_cv_lib_readline="$TRY_LIB"
18432 else
18433 echo "$as_me: failed program was:" >&5
18434 sed 's/^/| /' conftest.$ac_ext >&5
18437 rm -f conftest.err conftest.$ac_objext \
18438 conftest$ac_exeext conftest.$ac_ext
18439 if test -n "$vl_cv_lib_readline"; then
18440 break
18442 done
18443 if test -n "$vl_cv_lib_readline"; then
18444 break
18446 done
18447 if test -z "$vl_cv_lib_readline"; then
18448 vl_cv_lib_readline="no"
18449 LIBS="$ORIG_LIBS"
18450 READLINE_LIBS=""
18451 else
18452 READLINE_LIBS="$vl_cv_lib_readline"
18456 echo "$as_me:$LINENO: result: $vl_cv_lib_readline" >&5
18457 echo "${ECHO_T}$vl_cv_lib_readline" >&6
18459 if test "$vl_cv_lib_readline" != "no"; then
18461 cat >>confdefs.h <<\_ACEOF
18462 #define HAVE_LIBREADLINE 1
18463 _ACEOF
18467 for ac_header in readline.h readline/readline.h
18469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18471 echo "$as_me:$LINENO: checking for $ac_header" >&5
18472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18474 echo $ECHO_N "(cached) $ECHO_C" >&6
18476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18478 else
18479 # Is the header compilable?
18480 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18481 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18482 cat >conftest.$ac_ext <<_ACEOF
18483 /* confdefs.h. */
18484 _ACEOF
18485 cat confdefs.h >>conftest.$ac_ext
18486 cat >>conftest.$ac_ext <<_ACEOF
18487 /* end confdefs.h. */
18488 $ac_includes_default
18489 #include <$ac_header>
18490 _ACEOF
18491 rm -f conftest.$ac_objext
18492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18493 (eval $ac_compile) 2>conftest.er1
18494 ac_status=$?
18495 grep -v '^ *+' conftest.er1 >conftest.err
18496 rm -f conftest.er1
18497 cat conftest.err >&5
18498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18499 (exit $ac_status); } &&
18500 { ac_try='test -z "$ac_c_werror_flag"
18501 || test ! -s conftest.err'
18502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18503 (eval $ac_try) 2>&5
18504 ac_status=$?
18505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506 (exit $ac_status); }; } &&
18507 { ac_try='test -s conftest.$ac_objext'
18508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18509 (eval $ac_try) 2>&5
18510 ac_status=$?
18511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512 (exit $ac_status); }; }; then
18513 ac_header_compiler=yes
18514 else
18515 echo "$as_me: failed program was:" >&5
18516 sed 's/^/| /' conftest.$ac_ext >&5
18518 ac_header_compiler=no
18520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18521 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18522 echo "${ECHO_T}$ac_header_compiler" >&6
18524 # Is the header present?
18525 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18526 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18527 cat >conftest.$ac_ext <<_ACEOF
18528 /* confdefs.h. */
18529 _ACEOF
18530 cat confdefs.h >>conftest.$ac_ext
18531 cat >>conftest.$ac_ext <<_ACEOF
18532 /* end confdefs.h. */
18533 #include <$ac_header>
18534 _ACEOF
18535 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18536 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18537 ac_status=$?
18538 grep -v '^ *+' conftest.er1 >conftest.err
18539 rm -f conftest.er1
18540 cat conftest.err >&5
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); } >/dev/null; then
18543 if test -s conftest.err; then
18544 ac_cpp_err=$ac_c_preproc_warn_flag
18545 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18546 else
18547 ac_cpp_err=
18549 else
18550 ac_cpp_err=yes
18552 if test -z "$ac_cpp_err"; then
18553 ac_header_preproc=yes
18554 else
18555 echo "$as_me: failed program was:" >&5
18556 sed 's/^/| /' conftest.$ac_ext >&5
18558 ac_header_preproc=no
18560 rm -f conftest.err conftest.$ac_ext
18561 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18562 echo "${ECHO_T}$ac_header_preproc" >&6
18564 # So? What about this header?
18565 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18566 yes:no: )
18567 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18568 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18570 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18571 ac_header_preproc=yes
18573 no:yes:* )
18574 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18575 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18576 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18577 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18578 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18579 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18580 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18581 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18583 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18584 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18585 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18587 cat <<\_ASBOX
18588 ## ------------------------------ ##
18589 ## Report this to admin@amule.org ##
18590 ## ------------------------------ ##
18591 _ASBOX
18593 sed "s/^/$as_me: WARNING: /" >&2
18595 esac
18596 echo "$as_me:$LINENO: checking for $ac_header" >&5
18597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18599 echo $ECHO_N "(cached) $ECHO_C" >&6
18600 else
18601 eval "$as_ac_Header=\$ac_header_preproc"
18603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18608 cat >>confdefs.h <<_ACEOF
18609 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18610 _ACEOF
18614 done
18616 echo "$as_me:$LINENO: checking whether readline supports history" >&5
18617 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6
18618 if test "${vl_cv_lib_readline_history+set}" = set; then
18619 echo $ECHO_N "(cached) $ECHO_C" >&6
18620 else
18622 vl_cv_lib_readline_history="no"
18623 cat >conftest.$ac_ext <<_ACEOF
18624 /* confdefs.h. */
18625 _ACEOF
18626 cat confdefs.h >>conftest.$ac_ext
18627 cat >>conftest.$ac_ext <<_ACEOF
18628 /* end confdefs.h. */
18630 /* Override any gcc2 internal prototype to avoid an error. */
18631 #ifdef __cplusplus
18632 extern "C"
18633 #endif
18634 /* We use char because int might match the return type of a gcc2
18635 builtin and then its argument prototype would still apply. */
18636 char add_history ();
18638 main ()
18640 add_history ();
18642 return 0;
18644 _ACEOF
18645 rm -f conftest.$ac_objext conftest$ac_exeext
18646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18647 (eval $ac_link) 2>conftest.er1
18648 ac_status=$?
18649 grep -v '^ *+' conftest.er1 >conftest.err
18650 rm -f conftest.er1
18651 cat conftest.err >&5
18652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653 (exit $ac_status); } &&
18654 { ac_try='test -z "$ac_c_werror_flag"
18655 || test ! -s conftest.err'
18656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18657 (eval $ac_try) 2>&5
18658 ac_status=$?
18659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660 (exit $ac_status); }; } &&
18661 { ac_try='test -s conftest$ac_exeext'
18662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18663 (eval $ac_try) 2>&5
18664 ac_status=$?
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); }; }; then
18667 vl_cv_lib_readline_history="yes"
18668 else
18669 echo "$as_me: failed program was:" >&5
18670 sed 's/^/| /' conftest.$ac_ext >&5
18673 rm -f conftest.err conftest.$ac_objext \
18674 conftest$ac_exeext conftest.$ac_ext
18677 echo "$as_me:$LINENO: result: $vl_cv_lib_readline_history" >&5
18678 echo "${ECHO_T}$vl_cv_lib_readline_history" >&6
18679 if test "$vl_cv_lib_readline_history" = "yes"; then
18681 cat >>confdefs.h <<\_ACEOF
18682 #define HAVE_READLINE_HISTORY 1
18683 _ACEOF
18687 for ac_header in history.h readline/history.h
18689 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18691 echo "$as_me:$LINENO: checking for $ac_header" >&5
18692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18694 echo $ECHO_N "(cached) $ECHO_C" >&6
18696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18697 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18698 else
18699 # Is the header compilable?
18700 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18701 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18702 cat >conftest.$ac_ext <<_ACEOF
18703 /* confdefs.h. */
18704 _ACEOF
18705 cat confdefs.h >>conftest.$ac_ext
18706 cat >>conftest.$ac_ext <<_ACEOF
18707 /* end confdefs.h. */
18708 $ac_includes_default
18709 #include <$ac_header>
18710 _ACEOF
18711 rm -f conftest.$ac_objext
18712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18713 (eval $ac_compile) 2>conftest.er1
18714 ac_status=$?
18715 grep -v '^ *+' conftest.er1 >conftest.err
18716 rm -f conftest.er1
18717 cat conftest.err >&5
18718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719 (exit $ac_status); } &&
18720 { ac_try='test -z "$ac_c_werror_flag"
18721 || test ! -s conftest.err'
18722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18723 (eval $ac_try) 2>&5
18724 ac_status=$?
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); }; } &&
18727 { ac_try='test -s conftest.$ac_objext'
18728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18729 (eval $ac_try) 2>&5
18730 ac_status=$?
18731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732 (exit $ac_status); }; }; then
18733 ac_header_compiler=yes
18734 else
18735 echo "$as_me: failed program was:" >&5
18736 sed 's/^/| /' conftest.$ac_ext >&5
18738 ac_header_compiler=no
18740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18741 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18742 echo "${ECHO_T}$ac_header_compiler" >&6
18744 # Is the header present?
18745 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18746 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18747 cat >conftest.$ac_ext <<_ACEOF
18748 /* confdefs.h. */
18749 _ACEOF
18750 cat confdefs.h >>conftest.$ac_ext
18751 cat >>conftest.$ac_ext <<_ACEOF
18752 /* end confdefs.h. */
18753 #include <$ac_header>
18754 _ACEOF
18755 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18756 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18757 ac_status=$?
18758 grep -v '^ *+' conftest.er1 >conftest.err
18759 rm -f conftest.er1
18760 cat conftest.err >&5
18761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762 (exit $ac_status); } >/dev/null; then
18763 if test -s conftest.err; then
18764 ac_cpp_err=$ac_c_preproc_warn_flag
18765 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18766 else
18767 ac_cpp_err=
18769 else
18770 ac_cpp_err=yes
18772 if test -z "$ac_cpp_err"; then
18773 ac_header_preproc=yes
18774 else
18775 echo "$as_me: failed program was:" >&5
18776 sed 's/^/| /' conftest.$ac_ext >&5
18778 ac_header_preproc=no
18780 rm -f conftest.err conftest.$ac_ext
18781 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18782 echo "${ECHO_T}$ac_header_preproc" >&6
18784 # So? What about this header?
18785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18786 yes:no: )
18787 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18788 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18790 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18791 ac_header_preproc=yes
18793 no:yes:* )
18794 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18795 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18796 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18797 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18798 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18799 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18800 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18801 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18804 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18805 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18807 cat <<\_ASBOX
18808 ## ------------------------------ ##
18809 ## Report this to admin@amule.org ##
18810 ## ------------------------------ ##
18811 _ASBOX
18813 sed "s/^/$as_me: WARNING: /" >&2
18815 esac
18816 echo "$as_me:$LINENO: checking for $ac_header" >&5
18817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18819 echo $ECHO_N "(cached) $ECHO_C" >&6
18820 else
18821 eval "$as_ac_Header=\$ac_header_preproc"
18823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18824 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18828 cat >>confdefs.h <<_ACEOF
18829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18830 _ACEOF
18834 done
18839 LIBS="$ORIG_LIBS"
18843 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
18846 # Check whether --enable-ccache or --disable-ccache was given.
18847 if test "${enable_ccache+set}" = set; then
18848 enableval="$enable_ccache"
18853 # Check whether --with-ccache-prefix or --without-ccache-prefix was given.
18854 if test "${with_ccache_prefix+set}" = set; then
18855 withval="$with_ccache_prefix"
18859 echo "$as_me:$LINENO: checking whether ccache support should be added" >&5
18860 echo $ECHO_N "checking whether ccache support should be added... $ECHO_C" >&6
18861 echo "$as_me:$LINENO: result: ${enable_ccache:-no}" >&5
18862 echo "${ECHO_T}${enable_ccache:-no}" >&6
18864 if test ${enable_ccache:-no} = yes; then
18866 echo "$as_me:$LINENO: checking for ccache presence" >&5
18867 echo $ECHO_N "checking for ccache presence... $ECHO_C" >&6
18868 if test -z "$with_ccache_prefix"; then
18870 ccache_full=`which ccache`
18871 with_ccache_prefix=`dirname ${ccache_full}`
18875 if $with_ccache_prefix/ccache -V >/dev/null 2>&1; then
18877 echo "$as_me:$LINENO: result: yes" >&5
18878 echo "${ECHO_T}yes" >&6
18879 CC="$with_ccache_prefix/ccache $CC"
18880 CXX="$with_ccache_prefix/ccache $CXX"
18881 BUILD_CC="$with_ccache_prefix/ccache $BUILD_CC"
18883 else
18885 echo "$as_me:$LINENO: result: no" >&5
18886 echo "${ECHO_T}no" >&6
18895 ac_config_files="$ac_config_files Makefile docs/Makefile docs/man/Makefile intl/Makefile src/Makefile src/pixmaps/Makefile src/pixmaps/flags_xpm/Makefile src/libs/Makefile src/libs/ec/Makefile src/libs/ec/cpp/Makefile src/libs/common/Makefile src/utils/Makefile src/utils/aLinkCreator/Makefile src/utils/aLinkCreator/docs/Makefile src/utils/aLinkCreator/src/Makefile src/utils/cas/Makefile src/utils/cas/docs/Makefile src/utils/fileview/Makefile src/utils/wxCas/Makefile src/utils/wxCas/docs/Makefile src/utils/wxCas/src/Makefile src/utils/xas/Makefile src/utils/xas/autostart-xas src/utils/xas/docs/Makefile src/skins/Makefile src/webserver/Makefile src/webserver/src/Makefile src/webserver/default/Makefile src/webserver/php-default/Makefile src/webserver/chicane/Makefile src/webserver/litoral/Makefile unittests/Makefile unittests/muleunit/Makefile unittests/tests/Makefile"
18897 ac_config_files="$ac_config_files po/Makefile.in Compilation.flags"
18899 if test x$SYS = xwin32; then
18900 ac_config_files="$ac_config_files version.rc"
18904 cat >confcache <<\_ACEOF
18905 # This file is a shell script that caches the results of configure
18906 # tests run on this system so they can be shared between configure
18907 # scripts and configure runs, see configure's option --config-cache.
18908 # It is not useful on other systems. If it contains results you don't
18909 # want to keep, you may remove or edit it.
18911 # config.status only pays attention to the cache file if you give it
18912 # the --recheck option to rerun configure.
18914 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18915 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18916 # following values.
18918 _ACEOF
18920 # The following way of writing the cache mishandles newlines in values,
18921 # but we know of no workaround that is simple, portable, and efficient.
18922 # So, don't put newlines in cache variables' values.
18923 # Ultrix sh set writes to stderr and can't be redirected directly,
18924 # and sets the high bit in the cache file unless we assign to the vars.
18926 (set) 2>&1 |
18927 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18928 *ac_space=\ *)
18929 # `set' does not quote correctly, so add quotes (double-quote
18930 # substitution turns \\\\ into \\, and sed turns \\ into \).
18931 sed -n \
18932 "s/'/'\\\\''/g;
18933 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18936 # `set' quotes correctly as required by POSIX, so do not add quotes.
18937 sed -n \
18938 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18940 esac;
18942 sed '
18943 t clear
18944 : clear
18945 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18946 t end
18947 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18948 : end' >>confcache
18949 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18950 if test -w $cache_file; then
18951 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18952 cat confcache >$cache_file
18953 else
18954 echo "not updating unwritable cache $cache_file"
18957 rm -f confcache
18959 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18960 # Let make expand exec_prefix.
18961 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18963 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18964 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18965 # trailing colons and then remove the whole line if VPATH becomes empty
18966 # (actually we leave an empty line to preserve line numbers).
18967 if test "x$srcdir" = x.; then
18968 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18969 s/:*\$(srcdir):*/:/;
18970 s/:*\${srcdir}:*/:/;
18971 s/:*@srcdir@:*/:/;
18972 s/^\([^=]*=[ ]*\):*/\1/;
18973 s/:*$//;
18974 s/^[^=]*=[ ]*$//;
18978 DEFS=-DHAVE_CONFIG_H
18980 ac_libobjs=
18981 ac_ltlibobjs=
18982 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18983 # 1. Remove the extension, and $U if already installed.
18984 ac_i=`echo "$ac_i" |
18985 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18986 # 2. Add them.
18987 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18988 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18989 done
18990 LIBOBJS=$ac_libobjs
18992 LTLIBOBJS=$ac_ltlibobjs
18995 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18996 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
18997 Usually this means the macro was only invoked conditionally." >&5
18998 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
18999 Usually this means the macro was only invoked conditionally." >&2;}
19000 { (exit 1); exit 1; }; }
19002 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19003 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19004 Usually this means the macro was only invoked conditionally." >&5
19005 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19006 Usually this means the macro was only invoked conditionally." >&2;}
19007 { (exit 1); exit 1; }; }
19009 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19010 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19011 Usually this means the macro was only invoked conditionally." >&5
19012 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19013 Usually this means the macro was only invoked conditionally." >&2;}
19014 { (exit 1); exit 1; }; }
19016 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19017 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19018 Usually this means the macro was only invoked conditionally." >&5
19019 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19020 Usually this means the macro was only invoked conditionally." >&2;}
19021 { (exit 1); exit 1; }; }
19023 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
19024 { { echo "$as_me:$LINENO: error: conditional \"WEB\" was never defined.
19025 Usually this means the macro was only invoked conditionally." >&5
19026 echo "$as_me: error: conditional \"WEB\" was never defined.
19027 Usually this means the macro was only invoked conditionally." >&2;}
19028 { (exit 1); exit 1; }; }
19030 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
19031 { { echo "$as_me:$LINENO: error: conditional \"ED2K\" was never defined.
19032 Usually this means the macro was only invoked conditionally." >&5
19033 echo "$as_me: error: conditional \"ED2K\" was never defined.
19034 Usually this means the macro was only invoked conditionally." >&2;}
19035 { (exit 1); exit 1; }; }
19037 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
19038 { { echo "$as_me:$LINENO: error: conditional \"CAS\" was never defined.
19039 Usually this means the macro was only invoked conditionally." >&5
19040 echo "$as_me: error: conditional \"CAS\" was never defined.
19041 Usually this means the macro was only invoked conditionally." >&2;}
19042 { (exit 1); exit 1; }; }
19044 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
19045 { { echo "$as_me:$LINENO: error: conditional \"WXCAS\" was never defined.
19046 Usually this means the macro was only invoked conditionally." >&5
19047 echo "$as_me: error: conditional \"WXCAS\" was never defined.
19048 Usually this means the macro was only invoked conditionally." >&2;}
19049 { (exit 1); exit 1; }; }
19051 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
19052 { { echo "$as_me:$LINENO: error: conditional \"ALC\" was never defined.
19053 Usually this means the macro was only invoked conditionally." >&5
19054 echo "$as_me: error: conditional \"ALC\" was never defined.
19055 Usually this means the macro was only invoked conditionally." >&2;}
19056 { (exit 1); exit 1; }; }
19058 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
19059 { { echo "$as_me:$LINENO: error: conditional \"ALCC\" was never defined.
19060 Usually this means the macro was only invoked conditionally." >&5
19061 echo "$as_me: error: conditional \"ALCC\" was never defined.
19062 Usually this means the macro was only invoked conditionally." >&2;}
19063 { (exit 1); exit 1; }; }
19065 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
19066 { { echo "$as_me:$LINENO: error: conditional \"AMULE_GUI\" was never defined.
19067 Usually this means the macro was only invoked conditionally." >&5
19068 echo "$as_me: error: conditional \"AMULE_GUI\" was never defined.
19069 Usually this means the macro was only invoked conditionally." >&2;}
19070 { (exit 1); exit 1; }; }
19072 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
19073 { { echo "$as_me:$LINENO: error: conditional \"AMULE_DAEMON\" was never defined.
19074 Usually this means the macro was only invoked conditionally." >&5
19075 echo "$as_me: error: conditional \"AMULE_DAEMON\" was never defined.
19076 Usually this means the macro was only invoked conditionally." >&2;}
19077 { (exit 1); exit 1; }; }
19079 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
19080 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_CMD\" was never defined.
19081 Usually this means the macro was only invoked conditionally." >&5
19082 echo "$as_me: error: conditional \"COMPILE_CMD\" was never defined.
19083 Usually this means the macro was only invoked conditionally." >&2;}
19084 { (exit 1); exit 1; }; }
19086 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
19087 { { echo "$as_me:$LINENO: error: conditional \"MONOLITHIC\" was never defined.
19088 Usually this means the macro was only invoked conditionally." >&5
19089 echo "$as_me: error: conditional \"MONOLITHIC\" was never defined.
19090 Usually this means the macro was only invoked conditionally." >&2;}
19091 { (exit 1); exit 1; }; }
19093 if test -z "${ENABLE_UPNP_TRUE}" && test -z "${ENABLE_UPNP_FALSE}"; then
19094 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_UPNP\" was never defined.
19095 Usually this means the macro was only invoked conditionally." >&5
19096 echo "$as_me: error: conditional \"ENABLE_UPNP\" was never defined.
19097 Usually this means the macro was only invoked conditionally." >&2;}
19098 { (exit 1); exit 1; }; }
19100 if test -z "${ENABLE_IP2COUNTRY_TRUE}" && test -z "${ENABLE_IP2COUNTRY_FALSE}"; then
19101 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
19102 Usually this means the macro was only invoked conditionally." >&5
19103 echo "$as_me: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
19104 Usually this means the macro was only invoked conditionally." >&2;}
19105 { (exit 1); exit 1; }; }
19107 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
19108 { { echo "$as_me:$LINENO: error: conditional \"SYS_WIN32\" was never defined.
19109 Usually this means the macro was only invoked conditionally." >&5
19110 echo "$as_me: error: conditional \"SYS_WIN32\" was never defined.
19111 Usually this means the macro was only invoked conditionally." >&2;}
19112 { (exit 1); exit 1; }; }
19114 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
19115 { { echo "$as_me:$LINENO: error: conditional \"NEED_RC\" was never defined.
19116 Usually this means the macro was only invoked conditionally." >&5
19117 echo "$as_me: error: conditional \"NEED_RC\" was never defined.
19118 Usually this means the macro was only invoked conditionally." >&2;}
19119 { (exit 1); exit 1; }; }
19121 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
19122 { { echo "$as_me:$LINENO: error: conditional \"NEED_CORESERVICES\" was never defined.
19123 Usually this means the macro was only invoked conditionally." >&5
19124 echo "$as_me: error: conditional \"NEED_CORESERVICES\" was never defined.
19125 Usually this means the macro was only invoked conditionally." >&2;}
19126 { (exit 1); exit 1; }; }
19128 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
19129 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_NLS\" was never defined.
19130 Usually this means the macro was only invoked conditionally." >&5
19131 echo "$as_me: error: conditional \"COMPILE_NLS\" was never defined.
19132 Usually this means the macro was only invoked conditionally." >&2;}
19133 { (exit 1); exit 1; }; }
19135 if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then
19136 { { echo "$as_me:$LINENO: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19137 Usually this means the macro was only invoked conditionally." >&5
19138 echo "$as_me: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19139 Usually this means the macro was only invoked conditionally." >&2;}
19140 { (exit 1); exit 1; }; }
19143 : ${CONFIG_STATUS=./config.status}
19144 ac_clean_files_save=$ac_clean_files
19145 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19146 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19147 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19148 cat >$CONFIG_STATUS <<_ACEOF
19149 #! $SHELL
19150 # Generated by $as_me.
19151 # Run this file to recreate the current configuration.
19152 # Compiler output produced by configure, useful for debugging
19153 # configure, is in config.log if it exists.
19155 debug=false
19156 ac_cs_recheck=false
19157 ac_cs_silent=false
19158 SHELL=\${CONFIG_SHELL-$SHELL}
19159 _ACEOF
19161 cat >>$CONFIG_STATUS <<\_ACEOF
19162 ## --------------------- ##
19163 ## M4sh Initialization. ##
19164 ## --------------------- ##
19166 # Be Bourne compatible
19167 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19168 emulate sh
19169 NULLCMD=:
19170 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19171 # is contrary to our usage. Disable this feature.
19172 alias -g '${1+"$@"}'='"$@"'
19173 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19174 set -o posix
19176 DUALCASE=1; export DUALCASE # for MKS sh
19178 # Support unset when possible.
19179 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19180 as_unset=unset
19181 else
19182 as_unset=false
19186 # Work around bugs in pre-3.0 UWIN ksh.
19187 $as_unset ENV MAIL MAILPATH
19188 PS1='$ '
19189 PS2='> '
19190 PS4='+ '
19192 # NLS nuisances.
19193 for as_var in \
19194 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19195 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19196 LC_TELEPHONE LC_TIME
19198 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19199 eval $as_var=C; export $as_var
19200 else
19201 $as_unset $as_var
19203 done
19205 # Required to use basename.
19206 if expr a : '\(a\)' >/dev/null 2>&1; then
19207 as_expr=expr
19208 else
19209 as_expr=false
19212 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19213 as_basename=basename
19214 else
19215 as_basename=false
19219 # Name of the executable.
19220 as_me=`$as_basename "$0" ||
19221 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19222 X"$0" : 'X\(//\)$' \| \
19223 X"$0" : 'X\(/\)$' \| \
19224 . : '\(.\)' 2>/dev/null ||
19225 echo X/"$0" |
19226 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19227 /^X\/\(\/\/\)$/{ s//\1/; q; }
19228 /^X\/\(\/\).*/{ s//\1/; q; }
19229 s/.*/./; q'`
19232 # PATH needs CR, and LINENO needs CR and PATH.
19233 # Avoid depending upon Character Ranges.
19234 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19235 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19236 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19237 as_cr_digits='0123456789'
19238 as_cr_alnum=$as_cr_Letters$as_cr_digits
19240 # The user is always right.
19241 if test "${PATH_SEPARATOR+set}" != set; then
19242 echo "#! /bin/sh" >conf$$.sh
19243 echo "exit 0" >>conf$$.sh
19244 chmod +x conf$$.sh
19245 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19246 PATH_SEPARATOR=';'
19247 else
19248 PATH_SEPARATOR=:
19250 rm -f conf$$.sh
19254 as_lineno_1=$LINENO
19255 as_lineno_2=$LINENO
19256 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19257 test "x$as_lineno_1" != "x$as_lineno_2" &&
19258 test "x$as_lineno_3" = "x$as_lineno_2" || {
19259 # Find who we are. Look in the path if we contain no path at all
19260 # relative or not.
19261 case $0 in
19262 *[\\/]* ) as_myself=$0 ;;
19263 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19264 for as_dir in $PATH
19266 IFS=$as_save_IFS
19267 test -z "$as_dir" && as_dir=.
19268 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19269 done
19272 esac
19273 # We did not find ourselves, most probably we were run as `sh COMMAND'
19274 # in which case we are not to be found in the path.
19275 if test "x$as_myself" = x; then
19276 as_myself=$0
19278 if test ! -f "$as_myself"; then
19279 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19280 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19281 { (exit 1); exit 1; }; }
19283 case $CONFIG_SHELL in
19285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19286 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19288 IFS=$as_save_IFS
19289 test -z "$as_dir" && as_dir=.
19290 for as_base in sh bash ksh sh5; do
19291 case $as_dir in
19293 if ("$as_dir/$as_base" -c '
19294 as_lineno_1=$LINENO
19295 as_lineno_2=$LINENO
19296 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19297 test "x$as_lineno_1" != "x$as_lineno_2" &&
19298 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19299 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19300 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19301 CONFIG_SHELL=$as_dir/$as_base
19302 export CONFIG_SHELL
19303 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19304 fi;;
19305 esac
19306 done
19307 done
19309 esac
19311 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19312 # uniformly replaced by the line number. The first 'sed' inserts a
19313 # line-number line before each line; the second 'sed' does the real
19314 # work. The second script uses 'N' to pair each line-number line
19315 # with the numbered line, and appends trailing '-' during
19316 # substitution so that $LINENO is not a special case at line end.
19317 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19318 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19319 sed '=' <$as_myself |
19320 sed '
19322 s,$,-,
19323 : loop
19324 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19325 t loop
19326 s,-$,,
19327 s,^['$as_cr_digits']*\n,,
19328 ' >$as_me.lineno &&
19329 chmod +x $as_me.lineno ||
19330 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19331 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19332 { (exit 1); exit 1; }; }
19334 # Don't try to exec as it changes $[0], causing all sort of problems
19335 # (the dirname of $[0] is not the place where we might find the
19336 # original and so on. Autoconf is especially sensible to this).
19337 . ./$as_me.lineno
19338 # Exit status is that of the last command.
19339 exit
19343 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19344 *c*,-n*) ECHO_N= ECHO_C='
19345 ' ECHO_T=' ' ;;
19346 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19347 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19348 esac
19350 if expr a : '\(a\)' >/dev/null 2>&1; then
19351 as_expr=expr
19352 else
19353 as_expr=false
19356 rm -f conf$$ conf$$.exe conf$$.file
19357 echo >conf$$.file
19358 if ln -s conf$$.file conf$$ 2>/dev/null; then
19359 # We could just check for DJGPP; but this test a) works b) is more generic
19360 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19361 if test -f conf$$.exe; then
19362 # Don't use ln at all; we don't have any links
19363 as_ln_s='cp -p'
19364 else
19365 as_ln_s='ln -s'
19367 elif ln conf$$.file conf$$ 2>/dev/null; then
19368 as_ln_s=ln
19369 else
19370 as_ln_s='cp -p'
19372 rm -f conf$$ conf$$.exe conf$$.file
19374 if mkdir -p . 2>/dev/null; then
19375 as_mkdir_p=:
19376 else
19377 test -d ./-p && rmdir ./-p
19378 as_mkdir_p=false
19381 as_executable_p="test -f"
19383 # Sed expression to map a string onto a valid CPP name.
19384 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19386 # Sed expression to map a string onto a valid variable name.
19387 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19390 # IFS
19391 # We need space, tab and new line, in precisely that order.
19392 as_nl='
19394 IFS=" $as_nl"
19396 # CDPATH.
19397 $as_unset CDPATH
19399 exec 6>&1
19401 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19402 # report actual input values of CONFIG_FILES etc. instead of their
19403 # values after options handling. Logging --version etc. is OK.
19404 exec 5>>config.log
19406 echo
19407 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19408 ## Running $as_me. ##
19409 _ASBOX
19410 } >&5
19411 cat >&5 <<_CSEOF
19413 This file was extended by aMule $as_me SVN, which was
19414 generated by GNU Autoconf 2.59. Invocation command line was
19416 CONFIG_FILES = $CONFIG_FILES
19417 CONFIG_HEADERS = $CONFIG_HEADERS
19418 CONFIG_LINKS = $CONFIG_LINKS
19419 CONFIG_COMMANDS = $CONFIG_COMMANDS
19420 $ $0 $@
19422 _CSEOF
19423 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19424 echo >&5
19425 _ACEOF
19427 # Files that config.status was made for.
19428 if test -n "$ac_config_files"; then
19429 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19432 if test -n "$ac_config_headers"; then
19433 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19436 if test -n "$ac_config_links"; then
19437 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19440 if test -n "$ac_config_commands"; then
19441 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19444 cat >>$CONFIG_STATUS <<\_ACEOF
19446 ac_cs_usage="\
19447 \`$as_me' instantiates files from templates according to the
19448 current configuration.
19450 Usage: $0 [OPTIONS] [FILE]...
19452 -h, --help print this help, then exit
19453 -V, --version print version number, then exit
19454 -q, --quiet do not print progress messages
19455 -d, --debug don't remove temporary files
19456 --recheck update $as_me by reconfiguring in the same conditions
19457 --file=FILE[:TEMPLATE]
19458 instantiate the configuration file FILE
19459 --header=FILE[:TEMPLATE]
19460 instantiate the configuration header FILE
19462 Configuration files:
19463 $config_files
19465 Configuration headers:
19466 $config_headers
19468 Configuration commands:
19469 $config_commands
19471 Report bugs to <bug-autoconf@gnu.org>."
19472 _ACEOF
19474 cat >>$CONFIG_STATUS <<_ACEOF
19475 ac_cs_version="\\
19476 aMule config.status SVN
19477 configured by $0, generated by GNU Autoconf 2.59,
19478 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19480 Copyright (C) 2003 Free Software Foundation, Inc.
19481 This config.status script is free software; the Free Software Foundation
19482 gives unlimited permission to copy, distribute and modify it."
19483 srcdir=$srcdir
19484 INSTALL="$INSTALL"
19485 _ACEOF
19487 cat >>$CONFIG_STATUS <<\_ACEOF
19488 # If no file are specified by the user, then we need to provide default
19489 # value. By we need to know if files were specified by the user.
19490 ac_need_defaults=:
19491 while test $# != 0
19493 case $1 in
19494 --*=*)
19495 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19496 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19497 ac_shift=:
19500 ac_option=$1
19501 ac_optarg=$2
19502 ac_shift=shift
19504 *) # This is not an option, so the user has probably given explicit
19505 # arguments.
19506 ac_option=$1
19507 ac_need_defaults=false;;
19508 esac
19510 case $ac_option in
19511 # Handling of the options.
19512 _ACEOF
19513 cat >>$CONFIG_STATUS <<\_ACEOF
19514 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19515 ac_cs_recheck=: ;;
19516 --version | --vers* | -V )
19517 echo "$ac_cs_version"; exit 0 ;;
19518 --he | --h)
19519 # Conflict between --help and --header
19520 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19521 Try \`$0 --help' for more information." >&5
19522 echo "$as_me: error: ambiguous option: $1
19523 Try \`$0 --help' for more information." >&2;}
19524 { (exit 1); exit 1; }; };;
19525 --help | --hel | -h )
19526 echo "$ac_cs_usage"; exit 0 ;;
19527 --debug | --d* | -d )
19528 debug=: ;;
19529 --file | --fil | --fi | --f )
19530 $ac_shift
19531 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19532 ac_need_defaults=false;;
19533 --header | --heade | --head | --hea )
19534 $ac_shift
19535 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19536 ac_need_defaults=false;;
19537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19538 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19539 ac_cs_silent=: ;;
19541 # This is an error.
19542 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19543 Try \`$0 --help' for more information." >&5
19544 echo "$as_me: error: unrecognized option: $1
19545 Try \`$0 --help' for more information." >&2;}
19546 { (exit 1); exit 1; }; } ;;
19548 *) ac_config_targets="$ac_config_targets $1" ;;
19550 esac
19551 shift
19552 done
19554 ac_configure_extra_args=
19556 if $ac_cs_silent; then
19557 exec 6>/dev/null
19558 ac_configure_extra_args="$ac_configure_extra_args --silent"
19561 _ACEOF
19562 cat >>$CONFIG_STATUS <<_ACEOF
19563 if \$ac_cs_recheck; then
19564 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19565 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19568 _ACEOF
19570 cat >>$CONFIG_STATUS <<_ACEOF
19572 # INIT-COMMANDS section.
19575 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19576 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
19577 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
19578 # from automake.
19579 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
19580 # Capture the value of LINGUAS because we need it to compute CATALOGS.
19581 LINGUAS="${LINGUAS-%UNSET%}"
19583 denoiserlevel=$with_denoise_level
19585 _ACEOF
19589 cat >>$CONFIG_STATUS <<\_ACEOF
19590 for ac_config_target in $ac_config_targets
19592 case "$ac_config_target" in
19593 # Handling of arguments.
19594 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19595 "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
19596 "docs/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/man/Makefile" ;;
19597 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
19598 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19599 "src/pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pixmaps/Makefile" ;;
19600 "src/pixmaps/flags_xpm/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
19601 "src/libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/Makefile" ;;
19602 "src/libs/ec/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/ec/Makefile" ;;
19603 "src/libs/ec/cpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
19604 "src/libs/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/common/Makefile" ;;
19605 "src/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
19606 "src/utils/aLinkCreator/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
19607 "src/utils/aLinkCreator/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
19608 "src/utils/aLinkCreator/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
19609 "src/utils/cas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/cas/Makefile" ;;
19610 "src/utils/cas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
19611 "src/utils/fileview/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/fileview/Makefile" ;;
19612 "src/utils/wxCas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
19613 "src/utils/wxCas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
19614 "src/utils/wxCas/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
19615 "src/utils/xas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/Makefile" ;;
19616 "src/utils/xas/autostart-xas" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
19617 "src/utils/xas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
19618 "src/skins/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/skins/Makefile" ;;
19619 "src/webserver/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/Makefile" ;;
19620 "src/webserver/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/src/Makefile" ;;
19621 "src/webserver/default/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/default/Makefile" ;;
19622 "src/webserver/php-default/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/php-default/Makefile" ;;
19623 "src/webserver/chicane/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/chicane/Makefile" ;;
19624 "src/webserver/litoral/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/litoral/Makefile" ;;
19625 "unittests/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/Makefile" ;;
19626 "unittests/muleunit/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/muleunit/Makefile" ;;
19627 "unittests/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/tests/Makefile" ;;
19628 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
19629 "Compilation.flags" ) CONFIG_FILES="$CONFIG_FILES Compilation.flags" ;;
19630 "version.rc" ) CONFIG_FILES="$CONFIG_FILES version.rc" ;;
19631 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19632 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
19633 "denoiser" ) CONFIG_COMMANDS="$CONFIG_COMMANDS denoiser" ;;
19634 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19635 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19636 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19637 { (exit 1); exit 1; }; };;
19638 esac
19639 done
19641 # If the user did not use the arguments to specify the items to instantiate,
19642 # then the envvar interface is used. Set only those that are not.
19643 # We use the long form for the default assignment because of an extremely
19644 # bizarre bug on SunOS 4.1.3.
19645 if $ac_need_defaults; then
19646 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19647 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19648 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19651 # Have a temporary directory for convenience. Make it in the build tree
19652 # simply because there is no reason to put it here, and in addition,
19653 # creating and moving files from /tmp can sometimes cause problems.
19654 # Create a temporary directory, and hook for its removal unless debugging.
19655 $debug ||
19657 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19658 trap '{ (exit 1); exit 1; }' 1 2 13 15
19661 # Create a (secure) tmp directory for tmp files.
19664 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19665 test -n "$tmp" && test -d "$tmp"
19666 } ||
19668 tmp=./confstat$$-$RANDOM
19669 (umask 077 && mkdir $tmp)
19670 } ||
19672 echo "$me: cannot create a temporary directory in ." >&2
19673 { (exit 1); exit 1; }
19676 _ACEOF
19678 cat >>$CONFIG_STATUS <<_ACEOF
19681 # CONFIG_FILES section.
19684 # No need to generate the scripts if there are no CONFIG_FILES.
19685 # This happens for instance when ./config.status config.h
19686 if test -n "\$CONFIG_FILES"; then
19687 # Protect against being on the right side of a sed subst in config.status.
19688 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19689 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19690 s,@SHELL@,$SHELL,;t t
19691 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19692 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19693 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19694 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19695 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19696 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19697 s,@exec_prefix@,$exec_prefix,;t t
19698 s,@prefix@,$prefix,;t t
19699 s,@program_transform_name@,$program_transform_name,;t t
19700 s,@bindir@,$bindir,;t t
19701 s,@sbindir@,$sbindir,;t t
19702 s,@libexecdir@,$libexecdir,;t t
19703 s,@datadir@,$datadir,;t t
19704 s,@sysconfdir@,$sysconfdir,;t t
19705 s,@sharedstatedir@,$sharedstatedir,;t t
19706 s,@localstatedir@,$localstatedir,;t t
19707 s,@libdir@,$libdir,;t t
19708 s,@includedir@,$includedir,;t t
19709 s,@oldincludedir@,$oldincludedir,;t t
19710 s,@infodir@,$infodir,;t t
19711 s,@mandir@,$mandir,;t t
19712 s,@build_alias@,$build_alias,;t t
19713 s,@host_alias@,$host_alias,;t t
19714 s,@target_alias@,$target_alias,;t t
19715 s,@DEFS@,$DEFS,;t t
19716 s,@ECHO_C@,$ECHO_C,;t t
19717 s,@ECHO_N@,$ECHO_N,;t t
19718 s,@ECHO_T@,$ECHO_T,;t t
19719 s,@LIBS@,$LIBS,;t t
19720 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19721 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19722 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19723 s,@CYGPATH_W@,$CYGPATH_W,;t t
19724 s,@PACKAGE@,$PACKAGE,;t t
19725 s,@VERSION@,$VERSION,;t t
19726 s,@ACLOCAL@,$ACLOCAL,;t t
19727 s,@AUTOCONF@,$AUTOCONF,;t t
19728 s,@AUTOMAKE@,$AUTOMAKE,;t t
19729 s,@AUTOHEADER@,$AUTOHEADER,;t t
19730 s,@MAKEINFO@,$MAKEINFO,;t t
19731 s,@install_sh@,$install_sh,;t t
19732 s,@STRIP@,$STRIP,;t t
19733 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19734 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
19735 s,@mkdir_p@,$mkdir_p,;t t
19736 s,@AWK@,$AWK,;t t
19737 s,@SET_MAKE@,$SET_MAKE,;t t
19738 s,@am__leading_dot@,$am__leading_dot,;t t
19739 s,@AMTAR@,$AMTAR,;t t
19740 s,@am__tar@,$am__tar,;t t
19741 s,@am__untar@,$am__untar,;t t
19742 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
19743 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
19744 s,@MAINT@,$MAINT,;t t
19745 s,@build@,$build,;t t
19746 s,@build_cpu@,$build_cpu,;t t
19747 s,@build_vendor@,$build_vendor,;t t
19748 s,@build_os@,$build_os,;t t
19749 s,@host@,$host,;t t
19750 s,@host_cpu@,$host_cpu,;t t
19751 s,@host_vendor@,$host_vendor,;t t
19752 s,@host_os@,$host_os,;t t
19753 s,@RESOLV_LIB@,$RESOLV_LIB,;t t
19754 s,@X11LIBS@,$X11LIBS,;t t
19755 s,@MULECPPFLAGS@,$MULECPPFLAGS,;t t
19756 s,@MULECFLAGS@,$MULECFLAGS,;t t
19757 s,@MULECXXFLAGS@,$MULECXXFLAGS,;t t
19758 s,@MULELDFLAGS@,$MULELDFLAGS,;t t
19759 s,@MULERCFLAGS@,$MULERCFLAGS,;t t
19760 s,@CXX@,$CXX,;t t
19761 s,@CXXFLAGS@,$CXXFLAGS,;t t
19762 s,@LDFLAGS@,$LDFLAGS,;t t
19763 s,@CPPFLAGS@,$CPPFLAGS,;t t
19764 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19765 s,@EXEEXT@,$EXEEXT,;t t
19766 s,@OBJEXT@,$OBJEXT,;t t
19767 s,@DEPDIR@,$DEPDIR,;t t
19768 s,@am__include@,$am__include,;t t
19769 s,@am__quote@,$am__quote,;t t
19770 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
19771 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
19772 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
19773 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
19774 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
19775 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
19776 s,@CXXCPP@,$CXXCPP,;t t
19777 s,@CC@,$CC,;t t
19778 s,@CFLAGS@,$CFLAGS,;t t
19779 s,@ac_ct_CC@,$ac_ct_CC,;t t
19780 s,@CCDEPMODE@,$CCDEPMODE,;t t
19781 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
19782 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
19783 s,@CPP@,$CPP,;t t
19784 s,@BUILD_CC@,$BUILD_CC,;t t
19785 s,@ac_ct_BUILD_CC@,$ac_ct_BUILD_CC,;t t
19786 s,@EXEEXT@,$EXEEXT,;t t
19787 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
19788 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
19789 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
19790 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
19791 s,@EGREP@,$EGREP,;t t
19792 s,@LEX@,$LEX,;t t
19793 s,@LEXLIB@,$LEXLIB,;t t
19794 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
19795 s,@RANLIB@,$RANLIB,;t t
19796 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19797 s,@YACC@,$YACC,;t t
19798 s,@AR@,$AR,;t t
19799 s,@ac_ct_AR@,$ac_ct_AR,;t t
19800 s,@LD@,$LD,;t t
19801 s,@ac_ct_LD@,$ac_ct_LD,;t t
19802 s,@ZLIB_CPPFLAGS@,$ZLIB_CPPFLAGS,;t t
19803 s,@ZLIB_LDFLAGS@,$ZLIB_LDFLAGS,;t t
19804 s,@ZLIB_LIBS@,$ZLIB_LIBS,;t t
19805 s,@GDLIB_CONFIG_PATH@,$GDLIB_CONFIG_PATH,;t t
19806 s,@GDLIB_CFLAGS@,$GDLIB_CFLAGS,;t t
19807 s,@GDLIB_LDFLAGS@,$GDLIB_LDFLAGS,;t t
19808 s,@GDLIB_LIBS@,$GDLIB_LIBS,;t t
19809 s,@CAS_DEFS@,$CAS_DEFS,;t t
19810 s,@REGEX_LIBS@,$REGEX_LIBS,;t t
19811 s,@LIBPNG_CONFIG_PATH@,$LIBPNG_CONFIG_PATH,;t t
19812 s,@LIBPNG_CFLAGS@,$LIBPNG_CFLAGS,;t t
19813 s,@LIBPNG_LDFLAGS@,$LIBPNG_LDFLAGS,;t t
19814 s,@LIBPNG_LIBS@,$LIBPNG_LIBS,;t t
19815 s,@AMULEWEB_DEFS@,$AMULEWEB_DEFS,;t t
19816 s,@GEOIP_CPPFLAGS@,$GEOIP_CPPFLAGS,;t t
19817 s,@GEOIP_LDFLAGS@,$GEOIP_LDFLAGS,;t t
19818 s,@GEOIP_LIBS@,$GEOIP_LIBS,;t t
19819 s,@WX_CONFIG_PATH@,$WX_CONFIG_PATH,;t t
19820 s,@WX_CPPFLAGS@,$WX_CPPFLAGS,;t t
19821 s,@WX_CFLAGS@,$WX_CFLAGS,;t t
19822 s,@WX_CXXFLAGS@,$WX_CXXFLAGS,;t t
19823 s,@WX_CFLAGS_ONLY@,$WX_CFLAGS_ONLY,;t t
19824 s,@WX_CXXFLAGS_ONLY@,$WX_CXXFLAGS_ONLY,;t t
19825 s,@WX_LIBS@,$WX_LIBS,;t t
19826 s,@WX_LIBS_STATIC@,$WX_LIBS_STATIC,;t t
19827 s,@WX_VERSION_FULL@,$WX_VERSION_FULL,;t t
19828 s,@WX_RESCOMP@,$WX_RESCOMP,;t t
19829 s,@WX_VERSION_MAJOR@,$WX_VERSION_MAJOR,;t t
19830 s,@WX_VERSION_MINOR@,$WX_VERSION_MINOR,;t t
19831 s,@WX_UNICODE@,$WX_UNICODE,;t t
19832 s,@WX_DEBUG@,$WX_DEBUG,;t t
19833 s,@WX_SHARED@,$WX_SHARED,;t t
19834 s,@WX_PORT@,$WX_PORT,;t t
19835 s,@WXBASE_LIBS@,$WXBASE_LIBS,;t t
19836 s,@WXBASE_CPPFLAGS@,$WXBASE_CPPFLAGS,;t t
19837 s,@RC@,$RC,;t t
19838 s,@RCFLAGS@,$RCFLAGS,;t t
19839 s,@ac_ct_RC@,$ac_ct_RC,;t t
19840 s,@CRYPTOPP_CPPFLAGS@,$CRYPTOPP_CPPFLAGS,;t t
19841 s,@CRYPTOPP_LDFLAGS@,$CRYPTOPP_LDFLAGS,;t t
19842 s,@CRYPTOPP_LIBS@,$CRYPTOPP_LIBS,;t t
19843 s,@BFD_CPPFLAGS@,$BFD_CPPFLAGS,;t t
19844 s,@BFD_LIBS@,$BFD_LIBS,;t t
19845 s,@ALLOCA@,$ALLOCA,;t t
19846 s,@LIBOBJS@,$LIBOBJS,;t t
19847 s,@POW_LIB@,$POW_LIB,;t t
19848 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
19849 s,@MSGFMT@,$MSGFMT,;t t
19850 s,@GMSGFMT@,$GMSGFMT,;t t
19851 s,@XGETTEXT@,$XGETTEXT,;t t
19852 s,@MSGMERGE@,$MSGMERGE,;t t
19853 s,@GLIBC21@,$GLIBC21,;t t
19854 s,@LIBICONV@,$LIBICONV,;t t
19855 s,@LTLIBICONV@,$LTLIBICONV,;t t
19856 s,@INTLBISON@,$INTLBISON,;t t
19857 s,@USE_NLS@,$USE_NLS,;t t
19858 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
19859 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
19860 s,@CATOBJEXT@,$CATOBJEXT,;t t
19861 s,@INTLOBJS@,$INTLOBJS,;t t
19862 s,@DATADIRNAME@,$DATADIRNAME,;t t
19863 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
19864 s,@GENCAT@,$GENCAT,;t t
19865 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
19866 s,@INTLLIBS@,$INTLLIBS,;t t
19867 s,@LIBINTL@,$LIBINTL,;t t
19868 s,@LTLIBINTL@,$LTLIBINTL,;t t
19869 s,@POSUB@,$POSUB,;t t
19870 s,@AMULE_DAEMON_MANPAGES@,$AMULE_DAEMON_MANPAGES,;t t
19871 s,@AMULECMD_MANPAGES@,$AMULECMD_MANPAGES,;t t
19872 s,@WEB_MANPAGES@,$WEB_MANPAGES,;t t
19873 s,@AMULE_GUI_MANPAGES@,$AMULE_GUI_MANPAGES,;t t
19874 s,@CAS_MANPAGES@,$CAS_MANPAGES,;t t
19875 s,@WXCAS_MANPAGES@,$WXCAS_MANPAGES,;t t
19876 s,@ED2K_MANPAGES@,$ED2K_MANPAGES,;t t
19877 s,@ALC_MANPAGES@,$ALC_MANPAGES,;t t
19878 s,@ALCC_MANPAGES@,$ALCC_MANPAGES,;t t
19879 s,@MONOLITHIC_MANPAGES@,$MONOLITHIC_MANPAGES,;t t
19880 s,@INCINTL@,$INCINTL,;t t
19881 s,@docdir@,$docdir,;t t
19882 s,@SVNDATE@,$SVNDATE,;t t
19883 s,@WEB_TRUE@,$WEB_TRUE,;t t
19884 s,@WEB_FALSE@,$WEB_FALSE,;t t
19885 s,@ED2K_TRUE@,$ED2K_TRUE,;t t
19886 s,@ED2K_FALSE@,$ED2K_FALSE,;t t
19887 s,@CAS_TRUE@,$CAS_TRUE,;t t
19888 s,@CAS_FALSE@,$CAS_FALSE,;t t
19889 s,@WXCAS_TRUE@,$WXCAS_TRUE,;t t
19890 s,@WXCAS_FALSE@,$WXCAS_FALSE,;t t
19891 s,@ALC_TRUE@,$ALC_TRUE,;t t
19892 s,@ALC_FALSE@,$ALC_FALSE,;t t
19893 s,@ALCC_TRUE@,$ALCC_TRUE,;t t
19894 s,@ALCC_FALSE@,$ALCC_FALSE,;t t
19895 s,@AMULE_GUI_TRUE@,$AMULE_GUI_TRUE,;t t
19896 s,@AMULE_GUI_FALSE@,$AMULE_GUI_FALSE,;t t
19897 s,@AMULE_DAEMON_TRUE@,$AMULE_DAEMON_TRUE,;t t
19898 s,@AMULE_DAEMON_FALSE@,$AMULE_DAEMON_FALSE,;t t
19899 s,@COMPILE_CMD_TRUE@,$COMPILE_CMD_TRUE,;t t
19900 s,@COMPILE_CMD_FALSE@,$COMPILE_CMD_FALSE,;t t
19901 s,@MONOLITHIC_TRUE@,$MONOLITHIC_TRUE,;t t
19902 s,@MONOLITHIC_FALSE@,$MONOLITHIC_FALSE,;t t
19903 s,@ENABLE_UPNP_TRUE@,$ENABLE_UPNP_TRUE,;t t
19904 s,@ENABLE_UPNP_FALSE@,$ENABLE_UPNP_FALSE,;t t
19905 s,@ENABLE_IP2COUNTRY_TRUE@,$ENABLE_IP2COUNTRY_TRUE,;t t
19906 s,@ENABLE_IP2COUNTRY_FALSE@,$ENABLE_IP2COUNTRY_FALSE,;t t
19907 s,@SYS_WIN32_TRUE@,$SYS_WIN32_TRUE,;t t
19908 s,@SYS_WIN32_FALSE@,$SYS_WIN32_FALSE,;t t
19909 s,@NEED_RC_TRUE@,$NEED_RC_TRUE,;t t
19910 s,@NEED_RC_FALSE@,$NEED_RC_FALSE,;t t
19911 s,@NEED_CORESERVICES_TRUE@,$NEED_CORESERVICES_TRUE,;t t
19912 s,@NEED_CORESERVICES_FALSE@,$NEED_CORESERVICES_FALSE,;t t
19913 s,@COMPILE_NLS_TRUE@,$COMPILE_NLS_TRUE,;t t
19914 s,@COMPILE_NLS_FALSE@,$COMPILE_NLS_FALSE,;t t
19915 s,@GENERATE_FLEX_HEADER_TRUE@,$GENERATE_FLEX_HEADER_TRUE,;t t
19916 s,@GENERATE_FLEX_HEADER_FALSE@,$GENERATE_FLEX_HEADER_FALSE,;t t
19917 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
19918 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19919 CEOF
19921 _ACEOF
19923 cat >>$CONFIG_STATUS <<\_ACEOF
19924 # Split the substitutions into bite-sized pieces for seds with
19925 # small command number limits, like on Digital OSF/1 and HP-UX.
19926 ac_max_sed_lines=48
19927 ac_sed_frag=1 # Number of current file.
19928 ac_beg=1 # First line for current file.
19929 ac_end=$ac_max_sed_lines # Line after last line for current file.
19930 ac_more_lines=:
19931 ac_sed_cmds=
19932 while $ac_more_lines; do
19933 if test $ac_beg -gt 1; then
19934 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19935 else
19936 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19938 if test ! -s $tmp/subs.frag; then
19939 ac_more_lines=false
19940 else
19941 # The purpose of the label and of the branching condition is to
19942 # speed up the sed processing (if there are no `@' at all, there
19943 # is no need to browse any of the substitutions).
19944 # These are the two extra sed commands mentioned above.
19945 (echo ':t
19946 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19947 if test -z "$ac_sed_cmds"; then
19948 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19949 else
19950 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19952 ac_sed_frag=`expr $ac_sed_frag + 1`
19953 ac_beg=$ac_end
19954 ac_end=`expr $ac_end + $ac_max_sed_lines`
19956 done
19957 if test -z "$ac_sed_cmds"; then
19958 ac_sed_cmds=cat
19960 fi # test -n "$CONFIG_FILES"
19962 _ACEOF
19963 cat >>$CONFIG_STATUS <<\_ACEOF
19964 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19965 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19966 case $ac_file in
19967 - | *:- | *:-:* ) # input from stdin
19968 cat >$tmp/stdin
19969 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19970 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19971 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19972 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19973 * ) ac_file_in=$ac_file.in ;;
19974 esac
19976 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19977 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19978 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19979 X"$ac_file" : 'X\(//\)[^/]' \| \
19980 X"$ac_file" : 'X\(//\)$' \| \
19981 X"$ac_file" : 'X\(/\)' \| \
19982 . : '\(.\)' 2>/dev/null ||
19983 echo X"$ac_file" |
19984 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19985 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19986 /^X\(\/\/\)$/{ s//\1/; q; }
19987 /^X\(\/\).*/{ s//\1/; q; }
19988 s/.*/./; q'`
19989 { if $as_mkdir_p; then
19990 mkdir -p "$ac_dir"
19991 else
19992 as_dir="$ac_dir"
19993 as_dirs=
19994 while test ! -d "$as_dir"; do
19995 as_dirs="$as_dir $as_dirs"
19996 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19997 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19998 X"$as_dir" : 'X\(//\)[^/]' \| \
19999 X"$as_dir" : 'X\(//\)$' \| \
20000 X"$as_dir" : 'X\(/\)' \| \
20001 . : '\(.\)' 2>/dev/null ||
20002 echo X"$as_dir" |
20003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20004 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20005 /^X\(\/\/\)$/{ s//\1/; q; }
20006 /^X\(\/\).*/{ s//\1/; q; }
20007 s/.*/./; q'`
20008 done
20009 test ! -n "$as_dirs" || mkdir $as_dirs
20010 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20011 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20012 { (exit 1); exit 1; }; }; }
20014 ac_builddir=.
20016 if test "$ac_dir" != .; then
20017 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20018 # A "../" for each directory in $ac_dir_suffix.
20019 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20020 else
20021 ac_dir_suffix= ac_top_builddir=
20024 case $srcdir in
20025 .) # No --srcdir option. We are building in place.
20026 ac_srcdir=.
20027 if test -z "$ac_top_builddir"; then
20028 ac_top_srcdir=.
20029 else
20030 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20031 fi ;;
20032 [\\/]* | ?:[\\/]* ) # Absolute path.
20033 ac_srcdir=$srcdir$ac_dir_suffix;
20034 ac_top_srcdir=$srcdir ;;
20035 *) # Relative path.
20036 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20037 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20038 esac
20040 # Do not use `cd foo && pwd` to compute absolute paths, because
20041 # the directories may not exist.
20042 case `pwd` in
20043 .) ac_abs_builddir="$ac_dir";;
20045 case "$ac_dir" in
20046 .) ac_abs_builddir=`pwd`;;
20047 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20048 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20049 esac;;
20050 esac
20051 case $ac_abs_builddir in
20052 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20054 case ${ac_top_builddir}. in
20055 .) ac_abs_top_builddir=$ac_abs_builddir;;
20056 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20057 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20058 esac;;
20059 esac
20060 case $ac_abs_builddir in
20061 .) ac_abs_srcdir=$ac_srcdir;;
20063 case $ac_srcdir in
20064 .) ac_abs_srcdir=$ac_abs_builddir;;
20065 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20066 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20067 esac;;
20068 esac
20069 case $ac_abs_builddir in
20070 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20072 case $ac_top_srcdir in
20073 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20074 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20075 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20076 esac;;
20077 esac
20080 case $INSTALL in
20081 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20082 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20083 esac
20085 if test x"$ac_file" != x-; then
20086 { echo "$as_me:$LINENO: creating $ac_file" >&5
20087 echo "$as_me: creating $ac_file" >&6;}
20088 rm -f "$ac_file"
20090 # Let's still pretend it is `configure' which instantiates (i.e., don't
20091 # use $as_me), people would be surprised to read:
20092 # /* config.h. Generated by config.status. */
20093 if test x"$ac_file" = x-; then
20094 configure_input=
20095 else
20096 configure_input="$ac_file. "
20098 configure_input=$configure_input"Generated from `echo $ac_file_in |
20099 sed 's,.*/,,'` by configure."
20101 # First look for the input files in the build tree, otherwise in the
20102 # src tree.
20103 ac_file_inputs=`IFS=:
20104 for f in $ac_file_in; do
20105 case $f in
20106 -) echo $tmp/stdin ;;
20107 [\\/$]*)
20108 # Absolute (can't be DOS-style, as IFS=:)
20109 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20110 echo "$as_me: error: cannot find input file: $f" >&2;}
20111 { (exit 1); exit 1; }; }
20112 echo "$f";;
20113 *) # Relative
20114 if test -f "$f"; then
20115 # Build tree
20116 echo "$f"
20117 elif test -f "$srcdir/$f"; then
20118 # Source tree
20119 echo "$srcdir/$f"
20120 else
20121 # /dev/null tree
20122 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20123 echo "$as_me: error: cannot find input file: $f" >&2;}
20124 { (exit 1); exit 1; }; }
20125 fi;;
20126 esac
20127 done` || { (exit 1); exit 1; }
20128 _ACEOF
20129 cat >>$CONFIG_STATUS <<_ACEOF
20130 sed "$ac_vpsub
20131 $extrasub
20132 _ACEOF
20133 cat >>$CONFIG_STATUS <<\_ACEOF
20135 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20136 s,@configure_input@,$configure_input,;t t
20137 s,@srcdir@,$ac_srcdir,;t t
20138 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20139 s,@top_srcdir@,$ac_top_srcdir,;t t
20140 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20141 s,@builddir@,$ac_builddir,;t t
20142 s,@abs_builddir@,$ac_abs_builddir,;t t
20143 s,@top_builddir@,$ac_top_builddir,;t t
20144 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20145 s,@INSTALL@,$ac_INSTALL,;t t
20146 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20147 rm -f $tmp/stdin
20148 if test x"$ac_file" != x-; then
20149 mv $tmp/out $ac_file
20150 else
20151 cat $tmp/out
20152 rm -f $tmp/out
20155 done
20156 _ACEOF
20157 cat >>$CONFIG_STATUS <<\_ACEOF
20160 # CONFIG_HEADER section.
20163 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20164 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20166 # ac_d sets the value in "#define NAME VALUE" lines.
20167 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20168 ac_dB='[ ].*$,\1#\2'
20169 ac_dC=' '
20170 ac_dD=',;t'
20171 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20172 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20173 ac_uB='$,\1#\2define\3'
20174 ac_uC=' '
20175 ac_uD=',;t'
20177 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20178 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20179 case $ac_file in
20180 - | *:- | *:-:* ) # input from stdin
20181 cat >$tmp/stdin
20182 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20183 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20184 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20185 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20186 * ) ac_file_in=$ac_file.in ;;
20187 esac
20189 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20190 echo "$as_me: creating $ac_file" >&6;}
20192 # First look for the input files in the build tree, otherwise in the
20193 # src tree.
20194 ac_file_inputs=`IFS=:
20195 for f in $ac_file_in; do
20196 case $f in
20197 -) echo $tmp/stdin ;;
20198 [\\/$]*)
20199 # Absolute (can't be DOS-style, as IFS=:)
20200 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20201 echo "$as_me: error: cannot find input file: $f" >&2;}
20202 { (exit 1); exit 1; }; }
20203 # Do quote $f, to prevent DOS paths from being IFS'd.
20204 echo "$f";;
20205 *) # Relative
20206 if test -f "$f"; then
20207 # Build tree
20208 echo "$f"
20209 elif test -f "$srcdir/$f"; then
20210 # Source tree
20211 echo "$srcdir/$f"
20212 else
20213 # /dev/null tree
20214 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20215 echo "$as_me: error: cannot find input file: $f" >&2;}
20216 { (exit 1); exit 1; }; }
20217 fi;;
20218 esac
20219 done` || { (exit 1); exit 1; }
20220 # Remove the trailing spaces.
20221 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20223 _ACEOF
20225 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20226 # `conftest.undefs', that substitutes the proper values into
20227 # config.h.in to produce config.h. The first handles `#define'
20228 # templates, and the second `#undef' templates.
20229 # And first: Protect against being on the right side of a sed subst in
20230 # config.status. Protect against being in an unquoted here document
20231 # in config.status.
20232 rm -f conftest.defines conftest.undefs
20233 # Using a here document instead of a string reduces the quoting nightmare.
20234 # Putting comments in sed scripts is not portable.
20236 # `end' is used to avoid that the second main sed command (meant for
20237 # 0-ary CPP macros) applies to n-ary macro definitions.
20238 # See the Autoconf documentation for `clear'.
20239 cat >confdef2sed.sed <<\_ACEOF
20240 s/[\\&,]/\\&/g
20241 s,[\\$`],\\&,g
20242 t clear
20243 : clear
20244 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20245 t end
20246 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20247 : end
20248 _ACEOF
20249 # If some macros were called several times there might be several times
20250 # the same #defines, which is useless. Nevertheless, we may not want to
20251 # sort them, since we want the *last* AC-DEFINE to be honored.
20252 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20253 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20254 rm -f confdef2sed.sed
20256 # This sed command replaces #undef with comments. This is necessary, for
20257 # example, in the case of _POSIX_SOURCE, which is predefined and required
20258 # on some systems where configure will not decide to define it.
20259 cat >>conftest.undefs <<\_ACEOF
20260 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20261 _ACEOF
20263 # Break up conftest.defines because some shells have a limit on the size
20264 # of here documents, and old seds have small limits too (100 cmds).
20265 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20266 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20267 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20268 echo ' :' >>$CONFIG_STATUS
20269 rm -f conftest.tail
20270 while grep . conftest.defines >/dev/null
20272 # Write a limited-size here document to $tmp/defines.sed.
20273 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20274 # Speed up: don't consider the non `#define' lines.
20275 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20276 # Work around the forget-to-reset-the-flag bug.
20277 echo 't clr' >>$CONFIG_STATUS
20278 echo ': clr' >>$CONFIG_STATUS
20279 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20280 echo 'CEOF
20281 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20282 rm -f $tmp/in
20283 mv $tmp/out $tmp/in
20284 ' >>$CONFIG_STATUS
20285 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20286 rm -f conftest.defines
20287 mv conftest.tail conftest.defines
20288 done
20289 rm -f conftest.defines
20290 echo ' fi # grep' >>$CONFIG_STATUS
20291 echo >>$CONFIG_STATUS
20293 # Break up conftest.undefs because some shells have a limit on the size
20294 # of here documents, and old seds have small limits too (100 cmds).
20295 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20296 rm -f conftest.tail
20297 while grep . conftest.undefs >/dev/null
20299 # Write a limited-size here document to $tmp/undefs.sed.
20300 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20301 # Speed up: don't consider the non `#undef'
20302 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20303 # Work around the forget-to-reset-the-flag bug.
20304 echo 't clr' >>$CONFIG_STATUS
20305 echo ': clr' >>$CONFIG_STATUS
20306 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20307 echo 'CEOF
20308 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20309 rm -f $tmp/in
20310 mv $tmp/out $tmp/in
20311 ' >>$CONFIG_STATUS
20312 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20313 rm -f conftest.undefs
20314 mv conftest.tail conftest.undefs
20315 done
20316 rm -f conftest.undefs
20318 cat >>$CONFIG_STATUS <<\_ACEOF
20319 # Let's still pretend it is `configure' which instantiates (i.e., don't
20320 # use $as_me), people would be surprised to read:
20321 # /* config.h. Generated by config.status. */
20322 if test x"$ac_file" = x-; then
20323 echo "/* Generated by configure. */" >$tmp/config.h
20324 else
20325 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20327 cat $tmp/in >>$tmp/config.h
20328 rm -f $tmp/in
20329 if test x"$ac_file" != x-; then
20330 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20331 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20332 echo "$as_me: $ac_file is unchanged" >&6;}
20333 else
20334 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20335 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20336 X"$ac_file" : 'X\(//\)[^/]' \| \
20337 X"$ac_file" : 'X\(//\)$' \| \
20338 X"$ac_file" : 'X\(/\)' \| \
20339 . : '\(.\)' 2>/dev/null ||
20340 echo X"$ac_file" |
20341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20342 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20343 /^X\(\/\/\)$/{ s//\1/; q; }
20344 /^X\(\/\).*/{ s//\1/; q; }
20345 s/.*/./; q'`
20346 { if $as_mkdir_p; then
20347 mkdir -p "$ac_dir"
20348 else
20349 as_dir="$ac_dir"
20350 as_dirs=
20351 while test ! -d "$as_dir"; do
20352 as_dirs="$as_dir $as_dirs"
20353 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20354 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20355 X"$as_dir" : 'X\(//\)[^/]' \| \
20356 X"$as_dir" : 'X\(//\)$' \| \
20357 X"$as_dir" : 'X\(/\)' \| \
20358 . : '\(.\)' 2>/dev/null ||
20359 echo X"$as_dir" |
20360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20361 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20362 /^X\(\/\/\)$/{ s//\1/; q; }
20363 /^X\(\/\).*/{ s//\1/; q; }
20364 s/.*/./; q'`
20365 done
20366 test ! -n "$as_dirs" || mkdir $as_dirs
20367 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20368 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20369 { (exit 1); exit 1; }; }; }
20371 rm -f $ac_file
20372 mv $tmp/config.h $ac_file
20374 else
20375 cat $tmp/config.h
20376 rm -f $tmp/config.h
20378 # Compute $ac_file's index in $config_headers.
20379 _am_stamp_count=1
20380 for _am_header in $config_headers :; do
20381 case $_am_header in
20382 $ac_file | $ac_file:* )
20383 break ;;
20385 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20386 esac
20387 done
20388 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20389 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20390 X$ac_file : 'X\(//\)[^/]' \| \
20391 X$ac_file : 'X\(//\)$' \| \
20392 X$ac_file : 'X\(/\)' \| \
20393 . : '\(.\)' 2>/dev/null ||
20394 echo X$ac_file |
20395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20396 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20397 /^X\(\/\/\)$/{ s//\1/; q; }
20398 /^X\(\/\).*/{ s//\1/; q; }
20399 s/.*/./; q'`/stamp-h$_am_stamp_count
20400 done
20401 _ACEOF
20402 cat >>$CONFIG_STATUS <<\_ACEOF
20405 # CONFIG_COMMANDS section.
20407 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20408 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20409 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20410 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20411 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20412 X"$ac_dest" : 'X\(//\)[^/]' \| \
20413 X"$ac_dest" : 'X\(//\)$' \| \
20414 X"$ac_dest" : 'X\(/\)' \| \
20415 . : '\(.\)' 2>/dev/null ||
20416 echo X"$ac_dest" |
20417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20418 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20419 /^X\(\/\/\)$/{ s//\1/; q; }
20420 /^X\(\/\).*/{ s//\1/; q; }
20421 s/.*/./; q'`
20422 { if $as_mkdir_p; then
20423 mkdir -p "$ac_dir"
20424 else
20425 as_dir="$ac_dir"
20426 as_dirs=
20427 while test ! -d "$as_dir"; do
20428 as_dirs="$as_dir $as_dirs"
20429 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20430 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20431 X"$as_dir" : 'X\(//\)[^/]' \| \
20432 X"$as_dir" : 'X\(//\)$' \| \
20433 X"$as_dir" : 'X\(/\)' \| \
20434 . : '\(.\)' 2>/dev/null ||
20435 echo X"$as_dir" |
20436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20437 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20438 /^X\(\/\/\)$/{ s//\1/; q; }
20439 /^X\(\/\).*/{ s//\1/; q; }
20440 s/.*/./; q'`
20441 done
20442 test ! -n "$as_dirs" || mkdir $as_dirs
20443 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20444 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20445 { (exit 1); exit 1; }; }; }
20447 ac_builddir=.
20449 if test "$ac_dir" != .; then
20450 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20451 # A "../" for each directory in $ac_dir_suffix.
20452 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20453 else
20454 ac_dir_suffix= ac_top_builddir=
20457 case $srcdir in
20458 .) # No --srcdir option. We are building in place.
20459 ac_srcdir=.
20460 if test -z "$ac_top_builddir"; then
20461 ac_top_srcdir=.
20462 else
20463 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20464 fi ;;
20465 [\\/]* | ?:[\\/]* ) # Absolute path.
20466 ac_srcdir=$srcdir$ac_dir_suffix;
20467 ac_top_srcdir=$srcdir ;;
20468 *) # Relative path.
20469 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20470 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20471 esac
20473 # Do not use `cd foo && pwd` to compute absolute paths, because
20474 # the directories may not exist.
20475 case `pwd` in
20476 .) ac_abs_builddir="$ac_dir";;
20478 case "$ac_dir" in
20479 .) ac_abs_builddir=`pwd`;;
20480 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20481 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20482 esac;;
20483 esac
20484 case $ac_abs_builddir in
20485 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20487 case ${ac_top_builddir}. in
20488 .) ac_abs_top_builddir=$ac_abs_builddir;;
20489 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20490 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20491 esac;;
20492 esac
20493 case $ac_abs_builddir in
20494 .) ac_abs_srcdir=$ac_srcdir;;
20496 case $ac_srcdir in
20497 .) ac_abs_srcdir=$ac_abs_builddir;;
20498 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20499 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20500 esac;;
20501 esac
20502 case $ac_abs_builddir in
20503 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20505 case $ac_top_srcdir in
20506 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20507 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20508 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20509 esac;;
20510 esac
20513 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20514 echo "$as_me: executing $ac_dest commands" >&6;}
20515 case $ac_dest in
20516 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20517 # Strip MF so we end up with the name of the file.
20518 mf=`echo "$mf" | sed -e 's/:.*$//'`
20519 # Check whether this is an Automake generated Makefile or not.
20520 # We used to match only the files named `Makefile.in', but
20521 # some people rename them; so instead we look at the file content.
20522 # Grep'ing the first line is not enough: some people post-process
20523 # each Makefile.in and add a new line on top of each file to say so.
20524 # So let's grep whole file.
20525 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20526 dirpart=`(dirname "$mf") 2>/dev/null ||
20527 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20528 X"$mf" : 'X\(//\)[^/]' \| \
20529 X"$mf" : 'X\(//\)$' \| \
20530 X"$mf" : 'X\(/\)' \| \
20531 . : '\(.\)' 2>/dev/null ||
20532 echo X"$mf" |
20533 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20534 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20535 /^X\(\/\/\)$/{ s//\1/; q; }
20536 /^X\(\/\).*/{ s//\1/; q; }
20537 s/.*/./; q'`
20538 else
20539 continue
20541 # Extract the definition of DEPDIR, am__include, and am__quote
20542 # from the Makefile without running `make'.
20543 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20544 test -z "$DEPDIR" && continue
20545 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20546 test -z "am__include" && continue
20547 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20548 # When using ansi2knr, U may be empty or an underscore; expand it
20549 U=`sed -n 's/^U = //p' < "$mf"`
20550 # Find all dependency output files, they are included files with
20551 # $(DEPDIR) in their names. We invoke sed twice because it is the
20552 # simplest approach to changing $(DEPDIR) to its actual value in the
20553 # expansion.
20554 for file in `sed -n "
20555 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20556 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20557 # Make sure the directory exists.
20558 test -f "$dirpart/$file" && continue
20559 fdir=`(dirname "$file") 2>/dev/null ||
20560 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20561 X"$file" : 'X\(//\)[^/]' \| \
20562 X"$file" : 'X\(//\)$' \| \
20563 X"$file" : 'X\(/\)' \| \
20564 . : '\(.\)' 2>/dev/null ||
20565 echo X"$file" |
20566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20567 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20568 /^X\(\/\/\)$/{ s//\1/; q; }
20569 /^X\(\/\).*/{ s//\1/; q; }
20570 s/.*/./; q'`
20571 { if $as_mkdir_p; then
20572 mkdir -p $dirpart/$fdir
20573 else
20574 as_dir=$dirpart/$fdir
20575 as_dirs=
20576 while test ! -d "$as_dir"; do
20577 as_dirs="$as_dir $as_dirs"
20578 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20579 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20580 X"$as_dir" : 'X\(//\)[^/]' \| \
20581 X"$as_dir" : 'X\(//\)$' \| \
20582 X"$as_dir" : 'X\(/\)' \| \
20583 . : '\(.\)' 2>/dev/null ||
20584 echo X"$as_dir" |
20585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20586 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20587 /^X\(\/\/\)$/{ s//\1/; q; }
20588 /^X\(\/\).*/{ s//\1/; q; }
20589 s/.*/./; q'`
20590 done
20591 test ! -n "$as_dirs" || mkdir $as_dirs
20592 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20593 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20594 { (exit 1); exit 1; }; }; }
20596 # echo "creating $dirpart/$file"
20597 echo '# dummy' > "$dirpart/$file"
20598 done
20599 done
20601 default-1 )
20602 for ac_file in $CONFIG_FILES; do
20603 # Support "outfile[:infile[:infile...]]"
20604 case "$ac_file" in
20605 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20606 esac
20607 # PO directories have a Makefile.in generated from Makefile.in.in.
20608 case "$ac_file" in */Makefile.in)
20609 # Adjust a relative srcdir.
20610 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
20611 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
20612 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
20613 # In autoconf-2.13 it is called $ac_given_srcdir.
20614 # In autoconf-2.50 it is called $srcdir.
20615 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
20616 case "$ac_given_srcdir" in
20617 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
20618 /*) top_srcdir="$ac_given_srcdir" ;;
20619 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
20620 esac
20621 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
20622 rm -f "$ac_dir/POTFILES"
20623 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
20624 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
20625 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
20626 # on $ac_dir but don't depend on user-specified configuration
20627 # parameters.
20628 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
20629 # The LINGUAS file contains the set of available languages.
20630 if test -n "$ALL_LINGUAS"; then
20631 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
20633 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
20634 # Hide the ALL_LINGUAS assigment from automake.
20635 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
20637 case "$ac_given_srcdir" in
20638 .) srcdirpre= ;;
20639 *) srcdirpre='$(srcdir)/' ;;
20640 esac
20641 POFILES=
20642 GMOFILES=
20643 UPDATEPOFILES=
20644 DUMMYPOFILES=
20645 for lang in $ALL_LINGUAS; do
20646 POFILES="$POFILES $srcdirpre$lang.po"
20647 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
20648 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
20649 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
20650 done
20651 # CATALOGS depends on both $ac_dir and the user's LINGUAS
20652 # environment variable.
20653 INST_LINGUAS=
20654 if test -n "$ALL_LINGUAS"; then
20655 for presentlang in $ALL_LINGUAS; do
20656 useit=no
20657 if test "%UNSET%" != "$LINGUAS"; then
20658 desiredlanguages="$LINGUAS"
20659 else
20660 desiredlanguages="$ALL_LINGUAS"
20662 for desiredlang in $desiredlanguages; do
20663 # Use the presentlang catalog if desiredlang is
20664 # a. equal to presentlang, or
20665 # b. a variant of presentlang (because in this case,
20666 # presentlang can be used as a fallback for messages
20667 # which are not translated in the desiredlang catalog).
20668 case "$desiredlang" in
20669 "$presentlang"*) useit=yes;;
20670 esac
20671 done
20672 if test $useit = yes; then
20673 INST_LINGUAS="$INST_LINGUAS $presentlang"
20675 done
20677 CATALOGS=
20678 if test -n "$INST_LINGUAS"; then
20679 for lang in $INST_LINGUAS; do
20680 CATALOGS="$CATALOGS $lang.gmo"
20681 done
20683 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
20684 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"
20685 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
20686 if test -f "$f"; then
20687 case "$f" in
20688 *.orig | *.bak | *~) ;;
20689 *) cat "$f" >> "$ac_dir/Makefile" ;;
20690 esac
20692 done
20695 esac
20696 done ;;
20697 denoiser ) if test $denoiserlevel -gt 0; then
20698 if test ! -d src/utils/scripts; then mkdir -p src/utils/scripts; fi
20699 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" \
20700 $srcdir/src/utils/scripts/denoiser.rules > src/utils/scripts/denoiser.sed
20701 for i in `find . -name 'Makefile' -print`; do
20702 if test -n "`head -n 1 $i | grep '^#'`"; then
20703 sed -f src/utils/scripts/denoiser.sed $i > $i.tmp && mv $i.tmp $i
20705 done
20706 fi ;;
20707 esac
20708 done
20709 _ACEOF
20711 cat >>$CONFIG_STATUS <<\_ACEOF
20713 { (exit 0); exit 0; }
20714 _ACEOF
20715 chmod +x $CONFIG_STATUS
20716 ac_clean_files=$ac_clean_files_save
20719 # configure is writing to config.log, and then calls config.status.
20720 # config.status does its own redirection, appending to config.log.
20721 # Unfortunately, on DOS this fails, as config.log is still kept open
20722 # by configure, so config.status won't be able to write to it; its
20723 # output is simply discarded. So we exec the FD to /dev/null,
20724 # effectively closing config.log, so it can be properly (re)opened and
20725 # appended to by config.status. When coming back to configure, we
20726 # need to make the FD available again.
20727 if test "$no_create" != yes; then
20728 ac_cs_success=:
20729 ac_config_status_args=
20730 test "$silent" = yes &&
20731 ac_config_status_args="$ac_config_status_args --quiet"
20732 exec 5>/dev/null
20733 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20734 exec 5>>config.log
20735 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20736 # would make configure fail if this is the last instruction.
20737 $ac_cs_success || { (exit 1); exit 1; }
20741 echo
20742 echo
20743 echo " Configure script has finished system check."
20744 echo
20745 echo " Configured aMule ${PACKAGE_VERSION} for '${host}'."
20746 echo
20747 echo " aMule enabled options:"
20748 echo
20749 echo " **** aMule Core ****"
20750 echo " Prefix where aMule should be installed? ${prefix:-none}"
20751 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
20752 echo " Should aMule be compiled in debug mode? ${USE_DEBUG:-no}"
20753 echo " Should aMule be compiled with profiling? ${USE_PROFILE:-no}"
20754 echo " Should aMule be compiled with optimizations? ${USE_OPTIMIZE:-no}"
20755 echo " Should aMule be compiled with UPnP support? ${ENABLE_UPNP:-yes}"
20756 echo " Should aMule be compiled with IP2country support? ${ENABLE_IP2COUNTRY:-yes}"
20757 echo " Should aMule monolithic application be built? ${MONOLITHIC:-yes}"
20758 echo " Should aMule daemon version be built? ${AMULE_DAEMON:-no}"
20759 echo " Should aMule remote gui be built? (EXPERIMENTAL) ${AMULE_GUI:-no}"
20760 echo " Crypto++ library/headers style? ${CRYPTOPP_STYLE:-not found}"
20762 echo
20763 echo " **** aMule TextClient ****"
20764 echo " Should aMule Command Line Client be built? ${AMULECMD:-no}"
20765 echo
20766 echo " **** aMule WebServer ****"
20767 echo " Should aMule WebServer be built? ${WEB:-no}"
20768 echo
20769 echo " **** aMule ED2K Links Handler ****"
20770 echo " Should aMule ED2K Links Handler be built? ${ED2K:-yes}"
20771 echo
20772 echo " **** aMuleLinkCreator ****"
20773 echo " Should aMuleLinkCreator GUI version (alc) be built? ${ALC:-no}"
20774 echo " Should aMuleLinkCreator for console (alcc) be built? ${ALCC:-no}"
20775 echo
20776 echo " **** aMule Statistics ****"
20777 echo " Should C aMule Statistics (CAS) be built? ${CAS:-no}"
20778 echo " Should aMule GUI Statistics (wxCas) be built? ${WXCAS:-no}"
20780 echo
20781 echo " **** General Libraries and Tools ****"
20782 echo " Should ccache support be enabled? ${ccache:-no}"
20783 echo " Libraries aMule will use to build:"
20784 wxinfo="$WX_PORT"
20785 if test $WX_DEBUG -eq 1; then
20786 wxinfo="$wxinfo,debug"
20789 if test $WX_SHARED -eq 1; then
20790 wxinfo="$wxinfo,shared"
20791 else
20792 wxinfo="$wxinfo,static"
20795 echo " wxWidgets ${WX_VERSION_FULL} ($wxinfo)"
20796 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (${CRYPTOPP_STYLE}, in ${CRYPTOPP_PREFIX})"
20797 if test x${WEB:-no} != xno; then
20798 if test $regex_found = no; then
20799 regex_found="Not detected"
20800 else
20801 if test -z "$REGEX_LIB"; then
20802 regex_found=system
20803 else
20804 regex_found="standalone (in $REGEX_LIB)"
20809 echo " regex $regex_found"
20811 if test ${enable_nls:-yes} = yes; then
20812 if test x$USE_NLS = xno; then
20813 libintl_found="Not detected"
20814 else
20815 if test x$USE_INCLUDED_LIBINTL = xyes; then
20816 libintl_found="included"
20817 else
20818 libintl_found="system"
20823 echo " libintl $libintl_found"
20825 if test x$LIBPNG_VERSION != xnot_needed; then
20826 echo " libpng ${LIBPNG_VERSION:-Not detected}"
20828 if test x$GDLIB_VERSION != xnot_needed; then
20829 echo " libgd ${GDLIB_VERSION:-Not detected}"
20831 echo " zlib ${ZLIB_VERSION:-Not detected}"
20832 if test x$WEB = xdisabled; then
20833 echo ""
20834 echo ""
20835 echo "WARNING! amuleweb has been disabled because configure could not find"
20836 echo "a POSIX compliant regex library."
20837 echo ""
20839 if test -z "$LIBPNG_VERSION"; then
20840 echo ""
20841 echo ""
20842 echo " WARNING! libpng >= 1.2.0 not found."
20843 echo " amuleweb will be compiled but file download progress bar images will NOT be generated."
20844 echo ""