Upstream tarball 20080603
[amule.git] / configure
blobfd68f8bc1d010b5eccd1d08dfa18d0f46b7aaa6a
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 mule_backup_CPPFLAGS="$CPPFLAGS"
1942 mule_backup_CPPFLAGS="$CPPFLAGS"
1943 case "${host_os}" in
1945 SYS=unknown
1947 darwin*)
1948 SYS=darwin
1949 MULECPPFLAGS="-no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH";
1950 MULELDFLAGS="-bind_at_load"
1951 touch src/Scanner.cpp
1953 openbsd*)
1954 SYS=openbsd
1955 LIBS="$LIBS -L/usr/local/lib"
1956 X11LIBS="-lX11 -L/usr/X11R6/lib"
1957 MULECPPFLAGS="-D__OPENBSD__"
1959 *cygwin* | *mingw32*)
1960 SYS=win32
1961 MULECPPFLAGS="-DNOMINMAX"
1963 solaris*)
1964 RESOLV_LIB="-lresolv -lnsl"
1965 X11LIBS="-lX11"
1966 LIBS="$LIBS -lrt"
1967 esac
1969 # -lpthread is needed by Debian but FreeBSD < 5 doesn't support it
1970 if test ${SYS:-unknown} != win32; then
1972 echo "$as_me:$LINENO: checking if this is a FreeBSD 4 or earlier system" >&5
1973 echo $ECHO_N "checking if this is a FreeBSD 4 or earlier system... $ECHO_C" >&6
1974 if test x"`uname -s`" = xFreeBSD && test 0`uname -r | cut -c 1` -lt 5; then
1976 MULELDFLAGS="$MULELDFLAGS -pthread"
1977 echo "$as_me:$LINENO: result: yes" >&5
1978 echo "${ECHO_T}yes" >&6
1980 else
1982 MULELDFLAGS="$MULELDFLAGS -lpthread"
1983 echo "$as_me:$LINENO: result: no" >&5
1984 echo "${ECHO_T}no" >&6
1994 mule_backup_CFLAGS="$CFLAGS"
1995 mule_backup_CXXFLAGS="$CXXFLAGS"
1996 mule_backup_BUILD_CFLAGS="$BUILD_CFLAGS"
1997 ac_ext=cc
1998 ac_cpp='$CXXCPP $CPPFLAGS'
1999 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2000 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2001 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2002 if test -n "$ac_tool_prefix"; then
2003 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2005 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2006 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2007 echo "$as_me:$LINENO: checking for $ac_word" >&5
2008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2009 if test "${ac_cv_prog_CXX+set}" = set; then
2010 echo $ECHO_N "(cached) $ECHO_C" >&6
2011 else
2012 if test -n "$CXX"; then
2013 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2014 else
2015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2016 for as_dir in $PATH
2018 IFS=$as_save_IFS
2019 test -z "$as_dir" && as_dir=.
2020 for ac_exec_ext in '' $ac_executable_extensions; do
2021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2022 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2024 break 2
2026 done
2027 done
2031 CXX=$ac_cv_prog_CXX
2032 if test -n "$CXX"; then
2033 echo "$as_me:$LINENO: result: $CXX" >&5
2034 echo "${ECHO_T}$CXX" >&6
2035 else
2036 echo "$as_me:$LINENO: result: no" >&5
2037 echo "${ECHO_T}no" >&6
2040 test -n "$CXX" && break
2041 done
2043 if test -z "$CXX"; then
2044 ac_ct_CXX=$CXX
2045 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2047 # Extract the first word of "$ac_prog", so it can be a program name with args.
2048 set dummy $ac_prog; ac_word=$2
2049 echo "$as_me:$LINENO: checking for $ac_word" >&5
2050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2051 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2052 echo $ECHO_N "(cached) $ECHO_C" >&6
2053 else
2054 if test -n "$ac_ct_CXX"; then
2055 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2056 else
2057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2058 for as_dir in $PATH
2060 IFS=$as_save_IFS
2061 test -z "$as_dir" && as_dir=.
2062 for ac_exec_ext in '' $ac_executable_extensions; do
2063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2064 ac_cv_prog_ac_ct_CXX="$ac_prog"
2065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066 break 2
2068 done
2069 done
2073 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2074 if test -n "$ac_ct_CXX"; then
2075 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2076 echo "${ECHO_T}$ac_ct_CXX" >&6
2077 else
2078 echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6
2082 test -n "$ac_ct_CXX" && break
2083 done
2084 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2086 CXX=$ac_ct_CXX
2090 # Provide some information about the compiler.
2091 echo "$as_me:$LINENO:" \
2092 "checking for C++ compiler version" >&5
2093 ac_compiler=`set X $ac_compile; echo $2`
2094 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2095 (eval $ac_compiler --version </dev/null >&5) 2>&5
2096 ac_status=$?
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); }
2099 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2100 (eval $ac_compiler -v </dev/null >&5) 2>&5
2101 ac_status=$?
2102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103 (exit $ac_status); }
2104 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2105 (eval $ac_compiler -V </dev/null >&5) 2>&5
2106 ac_status=$?
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); }
2110 cat >conftest.$ac_ext <<_ACEOF
2111 /* confdefs.h. */
2112 _ACEOF
2113 cat confdefs.h >>conftest.$ac_ext
2114 cat >>conftest.$ac_ext <<_ACEOF
2115 /* end confdefs.h. */
2118 main ()
2122 return 0;
2124 _ACEOF
2125 ac_clean_files_save=$ac_clean_files
2126 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2127 # Try to create an executable without -o first, disregard a.out.
2128 # It will help us diagnose broken compilers, and finding out an intuition
2129 # of exeext.
2130 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2131 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2132 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2133 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2134 (eval $ac_link_default) 2>&5
2135 ac_status=$?
2136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137 (exit $ac_status); }; then
2138 # Find the output, starting from the most likely. This scheme is
2139 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2140 # resort.
2142 # Be careful to initialize this variable, since it used to be cached.
2143 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2144 ac_cv_exeext=
2145 # b.out is created by i960 compilers.
2146 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2148 test -f "$ac_file" || continue
2149 case $ac_file in
2150 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2152 conftest.$ac_ext )
2153 # This is the source file.
2155 [ab].out )
2156 # We found the default executable, but exeext='' is most
2157 # certainly right.
2158 break;;
2159 *.* )
2160 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2161 # FIXME: I believe we export ac_cv_exeext for Libtool,
2162 # but it would be cool to find out if it's true. Does anybody
2163 # maintain Libtool? --akim.
2164 export ac_cv_exeext
2165 break;;
2167 break;;
2168 esac
2169 done
2170 else
2171 echo "$as_me: failed program was:" >&5
2172 sed 's/^/| /' conftest.$ac_ext >&5
2174 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2175 See \`config.log' for more details." >&5
2176 echo "$as_me: error: C++ compiler cannot create executables
2177 See \`config.log' for more details." >&2;}
2178 { (exit 77); exit 77; }; }
2181 ac_exeext=$ac_cv_exeext
2182 echo "$as_me:$LINENO: result: $ac_file" >&5
2183 echo "${ECHO_T}$ac_file" >&6
2185 # Check the compiler produces executables we can run. If not, either
2186 # the compiler is broken, or we cross compile.
2187 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2188 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2189 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2190 # If not cross compiling, check that we can run a simple program.
2191 if test "$cross_compiling" != yes; then
2192 if { ac_try='./$ac_file'
2193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2194 (eval $ac_try) 2>&5
2195 ac_status=$?
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); }; }; then
2198 cross_compiling=no
2199 else
2200 if test "$cross_compiling" = maybe; then
2201 cross_compiling=yes
2202 else
2203 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2204 If you meant to cross compile, use \`--host'.
2205 See \`config.log' for more details." >&5
2206 echo "$as_me: error: cannot run C++ compiled programs.
2207 If you meant to cross compile, use \`--host'.
2208 See \`config.log' for more details." >&2;}
2209 { (exit 1); exit 1; }; }
2213 echo "$as_me:$LINENO: result: yes" >&5
2214 echo "${ECHO_T}yes" >&6
2216 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2217 ac_clean_files=$ac_clean_files_save
2218 # Check the compiler produces executables we can run. If not, either
2219 # the compiler is broken, or we cross compile.
2220 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2221 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2222 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2223 echo "${ECHO_T}$cross_compiling" >&6
2225 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2226 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2228 (eval $ac_link) 2>&5
2229 ac_status=$?
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); }; then
2232 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2233 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2234 # work properly (i.e., refer to `conftest.exe'), while it won't with
2235 # `rm'.
2236 for ac_file in conftest.exe conftest conftest.*; do
2237 test -f "$ac_file" || continue
2238 case $ac_file in
2239 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2240 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2241 export ac_cv_exeext
2242 break;;
2243 * ) break;;
2244 esac
2245 done
2246 else
2247 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2248 See \`config.log' for more details." >&5
2249 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2250 See \`config.log' for more details." >&2;}
2251 { (exit 1); exit 1; }; }
2254 rm -f conftest$ac_cv_exeext
2255 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2256 echo "${ECHO_T}$ac_cv_exeext" >&6
2258 rm -f conftest.$ac_ext
2259 EXEEXT=$ac_cv_exeext
2260 ac_exeext=$EXEEXT
2261 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2262 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2263 if test "${ac_cv_objext+set}" = set; then
2264 echo $ECHO_N "(cached) $ECHO_C" >&6
2265 else
2266 cat >conftest.$ac_ext <<_ACEOF
2267 /* confdefs.h. */
2268 _ACEOF
2269 cat confdefs.h >>conftest.$ac_ext
2270 cat >>conftest.$ac_ext <<_ACEOF
2271 /* end confdefs.h. */
2274 main ()
2278 return 0;
2280 _ACEOF
2281 rm -f conftest.o conftest.obj
2282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2283 (eval $ac_compile) 2>&5
2284 ac_status=$?
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); }; then
2287 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2288 case $ac_file in
2289 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2290 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2291 break;;
2292 esac
2293 done
2294 else
2295 echo "$as_me: failed program was:" >&5
2296 sed 's/^/| /' conftest.$ac_ext >&5
2298 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2299 See \`config.log' for more details." >&5
2300 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2301 See \`config.log' for more details." >&2;}
2302 { (exit 1); exit 1; }; }
2305 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2307 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2308 echo "${ECHO_T}$ac_cv_objext" >&6
2309 OBJEXT=$ac_cv_objext
2310 ac_objext=$OBJEXT
2311 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2312 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2313 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2314 echo $ECHO_N "(cached) $ECHO_C" >&6
2315 else
2316 cat >conftest.$ac_ext <<_ACEOF
2317 /* confdefs.h. */
2318 _ACEOF
2319 cat confdefs.h >>conftest.$ac_ext
2320 cat >>conftest.$ac_ext <<_ACEOF
2321 /* end confdefs.h. */
2324 main ()
2326 #ifndef __GNUC__
2327 choke me
2328 #endif
2331 return 0;
2333 _ACEOF
2334 rm -f conftest.$ac_objext
2335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2336 (eval $ac_compile) 2>conftest.er1
2337 ac_status=$?
2338 grep -v '^ *+' conftest.er1 >conftest.err
2339 rm -f conftest.er1
2340 cat conftest.err >&5
2341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342 (exit $ac_status); } &&
2343 { ac_try='test -z "$ac_cxx_werror_flag"
2344 || test ! -s conftest.err'
2345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2346 (eval $ac_try) 2>&5
2347 ac_status=$?
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); }; } &&
2350 { ac_try='test -s conftest.$ac_objext'
2351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2352 (eval $ac_try) 2>&5
2353 ac_status=$?
2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); }; }; then
2356 ac_compiler_gnu=yes
2357 else
2358 echo "$as_me: failed program was:" >&5
2359 sed 's/^/| /' conftest.$ac_ext >&5
2361 ac_compiler_gnu=no
2363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2364 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2367 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2368 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2369 GXX=`test $ac_compiler_gnu = yes && echo yes`
2370 ac_test_CXXFLAGS=${CXXFLAGS+set}
2371 ac_save_CXXFLAGS=$CXXFLAGS
2372 CXXFLAGS="-g"
2373 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2374 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2375 if test "${ac_cv_prog_cxx_g+set}" = set; then
2376 echo $ECHO_N "(cached) $ECHO_C" >&6
2377 else
2378 cat >conftest.$ac_ext <<_ACEOF
2379 /* confdefs.h. */
2380 _ACEOF
2381 cat confdefs.h >>conftest.$ac_ext
2382 cat >>conftest.$ac_ext <<_ACEOF
2383 /* end confdefs.h. */
2386 main ()
2390 return 0;
2392 _ACEOF
2393 rm -f conftest.$ac_objext
2394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2395 (eval $ac_compile) 2>conftest.er1
2396 ac_status=$?
2397 grep -v '^ *+' conftest.er1 >conftest.err
2398 rm -f conftest.er1
2399 cat conftest.err >&5
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); } &&
2402 { ac_try='test -z "$ac_cxx_werror_flag"
2403 || test ! -s conftest.err'
2404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405 (eval $ac_try) 2>&5
2406 ac_status=$?
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; } &&
2409 { ac_try='test -s conftest.$ac_objext'
2410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411 (eval $ac_try) 2>&5
2412 ac_status=$?
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; }; then
2415 ac_cv_prog_cxx_g=yes
2416 else
2417 echo "$as_me: failed program was:" >&5
2418 sed 's/^/| /' conftest.$ac_ext >&5
2420 ac_cv_prog_cxx_g=no
2422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2424 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2425 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2426 if test "$ac_test_CXXFLAGS" = set; then
2427 CXXFLAGS=$ac_save_CXXFLAGS
2428 elif test $ac_cv_prog_cxx_g = yes; then
2429 if test "$GXX" = yes; then
2430 CXXFLAGS="-g -O2"
2431 else
2432 CXXFLAGS="-g"
2434 else
2435 if test "$GXX" = yes; then
2436 CXXFLAGS="-O2"
2437 else
2438 CXXFLAGS=
2441 for ac_declaration in \
2442 '' \
2443 'extern "C" void std::exit (int) throw (); using std::exit;' \
2444 'extern "C" void std::exit (int); using std::exit;' \
2445 'extern "C" void exit (int) throw ();' \
2446 'extern "C" void exit (int);' \
2447 'void exit (int);'
2449 cat >conftest.$ac_ext <<_ACEOF
2450 /* confdefs.h. */
2451 _ACEOF
2452 cat confdefs.h >>conftest.$ac_ext
2453 cat >>conftest.$ac_ext <<_ACEOF
2454 /* end confdefs.h. */
2455 $ac_declaration
2456 #include <stdlib.h>
2458 main ()
2460 exit (42);
2462 return 0;
2464 _ACEOF
2465 rm -f conftest.$ac_objext
2466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2467 (eval $ac_compile) 2>conftest.er1
2468 ac_status=$?
2469 grep -v '^ *+' conftest.er1 >conftest.err
2470 rm -f conftest.er1
2471 cat conftest.err >&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); } &&
2474 { ac_try='test -z "$ac_cxx_werror_flag"
2475 || test ! -s conftest.err'
2476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2477 (eval $ac_try) 2>&5
2478 ac_status=$?
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }; } &&
2481 { ac_try='test -s conftest.$ac_objext'
2482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2483 (eval $ac_try) 2>&5
2484 ac_status=$?
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); }; }; then
2488 else
2489 echo "$as_me: failed program was:" >&5
2490 sed 's/^/| /' conftest.$ac_ext >&5
2492 continue
2494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2495 cat >conftest.$ac_ext <<_ACEOF
2496 /* confdefs.h. */
2497 _ACEOF
2498 cat confdefs.h >>conftest.$ac_ext
2499 cat >>conftest.$ac_ext <<_ACEOF
2500 /* end confdefs.h. */
2501 $ac_declaration
2503 main ()
2505 exit (42);
2507 return 0;
2509 _ACEOF
2510 rm -f conftest.$ac_objext
2511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2512 (eval $ac_compile) 2>conftest.er1
2513 ac_status=$?
2514 grep -v '^ *+' conftest.er1 >conftest.err
2515 rm -f conftest.er1
2516 cat conftest.err >&5
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); } &&
2519 { ac_try='test -z "$ac_cxx_werror_flag"
2520 || test ! -s conftest.err'
2521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2522 (eval $ac_try) 2>&5
2523 ac_status=$?
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }; } &&
2526 { ac_try='test -s conftest.$ac_objext'
2527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2528 (eval $ac_try) 2>&5
2529 ac_status=$?
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); }; }; then
2532 break
2533 else
2534 echo "$as_me: failed program was:" >&5
2535 sed 's/^/| /' conftest.$ac_ext >&5
2538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2539 done
2540 rm -f conftest*
2541 if test -n "$ac_declaration"; then
2542 echo '#ifdef __cplusplus' >>confdefs.h
2543 echo $ac_declaration >>confdefs.h
2544 echo '#endif' >>confdefs.h
2547 ac_ext=c
2548 ac_cpp='$CPP $CPPFLAGS'
2549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2552 DEPDIR="${am__leading_dot}deps"
2554 ac_config_commands="$ac_config_commands depfiles"
2557 am_make=${MAKE-make}
2558 cat > confinc << 'END'
2559 am__doit:
2560 @echo done
2561 .PHONY: am__doit
2563 # If we don't find an include directive, just comment out the code.
2564 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2565 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2566 am__include="#"
2567 am__quote=
2568 _am_result=none
2569 # First try GNU make style include.
2570 echo "include confinc" > confmf
2571 # We grep out `Entering directory' and `Leaving directory'
2572 # messages which can occur if `w' ends up in MAKEFLAGS.
2573 # In particular we don't look at `^make:' because GNU make might
2574 # be invoked under some other name (usually "gmake"), in which
2575 # case it prints its new name instead of `make'.
2576 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2577 am__include=include
2578 am__quote=
2579 _am_result=GNU
2581 # Now try BSD make style include.
2582 if test "$am__include" = "#"; then
2583 echo '.include "confinc"' > confmf
2584 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2585 am__include=.include
2586 am__quote="\""
2587 _am_result=BSD
2592 echo "$as_me:$LINENO: result: $_am_result" >&5
2593 echo "${ECHO_T}$_am_result" >&6
2594 rm -f confinc confmf
2596 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2597 if test "${enable_dependency_tracking+set}" = set; then
2598 enableval="$enable_dependency_tracking"
2601 if test "x$enable_dependency_tracking" != xno; then
2602 am_depcomp="$ac_aux_dir/depcomp"
2603 AMDEPBACKSLASH='\'
2607 if test "x$enable_dependency_tracking" != xno; then
2608 AMDEP_TRUE=
2609 AMDEP_FALSE='#'
2610 else
2611 AMDEP_TRUE='#'
2612 AMDEP_FALSE=
2618 depcc="$CXX" am_compiler_list=
2620 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2621 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2622 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2623 echo $ECHO_N "(cached) $ECHO_C" >&6
2624 else
2625 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2626 # We make a subdir and do the tests there. Otherwise we can end up
2627 # making bogus files that we don't know about and never remove. For
2628 # instance it was reported that on HP-UX the gcc test will end up
2629 # making a dummy file named `D' -- because `-MD' means `put the output
2630 # in D'.
2631 mkdir conftest.dir
2632 # Copy depcomp to subdir because otherwise we won't find it if we're
2633 # using a relative directory.
2634 cp "$am_depcomp" conftest.dir
2635 cd conftest.dir
2636 # We will build objects and dependencies in a subdirectory because
2637 # it helps to detect inapplicable dependency modes. For instance
2638 # both Tru64's cc and ICC support -MD to output dependencies as a
2639 # side effect of compilation, but ICC will put the dependencies in
2640 # the current directory while Tru64 will put them in the object
2641 # directory.
2642 mkdir sub
2644 am_cv_CXX_dependencies_compiler_type=none
2645 if test "$am_compiler_list" = ""; then
2646 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2648 for depmode in $am_compiler_list; do
2649 # Setup a source with many dependencies, because some compilers
2650 # like to wrap large dependency lists on column 80 (with \), and
2651 # we should not choose a depcomp mode which is confused by this.
2653 # We need to recreate these files for each test, as the compiler may
2654 # overwrite some of them when testing with obscure command lines.
2655 # This happens at least with the AIX C compiler.
2656 : > sub/conftest.c
2657 for i in 1 2 3 4 5 6; do
2658 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2659 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2660 # Solaris 8's {/usr,}/bin/sh.
2661 touch sub/conftst$i.h
2662 done
2663 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2665 case $depmode in
2666 nosideeffect)
2667 # after this tag, mechanisms are not by side-effect, so they'll
2668 # only be used when explicitly requested
2669 if test "x$enable_dependency_tracking" = xyes; then
2670 continue
2671 else
2672 break
2675 none) break ;;
2676 esac
2677 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2678 # mode. It turns out that the SunPro C++ compiler does not properly
2679 # handle `-M -o', and we need to detect this.
2680 if depmode=$depmode \
2681 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2682 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2683 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2684 >/dev/null 2>conftest.err &&
2685 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2686 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2687 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2688 # icc doesn't choke on unknown options, it will just issue warnings
2689 # or remarks (even with -Werror). So we grep stderr for any message
2690 # that says an option was ignored or not supported.
2691 # When given -MP, icc 7.0 and 7.1 complain thusly:
2692 # icc: Command line warning: ignoring option '-M'; no argument required
2693 # The diagnosis changed in icc 8.0:
2694 # icc: Command line remark: option '-MP' not supported
2695 if (grep 'ignoring option' conftest.err ||
2696 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2697 am_cv_CXX_dependencies_compiler_type=$depmode
2698 break
2701 done
2703 cd ..
2704 rm -rf conftest.dir
2705 else
2706 am_cv_CXX_dependencies_compiler_type=none
2710 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2711 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2712 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2717 test "x$enable_dependency_tracking" != xno \
2718 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2719 am__fastdepCXX_TRUE=
2720 am__fastdepCXX_FALSE='#'
2721 else
2722 am__fastdepCXX_TRUE='#'
2723 am__fastdepCXX_FALSE=
2727 ac_ext=cc
2728 ac_cpp='$CXXCPP $CPPFLAGS'
2729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2732 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2733 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2734 if test -z "$CXXCPP"; then
2735 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2736 echo $ECHO_N "(cached) $ECHO_C" >&6
2737 else
2738 # Double quotes because CXXCPP needs to be expanded
2739 for CXXCPP in "$CXX -E" "/lib/cpp"
2741 ac_preproc_ok=false
2742 for ac_cxx_preproc_warn_flag in '' yes
2744 # Use a header file that comes with gcc, so configuring glibc
2745 # with a fresh cross-compiler works.
2746 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2747 # <limits.h> exists even on freestanding compilers.
2748 # On the NeXT, cc -E runs the code through the compiler's parser,
2749 # not just through cpp. "Syntax error" is here to catch this case.
2750 cat >conftest.$ac_ext <<_ACEOF
2751 /* confdefs.h. */
2752 _ACEOF
2753 cat confdefs.h >>conftest.$ac_ext
2754 cat >>conftest.$ac_ext <<_ACEOF
2755 /* end confdefs.h. */
2756 #ifdef __STDC__
2757 # include <limits.h>
2758 #else
2759 # include <assert.h>
2760 #endif
2761 Syntax error
2762 _ACEOF
2763 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2764 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2765 ac_status=$?
2766 grep -v '^ *+' conftest.er1 >conftest.err
2767 rm -f conftest.er1
2768 cat conftest.err >&5
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); } >/dev/null; then
2771 if test -s conftest.err; then
2772 ac_cpp_err=$ac_cxx_preproc_warn_flag
2773 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2774 else
2775 ac_cpp_err=
2777 else
2778 ac_cpp_err=yes
2780 if test -z "$ac_cpp_err"; then
2782 else
2783 echo "$as_me: failed program was:" >&5
2784 sed 's/^/| /' conftest.$ac_ext >&5
2786 # Broken: fails on valid input.
2787 continue
2789 rm -f conftest.err conftest.$ac_ext
2791 # OK, works on sane cases. Now check whether non-existent headers
2792 # can be detected and how.
2793 cat >conftest.$ac_ext <<_ACEOF
2794 /* confdefs.h. */
2795 _ACEOF
2796 cat confdefs.h >>conftest.$ac_ext
2797 cat >>conftest.$ac_ext <<_ACEOF
2798 /* end confdefs.h. */
2799 #include <ac_nonexistent.h>
2800 _ACEOF
2801 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2802 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2803 ac_status=$?
2804 grep -v '^ *+' conftest.er1 >conftest.err
2805 rm -f conftest.er1
2806 cat conftest.err >&5
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); } >/dev/null; then
2809 if test -s conftest.err; then
2810 ac_cpp_err=$ac_cxx_preproc_warn_flag
2811 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2812 else
2813 ac_cpp_err=
2815 else
2816 ac_cpp_err=yes
2818 if test -z "$ac_cpp_err"; then
2819 # Broken: success on invalid input.
2820 continue
2821 else
2822 echo "$as_me: failed program was:" >&5
2823 sed 's/^/| /' conftest.$ac_ext >&5
2825 # Passes both tests.
2826 ac_preproc_ok=:
2827 break
2829 rm -f conftest.err conftest.$ac_ext
2831 done
2832 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2833 rm -f conftest.err conftest.$ac_ext
2834 if $ac_preproc_ok; then
2835 break
2838 done
2839 ac_cv_prog_CXXCPP=$CXXCPP
2842 CXXCPP=$ac_cv_prog_CXXCPP
2843 else
2844 ac_cv_prog_CXXCPP=$CXXCPP
2846 echo "$as_me:$LINENO: result: $CXXCPP" >&5
2847 echo "${ECHO_T}$CXXCPP" >&6
2848 ac_preproc_ok=false
2849 for ac_cxx_preproc_warn_flag in '' yes
2851 # Use a header file that comes with gcc, so configuring glibc
2852 # with a fresh cross-compiler works.
2853 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2854 # <limits.h> exists even on freestanding compilers.
2855 # On the NeXT, cc -E runs the code through the compiler's parser,
2856 # not just through cpp. "Syntax error" is here to catch this case.
2857 cat >conftest.$ac_ext <<_ACEOF
2858 /* confdefs.h. */
2859 _ACEOF
2860 cat confdefs.h >>conftest.$ac_ext
2861 cat >>conftest.$ac_ext <<_ACEOF
2862 /* end confdefs.h. */
2863 #ifdef __STDC__
2864 # include <limits.h>
2865 #else
2866 # include <assert.h>
2867 #endif
2868 Syntax error
2869 _ACEOF
2870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2871 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2872 ac_status=$?
2873 grep -v '^ *+' conftest.er1 >conftest.err
2874 rm -f conftest.er1
2875 cat conftest.err >&5
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); } >/dev/null; then
2878 if test -s conftest.err; then
2879 ac_cpp_err=$ac_cxx_preproc_warn_flag
2880 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2881 else
2882 ac_cpp_err=
2884 else
2885 ac_cpp_err=yes
2887 if test -z "$ac_cpp_err"; then
2889 else
2890 echo "$as_me: failed program was:" >&5
2891 sed 's/^/| /' conftest.$ac_ext >&5
2893 # Broken: fails on valid input.
2894 continue
2896 rm -f conftest.err conftest.$ac_ext
2898 # OK, works on sane cases. Now check whether non-existent headers
2899 # can be detected and how.
2900 cat >conftest.$ac_ext <<_ACEOF
2901 /* confdefs.h. */
2902 _ACEOF
2903 cat confdefs.h >>conftest.$ac_ext
2904 cat >>conftest.$ac_ext <<_ACEOF
2905 /* end confdefs.h. */
2906 #include <ac_nonexistent.h>
2907 _ACEOF
2908 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2909 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2910 ac_status=$?
2911 grep -v '^ *+' conftest.er1 >conftest.err
2912 rm -f conftest.er1
2913 cat conftest.err >&5
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); } >/dev/null; then
2916 if test -s conftest.err; then
2917 ac_cpp_err=$ac_cxx_preproc_warn_flag
2918 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2919 else
2920 ac_cpp_err=
2922 else
2923 ac_cpp_err=yes
2925 if test -z "$ac_cpp_err"; then
2926 # Broken: success on invalid input.
2927 continue
2928 else
2929 echo "$as_me: failed program was:" >&5
2930 sed 's/^/| /' conftest.$ac_ext >&5
2932 # Passes both tests.
2933 ac_preproc_ok=:
2934 break
2936 rm -f conftest.err conftest.$ac_ext
2938 done
2939 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2940 rm -f conftest.err conftest.$ac_ext
2941 if $ac_preproc_ok; then
2943 else
2944 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2945 See \`config.log' for more details." >&5
2946 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2947 See \`config.log' for more details." >&2;}
2948 { (exit 1); exit 1; }; }
2951 ac_ext=c
2952 ac_cpp='$CPP $CPPFLAGS'
2953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2957 ac_ext=c
2958 ac_cpp='$CPP $CPPFLAGS'
2959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2962 if test -n "$ac_tool_prefix"; then
2963 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2964 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2965 echo "$as_me:$LINENO: checking for $ac_word" >&5
2966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2967 if test "${ac_cv_prog_CC+set}" = set; then
2968 echo $ECHO_N "(cached) $ECHO_C" >&6
2969 else
2970 if test -n "$CC"; then
2971 ac_cv_prog_CC="$CC" # Let the user override the test.
2972 else
2973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974 for as_dir in $PATH
2976 IFS=$as_save_IFS
2977 test -z "$as_dir" && as_dir=.
2978 for ac_exec_ext in '' $ac_executable_extensions; do
2979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2980 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2982 break 2
2984 done
2985 done
2989 CC=$ac_cv_prog_CC
2990 if test -n "$CC"; then
2991 echo "$as_me:$LINENO: result: $CC" >&5
2992 echo "${ECHO_T}$CC" >&6
2993 else
2994 echo "$as_me:$LINENO: result: no" >&5
2995 echo "${ECHO_T}no" >&6
2999 if test -z "$ac_cv_prog_CC"; then
3000 ac_ct_CC=$CC
3001 # Extract the first word of "gcc", so it can be a program name with args.
3002 set dummy gcc; ac_word=$2
3003 echo "$as_me:$LINENO: checking for $ac_word" >&5
3004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3005 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3006 echo $ECHO_N "(cached) $ECHO_C" >&6
3007 else
3008 if test -n "$ac_ct_CC"; then
3009 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3010 else
3011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012 for as_dir in $PATH
3014 IFS=$as_save_IFS
3015 test -z "$as_dir" && as_dir=.
3016 for ac_exec_ext in '' $ac_executable_extensions; do
3017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3018 ac_cv_prog_ac_ct_CC="gcc"
3019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3020 break 2
3022 done
3023 done
3027 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3028 if test -n "$ac_ct_CC"; then
3029 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3030 echo "${ECHO_T}$ac_ct_CC" >&6
3031 else
3032 echo "$as_me:$LINENO: result: no" >&5
3033 echo "${ECHO_T}no" >&6
3036 CC=$ac_ct_CC
3037 else
3038 CC="$ac_cv_prog_CC"
3041 if test -z "$CC"; then
3042 if test -n "$ac_tool_prefix"; then
3043 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3044 set dummy ${ac_tool_prefix}cc; ac_word=$2
3045 echo "$as_me:$LINENO: checking for $ac_word" >&5
3046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3047 if test "${ac_cv_prog_CC+set}" = set; then
3048 echo $ECHO_N "(cached) $ECHO_C" >&6
3049 else
3050 if test -n "$CC"; then
3051 ac_cv_prog_CC="$CC" # Let the user override the test.
3052 else
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054 for as_dir in $PATH
3056 IFS=$as_save_IFS
3057 test -z "$as_dir" && as_dir=.
3058 for ac_exec_ext in '' $ac_executable_extensions; do
3059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3060 ac_cv_prog_CC="${ac_tool_prefix}cc"
3061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3062 break 2
3064 done
3065 done
3069 CC=$ac_cv_prog_CC
3070 if test -n "$CC"; then
3071 echo "$as_me:$LINENO: result: $CC" >&5
3072 echo "${ECHO_T}$CC" >&6
3073 else
3074 echo "$as_me:$LINENO: result: no" >&5
3075 echo "${ECHO_T}no" >&6
3079 if test -z "$ac_cv_prog_CC"; then
3080 ac_ct_CC=$CC
3081 # Extract the first word of "cc", so it can be a program name with args.
3082 set dummy cc; ac_word=$2
3083 echo "$as_me:$LINENO: checking for $ac_word" >&5
3084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3085 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3086 echo $ECHO_N "(cached) $ECHO_C" >&6
3087 else
3088 if test -n "$ac_ct_CC"; then
3089 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3090 else
3091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092 for as_dir in $PATH
3094 IFS=$as_save_IFS
3095 test -z "$as_dir" && as_dir=.
3096 for ac_exec_ext in '' $ac_executable_extensions; do
3097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3098 ac_cv_prog_ac_ct_CC="cc"
3099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3100 break 2
3102 done
3103 done
3107 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3108 if test -n "$ac_ct_CC"; then
3109 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3110 echo "${ECHO_T}$ac_ct_CC" >&6
3111 else
3112 echo "$as_me:$LINENO: result: no" >&5
3113 echo "${ECHO_T}no" >&6
3116 CC=$ac_ct_CC
3117 else
3118 CC="$ac_cv_prog_CC"
3122 if test -z "$CC"; then
3123 # Extract the first word of "cc", so it can be a program name with args.
3124 set dummy cc; ac_word=$2
3125 echo "$as_me:$LINENO: checking for $ac_word" >&5
3126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3127 if test "${ac_cv_prog_CC+set}" = set; then
3128 echo $ECHO_N "(cached) $ECHO_C" >&6
3129 else
3130 if test -n "$CC"; then
3131 ac_cv_prog_CC="$CC" # Let the user override the test.
3132 else
3133 ac_prog_rejected=no
3134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135 for as_dir in $PATH
3137 IFS=$as_save_IFS
3138 test -z "$as_dir" && as_dir=.
3139 for ac_exec_ext in '' $ac_executable_extensions; do
3140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3141 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3142 ac_prog_rejected=yes
3143 continue
3145 ac_cv_prog_CC="cc"
3146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3147 break 2
3149 done
3150 done
3152 if test $ac_prog_rejected = yes; then
3153 # We found a bogon in the path, so make sure we never use it.
3154 set dummy $ac_cv_prog_CC
3155 shift
3156 if test $# != 0; then
3157 # We chose a different compiler from the bogus one.
3158 # However, it has the same basename, so the bogon will be chosen
3159 # first if we set CC to just the basename; use the full file name.
3160 shift
3161 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3166 CC=$ac_cv_prog_CC
3167 if test -n "$CC"; then
3168 echo "$as_me:$LINENO: result: $CC" >&5
3169 echo "${ECHO_T}$CC" >&6
3170 else
3171 echo "$as_me:$LINENO: result: no" >&5
3172 echo "${ECHO_T}no" >&6
3176 if test -z "$CC"; then
3177 if test -n "$ac_tool_prefix"; then
3178 for ac_prog in cl
3180 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3181 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3182 echo "$as_me:$LINENO: checking for $ac_word" >&5
3183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3184 if test "${ac_cv_prog_CC+set}" = set; then
3185 echo $ECHO_N "(cached) $ECHO_C" >&6
3186 else
3187 if test -n "$CC"; then
3188 ac_cv_prog_CC="$CC" # Let the user override the test.
3189 else
3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191 for as_dir in $PATH
3193 IFS=$as_save_IFS
3194 test -z "$as_dir" && as_dir=.
3195 for ac_exec_ext in '' $ac_executable_extensions; do
3196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3197 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3199 break 2
3201 done
3202 done
3206 CC=$ac_cv_prog_CC
3207 if test -n "$CC"; then
3208 echo "$as_me:$LINENO: result: $CC" >&5
3209 echo "${ECHO_T}$CC" >&6
3210 else
3211 echo "$as_me:$LINENO: result: no" >&5
3212 echo "${ECHO_T}no" >&6
3215 test -n "$CC" && break
3216 done
3218 if test -z "$CC"; then
3219 ac_ct_CC=$CC
3220 for ac_prog in cl
3222 # Extract the first word of "$ac_prog", so it can be a program name with args.
3223 set dummy $ac_prog; ac_word=$2
3224 echo "$as_me:$LINENO: checking for $ac_word" >&5
3225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3226 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3227 echo $ECHO_N "(cached) $ECHO_C" >&6
3228 else
3229 if test -n "$ac_ct_CC"; then
3230 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3231 else
3232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3233 for as_dir in $PATH
3235 IFS=$as_save_IFS
3236 test -z "$as_dir" && as_dir=.
3237 for ac_exec_ext in '' $ac_executable_extensions; do
3238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3239 ac_cv_prog_ac_ct_CC="$ac_prog"
3240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3241 break 2
3243 done
3244 done
3248 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3249 if test -n "$ac_ct_CC"; then
3250 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3251 echo "${ECHO_T}$ac_ct_CC" >&6
3252 else
3253 echo "$as_me:$LINENO: result: no" >&5
3254 echo "${ECHO_T}no" >&6
3257 test -n "$ac_ct_CC" && break
3258 done
3260 CC=$ac_ct_CC
3266 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3267 See \`config.log' for more details." >&5
3268 echo "$as_me: error: no acceptable C compiler found in \$PATH
3269 See \`config.log' for more details." >&2;}
3270 { (exit 1); exit 1; }; }
3272 # Provide some information about the compiler.
3273 echo "$as_me:$LINENO:" \
3274 "checking for C compiler version" >&5
3275 ac_compiler=`set X $ac_compile; echo $2`
3276 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3277 (eval $ac_compiler --version </dev/null >&5) 2>&5
3278 ac_status=$?
3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); }
3281 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3282 (eval $ac_compiler -v </dev/null >&5) 2>&5
3283 ac_status=$?
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); }
3286 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3287 (eval $ac_compiler -V </dev/null >&5) 2>&5
3288 ac_status=$?
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); }
3292 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3293 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3294 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3296 else
3297 cat >conftest.$ac_ext <<_ACEOF
3298 /* confdefs.h. */
3299 _ACEOF
3300 cat confdefs.h >>conftest.$ac_ext
3301 cat >>conftest.$ac_ext <<_ACEOF
3302 /* end confdefs.h. */
3305 main ()
3307 #ifndef __GNUC__
3308 choke me
3309 #endif
3312 return 0;
3314 _ACEOF
3315 rm -f conftest.$ac_objext
3316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3317 (eval $ac_compile) 2>conftest.er1
3318 ac_status=$?
3319 grep -v '^ *+' conftest.er1 >conftest.err
3320 rm -f conftest.er1
3321 cat conftest.err >&5
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); } &&
3324 { ac_try='test -z "$ac_c_werror_flag"
3325 || test ! -s conftest.err'
3326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3327 (eval $ac_try) 2>&5
3328 ac_status=$?
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); }; } &&
3331 { ac_try='test -s conftest.$ac_objext'
3332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3333 (eval $ac_try) 2>&5
3334 ac_status=$?
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); }; }; then
3337 ac_compiler_gnu=yes
3338 else
3339 echo "$as_me: failed program was:" >&5
3340 sed 's/^/| /' conftest.$ac_ext >&5
3342 ac_compiler_gnu=no
3344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3345 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3348 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3349 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3350 GCC=`test $ac_compiler_gnu = yes && echo yes`
3351 ac_test_CFLAGS=${CFLAGS+set}
3352 ac_save_CFLAGS=$CFLAGS
3353 CFLAGS="-g"
3354 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3355 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3356 if test "${ac_cv_prog_cc_g+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3358 else
3359 cat >conftest.$ac_ext <<_ACEOF
3360 /* confdefs.h. */
3361 _ACEOF
3362 cat confdefs.h >>conftest.$ac_ext
3363 cat >>conftest.$ac_ext <<_ACEOF
3364 /* end confdefs.h. */
3367 main ()
3371 return 0;
3373 _ACEOF
3374 rm -f conftest.$ac_objext
3375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3376 (eval $ac_compile) 2>conftest.er1
3377 ac_status=$?
3378 grep -v '^ *+' conftest.er1 >conftest.err
3379 rm -f conftest.er1
3380 cat conftest.err >&5
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); } &&
3383 { ac_try='test -z "$ac_c_werror_flag"
3384 || test ! -s conftest.err'
3385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3386 (eval $ac_try) 2>&5
3387 ac_status=$?
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); }; } &&
3390 { ac_try='test -s conftest.$ac_objext'
3391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3392 (eval $ac_try) 2>&5
3393 ac_status=$?
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); }; }; then
3396 ac_cv_prog_cc_g=yes
3397 else
3398 echo "$as_me: failed program was:" >&5
3399 sed 's/^/| /' conftest.$ac_ext >&5
3401 ac_cv_prog_cc_g=no
3403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3405 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3406 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3407 if test "$ac_test_CFLAGS" = set; then
3408 CFLAGS=$ac_save_CFLAGS
3409 elif test $ac_cv_prog_cc_g = yes; then
3410 if test "$GCC" = yes; then
3411 CFLAGS="-g -O2"
3412 else
3413 CFLAGS="-g"
3415 else
3416 if test "$GCC" = yes; then
3417 CFLAGS="-O2"
3418 else
3419 CFLAGS=
3422 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3423 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3424 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3425 echo $ECHO_N "(cached) $ECHO_C" >&6
3426 else
3427 ac_cv_prog_cc_stdc=no
3428 ac_save_CC=$CC
3429 cat >conftest.$ac_ext <<_ACEOF
3430 /* confdefs.h. */
3431 _ACEOF
3432 cat confdefs.h >>conftest.$ac_ext
3433 cat >>conftest.$ac_ext <<_ACEOF
3434 /* end confdefs.h. */
3435 #include <stdarg.h>
3436 #include <stdio.h>
3437 #include <sys/types.h>
3438 #include <sys/stat.h>
3439 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3440 struct buf { int x; };
3441 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3442 static char *e (p, i)
3443 char **p;
3444 int i;
3446 return p[i];
3448 static char *f (char * (*g) (char **, int), char **p, ...)
3450 char *s;
3451 va_list v;
3452 va_start (v,p);
3453 s = g (p, va_arg (v,int));
3454 va_end (v);
3455 return s;
3458 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3459 function prototypes and stuff, but not '\xHH' hex character constants.
3460 These don't provoke an error unfortunately, instead are silently treated
3461 as 'x'. The following induces an error, until -std1 is added to get
3462 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3463 array size at least. It's necessary to write '\x00'==0 to get something
3464 that's true only with -std1. */
3465 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3467 int test (int i, double x);
3468 struct s1 {int (*f) (int a);};
3469 struct s2 {int (*f) (double a);};
3470 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3471 int argc;
3472 char **argv;
3474 main ()
3476 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3478 return 0;
3480 _ACEOF
3481 # Don't try gcc -ansi; that turns off useful extensions and
3482 # breaks some systems' header files.
3483 # AIX -qlanglvl=ansi
3484 # Ultrix and OSF/1 -std1
3485 # HP-UX 10.20 and later -Ae
3486 # HP-UX older versions -Aa -D_HPUX_SOURCE
3487 # SVR4 -Xc -D__EXTENSIONS__
3488 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3490 CC="$ac_save_CC $ac_arg"
3491 rm -f conftest.$ac_objext
3492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3493 (eval $ac_compile) 2>conftest.er1
3494 ac_status=$?
3495 grep -v '^ *+' conftest.er1 >conftest.err
3496 rm -f conftest.er1
3497 cat conftest.err >&5
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); } &&
3500 { ac_try='test -z "$ac_c_werror_flag"
3501 || test ! -s conftest.err'
3502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3503 (eval $ac_try) 2>&5
3504 ac_status=$?
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); }; } &&
3507 { ac_try='test -s conftest.$ac_objext'
3508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3509 (eval $ac_try) 2>&5
3510 ac_status=$?
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); }; }; then
3513 ac_cv_prog_cc_stdc=$ac_arg
3514 break
3515 else
3516 echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3520 rm -f conftest.err conftest.$ac_objext
3521 done
3522 rm -f conftest.$ac_ext conftest.$ac_objext
3523 CC=$ac_save_CC
3527 case "x$ac_cv_prog_cc_stdc" in
3528 x|xno)
3529 echo "$as_me:$LINENO: result: none needed" >&5
3530 echo "${ECHO_T}none needed" >&6 ;;
3532 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3533 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3534 CC="$CC $ac_cv_prog_cc_stdc" ;;
3535 esac
3537 # Some people use a C++ compiler to compile C. Since we use `exit',
3538 # in C++ we need to declare it. In case someone uses the same compiler
3539 # for both compiling C and C++ we need to have the C++ compiler decide
3540 # the declaration of exit, since it's the most demanding environment.
3541 cat >conftest.$ac_ext <<_ACEOF
3542 #ifndef __cplusplus
3543 choke me
3544 #endif
3545 _ACEOF
3546 rm -f conftest.$ac_objext
3547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3548 (eval $ac_compile) 2>conftest.er1
3549 ac_status=$?
3550 grep -v '^ *+' conftest.er1 >conftest.err
3551 rm -f conftest.er1
3552 cat conftest.err >&5
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); } &&
3555 { ac_try='test -z "$ac_c_werror_flag"
3556 || test ! -s conftest.err'
3557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3558 (eval $ac_try) 2>&5
3559 ac_status=$?
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); }; } &&
3562 { ac_try='test -s conftest.$ac_objext'
3563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3564 (eval $ac_try) 2>&5
3565 ac_status=$?
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); }; }; then
3568 for ac_declaration in \
3569 '' \
3570 'extern "C" void std::exit (int) throw (); using std::exit;' \
3571 'extern "C" void std::exit (int); using std::exit;' \
3572 'extern "C" void exit (int) throw ();' \
3573 'extern "C" void exit (int);' \
3574 'void exit (int);'
3576 cat >conftest.$ac_ext <<_ACEOF
3577 /* confdefs.h. */
3578 _ACEOF
3579 cat confdefs.h >>conftest.$ac_ext
3580 cat >>conftest.$ac_ext <<_ACEOF
3581 /* end confdefs.h. */
3582 $ac_declaration
3583 #include <stdlib.h>
3585 main ()
3587 exit (42);
3589 return 0;
3591 _ACEOF
3592 rm -f conftest.$ac_objext
3593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3594 (eval $ac_compile) 2>conftest.er1
3595 ac_status=$?
3596 grep -v '^ *+' conftest.er1 >conftest.err
3597 rm -f conftest.er1
3598 cat conftest.err >&5
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); } &&
3601 { ac_try='test -z "$ac_c_werror_flag"
3602 || test ! -s conftest.err'
3603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3604 (eval $ac_try) 2>&5
3605 ac_status=$?
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); }; } &&
3608 { ac_try='test -s conftest.$ac_objext'
3609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610 (eval $ac_try) 2>&5
3611 ac_status=$?
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); }; }; then
3615 else
3616 echo "$as_me: failed program was:" >&5
3617 sed 's/^/| /' conftest.$ac_ext >&5
3619 continue
3621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3622 cat >conftest.$ac_ext <<_ACEOF
3623 /* confdefs.h. */
3624 _ACEOF
3625 cat confdefs.h >>conftest.$ac_ext
3626 cat >>conftest.$ac_ext <<_ACEOF
3627 /* end confdefs.h. */
3628 $ac_declaration
3630 main ()
3632 exit (42);
3634 return 0;
3636 _ACEOF
3637 rm -f conftest.$ac_objext
3638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3639 (eval $ac_compile) 2>conftest.er1
3640 ac_status=$?
3641 grep -v '^ *+' conftest.er1 >conftest.err
3642 rm -f conftest.er1
3643 cat conftest.err >&5
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); } &&
3646 { ac_try='test -z "$ac_c_werror_flag"
3647 || test ! -s conftest.err'
3648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3649 (eval $ac_try) 2>&5
3650 ac_status=$?
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); }; } &&
3653 { ac_try='test -s conftest.$ac_objext'
3654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3655 (eval $ac_try) 2>&5
3656 ac_status=$?
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); }; }; then
3659 break
3660 else
3661 echo "$as_me: failed program was:" >&5
3662 sed 's/^/| /' conftest.$ac_ext >&5
3665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3666 done
3667 rm -f conftest*
3668 if test -n "$ac_declaration"; then
3669 echo '#ifdef __cplusplus' >>confdefs.h
3670 echo $ac_declaration >>confdefs.h
3671 echo '#endif' >>confdefs.h
3674 else
3675 echo "$as_me: failed program was:" >&5
3676 sed 's/^/| /' conftest.$ac_ext >&5
3679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3680 ac_ext=c
3681 ac_cpp='$CPP $CPPFLAGS'
3682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3686 depcc="$CC" am_compiler_list=
3688 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3689 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3690 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3691 echo $ECHO_N "(cached) $ECHO_C" >&6
3692 else
3693 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3694 # We make a subdir and do the tests there. Otherwise we can end up
3695 # making bogus files that we don't know about and never remove. For
3696 # instance it was reported that on HP-UX the gcc test will end up
3697 # making a dummy file named `D' -- because `-MD' means `put the output
3698 # in D'.
3699 mkdir conftest.dir
3700 # Copy depcomp to subdir because otherwise we won't find it if we're
3701 # using a relative directory.
3702 cp "$am_depcomp" conftest.dir
3703 cd conftest.dir
3704 # We will build objects and dependencies in a subdirectory because
3705 # it helps to detect inapplicable dependency modes. For instance
3706 # both Tru64's cc and ICC support -MD to output dependencies as a
3707 # side effect of compilation, but ICC will put the dependencies in
3708 # the current directory while Tru64 will put them in the object
3709 # directory.
3710 mkdir sub
3712 am_cv_CC_dependencies_compiler_type=none
3713 if test "$am_compiler_list" = ""; then
3714 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3716 for depmode in $am_compiler_list; do
3717 # Setup a source with many dependencies, because some compilers
3718 # like to wrap large dependency lists on column 80 (with \), and
3719 # we should not choose a depcomp mode which is confused by this.
3721 # We need to recreate these files for each test, as the compiler may
3722 # overwrite some of them when testing with obscure command lines.
3723 # This happens at least with the AIX C compiler.
3724 : > sub/conftest.c
3725 for i in 1 2 3 4 5 6; do
3726 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3727 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3728 # Solaris 8's {/usr,}/bin/sh.
3729 touch sub/conftst$i.h
3730 done
3731 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3733 case $depmode in
3734 nosideeffect)
3735 # after this tag, mechanisms are not by side-effect, so they'll
3736 # only be used when explicitly requested
3737 if test "x$enable_dependency_tracking" = xyes; then
3738 continue
3739 else
3740 break
3743 none) break ;;
3744 esac
3745 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3746 # mode. It turns out that the SunPro C++ compiler does not properly
3747 # handle `-M -o', and we need to detect this.
3748 if depmode=$depmode \
3749 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3750 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3751 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3752 >/dev/null 2>conftest.err &&
3753 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3754 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3755 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3756 # icc doesn't choke on unknown options, it will just issue warnings
3757 # or remarks (even with -Werror). So we grep stderr for any message
3758 # that says an option was ignored or not supported.
3759 # When given -MP, icc 7.0 and 7.1 complain thusly:
3760 # icc: Command line warning: ignoring option '-M'; no argument required
3761 # The diagnosis changed in icc 8.0:
3762 # icc: Command line remark: option '-MP' not supported
3763 if (grep 'ignoring option' conftest.err ||
3764 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3765 am_cv_CC_dependencies_compiler_type=$depmode
3766 break
3769 done
3771 cd ..
3772 rm -rf conftest.dir
3773 else
3774 am_cv_CC_dependencies_compiler_type=none
3778 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3779 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3780 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3785 test "x$enable_dependency_tracking" != xno \
3786 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3787 am__fastdepCC_TRUE=
3788 am__fastdepCC_FALSE='#'
3789 else
3790 am__fastdepCC_TRUE='#'
3791 am__fastdepCC_FALSE=
3795 ac_ext=c
3796 ac_cpp='$CPP $CPPFLAGS'
3797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3800 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3801 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3802 # On Suns, sometimes $CPP names a directory.
3803 if test -n "$CPP" && test -d "$CPP"; then
3804 CPP=
3806 if test -z "$CPP"; then
3807 if test "${ac_cv_prog_CPP+set}" = set; then
3808 echo $ECHO_N "(cached) $ECHO_C" >&6
3809 else
3810 # Double quotes because CPP needs to be expanded
3811 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3813 ac_preproc_ok=false
3814 for ac_c_preproc_warn_flag in '' yes
3816 # Use a header file that comes with gcc, so configuring glibc
3817 # with a fresh cross-compiler works.
3818 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3819 # <limits.h> exists even on freestanding compilers.
3820 # On the NeXT, cc -E runs the code through the compiler's parser,
3821 # not just through cpp. "Syntax error" is here to catch this case.
3822 cat >conftest.$ac_ext <<_ACEOF
3823 /* confdefs.h. */
3824 _ACEOF
3825 cat confdefs.h >>conftest.$ac_ext
3826 cat >>conftest.$ac_ext <<_ACEOF
3827 /* end confdefs.h. */
3828 #ifdef __STDC__
3829 # include <limits.h>
3830 #else
3831 # include <assert.h>
3832 #endif
3833 Syntax error
3834 _ACEOF
3835 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3836 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3837 ac_status=$?
3838 grep -v '^ *+' conftest.er1 >conftest.err
3839 rm -f conftest.er1
3840 cat conftest.err >&5
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); } >/dev/null; then
3843 if test -s conftest.err; then
3844 ac_cpp_err=$ac_c_preproc_warn_flag
3845 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3846 else
3847 ac_cpp_err=
3849 else
3850 ac_cpp_err=yes
3852 if test -z "$ac_cpp_err"; then
3854 else
3855 echo "$as_me: failed program was:" >&5
3856 sed 's/^/| /' conftest.$ac_ext >&5
3858 # Broken: fails on valid input.
3859 continue
3861 rm -f conftest.err conftest.$ac_ext
3863 # OK, works on sane cases. Now check whether non-existent headers
3864 # can be detected and how.
3865 cat >conftest.$ac_ext <<_ACEOF
3866 /* confdefs.h. */
3867 _ACEOF
3868 cat confdefs.h >>conftest.$ac_ext
3869 cat >>conftest.$ac_ext <<_ACEOF
3870 /* end confdefs.h. */
3871 #include <ac_nonexistent.h>
3872 _ACEOF
3873 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3874 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3875 ac_status=$?
3876 grep -v '^ *+' conftest.er1 >conftest.err
3877 rm -f conftest.er1
3878 cat conftest.err >&5
3879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880 (exit $ac_status); } >/dev/null; then
3881 if test -s conftest.err; then
3882 ac_cpp_err=$ac_c_preproc_warn_flag
3883 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3884 else
3885 ac_cpp_err=
3887 else
3888 ac_cpp_err=yes
3890 if test -z "$ac_cpp_err"; then
3891 # Broken: success on invalid input.
3892 continue
3893 else
3894 echo "$as_me: failed program was:" >&5
3895 sed 's/^/| /' conftest.$ac_ext >&5
3897 # Passes both tests.
3898 ac_preproc_ok=:
3899 break
3901 rm -f conftest.err conftest.$ac_ext
3903 done
3904 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3905 rm -f conftest.err conftest.$ac_ext
3906 if $ac_preproc_ok; then
3907 break
3910 done
3911 ac_cv_prog_CPP=$CPP
3914 CPP=$ac_cv_prog_CPP
3915 else
3916 ac_cv_prog_CPP=$CPP
3918 echo "$as_me:$LINENO: result: $CPP" >&5
3919 echo "${ECHO_T}$CPP" >&6
3920 ac_preproc_ok=false
3921 for ac_c_preproc_warn_flag in '' yes
3923 # Use a header file that comes with gcc, so configuring glibc
3924 # with a fresh cross-compiler works.
3925 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3926 # <limits.h> exists even on freestanding compilers.
3927 # On the NeXT, cc -E runs the code through the compiler's parser,
3928 # not just through cpp. "Syntax error" is here to catch this case.
3929 cat >conftest.$ac_ext <<_ACEOF
3930 /* confdefs.h. */
3931 _ACEOF
3932 cat confdefs.h >>conftest.$ac_ext
3933 cat >>conftest.$ac_ext <<_ACEOF
3934 /* end confdefs.h. */
3935 #ifdef __STDC__
3936 # include <limits.h>
3937 #else
3938 # include <assert.h>
3939 #endif
3940 Syntax error
3941 _ACEOF
3942 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3943 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3944 ac_status=$?
3945 grep -v '^ *+' conftest.er1 >conftest.err
3946 rm -f conftest.er1
3947 cat conftest.err >&5
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); } >/dev/null; then
3950 if test -s conftest.err; then
3951 ac_cpp_err=$ac_c_preproc_warn_flag
3952 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3953 else
3954 ac_cpp_err=
3956 else
3957 ac_cpp_err=yes
3959 if test -z "$ac_cpp_err"; then
3961 else
3962 echo "$as_me: failed program was:" >&5
3963 sed 's/^/| /' conftest.$ac_ext >&5
3965 # Broken: fails on valid input.
3966 continue
3968 rm -f conftest.err conftest.$ac_ext
3970 # OK, works on sane cases. Now check whether non-existent headers
3971 # can be detected and how.
3972 cat >conftest.$ac_ext <<_ACEOF
3973 /* confdefs.h. */
3974 _ACEOF
3975 cat confdefs.h >>conftest.$ac_ext
3976 cat >>conftest.$ac_ext <<_ACEOF
3977 /* end confdefs.h. */
3978 #include <ac_nonexistent.h>
3979 _ACEOF
3980 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3981 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3982 ac_status=$?
3983 grep -v '^ *+' conftest.er1 >conftest.err
3984 rm -f conftest.er1
3985 cat conftest.err >&5
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); } >/dev/null; then
3988 if test -s conftest.err; then
3989 ac_cpp_err=$ac_c_preproc_warn_flag
3990 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3991 else
3992 ac_cpp_err=
3994 else
3995 ac_cpp_err=yes
3997 if test -z "$ac_cpp_err"; then
3998 # Broken: success on invalid input.
3999 continue
4000 else
4001 echo "$as_me: failed program was:" >&5
4002 sed 's/^/| /' conftest.$ac_ext >&5
4004 # Passes both tests.
4005 ac_preproc_ok=:
4006 break
4008 rm -f conftest.err conftest.$ac_ext
4010 done
4011 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4012 rm -f conftest.err conftest.$ac_ext
4013 if $ac_preproc_ok; then
4015 else
4016 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4017 See \`config.log' for more details." >&5
4018 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4019 See \`config.log' for more details." >&2;}
4020 { (exit 1); exit 1; }; }
4023 ac_ext=c
4024 ac_cpp='$CPP $CPPFLAGS'
4025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4029 if test "$cross_compiling" = yes; then
4030 ac_build_prefix=
4031 test -n "$build_alias" && ac_build_prefix=$build_alias-
4034 # Even if we're cross-compiling, we want a compiler here
4035 # that is not a cross-compiler.
4036 saved_cross=$cross_compiling
4037 cross_compiling=no
4039 ac_ext=c
4040 ac_cpp='$CPP $BUILD_CPPFLAGS'
4041 ac_compile='$BUILD_CC -c $BUILD_CFLAGS $BUILD_CPPFLAGS conftest.$ac_ext >&5'
4042 ac_link='$BUILD_CC -o conftest$ac_build_exeext $BUILD_CFLAGS $BUILD_CPPFLAGS $BUILD_LDFLAGS conftest.$ac_ext $BUILD_LIBS >&5'
4043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4044 if test -n "$ac_build_prefix"; then
4045 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4046 set dummy ${ac_build_prefix}gcc; ac_word=$2
4047 echo "$as_me:$LINENO: checking for $ac_word" >&5
4048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4049 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4051 else
4052 if test -n "$BUILD_CC"; then
4053 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4054 else
4055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4056 for as_dir in $PATH
4058 IFS=$as_save_IFS
4059 test -z "$as_dir" && as_dir=.
4060 for ac_exec_ext in '' $ac_executable_extensions; do
4061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4062 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4064 break 2
4066 done
4067 done
4071 BUILD_CC=$ac_cv_prog_BUILD_CC
4072 if test -n "$BUILD_CC"; then
4073 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4074 echo "${ECHO_T}$BUILD_CC" >&6
4075 else
4076 echo "$as_me:$LINENO: result: no" >&5
4077 echo "${ECHO_T}no" >&6
4081 if test -z "$ac_cv_prog_BUILD_CC"; then
4082 ac_ct_BUILD_CC=$BUILD_CC
4083 # Extract the first word of "gcc", so it can be a program name with args.
4084 set dummy gcc; ac_word=$2
4085 echo "$as_me:$LINENO: checking for $ac_word" >&5
4086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4087 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
4089 else
4090 if test -n "$ac_ct_BUILD_CC"; then
4091 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
4092 else
4093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094 for as_dir in $PATH
4096 IFS=$as_save_IFS
4097 test -z "$as_dir" && as_dir=.
4098 for ac_exec_ext in '' $ac_executable_extensions; do
4099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4100 ac_cv_prog_ac_ct_BUILD_CC="gcc"
4101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4102 break 2
4104 done
4105 done
4109 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
4110 if test -n "$ac_ct_BUILD_CC"; then
4111 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4112 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4113 else
4114 echo "$as_me:$LINENO: result: no" >&5
4115 echo "${ECHO_T}no" >&6
4118 BUILD_CC=$ac_ct_BUILD_CC
4119 else
4120 BUILD_CC="$ac_cv_prog_BUILD_CC"
4123 if test -z "$BUILD_CC"; then
4124 if test -n "$ac_build_prefix"; then
4125 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4126 set dummy ${ac_build_prefix}cc; ac_word=$2
4127 echo "$as_me:$LINENO: checking for $ac_word" >&5
4128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4129 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4130 echo $ECHO_N "(cached) $ECHO_C" >&6
4131 else
4132 if test -n "$BUILD_CC"; then
4133 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4134 else
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 for as_dir in $PATH
4138 IFS=$as_save_IFS
4139 test -z "$as_dir" && as_dir=.
4140 for ac_exec_ext in '' $ac_executable_extensions; do
4141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4142 ac_cv_prog_BUILD_CC="${ac_build_prefix}cc"
4143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4144 break 2
4146 done
4147 done
4151 BUILD_CC=$ac_cv_prog_BUILD_CC
4152 if test -n "$BUILD_CC"; then
4153 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4154 echo "${ECHO_T}$BUILD_CC" >&6
4155 else
4156 echo "$as_me:$LINENO: result: no" >&5
4157 echo "${ECHO_T}no" >&6
4161 if test -z "$ac_cv_prog_BUILD_CC"; then
4162 ac_ct_BUILD_CC=$BUILD_CC
4163 # Extract the first word of "cc", so it can be a program name with args.
4164 set dummy cc; ac_word=$2
4165 echo "$as_me:$LINENO: checking for $ac_word" >&5
4166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4167 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4168 echo $ECHO_N "(cached) $ECHO_C" >&6
4169 else
4170 if test -n "$ac_ct_BUILD_CC"; then
4171 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
4172 else
4173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 for as_dir in $PATH
4176 IFS=$as_save_IFS
4177 test -z "$as_dir" && as_dir=.
4178 for ac_exec_ext in '' $ac_executable_extensions; do
4179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4180 ac_cv_prog_ac_ct_BUILD_CC="cc"
4181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4182 break 2
4184 done
4185 done
4189 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
4190 if test -n "$ac_ct_BUILD_CC"; then
4191 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4192 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4193 else
4194 echo "$as_me:$LINENO: result: no" >&5
4195 echo "${ECHO_T}no" >&6
4198 BUILD_CC=$ac_ct_BUILD_CC
4199 else
4200 BUILD_CC="$ac_cv_prog_BUILD_CC"
4204 if test -z "$BUILD_CC"; then
4205 # Extract the first word of "cc", so it can be a program name with args.
4206 set dummy cc; ac_word=$2
4207 echo "$as_me:$LINENO: checking for $ac_word" >&5
4208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4209 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4210 echo $ECHO_N "(cached) $ECHO_C" >&6
4211 else
4212 if test -n "$BUILD_CC"; then
4213 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4214 else
4215 ac_prog_rejected=no
4216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217 for as_dir in $PATH
4219 IFS=$as_save_IFS
4220 test -z "$as_dir" && as_dir=.
4221 for ac_exec_ext in '' $ac_executable_extensions; do
4222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4223 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4224 ac_prog_rejected=yes
4225 continue
4227 ac_cv_prog_BUILD_CC="cc"
4228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4229 break 2
4231 done
4232 done
4234 if test $ac_prog_rejected = yes; then
4235 # We found a bogon in the path, so make sure we never use it.
4236 set dummy $ac_cv_prog_BUILD_CC
4237 shift
4238 if test $# != 0; then
4239 # We chose a different compiler from the bogus one.
4240 # However, it has the same basename, so the bogon will be chosen
4241 # first if we set BUILD_CC to just the basename; use the full file name.
4242 shift
4243 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4248 BUILD_CC=$ac_cv_prog_BUILD_CC
4249 if test -n "$BUILD_CC"; then
4250 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4251 echo "${ECHO_T}$BUILD_CC" >&6
4252 else
4253 echo "$as_me:$LINENO: result: no" >&5
4254 echo "${ECHO_T}no" >&6
4258 if test -z "$BUILD_CC"; then
4259 if test -n "$ac_build_prefix"; then
4260 for ac_prog in cl
4262 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4263 set dummy $ac_build_prefix$ac_prog; ac_word=$2
4264 echo "$as_me:$LINENO: checking for $ac_word" >&5
4265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4266 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4267 echo $ECHO_N "(cached) $ECHO_C" >&6
4268 else
4269 if test -n "$BUILD_CC"; then
4270 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4271 else
4272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273 for as_dir in $PATH
4275 IFS=$as_save_IFS
4276 test -z "$as_dir" && as_dir=.
4277 for ac_exec_ext in '' $ac_executable_extensions; do
4278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4279 ac_cv_prog_BUILD_CC="$ac_build_prefix$ac_prog"
4280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4281 break 2
4283 done
4284 done
4288 BUILD_CC=$ac_cv_prog_BUILD_CC
4289 if test -n "$BUILD_CC"; then
4290 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4291 echo "${ECHO_T}$BUILD_CC" >&6
4292 else
4293 echo "$as_me:$LINENO: result: no" >&5
4294 echo "${ECHO_T}no" >&6
4297 test -n "$BUILD_CC" && break
4298 done
4300 if test -z "$BUILD_CC"; then
4301 ac_ct_BUILD_CC=$BUILD_CC
4302 for ac_prog in cl
4304 # Extract the first word of "$ac_prog", so it can be a program name with args.
4305 set dummy $ac_prog; ac_word=$2
4306 echo "$as_me:$LINENO: checking for $ac_word" >&5
4307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4308 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
4310 else
4311 if test -n "$ac_ct_BUILD_CC"; then
4312 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
4313 else
4314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315 for as_dir in $PATH
4317 IFS=$as_save_IFS
4318 test -z "$as_dir" && as_dir=.
4319 for ac_exec_ext in '' $ac_executable_extensions; do
4320 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4321 ac_cv_prog_ac_ct_BUILD_CC="$ac_prog"
4322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4323 break 2
4325 done
4326 done
4330 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
4331 if test -n "$ac_ct_BUILD_CC"; then
4332 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4333 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4334 else
4335 echo "$as_me:$LINENO: result: no" >&5
4336 echo "${ECHO_T}no" >&6
4339 test -n "$ac_ct_BUILD_CC" && break
4340 done
4342 BUILD_CC=$ac_ct_BUILD_CC
4348 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4349 See \`config.log' for more details." >&5
4350 echo "$as_me: error: no acceptable C compiler found in \$PATH
4351 See \`config.log' for more details." >&2;}
4352 { (exit 1); exit 1; }; }
4354 # Provide some information about the compiler.
4355 echo "$as_me:$LINENO:" \
4356 "checking for C compiler version" >&5
4357 ac_compiler=`set X $ac_compile; echo $2`
4358 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4359 (eval $ac_compiler --version </dev/null >&5) 2>&5
4360 ac_status=$?
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }
4363 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4364 (eval $ac_compiler -v </dev/null >&5) 2>&5
4365 ac_status=$?
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); }
4368 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4369 (eval $ac_compiler -V </dev/null >&5) 2>&5
4370 ac_status=$?
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); }
4374 cat >conftest.$ac_ext <<_ACEOF
4375 /* confdefs.h. */
4376 _ACEOF
4377 cat confdefs.h >>conftest.$ac_ext
4378 cat >>conftest.$ac_ext <<_ACEOF
4379 /* end confdefs.h. */
4382 main ()
4386 return 0;
4388 _ACEOF
4389 ac_clean_files_save=$ac_clean_files
4390 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4391 # Try to create an executable without -o first, disregard a.out.
4392 # It will help us diagnose broken compilers, and finding out an intuition
4393 # of exeext.
4394 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4395 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4396 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4397 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4398 (eval $ac_link_default) 2>&5
4399 ac_status=$?
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); }; then
4402 # Find the output, starting from the most likely. This scheme is
4403 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4404 # resort.
4406 # Be careful to initialize this variable, since it used to be cached.
4407 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4408 ac_cv_build_exeext=
4409 # b.out is created by i960 compilers.
4410 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4412 test -f "$ac_file" || continue
4413 case $ac_file in
4414 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4416 conftest.$ac_ext )
4417 # This is the source file.
4419 [ab].out )
4420 # We found the default executable, but exeext='' is most
4421 # certainly right.
4422 break;;
4423 *.* )
4424 ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4425 # FIXME: I believe we export ac_cv_exeext for Libtool,
4426 # but it would be cool to find out if it's true. Does anybody
4427 # maintain Libtool? --akim.
4428 export ac_cv_build_exeext
4429 break;;
4431 break;;
4432 esac
4433 done
4434 else
4435 echo "$as_me: failed program was:" >&5
4436 sed 's/^/| /' conftest.$ac_ext >&5
4438 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4439 See \`config.log' for more details." >&5
4440 echo "$as_me: error: C compiler cannot create executables
4441 See \`config.log' for more details." >&2;}
4442 { (exit 77); exit 77; }; }
4445 ac_build_exeext=$ac_cv_build_exeext
4446 echo "$as_me:$LINENO: result: $ac_file" >&5
4447 echo "${ECHO_T}$ac_file" >&6
4449 # Check the compiler produces executables we can run. If not, either
4450 # the compiler is broken, or we cross compile.
4451 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4452 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4453 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4454 # If not cross compiling, check that we can run a simple program.
4455 if test "$cross_compiling" != yes; then
4456 if { ac_try='./$ac_file'
4457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4458 (eval $ac_try) 2>&5
4459 ac_status=$?
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); }; }; then
4462 cross_compiling=no
4463 else
4464 if test "$cross_compiling" = maybe; then
4465 cross_compiling=yes
4466 else
4467 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4468 If you meant to cross compile, use \`--host'.
4469 See \`config.log' for more details." >&5
4470 echo "$as_me: error: cannot run C compiled programs.
4471 If you meant to cross compile, use \`--host'.
4472 See \`config.log' for more details." >&2;}
4473 { (exit 1); exit 1; }; }
4477 echo "$as_me:$LINENO: result: yes" >&5
4478 echo "${ECHO_T}yes" >&6
4480 rm -f a.out a.exe conftest$ac_cv_build_exeext b.out
4481 ac_clean_files=$ac_clean_files_save
4482 # Check the compiler produces executables we can run. If not, either
4483 # the compiler is broken, or we cross compile.
4484 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4485 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4486 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4487 echo "${ECHO_T}$cross_compiling" >&6
4489 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4490 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4492 (eval $ac_link) 2>&5
4493 ac_status=$?
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); }; then
4496 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4497 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4498 # work properly (i.e., refer to `conftest.exe'), while it won't with
4499 # `rm'.
4500 for ac_file in conftest.exe conftest conftest.*; do
4501 test -f "$ac_file" || continue
4502 case $ac_file in
4503 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4504 *.* ) ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4505 export ac_cv_build_exeext
4506 break;;
4507 * ) break;;
4508 esac
4509 done
4510 else
4511 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4512 See \`config.log' for more details." >&5
4513 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4514 See \`config.log' for more details." >&2;}
4515 { (exit 1); exit 1; }; }
4518 rm -f conftest$ac_cv_build_exeext
4519 echo "$as_me:$LINENO: result: $ac_cv_build_exeext" >&5
4520 echo "${ECHO_T}$ac_cv_build_exeext" >&6
4522 rm -f conftest.$ac_ext
4523 BUILD_EXEEXT=$ac_cv_build_exeext
4524 ac_build_exeext=$BUILD_EXEEXT
4527 # Restore configuration environment
4528 cross_compiling=$saved_cross
4530 ac_ext=c
4531 ac_cpp='$CPP $CPPFLAGS'
4532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4536 else
4537 BUILD_CC="$CC" ; BUILD_EXEEXT=$EXEEXT
4540 CFLAGS="$mule_backup_CFLAGS"
4541 CXXFLAGS="$mule_backup_CXXFLAGS"
4542 BUILD_CFLAGS="$mule_backup_BUILD_CFLAGS"
4543 for ac_prog in gawk mawk nawk awk
4545 # Extract the first word of "$ac_prog", so it can be a program name with args.
4546 set dummy $ac_prog; ac_word=$2
4547 echo "$as_me:$LINENO: checking for $ac_word" >&5
4548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4549 if test "${ac_cv_prog_AWK+set}" = set; then
4550 echo $ECHO_N "(cached) $ECHO_C" >&6
4551 else
4552 if test -n "$AWK"; then
4553 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4554 else
4555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556 for as_dir in $PATH
4558 IFS=$as_save_IFS
4559 test -z "$as_dir" && as_dir=.
4560 for ac_exec_ext in '' $ac_executable_extensions; do
4561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4562 ac_cv_prog_AWK="$ac_prog"
4563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4564 break 2
4566 done
4567 done
4571 AWK=$ac_cv_prog_AWK
4572 if test -n "$AWK"; then
4573 echo "$as_me:$LINENO: result: $AWK" >&5
4574 echo "${ECHO_T}$AWK" >&6
4575 else
4576 echo "$as_me:$LINENO: result: no" >&5
4577 echo "${ECHO_T}no" >&6
4580 test -n "$AWK" && break
4581 done
4583 echo "$as_me:$LINENO: checking for egrep" >&5
4584 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4585 if test "${ac_cv_prog_egrep+set}" = set; then
4586 echo $ECHO_N "(cached) $ECHO_C" >&6
4587 else
4588 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4589 then ac_cv_prog_egrep='grep -E'
4590 else ac_cv_prog_egrep='egrep'
4593 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4594 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4595 EGREP=$ac_cv_prog_egrep
4598 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4599 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4600 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4601 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4602 echo $ECHO_N "(cached) $ECHO_C" >&6
4603 else
4604 cat >conftest.make <<\_ACEOF
4605 all:
4606 @echo 'ac_maketemp="$(MAKE)"'
4607 _ACEOF
4608 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4609 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4610 if test -n "$ac_maketemp"; then
4611 eval ac_cv_prog_make_${ac_make}_set=yes
4612 else
4613 eval ac_cv_prog_make_${ac_make}_set=no
4615 rm -f conftest.make
4617 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4618 echo "$as_me:$LINENO: result: yes" >&5
4619 echo "${ECHO_T}yes" >&6
4620 SET_MAKE=
4621 else
4622 echo "$as_me:$LINENO: result: no" >&5
4623 echo "${ECHO_T}no" >&6
4624 SET_MAKE="MAKE=${MAKE-make}"
4628 for ac_prog in flex lex
4630 # Extract the first word of "$ac_prog", so it can be a program name with args.
4631 set dummy $ac_prog; ac_word=$2
4632 echo "$as_me:$LINENO: checking for $ac_word" >&5
4633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4634 if test "${ac_cv_prog_LEX+set}" = set; then
4635 echo $ECHO_N "(cached) $ECHO_C" >&6
4636 else
4637 if test -n "$LEX"; then
4638 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4639 else
4640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641 for as_dir in $PATH
4643 IFS=$as_save_IFS
4644 test -z "$as_dir" && as_dir=.
4645 for ac_exec_ext in '' $ac_executable_extensions; do
4646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4647 ac_cv_prog_LEX="$ac_prog"
4648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4649 break 2
4651 done
4652 done
4656 LEX=$ac_cv_prog_LEX
4657 if test -n "$LEX"; then
4658 echo "$as_me:$LINENO: result: $LEX" >&5
4659 echo "${ECHO_T}$LEX" >&6
4660 else
4661 echo "$as_me:$LINENO: result: no" >&5
4662 echo "${ECHO_T}no" >&6
4665 test -n "$LEX" && break
4666 done
4667 test -n "$LEX" || LEX=":"
4669 if test -z "$LEXLIB"
4670 then
4671 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4672 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4673 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4674 echo $ECHO_N "(cached) $ECHO_C" >&6
4675 else
4676 ac_check_lib_save_LIBS=$LIBS
4677 LIBS="-lfl $LIBS"
4678 cat >conftest.$ac_ext <<_ACEOF
4679 /* confdefs.h. */
4680 _ACEOF
4681 cat confdefs.h >>conftest.$ac_ext
4682 cat >>conftest.$ac_ext <<_ACEOF
4683 /* end confdefs.h. */
4685 /* Override any gcc2 internal prototype to avoid an error. */
4686 #ifdef __cplusplus
4687 extern "C"
4688 #endif
4689 /* We use char because int might match the return type of a gcc2
4690 builtin and then its argument prototype would still apply. */
4691 char yywrap ();
4693 main ()
4695 yywrap ();
4697 return 0;
4699 _ACEOF
4700 rm -f conftest.$ac_objext conftest$ac_exeext
4701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4702 (eval $ac_link) 2>conftest.er1
4703 ac_status=$?
4704 grep -v '^ *+' conftest.er1 >conftest.err
4705 rm -f conftest.er1
4706 cat conftest.err >&5
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); } &&
4709 { ac_try='test -z "$ac_c_werror_flag"
4710 || test ! -s conftest.err'
4711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4712 (eval $ac_try) 2>&5
4713 ac_status=$?
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); }; } &&
4716 { ac_try='test -s conftest$ac_exeext'
4717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718 (eval $ac_try) 2>&5
4719 ac_status=$?
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); }; }; then
4722 ac_cv_lib_fl_yywrap=yes
4723 else
4724 echo "$as_me: failed program was:" >&5
4725 sed 's/^/| /' conftest.$ac_ext >&5
4727 ac_cv_lib_fl_yywrap=no
4729 rm -f conftest.err conftest.$ac_objext \
4730 conftest$ac_exeext conftest.$ac_ext
4731 LIBS=$ac_check_lib_save_LIBS
4733 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4734 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4735 if test $ac_cv_lib_fl_yywrap = yes; then
4736 LEXLIB="-lfl"
4737 else
4738 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4739 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4740 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4742 else
4743 ac_check_lib_save_LIBS=$LIBS
4744 LIBS="-ll $LIBS"
4745 cat >conftest.$ac_ext <<_ACEOF
4746 /* confdefs.h. */
4747 _ACEOF
4748 cat confdefs.h >>conftest.$ac_ext
4749 cat >>conftest.$ac_ext <<_ACEOF
4750 /* end confdefs.h. */
4752 /* Override any gcc2 internal prototype to avoid an error. */
4753 #ifdef __cplusplus
4754 extern "C"
4755 #endif
4756 /* We use char because int might match the return type of a gcc2
4757 builtin and then its argument prototype would still apply. */
4758 char yywrap ();
4760 main ()
4762 yywrap ();
4764 return 0;
4766 _ACEOF
4767 rm -f conftest.$ac_objext conftest$ac_exeext
4768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4769 (eval $ac_link) 2>conftest.er1
4770 ac_status=$?
4771 grep -v '^ *+' conftest.er1 >conftest.err
4772 rm -f conftest.er1
4773 cat conftest.err >&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); } &&
4776 { ac_try='test -z "$ac_c_werror_flag"
4777 || test ! -s conftest.err'
4778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4779 (eval $ac_try) 2>&5
4780 ac_status=$?
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); }; } &&
4783 { ac_try='test -s conftest$ac_exeext'
4784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785 (eval $ac_try) 2>&5
4786 ac_status=$?
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); }; }; then
4789 ac_cv_lib_l_yywrap=yes
4790 else
4791 echo "$as_me: failed program was:" >&5
4792 sed 's/^/| /' conftest.$ac_ext >&5
4794 ac_cv_lib_l_yywrap=no
4796 rm -f conftest.err conftest.$ac_objext \
4797 conftest$ac_exeext conftest.$ac_ext
4798 LIBS=$ac_check_lib_save_LIBS
4800 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4801 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4802 if test $ac_cv_lib_l_yywrap = yes; then
4803 LEXLIB="-ll"
4810 if test "x$LEX" != "x:"; then
4811 echo "$as_me:$LINENO: checking lex output file root" >&5
4812 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4813 if test "${ac_cv_prog_lex_root+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4815 else
4816 # The minimal lex program is just a single line: %%. But some broken lexes
4817 # (Solaris, I think it was) want two %% lines, so accommodate them.
4818 cat >conftest.l <<_ACEOF
4821 _ACEOF
4822 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4823 (eval $LEX conftest.l) 2>&5
4824 ac_status=$?
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); }
4827 if test -f lex.yy.c; then
4828 ac_cv_prog_lex_root=lex.yy
4829 elif test -f lexyy.c; then
4830 ac_cv_prog_lex_root=lexyy
4831 else
4832 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4833 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4834 { (exit 1); exit 1; }; }
4837 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4838 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4839 rm -f conftest.l
4840 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4842 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4843 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4844 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4845 echo $ECHO_N "(cached) $ECHO_C" >&6
4846 else
4847 # POSIX says lex can declare yytext either as a pointer or an array; the
4848 # default is implementation-dependent. Figure out which it is, since
4849 # not all implementations provide the %pointer and %array declarations.
4850 ac_cv_prog_lex_yytext_pointer=no
4851 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4852 ac_save_LIBS=$LIBS
4853 LIBS="$LIBS $LEXLIB"
4854 cat >conftest.$ac_ext <<_ACEOF
4855 `cat $LEX_OUTPUT_ROOT.c`
4856 _ACEOF
4857 rm -f conftest.$ac_objext conftest$ac_exeext
4858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4859 (eval $ac_link) 2>conftest.er1
4860 ac_status=$?
4861 grep -v '^ *+' conftest.er1 >conftest.err
4862 rm -f conftest.er1
4863 cat conftest.err >&5
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); } &&
4866 { ac_try='test -z "$ac_c_werror_flag"
4867 || test ! -s conftest.err'
4868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4869 (eval $ac_try) 2>&5
4870 ac_status=$?
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); }; } &&
4873 { ac_try='test -s conftest$ac_exeext'
4874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4875 (eval $ac_try) 2>&5
4876 ac_status=$?
4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); }; }; then
4879 ac_cv_prog_lex_yytext_pointer=yes
4880 else
4881 echo "$as_me: failed program was:" >&5
4882 sed 's/^/| /' conftest.$ac_ext >&5
4885 rm -f conftest.err conftest.$ac_objext \
4886 conftest$ac_exeext conftest.$ac_ext
4887 LIBS=$ac_save_LIBS
4888 rm -f "${LEX_OUTPUT_ROOT}.c"
4891 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4892 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4893 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4895 cat >>confdefs.h <<\_ACEOF
4896 #define YYTEXT_POINTER 1
4897 _ACEOF
4902 # Find a good install program. We prefer a C program (faster),
4903 # so one script is as good as another. But avoid the broken or
4904 # incompatible versions:
4905 # SysV /etc/install, /usr/sbin/install
4906 # SunOS /usr/etc/install
4907 # IRIX /sbin/install
4908 # AIX /bin/install
4909 # AmigaOS /C/install, which installs bootblocks on floppy discs
4910 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4911 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4912 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4913 # OS/2's system install, which has a completely different semantic
4914 # ./install, which can be erroneously created by make from ./install.sh.
4915 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4916 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4917 if test -z "$INSTALL"; then
4918 if test "${ac_cv_path_install+set}" = set; then
4919 echo $ECHO_N "(cached) $ECHO_C" >&6
4920 else
4921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922 for as_dir in $PATH
4924 IFS=$as_save_IFS
4925 test -z "$as_dir" && as_dir=.
4926 # Account for people who put trailing slashes in PATH elements.
4927 case $as_dir/ in
4928 ./ | .// | /cC/* | \
4929 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4930 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4931 /usr/ucb/* ) ;;
4933 # OSF1 and SCO ODT 3.0 have their own names for install.
4934 # Don't use installbsd from OSF since it installs stuff as root
4935 # by default.
4936 for ac_prog in ginstall scoinst install; do
4937 for ac_exec_ext in '' $ac_executable_extensions; do
4938 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4939 if test $ac_prog = install &&
4940 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4941 # AIX install. It has an incompatible calling convention.
4943 elif test $ac_prog = install &&
4944 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4945 # program-specific install script used by HP pwplus--don't use.
4947 else
4948 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4949 break 3
4952 done
4953 done
4955 esac
4956 done
4960 if test "${ac_cv_path_install+set}" = set; then
4961 INSTALL=$ac_cv_path_install
4962 else
4963 # As a last resort, use the slow shell script. We don't cache a
4964 # path for INSTALL within a source directory, because that will
4965 # break other packages using the cache if that directory is
4966 # removed, or if the path is relative.
4967 INSTALL=$ac_install_sh
4970 echo "$as_me:$LINENO: result: $INSTALL" >&5
4971 echo "${ECHO_T}$INSTALL" >&6
4973 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4974 # It thinks the first close brace ends the variable substitution.
4975 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4977 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4979 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4981 if test -n "$ac_tool_prefix"; then
4982 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4983 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4984 echo "$as_me:$LINENO: checking for $ac_word" >&5
4985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4986 if test "${ac_cv_prog_RANLIB+set}" = set; then
4987 echo $ECHO_N "(cached) $ECHO_C" >&6
4988 else
4989 if test -n "$RANLIB"; then
4990 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4991 else
4992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993 for as_dir in $PATH
4995 IFS=$as_save_IFS
4996 test -z "$as_dir" && as_dir=.
4997 for ac_exec_ext in '' $ac_executable_extensions; do
4998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4999 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5001 break 2
5003 done
5004 done
5008 RANLIB=$ac_cv_prog_RANLIB
5009 if test -n "$RANLIB"; then
5010 echo "$as_me:$LINENO: result: $RANLIB" >&5
5011 echo "${ECHO_T}$RANLIB" >&6
5012 else
5013 echo "$as_me:$LINENO: result: no" >&5
5014 echo "${ECHO_T}no" >&6
5018 if test -z "$ac_cv_prog_RANLIB"; then
5019 ac_ct_RANLIB=$RANLIB
5020 # Extract the first word of "ranlib", so it can be a program name with args.
5021 set dummy ranlib; ac_word=$2
5022 echo "$as_me:$LINENO: checking for $ac_word" >&5
5023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5024 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5025 echo $ECHO_N "(cached) $ECHO_C" >&6
5026 else
5027 if test -n "$ac_ct_RANLIB"; then
5028 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5029 else
5030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031 for as_dir in $PATH
5033 IFS=$as_save_IFS
5034 test -z "$as_dir" && as_dir=.
5035 for ac_exec_ext in '' $ac_executable_extensions; do
5036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5037 ac_cv_prog_ac_ct_RANLIB="ranlib"
5038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5039 break 2
5041 done
5042 done
5044 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5047 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5048 if test -n "$ac_ct_RANLIB"; then
5049 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5050 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5051 else
5052 echo "$as_me:$LINENO: result: no" >&5
5053 echo "${ECHO_T}no" >&6
5056 RANLIB=$ac_ct_RANLIB
5057 else
5058 RANLIB="$ac_cv_prog_RANLIB"
5061 for ac_prog in 'bison -y' byacc
5063 # Extract the first word of "$ac_prog", so it can be a program name with args.
5064 set dummy $ac_prog; ac_word=$2
5065 echo "$as_me:$LINENO: checking for $ac_word" >&5
5066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5067 if test "${ac_cv_prog_YACC+set}" = set; then
5068 echo $ECHO_N "(cached) $ECHO_C" >&6
5069 else
5070 if test -n "$YACC"; then
5071 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5072 else
5073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074 for as_dir in $PATH
5076 IFS=$as_save_IFS
5077 test -z "$as_dir" && as_dir=.
5078 for ac_exec_ext in '' $ac_executable_extensions; do
5079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5080 ac_cv_prog_YACC="$ac_prog"
5081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5082 break 2
5084 done
5085 done
5089 YACC=$ac_cv_prog_YACC
5090 if test -n "$YACC"; then
5091 echo "$as_me:$LINENO: result: $YACC" >&5
5092 echo "${ECHO_T}$YACC" >&6
5093 else
5094 echo "$as_me:$LINENO: result: no" >&5
5095 echo "${ECHO_T}no" >&6
5098 test -n "$YACC" && break
5099 done
5100 test -n "$YACC" || YACC="yacc"
5103 if test -n "$ac_tool_prefix"; then
5104 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5105 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5106 echo "$as_me:$LINENO: checking for $ac_word" >&5
5107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5108 if test "${ac_cv_prog_RANLIB+set}" = set; then
5109 echo $ECHO_N "(cached) $ECHO_C" >&6
5110 else
5111 if test -n "$RANLIB"; then
5112 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5113 else
5114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115 for as_dir in $PATH
5117 IFS=$as_save_IFS
5118 test -z "$as_dir" && as_dir=.
5119 for ac_exec_ext in '' $ac_executable_extensions; do
5120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5121 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5123 break 2
5125 done
5126 done
5130 RANLIB=$ac_cv_prog_RANLIB
5131 if test -n "$RANLIB"; then
5132 echo "$as_me:$LINENO: result: $RANLIB" >&5
5133 echo "${ECHO_T}$RANLIB" >&6
5134 else
5135 echo "$as_me:$LINENO: result: no" >&5
5136 echo "${ECHO_T}no" >&6
5140 if test -z "$ac_cv_prog_RANLIB"; then
5141 ac_ct_RANLIB=$RANLIB
5142 # Extract the first word of "ranlib", so it can be a program name with args.
5143 set dummy ranlib; ac_word=$2
5144 echo "$as_me:$LINENO: checking for $ac_word" >&5
5145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5146 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5147 echo $ECHO_N "(cached) $ECHO_C" >&6
5148 else
5149 if test -n "$ac_ct_RANLIB"; then
5150 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5151 else
5152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153 for as_dir in $PATH
5155 IFS=$as_save_IFS
5156 test -z "$as_dir" && as_dir=.
5157 for ac_exec_ext in '' $ac_executable_extensions; do
5158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5159 ac_cv_prog_ac_ct_RANLIB="ranlib"
5160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5161 break 2
5163 done
5164 done
5168 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5169 if test -n "$ac_ct_RANLIB"; then
5170 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5171 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5172 else
5173 echo "$as_me:$LINENO: result: no" >&5
5174 echo "${ECHO_T}no" >&6
5177 RANLIB=$ac_ct_RANLIB
5178 else
5179 RANLIB="$ac_cv_prog_RANLIB"
5182 if test -n "$ac_tool_prefix"; then
5183 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5184 set dummy ${ac_tool_prefix}strip; ac_word=$2
5185 echo "$as_me:$LINENO: checking for $ac_word" >&5
5186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5187 if test "${ac_cv_prog_STRIP+set}" = set; then
5188 echo $ECHO_N "(cached) $ECHO_C" >&6
5189 else
5190 if test -n "$STRIP"; then
5191 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5192 else
5193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 for as_dir in $PATH
5196 IFS=$as_save_IFS
5197 test -z "$as_dir" && as_dir=.
5198 for ac_exec_ext in '' $ac_executable_extensions; do
5199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5200 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5202 break 2
5204 done
5205 done
5209 STRIP=$ac_cv_prog_STRIP
5210 if test -n "$STRIP"; then
5211 echo "$as_me:$LINENO: result: $STRIP" >&5
5212 echo "${ECHO_T}$STRIP" >&6
5213 else
5214 echo "$as_me:$LINENO: result: no" >&5
5215 echo "${ECHO_T}no" >&6
5219 if test -z "$ac_cv_prog_STRIP"; then
5220 ac_ct_STRIP=$STRIP
5221 # Extract the first word of "strip", so it can be a program name with args.
5222 set dummy strip; ac_word=$2
5223 echo "$as_me:$LINENO: checking for $ac_word" >&5
5224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5225 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5226 echo $ECHO_N "(cached) $ECHO_C" >&6
5227 else
5228 if test -n "$ac_ct_STRIP"; then
5229 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5230 else
5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 for as_dir in $PATH
5234 IFS=$as_save_IFS
5235 test -z "$as_dir" && as_dir=.
5236 for ac_exec_ext in '' $ac_executable_extensions; do
5237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5238 ac_cv_prog_ac_ct_STRIP="strip"
5239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5240 break 2
5242 done
5243 done
5247 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5248 if test -n "$ac_ct_STRIP"; then
5249 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5250 echo "${ECHO_T}$ac_ct_STRIP" >&6
5251 else
5252 echo "$as_me:$LINENO: result: no" >&5
5253 echo "${ECHO_T}no" >&6
5256 STRIP=$ac_ct_STRIP
5257 else
5258 STRIP="$ac_cv_prog_STRIP"
5261 if test -n "$ac_tool_prefix"; then
5262 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5263 set dummy ${ac_tool_prefix}ar; ac_word=$2
5264 echo "$as_me:$LINENO: checking for $ac_word" >&5
5265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5266 if test "${ac_cv_prog_AR+set}" = set; then
5267 echo $ECHO_N "(cached) $ECHO_C" >&6
5268 else
5269 if test -n "$AR"; then
5270 ac_cv_prog_AR="$AR" # Let the user override the test.
5271 else
5272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273 for as_dir in $PATH
5275 IFS=$as_save_IFS
5276 test -z "$as_dir" && as_dir=.
5277 for ac_exec_ext in '' $ac_executable_extensions; do
5278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5279 ac_cv_prog_AR="${ac_tool_prefix}ar"
5280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5281 break 2
5283 done
5284 done
5288 AR=$ac_cv_prog_AR
5289 if test -n "$AR"; then
5290 echo "$as_me:$LINENO: result: $AR" >&5
5291 echo "${ECHO_T}$AR" >&6
5292 else
5293 echo "$as_me:$LINENO: result: no" >&5
5294 echo "${ECHO_T}no" >&6
5298 if test -z "$ac_cv_prog_AR"; then
5299 ac_ct_AR=$AR
5300 # Extract the first word of "ar", so it can be a program name with args.
5301 set dummy ar; ac_word=$2
5302 echo "$as_me:$LINENO: checking for $ac_word" >&5
5303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5304 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
5306 else
5307 if test -n "$ac_ct_AR"; then
5308 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5309 else
5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311 for as_dir in $PATH
5313 IFS=$as_save_IFS
5314 test -z "$as_dir" && as_dir=.
5315 for ac_exec_ext in '' $ac_executable_extensions; do
5316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5317 ac_cv_prog_ac_ct_AR="ar"
5318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5319 break 2
5321 done
5322 done
5326 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5327 if test -n "$ac_ct_AR"; then
5328 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5329 echo "${ECHO_T}$ac_ct_AR" >&6
5330 else
5331 echo "$as_me:$LINENO: result: no" >&5
5332 echo "${ECHO_T}no" >&6
5335 AR=$ac_ct_AR
5336 else
5337 AR="$ac_cv_prog_AR"
5340 if test -n "$ac_tool_prefix"; then
5341 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5342 set dummy ${ac_tool_prefix}ld; ac_word=$2
5343 echo "$as_me:$LINENO: checking for $ac_word" >&5
5344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5345 if test "${ac_cv_prog_LD+set}" = set; then
5346 echo $ECHO_N "(cached) $ECHO_C" >&6
5347 else
5348 if test -n "$LD"; then
5349 ac_cv_prog_LD="$LD" # Let the user override the test.
5350 else
5351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352 for as_dir in $PATH
5354 IFS=$as_save_IFS
5355 test -z "$as_dir" && as_dir=.
5356 for ac_exec_ext in '' $ac_executable_extensions; do
5357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5358 ac_cv_prog_LD="${ac_tool_prefix}ld"
5359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5360 break 2
5362 done
5363 done
5367 LD=$ac_cv_prog_LD
5368 if test -n "$LD"; then
5369 echo "$as_me:$LINENO: result: $LD" >&5
5370 echo "${ECHO_T}$LD" >&6
5371 else
5372 echo "$as_me:$LINENO: result: no" >&5
5373 echo "${ECHO_T}no" >&6
5377 if test -z "$ac_cv_prog_LD"; then
5378 ac_ct_LD=$LD
5379 # Extract the first word of "ld", so it can be a program name with args.
5380 set dummy ld; ac_word=$2
5381 echo "$as_me:$LINENO: checking for $ac_word" >&5
5382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5383 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5384 echo $ECHO_N "(cached) $ECHO_C" >&6
5385 else
5386 if test -n "$ac_ct_LD"; then
5387 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5388 else
5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390 for as_dir in $PATH
5392 IFS=$as_save_IFS
5393 test -z "$as_dir" && as_dir=.
5394 for ac_exec_ext in '' $ac_executable_extensions; do
5395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5396 ac_cv_prog_ac_ct_LD="ld"
5397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5398 break 2
5400 done
5401 done
5405 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5406 if test -n "$ac_ct_LD"; then
5407 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5408 echo "${ECHO_T}$ac_ct_LD" >&6
5409 else
5410 echo "$as_me:$LINENO: result: no" >&5
5411 echo "${ECHO_T}no" >&6
5414 LD=$ac_ct_LD
5415 else
5416 LD="$ac_cv_prog_LD"
5420 # Check whether --enable-monolithic or --disable-monolithic was given.
5421 if test "${enable_monolithic+set}" = set; then
5422 enableval="$enable_monolithic"
5423 MONOLITHIC=$enableval
5424 else
5425 MONOLITHIC=yes
5428 # Check whether --enable-amule-daemon or --disable-amule-daemon was given.
5429 if test "${enable_amule_daemon+set}" = set; then
5430 enableval="$enable_amule_daemon"
5431 AMULE_DAEMON=$enableval
5432 else
5433 AMULE_DAEMON=no
5436 # Check whether --enable-amulecmd or --disable-amulecmd was given.
5437 if test "${enable_amulecmd+set}" = set; then
5438 enableval="$enable_amulecmd"
5439 AMULECMD=$enableval
5440 else
5441 AMULECMD=no
5444 # Check whether --enable-webserver or --disable-webserver was given.
5445 if test "${enable_webserver+set}" = set; then
5446 enableval="$enable_webserver"
5447 WEB=$enableval
5448 else
5449 WEB=no
5452 # Check whether --enable-amule-gui or --disable-amule-gui was given.
5453 if test "${enable_amule_gui+set}" = set; then
5454 enableval="$enable_amule_gui"
5455 AMULE_GUI=$enableval
5456 else
5457 AMULE_GUI=no
5460 # Check whether --enable-cas or --disable-cas was given.
5461 if test "${enable_cas+set}" = set; then
5462 enableval="$enable_cas"
5463 CAS=$enableval
5464 else
5465 CAS=no
5468 # Check whether --enable-wxcas or --disable-wxcas was given.
5469 if test "${enable_wxcas+set}" = set; then
5470 enableval="$enable_wxcas"
5471 WXCAS=$enableval
5472 else
5473 WXCAS=no
5476 # Check whether --enable-ed2k or --disable-ed2k was given.
5477 if test "${enable_ed2k+set}" = set; then
5478 enableval="$enable_ed2k"
5479 ED2K=$enableval
5480 else
5481 ED2K=yes
5484 # Check whether --enable-alc or --disable-alc was given.
5485 if test "${enable_alc+set}" = set; then
5486 enableval="$enable_alc"
5487 ALC=$enableval
5488 else
5489 ALC=no
5492 # Check whether --enable-alcc or --disable-alcc was given.
5493 if test "${enable_alcc+set}" = set; then
5494 enableval="$enable_alcc"
5495 ALCC=$enableval
5496 else
5497 ALCC=no
5500 # Check whether --enable-monolithic or --disable-monolithic was given.
5501 if test "${enable_monolithic+set}" = set; then
5502 enableval="$enable_monolithic"
5503 MONOLITHIC=$enableval
5504 else
5505 MONOLITHIC=yes
5508 # Check whether --enable-upnp or --disable-upnp was given.
5509 if test "${enable_upnp+set}" = set; then
5510 enableval="$enable_upnp"
5511 ENABLE_UPNP=$enableval
5512 else
5513 ENABLE_UPNP=yes
5516 # Check whether --enable-geoip or --disable-geoip was given.
5517 if test "${enable_geoip+set}" = set; then
5518 enableval="$enable_geoip"
5519 ENABLE_IP2COUNTRY=$enableval
5520 else
5521 ENABLE_IP2COUNTRY=no
5525 # Check whether --with-geoip-headers or --without-geoip-headers was given.
5526 if test "${with_geoip_headers+set}" = set; then
5527 withval="$with_geoip_headers"
5528 GEOIP_CPPFLAGS="-I$withval"
5532 # Check whether --with-geoip-lib or --without-geoip-lib was given.
5533 if test "${with_geoip_lib+set}" = set; then
5534 withval="$with_geoip_lib"
5535 GEOIP_LDFLAGS="-L$withval"
5539 # Check whether --with-geoip-static or --without-geoip-static was given.
5540 if test "${with_geoip_static+set}" = set; then
5541 withval="$with_geoip_static"
5542 if test "$withval" != "no"; then
5543 GEOIP_LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic"
5548 # Default is yes, because they're most likely compatible.
5549 # However, this is only used when cross-compiling.
5551 # Check whether --with-gnu-malloc or --without-gnu-malloc was given.
5552 if test "${with_gnu_malloc+set}" = set; then
5553 withval="$with_gnu_malloc"
5554 gnumalloc=$withval
5555 else
5556 gnumalloc=yes
5560 # Checking for libs before all other stuff to break
5561 # configure as soon as possible in case of a missing one
5562 # to avoid losing too much time
5564 # Check for zlib
5567 # Check whether --with-zlib or --without-zlib was given.
5568 if test "${with_zlib+set}" = set; then
5569 withval="$with_zlib"
5573 case "${with_zlib:-yes}" in
5575 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5576 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5577 { (exit 1); exit 1; }; }
5579 yes | sys)
5582 zlib_prefix="$with_zlib"
5583 esac
5585 mule_backup_CPPFLAGS="$CPPFLAGS"
5586 mule_backup_LDFLAGS="$LDFLAGS"
5587 mule_backup_LIBS="$LIBS"
5588 if test -n "$zlib_prefix"; then
5590 ZLIB_CPPFLAGS="-I$zlib_prefix/include"
5591 ZLIB_LDFLAGS="-L$zlib_prefix/lib"
5592 CPPFLAGS="$CPPFLAGS $ZLIB_CPPFLAGS"
5593 LDFLAGS="$LDFLAGS $ZLIB_LDFLAGS"
5595 else
5597 ZLIB_CPPFLAGS=
5598 ZLIB_LDFLAGS=
5602 ZLIB_LIBS="-lz"
5603 LIBS="$ZLIB_LIBS $LIBS"
5605 echo "$as_me:$LINENO: checking for zlib >= 1.1.4" >&5
5606 echo $ECHO_N "checking for zlib >= 1.1.4... $ECHO_C" >&6
5607 if test "$cross_compiling" = yes; then
5609 result=no
5610 z_version=
5611 cat >conftest.$ac_ext <<_ACEOF
5613 /* confdefs.h. */
5614 _ACEOF
5615 cat confdefs.h >>conftest.$ac_ext
5616 cat >>conftest.$ac_ext <<_ACEOF
5617 /* end confdefs.h. */
5619 #include <zlib.h>
5620 #include <stdio.h>
5623 main ()
5626 printf("\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n\n");
5627 zlibVersion();
5630 return 0;
5633 _ACEOF
5634 rm -f conftest.$ac_objext conftest$ac_exeext
5635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5636 (eval $ac_link) 2>conftest.er1
5637 ac_status=$?
5638 grep -v '^ *+' conftest.er1 >conftest.err
5639 rm -f conftest.er1
5640 cat conftest.err >&5
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); } &&
5643 { ac_try='test -z "$ac_c_werror_flag"
5644 || test ! -s conftest.err'
5645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5646 (eval $ac_try) 2>&5
5647 ac_status=$?
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); }; } &&
5650 { ac_try='test -s conftest$ac_exeext'
5651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5652 (eval $ac_try) 2>&5
5653 ac_status=$?
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); }; }; then
5657 ZLIB_VERSION=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest$ac_exeext | sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'`
5658 cross_zver_max="`echo $ZLIB_VERSION | cut -d. -f1`"
5659 cross_zver_mid="`echo $ZLIB_VERSION | cut -d. -f2`"
5660 cross_zver_min="`echo $ZLIB_VERSION | cut -d. -f3`"
5661 if test "$cross_zver_max" -gt "1"; then
5662 result=yes
5663 elif test "$cross_zver_max" -eq "1"; then
5664 if test "$cross_zver_mid" -gt "1"; then
5665 result=yes
5666 elif "$cross_zver_mid" -eq "1"; then
5667 if test "$cross_zver_min" -ge "4"; then
5668 result=yes
5672 if test ${result:-no} = yes; then
5673 z_version=" (version $ZLIB_VERSION)"
5677 else
5678 echo "$as_me: failed program was:" >&5
5679 sed 's/^/| /' conftest.$ac_ext >&5
5682 rm -f conftest.err conftest.$ac_objext \
5683 conftest$ac_exeext conftest.$ac_ext
5684 echo "$as_me:$LINENO: result: $result$z_version" >&5
5685 echo "${ECHO_T}$result$z_version" >&6
5687 else
5688 cat >conftest.$ac_ext <<_ACEOF
5690 /* confdefs.h. */
5691 _ACEOF
5692 cat confdefs.h >>conftest.$ac_ext
5693 cat >>conftest.$ac_ext <<_ACEOF
5694 /* end confdefs.h. */
5696 #include <zlib.h>
5697 #include <stdio.h>
5700 main ()
5702 char *zver = zlibVersion();
5703 FILE *f=fopen("conftestval", "w");
5704 if (!f) return 1;
5705 fprintf(f, "%s",
5706 zver[0] > '1' ||
5707 (zver[0] == '1' &&
5708 (zver[2] > '1' ||
5709 (zver[2] == '1' &&
5710 zver[4] >= '4'))) ? "yes" : "no");
5711 fclose(f);
5712 f=fopen("conftestver", "w");
5713 if (f) {
5714 fprintf(f, "%s", ZLIB_VERSION);
5715 fclose(f);
5719 return 0;
5722 _ACEOF
5723 rm -f conftest$ac_exeext
5724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5725 (eval $ac_link) 2>&5
5726 ac_status=$?
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5730 (eval $ac_try) 2>&5
5731 ac_status=$?
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); }; }; then
5735 if test -f conftestval; then
5736 result=`cat conftestval`
5737 else
5738 result=no
5741 if test ${result:-no} = yes; then
5743 if test -f conftestver; then
5745 ZLIB_VERSION=`cat conftestver`
5746 z_version=" (version $ZLIB_VERSION)"
5748 else
5749 z_version=
5755 echo "$as_me:$LINENO: result: $result$z_version" >&5
5756 echo "${ECHO_T}$result$z_version" >&6
5758 else
5759 echo "$as_me: program exited with status $ac_status" >&5
5760 echo "$as_me: failed program was:" >&5
5761 sed 's/^/| /' conftest.$ac_ext >&5
5763 ( exit $ac_status )
5765 result=no
5766 echo "$as_me:$LINENO: result: $result" >&5
5767 echo "${ECHO_T}$result" >&6
5770 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5773 CPPFLAGS="$mule_backup_CPPFLAGS"
5774 LDFLAGS="$mule_backup_LDFLAGS"
5775 LIBS="$mule_backup_LIBS"
5777 if test ${result:-no} = no; then
5779 ZLIB_CPPFLAGS=
5780 ZLIB_LDFLAGS=
5781 ZLIB_LIBS=
5782 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5783 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5784 { (exit 1); exit 1; }; }
5791 if test x$CAS = xyes; then
5793 # Check for gd
5795 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5796 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5797 if test "${ac_cv_header_stdc+set}" = set; then
5798 echo $ECHO_N "(cached) $ECHO_C" >&6
5799 else
5800 cat >conftest.$ac_ext <<_ACEOF
5801 /* confdefs.h. */
5802 _ACEOF
5803 cat confdefs.h >>conftest.$ac_ext
5804 cat >>conftest.$ac_ext <<_ACEOF
5805 /* end confdefs.h. */
5806 #include <stdlib.h>
5807 #include <stdarg.h>
5808 #include <string.h>
5809 #include <float.h>
5812 main ()
5816 return 0;
5818 _ACEOF
5819 rm -f conftest.$ac_objext
5820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5821 (eval $ac_compile) 2>conftest.er1
5822 ac_status=$?
5823 grep -v '^ *+' conftest.er1 >conftest.err
5824 rm -f conftest.er1
5825 cat conftest.err >&5
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); } &&
5828 { ac_try='test -z "$ac_c_werror_flag"
5829 || test ! -s conftest.err'
5830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5831 (eval $ac_try) 2>&5
5832 ac_status=$?
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); }; } &&
5835 { ac_try='test -s conftest.$ac_objext'
5836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5837 (eval $ac_try) 2>&5
5838 ac_status=$?
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); }; }; then
5841 ac_cv_header_stdc=yes
5842 else
5843 echo "$as_me: failed program was:" >&5
5844 sed 's/^/| /' conftest.$ac_ext >&5
5846 ac_cv_header_stdc=no
5848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5850 if test $ac_cv_header_stdc = yes; then
5851 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5852 cat >conftest.$ac_ext <<_ACEOF
5853 /* confdefs.h. */
5854 _ACEOF
5855 cat confdefs.h >>conftest.$ac_ext
5856 cat >>conftest.$ac_ext <<_ACEOF
5857 /* end confdefs.h. */
5858 #include <string.h>
5860 _ACEOF
5861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5862 $EGREP "memchr" >/dev/null 2>&1; then
5864 else
5865 ac_cv_header_stdc=no
5867 rm -f conftest*
5871 if test $ac_cv_header_stdc = yes; then
5872 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5873 cat >conftest.$ac_ext <<_ACEOF
5874 /* confdefs.h. */
5875 _ACEOF
5876 cat confdefs.h >>conftest.$ac_ext
5877 cat >>conftest.$ac_ext <<_ACEOF
5878 /* end confdefs.h. */
5879 #include <stdlib.h>
5881 _ACEOF
5882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5883 $EGREP "free" >/dev/null 2>&1; then
5885 else
5886 ac_cv_header_stdc=no
5888 rm -f conftest*
5892 if test $ac_cv_header_stdc = yes; then
5893 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5894 if test "$cross_compiling" = yes; then
5896 else
5897 cat >conftest.$ac_ext <<_ACEOF
5898 /* confdefs.h. */
5899 _ACEOF
5900 cat confdefs.h >>conftest.$ac_ext
5901 cat >>conftest.$ac_ext <<_ACEOF
5902 /* end confdefs.h. */
5903 #include <ctype.h>
5904 #if ((' ' & 0x0FF) == 0x020)
5905 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5906 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5907 #else
5908 # define ISLOWER(c) \
5909 (('a' <= (c) && (c) <= 'i') \
5910 || ('j' <= (c) && (c) <= 'r') \
5911 || ('s' <= (c) && (c) <= 'z'))
5912 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5913 #endif
5915 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5917 main ()
5919 int i;
5920 for (i = 0; i < 256; i++)
5921 if (XOR (islower (i), ISLOWER (i))
5922 || toupper (i) != TOUPPER (i))
5923 exit(2);
5924 exit (0);
5926 _ACEOF
5927 rm -f conftest$ac_exeext
5928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5929 (eval $ac_link) 2>&5
5930 ac_status=$?
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5934 (eval $ac_try) 2>&5
5935 ac_status=$?
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); }; }; then
5939 else
5940 echo "$as_me: program exited with status $ac_status" >&5
5941 echo "$as_me: failed program was:" >&5
5942 sed 's/^/| /' conftest.$ac_ext >&5
5944 ( exit $ac_status )
5945 ac_cv_header_stdc=no
5947 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5951 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5952 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5953 if test $ac_cv_header_stdc = yes; then
5955 cat >>confdefs.h <<\_ACEOF
5956 #define STDC_HEADERS 1
5957 _ACEOF
5961 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5971 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5972 inttypes.h stdint.h unistd.h
5974 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5975 echo "$as_me:$LINENO: checking for $ac_header" >&5
5976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5978 echo $ECHO_N "(cached) $ECHO_C" >&6
5979 else
5980 cat >conftest.$ac_ext <<_ACEOF
5981 /* confdefs.h. */
5982 _ACEOF
5983 cat confdefs.h >>conftest.$ac_ext
5984 cat >>conftest.$ac_ext <<_ACEOF
5985 /* end confdefs.h. */
5986 $ac_includes_default
5988 #include <$ac_header>
5989 _ACEOF
5990 rm -f conftest.$ac_objext
5991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5992 (eval $ac_compile) 2>conftest.er1
5993 ac_status=$?
5994 grep -v '^ *+' conftest.er1 >conftest.err
5995 rm -f conftest.er1
5996 cat conftest.err >&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); } &&
5999 { ac_try='test -z "$ac_c_werror_flag"
6000 || test ! -s conftest.err'
6001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6002 (eval $ac_try) 2>&5
6003 ac_status=$?
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); }; } &&
6006 { ac_try='test -s conftest.$ac_objext'
6007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6008 (eval $ac_try) 2>&5
6009 ac_status=$?
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); }; }; then
6012 eval "$as_ac_Header=yes"
6013 else
6014 echo "$as_me: failed program was:" >&5
6015 sed 's/^/| /' conftest.$ac_ext >&5
6017 eval "$as_ac_Header=no"
6019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6022 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6023 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6024 cat >>confdefs.h <<_ACEOF
6025 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6026 _ACEOF
6030 done
6035 # Check whether --with-gdlib-prefix or --without-gdlib-prefix was given.
6036 if test "${with_gdlib_prefix+set}" = set; then
6037 withval="$with_gdlib_prefix"
6041 # Check whether --with-gdlib-config or --without-gdlib-config was given.
6042 if test "${with_gdlib_config+set}" = set; then
6043 withval="$with_gdlib_config"
6047 GDLIB_VERSION=
6049 # do we have gdlib-config name: it can be gdlib-config or gd-config or ...
6050 if test x${GDLIB_CONFIG_NAME+set} != xset; then
6051 GDLIB_CONFIG_NAME=gdlib-config
6054 if test -n "$with_gdlib_config"; then
6055 GDLIB_CONFIG_NAME="$with_gdlib_config"
6059 # deal with optional prefix
6060 if test -n "$with_gdlib_prefix"; then
6061 GDLIB_LOOKUP_PATH="$with_gdlib_prefix/bin"
6065 # don't search the PATH if GDLIB_CONFIG_NAME is absolute filename
6066 if test -x "$GDLIB_CONFIG_NAME"; then
6068 echo "$as_me:$LINENO: checking for gdlib-config" >&5
6069 echo $ECHO_N "checking for gdlib-config... $ECHO_C" >&6
6070 GDLIB_CONFIG_PATH="$GDLIB_CONFIG_NAME"
6071 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6072 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6074 else
6075 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args.
6076 set dummy $GDLIB_CONFIG_NAME; ac_word=$2
6077 echo "$as_me:$LINENO: checking for $ac_word" >&5
6078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6079 if test "${ac_cv_path_GDLIB_CONFIG_PATH+set}" = set; then
6080 echo $ECHO_N "(cached) $ECHO_C" >&6
6081 else
6082 case $GDLIB_CONFIG_PATH in
6083 [\\/]* | ?:[\\/]*)
6084 ac_cv_path_GDLIB_CONFIG_PATH="$GDLIB_CONFIG_PATH" # Let the user override the test with a path.
6087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6088 as_dummy="$GDLIB_LOOKUP_PATH:$PATH"
6089 for as_dir in $as_dummy
6091 IFS=$as_save_IFS
6092 test -z "$as_dir" && as_dir=.
6093 for ac_exec_ext in '' $ac_executable_extensions; do
6094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6095 ac_cv_path_GDLIB_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
6096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6097 break 2
6099 done
6100 done
6102 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH="no"
6104 esac
6106 GDLIB_CONFIG_PATH=$ac_cv_path_GDLIB_CONFIG_PATH
6108 if test -n "$GDLIB_CONFIG_PATH"; then
6109 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6110 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6111 else
6112 echo "$as_me:$LINENO: result: no" >&5
6113 echo "${ECHO_T}no" >&6
6119 if test ${GDLIB_CONFIG_PATH:-no} != no; then
6121 echo "$as_me:$LINENO: checking for gdlib version >= 2.0.0" >&5
6122 echo $ECHO_N "checking for gdlib version >= 2.0.0... $ECHO_C" >&6
6123 GDLIB_CONFIG_WITH_ARGS="$GDLIB_CONFIG_PATH $gdlib_config_args"
6125 GDLIB_VERSION=`$GDLIB_CONFIG_WITH_ARGS --version`
6126 gdlib_config_major_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6127 gdlib_config_minor_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6128 gdlib_config_micro_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6130 gdlib_ver_ok=
6131 if test $gdlib_config_major_version -gt 2; then
6132 gdlib_ver_ok=yes
6133 else
6134 if test $gdlib_config_major_version -eq 2; then
6135 if test $gdlib_config_minor_version -gt 0; then
6136 gdlib_ver_ok=yes
6137 else
6138 if test $gdlib_config_minor_version -eq 0; then
6139 if test $gdlib_config_micro_version -ge 0; then
6140 gdlib_ver_ok=yes
6147 if test -z "$gdlib_ver_ok"; then
6149 if test -z "$GDLIB_VERSION"; then
6150 echo "$as_me:$LINENO: result: no" >&5
6151 echo "${ECHO_T}no" >&6
6152 else
6154 echo "$as_me:$LINENO: result: no (version $GDLIB_VERSION is not new enough)" >&5
6155 echo "${ECHO_T}no (version $GDLIB_VERSION is not new enough)" >&6
6156 GDLIB_VERSION=
6161 else
6163 echo "$as_me:$LINENO: result: yes (version $GDLIB_VERSION)" >&5
6164 echo "${ECHO_T}yes (version $GDLIB_VERSION)" >&6
6165 if test "${ac_cv_header_gd_h+set}" = set; then
6166 echo "$as_me:$LINENO: checking for gd.h" >&5
6167 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6168 if test "${ac_cv_header_gd_h+set}" = set; then
6169 echo $ECHO_N "(cached) $ECHO_C" >&6
6171 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6172 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6173 else
6174 # Is the header compilable?
6175 echo "$as_me:$LINENO: checking gd.h usability" >&5
6176 echo $ECHO_N "checking gd.h usability... $ECHO_C" >&6
6177 cat >conftest.$ac_ext <<_ACEOF
6178 /* confdefs.h. */
6179 _ACEOF
6180 cat confdefs.h >>conftest.$ac_ext
6181 cat >>conftest.$ac_ext <<_ACEOF
6182 /* end confdefs.h. */
6183 $ac_includes_default
6184 #include <gd.h>
6185 _ACEOF
6186 rm -f conftest.$ac_objext
6187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6188 (eval $ac_compile) 2>conftest.er1
6189 ac_status=$?
6190 grep -v '^ *+' conftest.er1 >conftest.err
6191 rm -f conftest.er1
6192 cat conftest.err >&5
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); } &&
6195 { ac_try='test -z "$ac_c_werror_flag"
6196 || test ! -s conftest.err'
6197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6198 (eval $ac_try) 2>&5
6199 ac_status=$?
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); }; } &&
6202 { ac_try='test -s conftest.$ac_objext'
6203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6204 (eval $ac_try) 2>&5
6205 ac_status=$?
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); }; }; then
6208 ac_header_compiler=yes
6209 else
6210 echo "$as_me: failed program was:" >&5
6211 sed 's/^/| /' conftest.$ac_ext >&5
6213 ac_header_compiler=no
6215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6216 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6217 echo "${ECHO_T}$ac_header_compiler" >&6
6219 # Is the header present?
6220 echo "$as_me:$LINENO: checking gd.h presence" >&5
6221 echo $ECHO_N "checking gd.h presence... $ECHO_C" >&6
6222 cat >conftest.$ac_ext <<_ACEOF
6223 /* confdefs.h. */
6224 _ACEOF
6225 cat confdefs.h >>conftest.$ac_ext
6226 cat >>conftest.$ac_ext <<_ACEOF
6227 /* end confdefs.h. */
6228 #include <gd.h>
6229 _ACEOF
6230 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6231 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6232 ac_status=$?
6233 grep -v '^ *+' conftest.er1 >conftest.err
6234 rm -f conftest.er1
6235 cat conftest.err >&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); } >/dev/null; then
6238 if test -s conftest.err; then
6239 ac_cpp_err=$ac_c_preproc_warn_flag
6240 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6241 else
6242 ac_cpp_err=
6244 else
6245 ac_cpp_err=yes
6247 if test -z "$ac_cpp_err"; then
6248 ac_header_preproc=yes
6249 else
6250 echo "$as_me: failed program was:" >&5
6251 sed 's/^/| /' conftest.$ac_ext >&5
6253 ac_header_preproc=no
6255 rm -f conftest.err conftest.$ac_ext
6256 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6257 echo "${ECHO_T}$ac_header_preproc" >&6
6259 # So? What about this header?
6260 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6261 yes:no: )
6262 { echo "$as_me:$LINENO: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&5
6263 echo "$as_me: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6264 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the compiler's result" >&5
6265 echo "$as_me: WARNING: gd.h: proceeding with the compiler's result" >&2;}
6266 ac_header_preproc=yes
6268 no:yes:* )
6269 { echo "$as_me:$LINENO: WARNING: gd.h: present but cannot be compiled" >&5
6270 echo "$as_me: WARNING: gd.h: present but cannot be compiled" >&2;}
6271 { echo "$as_me:$LINENO: WARNING: gd.h: check for missing prerequisite headers?" >&5
6272 echo "$as_me: WARNING: gd.h: check for missing prerequisite headers?" >&2;}
6273 { echo "$as_me:$LINENO: WARNING: gd.h: see the Autoconf documentation" >&5
6274 echo "$as_me: WARNING: gd.h: see the Autoconf documentation" >&2;}
6275 { echo "$as_me:$LINENO: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&5
6276 echo "$as_me: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&2;}
6277 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the preprocessor's result" >&5
6278 echo "$as_me: WARNING: gd.h: proceeding with the preprocessor's result" >&2;}
6279 { echo "$as_me:$LINENO: WARNING: gd.h: in the future, the compiler will take precedence" >&5
6280 echo "$as_me: WARNING: gd.h: in the future, the compiler will take precedence" >&2;}
6282 cat <<\_ASBOX
6283 ## ------------------------------ ##
6284 ## Report this to admin@amule.org ##
6285 ## ------------------------------ ##
6286 _ASBOX
6288 sed "s/^/$as_me: WARNING: /" >&2
6290 esac
6291 echo "$as_me:$LINENO: checking for gd.h" >&5
6292 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6293 if test "${ac_cv_header_gd_h+set}" = set; then
6294 echo $ECHO_N "(cached) $ECHO_C" >&6
6295 else
6296 ac_cv_header_gd_h=$ac_header_preproc
6298 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6299 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6302 if test $ac_cv_header_gd_h = yes; then
6304 GDLIB_CFLAGS="`$GDLIB_CONFIG_WITH_ARGS --cflags`"
6305 GDLIB_LDFLAGS="`$GDLIB_CONFIG_WITH_ARGS --ldflags`"
6306 GDLIB_LIBS="`$GDLIB_CONFIG_WITH_ARGS --libs`"
6308 else
6309 GDLIB_VERSION=
6320 if test -n "$GDLIB_VERSION"; then
6322 CAS_DEFS="-D__GD__"
6323 GDLIB_LIBS="-lgd $GDLIB_LIBS"
6325 else
6326 CAS_DEFS=
6332 if test -z "$CAS_DEFS"; then
6334 { echo "$as_me:$LINENO: WARNING:
6335 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6336 Please check that gdlib-config is in your default path, check out
6337 LD_LIBRARY_PATH or equivalent variable.
6338 Or this might also be that your gdlib-config has other name.
6339 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6340 (replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
6341 If you use compiled packages check if you have devel pack installed.
6342 To download the latest version check http://www.boutell.com/gd
6343 for sources." >&5
6344 echo "$as_me: WARNING:
6345 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6346 Please check that gdlib-config is in your default path, check out
6347 LD_LIBRARY_PATH or equivalent variable.
6348 Or this might also be that your gdlib-config has other name.
6349 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6350 (replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
6351 If you use compiled packages check if you have devel pack installed.
6352 To download the latest version check http://www.boutell.com/gd
6353 for sources." >&2;}
6358 else
6359 GDLIB_VERSION="not_needed"
6364 if test x$WEB = xyes; then
6366 echo "$as_me:$LINENO: checking for a POSIX compliant regex library" >&5
6367 echo $ECHO_N "checking for a POSIX compliant regex library... $ECHO_C" >&6
6368 regex_found=no
6369 for REGEX_LIBS in '' -lgnurx -lregex; do
6370 mule_backup_LIBS="$LIBS"
6371 LIBS="$REGEX_LIBS $LIBS"
6372 cat >conftest.$ac_ext <<_ACEOF
6374 /* confdefs.h. */
6375 _ACEOF
6376 cat confdefs.h >>conftest.$ac_ext
6377 cat >>conftest.$ac_ext <<_ACEOF
6378 /* end confdefs.h. */
6380 #include <regex.h>
6383 main ()
6386 regex_t preg;
6387 regcomp(&preg, "", REG_EXTENDED);
6388 regmatch_t *pmatch;
6389 regexec(&preg, "", 0, pmatch, 0);
6390 regfree(&preg);
6393 return 0;
6396 _ACEOF
6397 rm -f conftest.$ac_objext conftest$ac_exeext
6398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6399 (eval $ac_link) 2>conftest.er1
6400 ac_status=$?
6401 grep -v '^ *+' conftest.er1 >conftest.err
6402 rm -f conftest.er1
6403 cat conftest.err >&5
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); } &&
6406 { ac_try='test -z "$ac_c_werror_flag"
6407 || test ! -s conftest.err'
6408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6409 (eval $ac_try) 2>&5
6410 ac_status=$?
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); }; } &&
6413 { ac_try='test -s conftest$ac_exeext'
6414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6415 (eval $ac_try) 2>&5
6416 ac_status=$?
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); }; }; then
6420 LIBS="$mule_backup_LIBS"
6421 regex_found=yes
6422 break;
6424 else
6425 echo "$as_me: failed program was:" >&5
6426 sed 's/^/| /' conftest.$ac_ext >&5
6428 LIBS="$mule_backup_LIBS"
6430 rm -f conftest.err conftest.$ac_objext \
6431 conftest$ac_exeext conftest.$ac_ext
6432 done
6433 echo "$as_me:$LINENO: result: $regex_found" >&5
6434 echo "${ECHO_T}$regex_found" >&6
6435 if test $regex_found = yes; then
6437 else
6438 WEB=disabled
6444 if test x$WEB = xyes; then
6447 # Check whether --with-libpng-prefix or --without-libpng-prefix was given.
6448 if test "${with_libpng_prefix+set}" = set; then
6449 withval="$with_libpng_prefix"
6453 # Check whether --with-libpng-config or --without-libpng-config was given.
6454 if test "${with_libpng_config+set}" = set; then
6455 withval="$with_libpng_config"
6459 LIBPNG_VERSION=
6461 # do we have libpng-config name: it can be libpng-config or libpng12-config or ...
6462 if test x${LIBPNG_CONFIG_NAME+set} != xset; then
6463 LIBPNG_CONFIG_NAME=libpng-config
6466 if test -n "$with_libpng_config"; then
6467 LIBPNG_CONFIG_NAME="$with_libpng_config"
6471 # deal with optional prefix
6472 if test -n "$with_libpng_prefix"; then
6473 LIBPNG_LOOKUP_PATH="$with_libpng_prefix/bin"
6477 # don't search the PATH if LIBPNG_CONFIG_NAME is absolute filename
6478 if test -x "$LIBPNG_CONFIG_NAME"; then
6480 echo "$as_me:$LINENO: checking for libpng-config" >&5
6481 echo $ECHO_N "checking for libpng-config... $ECHO_C" >&6
6482 LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_NAME"
6483 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6484 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6486 else
6487 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
6488 set dummy $LIBPNG_CONFIG_NAME; ac_word=$2
6489 echo "$as_me:$LINENO: checking for $ac_word" >&5
6490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6491 if test "${ac_cv_path_LIBPNG_CONFIG_PATH+set}" = set; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
6493 else
6494 case $LIBPNG_CONFIG_PATH in
6495 [\\/]* | ?:[\\/]*)
6496 ac_cv_path_LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
6499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6500 as_dummy="$LIBPNG_LOOKUP_PATH:$PATH"
6501 for as_dir in $as_dummy
6503 IFS=$as_save_IFS
6504 test -z "$as_dir" && as_dir=.
6505 for ac_exec_ext in '' $ac_executable_extensions; do
6506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6507 ac_cv_path_LIBPNG_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
6508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6509 break 2
6511 done
6512 done
6514 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH="no"
6516 esac
6518 LIBPNG_CONFIG_PATH=$ac_cv_path_LIBPNG_CONFIG_PATH
6520 if test -n "$LIBPNG_CONFIG_PATH"; then
6521 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6522 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6523 else
6524 echo "$as_me:$LINENO: result: no" >&5
6525 echo "${ECHO_T}no" >&6
6531 if test ${LIBPNG_CONFIG_PATH:-no} != no; then
6533 echo "$as_me:$LINENO: checking for libpng version >= 1.2.0" >&5
6534 echo $ECHO_N "checking for libpng version >= 1.2.0... $ECHO_C" >&6
6536 LIBPNG_CONFIG_WITH_ARGS="$LIBPNG_CONFIG_PATH $libpng_config_args"
6538 LIBPNG_VERSION=`$LIBPNG_CONFIG_WITH_ARGS --version`
6539 libpng_config_major_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6540 libpng_config_minor_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6541 libpng_config_micro_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6543 libpng_ver_ok=""
6544 if test $libpng_config_major_version -gt 1; then
6545 libpng_ver_ok=yes
6546 else
6547 if test $libpng_config_major_version -eq 1; then
6548 if test $libpng_config_minor_version -gt 2; then
6549 libpng_ver_ok=yes
6550 else
6551 if test $libpng_config_minor_version -eq 2; then
6552 if test $libpng_config_micro_version -ge 0; then
6553 libpng_ver_ok=yes
6560 if test -z "$libpng_ver_ok"; then
6562 if test -z "$LIBPNG_VERSION"; then
6563 echo "$as_me:$LINENO: result: no" >&5
6564 echo "${ECHO_T}no" >&6
6565 else
6567 echo "$as_me:$LINENO: result: no (version $LIBPNG_VERSION is not new enough)" >&5
6568 echo "${ECHO_T}no (version $LIBPNG_VERSION is not new enough)" >&6
6569 LIBPNG_VERSION=
6574 else
6576 LIBPNG_LIBS=`$LIBPNG_CONFIG_WITH_ARGS --libs`
6577 LIBPNG_LDFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --ldflags | sed -e "s/ *${LIBPNG_LIBS}$//"`
6578 LIBPNG_CFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
6579 echo "$as_me:$LINENO: result: yes (version $LIBPNG_VERSION)" >&5
6580 echo "${ECHO_T}yes (version $LIBPNG_VERSION)" >&6
6585 else
6587 # Try hard to find a usable libpng
6588 # Some RedHat RPMs miss libpng-config, so test for
6589 # the usability with default options.
6590 echo "$as_me:$LINENO: checking for libpng >= 1.2.0" >&5
6591 echo $ECHO_N "checking for libpng >= 1.2.0... $ECHO_C" >&6
6592 mule_backup_LIBS="$LIBS"
6593 LIBS="-lpng -lz -lm $LIBS"
6594 if test "$cross_compiling" = yes; then
6596 echo "$as_me:$LINENO: result: cross-compilation detected, checking only the header" >&5
6597 echo "${ECHO_T}cross-compilation detected, checking only the header" >&6
6598 if test "${ac_cv_header_png_h+set}" = set; then
6599 echo "$as_me:$LINENO: checking for png.h" >&5
6600 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
6601 if test "${ac_cv_header_png_h+set}" = set; then
6602 echo $ECHO_N "(cached) $ECHO_C" >&6
6604 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
6605 echo "${ECHO_T}$ac_cv_header_png_h" >&6
6606 else
6607 # Is the header compilable?
6608 echo "$as_me:$LINENO: checking png.h usability" >&5
6609 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
6610 cat >conftest.$ac_ext <<_ACEOF
6611 /* confdefs.h. */
6612 _ACEOF
6613 cat confdefs.h >>conftest.$ac_ext
6614 cat >>conftest.$ac_ext <<_ACEOF
6615 /* end confdefs.h. */
6616 $ac_includes_default
6617 #include <png.h>
6618 _ACEOF
6619 rm -f conftest.$ac_objext
6620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6621 (eval $ac_compile) 2>conftest.er1
6622 ac_status=$?
6623 grep -v '^ *+' conftest.er1 >conftest.err
6624 rm -f conftest.er1
6625 cat conftest.err >&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); } &&
6628 { ac_try='test -z "$ac_c_werror_flag"
6629 || test ! -s conftest.err'
6630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6631 (eval $ac_try) 2>&5
6632 ac_status=$?
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); }; } &&
6635 { ac_try='test -s conftest.$ac_objext'
6636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6637 (eval $ac_try) 2>&5
6638 ac_status=$?
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); }; }; then
6641 ac_header_compiler=yes
6642 else
6643 echo "$as_me: failed program was:" >&5
6644 sed 's/^/| /' conftest.$ac_ext >&5
6646 ac_header_compiler=no
6648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6649 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6650 echo "${ECHO_T}$ac_header_compiler" >&6
6652 # Is the header present?
6653 echo "$as_me:$LINENO: checking png.h presence" >&5
6654 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
6655 cat >conftest.$ac_ext <<_ACEOF
6656 /* confdefs.h. */
6657 _ACEOF
6658 cat confdefs.h >>conftest.$ac_ext
6659 cat >>conftest.$ac_ext <<_ACEOF
6660 /* end confdefs.h. */
6661 #include <png.h>
6662 _ACEOF
6663 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6664 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6665 ac_status=$?
6666 grep -v '^ *+' conftest.er1 >conftest.err
6667 rm -f conftest.er1
6668 cat conftest.err >&5
6669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670 (exit $ac_status); } >/dev/null; then
6671 if test -s conftest.err; then
6672 ac_cpp_err=$ac_c_preproc_warn_flag
6673 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6674 else
6675 ac_cpp_err=
6677 else
6678 ac_cpp_err=yes
6680 if test -z "$ac_cpp_err"; then
6681 ac_header_preproc=yes
6682 else
6683 echo "$as_me: failed program was:" >&5
6684 sed 's/^/| /' conftest.$ac_ext >&5
6686 ac_header_preproc=no
6688 rm -f conftest.err conftest.$ac_ext
6689 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6690 echo "${ECHO_T}$ac_header_preproc" >&6
6692 # So? What about this header?
6693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6694 yes:no: )
6695 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
6696 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6697 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
6698 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
6699 ac_header_preproc=yes
6701 no:yes:* )
6702 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
6703 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
6704 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
6705 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
6706 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
6707 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
6708 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
6709 echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
6710 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
6711 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
6712 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
6713 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
6715 cat <<\_ASBOX
6716 ## ------------------------------ ##
6717 ## Report this to admin@amule.org ##
6718 ## ------------------------------ ##
6719 _ASBOX
6721 sed "s/^/$as_me: WARNING: /" >&2
6723 esac
6724 echo "$as_me:$LINENO: checking for png.h" >&5
6725 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
6726 if test "${ac_cv_header_png_h+set}" = set; then
6727 echo $ECHO_N "(cached) $ECHO_C" >&6
6728 else
6729 ac_cv_header_png_h=$ac_header_preproc
6731 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
6732 echo "${ECHO_T}$ac_cv_header_png_h" >&6
6735 if test $ac_cv_header_png_h = yes; then
6737 LIBPNG_VERSION="detected"
6738 LIBPNG_LIBS="-lpng -lz -lm"
6744 else
6745 cat >conftest.$ac_ext <<_ACEOF
6747 /* confdefs.h. */
6748 _ACEOF
6749 cat confdefs.h >>conftest.$ac_ext
6750 cat >>conftest.$ac_ext <<_ACEOF
6751 /* end confdefs.h. */
6753 #include <png.h>
6754 #include <stdio.h>
6756 /* Check linking to png library */
6757 void dummy() {
6758 png_check_sig(NULL, 0);
6762 main ()
6764 /* png.h defines PNG_LIBPNG_VER=xyyzz */
6765 FILE *f=fopen("conftestval", "w");
6766 if (!f) exit(1);
6767 fprintf(f, "%s", (PNG_LIBPNG_VER >= 1 * 10000 + 2 * 100 + 0) ? "yes" : "no");
6768 fclose(f);
6769 f=fopen("conftestver", "w");
6770 if (!f) exit(0);
6771 fprintf(f, "%s", PNG_LIBPNG_VER_STRING);
6772 fclose(f);
6773 exit(0);
6776 return 0;
6779 _ACEOF
6780 rm -f conftest$ac_exeext
6781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6782 (eval $ac_link) 2>&5
6783 ac_status=$?
6784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6787 (eval $ac_try) 2>&5
6788 ac_status=$?
6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); }; }; then
6792 if test -f conftestval; then
6793 result=`cat conftestval`
6794 else
6795 result=no
6798 if test ${result:-no} = yes; then
6800 if test -f conftestver; then
6802 LIBPNG_VERSION=`cat conftestver`
6803 lib_version=" (version $LIBPNG_VERSION)"
6805 else
6807 lib_version=
6808 LIBPNG_VERSION="detected"
6815 echo "$as_me:$LINENO: result: $result$lib_version" >&5
6816 echo "${ECHO_T}$result$lib_version" >&6
6817 LIBPNG_LIBS="-lpng -lz -lm"
6819 else
6820 echo "$as_me: program exited with status $ac_status" >&5
6821 echo "$as_me: failed program was:" >&5
6822 sed 's/^/| /' conftest.$ac_ext >&5
6824 ( exit $ac_status )
6826 result=no
6827 echo "$as_me:$LINENO: result: $result" >&5
6828 echo "${ECHO_T}$result" >&6
6831 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6833 LIBS="$mule_backup_LIBS"
6838 if test -n "$LIBPNG_VERSION"; then
6839 AMULEWEB_DEFS="-DWITH_LIBPNG"
6840 else
6841 { echo "$as_me:$LINENO: WARNING: libpng-devel >= 1.2.0 is needed for amuleweb" >&5
6842 echo "$as_me: WARNING: libpng-devel >= 1.2.0 is needed for amuleweb" >&2;}
6848 else
6849 LIBPNG_VERSION="not_needed"
6854 # Check for perl File::Copy
6855 echo "$as_me:$LINENO: checking for File::Copy" >&5
6856 echo $ECHO_N "checking for File::Copy... $ECHO_C" >&6
6857 if perl -e "require File::Copy" 2>/dev/null; then
6858 echo "$as_me:$LINENO: result: ok" >&5
6859 echo "${ECHO_T}ok" >&6
6860 else
6861 { { echo "$as_me:$LINENO: error: File::Copy perl module is required" >&5
6862 echo "$as_me: error: File::Copy perl module is required" >&2;}
6863 { (exit 1); exit 1; }; }
6868 # Check if we need the GUI
6869 echo "$as_me:$LINENO: checking whether we need the GUI" >&5
6870 echo $ECHO_N "checking whether we need the GUI... $ECHO_C" >&6
6871 if test x$MONOLITHIC = xyes; then
6872 need_gui=yes
6875 if test x$WXCAS = xyes; then
6876 need_gui=yes
6879 if test x$ALC = xyes; then
6880 need_gui=yes
6883 if test x$AMULE_GUI = xyes; then
6884 need_gui=yes
6887 if test x${need_gui:+set} != xset; then
6888 need_gui=no
6891 echo "$as_me:$LINENO: result: $need_gui" >&5
6892 echo "${ECHO_T}$need_gui" >&6
6895 # Check for GeoIP (required for IP2Country capability)
6896 if test ${ENABLE_IP2COUNTRY:-no} = yes; then
6898 GEOIP_LIBS="-lGeoIP"
6899 mule_backup_CPPFLAGS="$CPPFLAGS"
6900 CPPFLAGS="$CPPFLAGS $GEOIP_CPPFLAGS"
6901 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6902 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
6903 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
6904 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6907 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
6908 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
6909 else
6910 # Is the header compilable?
6911 echo "$as_me:$LINENO: checking GeoIP.h usability" >&5
6912 echo $ECHO_N "checking GeoIP.h usability... $ECHO_C" >&6
6913 cat >conftest.$ac_ext <<_ACEOF
6914 /* confdefs.h. */
6915 _ACEOF
6916 cat confdefs.h >>conftest.$ac_ext
6917 cat >>conftest.$ac_ext <<_ACEOF
6918 /* end confdefs.h. */
6919 $ac_includes_default
6920 #include <GeoIP.h>
6921 _ACEOF
6922 rm -f conftest.$ac_objext
6923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6924 (eval $ac_compile) 2>conftest.er1
6925 ac_status=$?
6926 grep -v '^ *+' conftest.er1 >conftest.err
6927 rm -f conftest.er1
6928 cat conftest.err >&5
6929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930 (exit $ac_status); } &&
6931 { ac_try='test -z "$ac_c_werror_flag"
6932 || test ! -s conftest.err'
6933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6934 (eval $ac_try) 2>&5
6935 ac_status=$?
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); }; } &&
6938 { ac_try='test -s conftest.$ac_objext'
6939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6940 (eval $ac_try) 2>&5
6941 ac_status=$?
6942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943 (exit $ac_status); }; }; then
6944 ac_header_compiler=yes
6945 else
6946 echo "$as_me: failed program was:" >&5
6947 sed 's/^/| /' conftest.$ac_ext >&5
6949 ac_header_compiler=no
6951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6952 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6953 echo "${ECHO_T}$ac_header_compiler" >&6
6955 # Is the header present?
6956 echo "$as_me:$LINENO: checking GeoIP.h presence" >&5
6957 echo $ECHO_N "checking GeoIP.h presence... $ECHO_C" >&6
6958 cat >conftest.$ac_ext <<_ACEOF
6959 /* confdefs.h. */
6960 _ACEOF
6961 cat confdefs.h >>conftest.$ac_ext
6962 cat >>conftest.$ac_ext <<_ACEOF
6963 /* end confdefs.h. */
6964 #include <GeoIP.h>
6965 _ACEOF
6966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6968 ac_status=$?
6969 grep -v '^ *+' conftest.er1 >conftest.err
6970 rm -f conftest.er1
6971 cat conftest.err >&5
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); } >/dev/null; then
6974 if test -s conftest.err; then
6975 ac_cpp_err=$ac_c_preproc_warn_flag
6976 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6977 else
6978 ac_cpp_err=
6980 else
6981 ac_cpp_err=yes
6983 if test -z "$ac_cpp_err"; then
6984 ac_header_preproc=yes
6985 else
6986 echo "$as_me: failed program was:" >&5
6987 sed 's/^/| /' conftest.$ac_ext >&5
6989 ac_header_preproc=no
6991 rm -f conftest.err conftest.$ac_ext
6992 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6993 echo "${ECHO_T}$ac_header_preproc" >&6
6995 # So? What about this header?
6996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6997 yes:no: )
6998 { echo "$as_me:$LINENO: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&5
6999 echo "$as_me: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7000 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the compiler's result" >&5
7001 echo "$as_me: WARNING: GeoIP.h: proceeding with the compiler's result" >&2;}
7002 ac_header_preproc=yes
7004 no:yes:* )
7005 { echo "$as_me:$LINENO: WARNING: GeoIP.h: present but cannot be compiled" >&5
7006 echo "$as_me: WARNING: GeoIP.h: present but cannot be compiled" >&2;}
7007 { echo "$as_me:$LINENO: WARNING: GeoIP.h: check for missing prerequisite headers?" >&5
7008 echo "$as_me: WARNING: GeoIP.h: check for missing prerequisite headers?" >&2;}
7009 { echo "$as_me:$LINENO: WARNING: GeoIP.h: see the Autoconf documentation" >&5
7010 echo "$as_me: WARNING: GeoIP.h: see the Autoconf documentation" >&2;}
7011 { echo "$as_me:$LINENO: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&5
7012 echo "$as_me: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&2;}
7013 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&5
7014 echo "$as_me: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&2;}
7015 { echo "$as_me:$LINENO: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&5
7016 echo "$as_me: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&2;}
7018 cat <<\_ASBOX
7019 ## ------------------------------ ##
7020 ## Report this to admin@amule.org ##
7021 ## ------------------------------ ##
7022 _ASBOX
7024 sed "s/^/$as_me: WARNING: /" >&2
7026 esac
7027 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
7028 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
7029 if test "${ac_cv_header_GeoIP_h+set}" = set; then
7030 echo $ECHO_N "(cached) $ECHO_C" >&6
7031 else
7032 ac_cv_header_GeoIP_h=$ac_header_preproc
7034 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
7035 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
7038 if test $ac_cv_header_GeoIP_h = yes; then
7040 else
7041 { { echo "$as_me:$LINENO: error: --enable-geoip passed to configure, but the GeoIP header files were not found" >&5
7042 echo "$as_me: error: --enable-geoip passed to configure, but the GeoIP header files were not found" >&2;}
7043 { (exit 1); exit 1; }; }
7047 echo "$as_me:$LINENO: checking for GeoIP_open in -lGeoIP" >&5
7048 echo $ECHO_N "checking for GeoIP_open in -lGeoIP... $ECHO_C" >&6
7049 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then
7050 echo $ECHO_N "(cached) $ECHO_C" >&6
7051 else
7052 ac_check_lib_save_LIBS=$LIBS
7053 LIBS="-lGeoIP $LIBS"
7054 cat >conftest.$ac_ext <<_ACEOF
7055 /* confdefs.h. */
7056 _ACEOF
7057 cat confdefs.h >>conftest.$ac_ext
7058 cat >>conftest.$ac_ext <<_ACEOF
7059 /* end confdefs.h. */
7061 /* Override any gcc2 internal prototype to avoid an error. */
7062 #ifdef __cplusplus
7063 extern "C"
7064 #endif
7065 /* We use char because int might match the return type of a gcc2
7066 builtin and then its argument prototype would still apply. */
7067 char GeoIP_open ();
7069 main ()
7071 GeoIP_open ();
7073 return 0;
7075 _ACEOF
7076 rm -f conftest.$ac_objext conftest$ac_exeext
7077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7078 (eval $ac_link) 2>conftest.er1
7079 ac_status=$?
7080 grep -v '^ *+' conftest.er1 >conftest.err
7081 rm -f conftest.er1
7082 cat conftest.err >&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); } &&
7085 { ac_try='test -z "$ac_c_werror_flag"
7086 || test ! -s conftest.err'
7087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7088 (eval $ac_try) 2>&5
7089 ac_status=$?
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); }; } &&
7092 { ac_try='test -s conftest$ac_exeext'
7093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7094 (eval $ac_try) 2>&5
7095 ac_status=$?
7096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097 (exit $ac_status); }; }; then
7098 ac_cv_lib_GeoIP_GeoIP_open=yes
7099 else
7100 echo "$as_me: failed program was:" >&5
7101 sed 's/^/| /' conftest.$ac_ext >&5
7103 ac_cv_lib_GeoIP_GeoIP_open=no
7105 rm -f conftest.err conftest.$ac_objext \
7106 conftest$ac_exeext conftest.$ac_ext
7107 LIBS=$ac_check_lib_save_LIBS
7109 echo "$as_me:$LINENO: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
7110 echo "${ECHO_T}$ac_cv_lib_GeoIP_GeoIP_open" >&6
7111 if test $ac_cv_lib_GeoIP_GeoIP_open = yes; then
7113 cat >>confdefs.h <<\_ACEOF
7114 #define SUPPORT_GEOIP 1
7115 _ACEOF
7117 { { echo "$as_me:$LINENO: error: --enable-geoip passed to configure, but the GeoIP libraries were not found" >&5
7118 echo "$as_me: error: --enable-geoip passed to configure, but the GeoIP libraries were not found" >&2;}
7119 { (exit 1); exit 1; }; }
7122 CPPFLAGS="$mule_backup_CPPFLAGS"
7128 # Check for wx
7131 # Check whether --with-wxdir or --without-wxdir was given.
7132 if test "${with_wxdir+set}" = set; then
7133 withval="$with_wxdir"
7134 wx_config_name="$withval/wx-config"
7135 wx_config_args="--inplace"
7138 # Check whether --with-wx-config or --without-wx-config was given.
7139 if test "${with_wx_config+set}" = set; then
7140 withval="$with_wx_config"
7141 wx_config_name="$withval"
7144 # Check whether --with-wx-prefix or --without-wx-prefix was given.
7145 if test "${with_wx_prefix+set}" = set; then
7146 withval="$with_wx_prefix"
7147 wx_config_prefix="$withval"
7148 else
7149 wx_config_prefix=""
7152 # Check whether --with-wx-exec-prefix or --without-wx-exec-prefix was given.
7153 if test "${with_wx_exec_prefix+set}" = set; then
7154 withval="$with_wx_exec_prefix"
7155 wx_config_exec_prefix="$withval"
7156 else
7157 wx_config_exec_prefix=""
7171 # Check whether --with-toolkit or --without-toolkit was given.
7172 if test "${with_toolkit+set}" = set; then
7173 withval="$with_toolkit"
7175 else
7176 withval="auto"
7179 echo "$as_me:$LINENO: checking for the --with-toolkit option" >&5
7180 echo $ECHO_N "checking for the --with-toolkit option... $ECHO_C" >&6
7181 if test "$withval" = "auto" ; then
7182 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7183 echo "${ECHO_T}will be automatically detected" >&6
7184 TOOLKIT="auto"
7185 else
7186 TOOLKIT="$withval"
7188 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a \
7189 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
7190 "$TOOLKIT" != "x11" -a "$TOOLKIT" != "mac" -a \
7191 "$TOOLKIT" != "mgl" -a "$TOOLKIT" != "dfb" -a \
7192 "$TOOLKIT" != "base" ; then
7193 { { echo "$as_me:$LINENO: error:
7194 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base)
7195 " >&5
7196 echo "$as_me: error:
7197 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base)
7198 " >&2;}
7199 { (exit 1); exit 1; }; }
7202 echo "$as_me:$LINENO: result: $TOOLKIT" >&5
7203 echo "${ECHO_T}$TOOLKIT" >&6
7210 # Check whether --with-wxshared or --without-wxshared was given.
7211 if test "${with_wxshared+set}" = set; then
7212 withval="$with_wxshared"
7214 else
7215 withval="auto"
7218 echo "$as_me:$LINENO: checking for the --with-wxshared option" >&5
7219 echo $ECHO_N "checking for the --with-wxshared option... $ECHO_C" >&6
7220 if test "$withval" = "yes" ; then
7221 echo "$as_me:$LINENO: result: yes" >&5
7222 echo "${ECHO_T}yes" >&6
7223 WX_SHARED=1
7225 elif test "1" = "1" -a "$withval" = "no" ; then
7226 echo "$as_me:$LINENO: result: no" >&5
7227 echo "${ECHO_T}no" >&6
7228 WX_SHARED=0
7229 elif test "$withval" = "auto" ; then
7230 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7231 echo "${ECHO_T}will be automatically detected" >&6
7232 WX_SHARED="auto"
7233 else
7234 { { echo "$as_me:$LINENO: error:
7235 Unrecognized option value (allowed values: yes, auto)
7236 " >&5
7237 echo "$as_me: error:
7238 Unrecognized option value (allowed values: yes, auto)
7239 " >&2;}
7240 { (exit 1); exit 1; }; }
7247 # Check whether --with-wxdebug or --without-wxdebug was given.
7248 if test "${with_wxdebug+set}" = set; then
7249 withval="$with_wxdebug"
7251 else
7252 withval="auto"
7255 echo "$as_me:$LINENO: checking for the --with-wxdebug option" >&5
7256 echo $ECHO_N "checking for the --with-wxdebug option... $ECHO_C" >&6
7257 if test "$withval" = "yes" ; then
7258 echo "$as_me:$LINENO: result: yes" >&5
7259 echo "${ECHO_T}yes" >&6
7260 WX_DEBUG=1
7262 elif test "1" = "1" -a "$withval" = "no" ; then
7263 echo "$as_me:$LINENO: result: no" >&5
7264 echo "${ECHO_T}no" >&6
7265 WX_DEBUG=0
7266 elif test "$withval" = "auto" ; then
7267 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7268 echo "${ECHO_T}will be automatically detected" >&6
7269 WX_DEBUG="auto"
7270 else
7271 { { echo "$as_me:$LINENO: error:
7272 Unrecognized option value (allowed values: yes, auto)
7273 " >&5
7274 echo "$as_me: error:
7275 Unrecognized option value (allowed values: yes, auto)
7276 " >&2;}
7277 { (exit 1); exit 1; }; }
7284 # Check whether --with-wxversion or --without-wxversion was given.
7285 if test "${with_wxversion+set}" = set; then
7286 withval="$with_wxversion"
7288 else
7289 withval="auto"
7292 echo "$as_me:$LINENO: checking for the --with-wxversion option" >&5
7293 echo $ECHO_N "checking for the --with-wxversion option... $ECHO_C" >&6
7294 if test "$withval" = "auto" ; then
7295 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7296 echo "${ECHO_T}will be automatically detected" >&6
7297 WX_VERSION="auto"
7298 else
7300 wx_requested_major_version=`echo $withval | \
7301 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
7302 wx_requested_minor_version=`echo $withval | \
7303 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
7305 if test "${#wx_requested_major_version}" != "1" -o \
7306 "${#wx_requested_minor_version}" != "1" ; then
7307 { { echo "$as_me:$LINENO: error:
7308 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7309 " >&5
7310 echo "$as_me: error:
7311 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7312 " >&2;}
7313 { (exit 1); exit 1; }; }
7316 WX_VERSION="$wx_requested_major_version"".""$wx_requested_minor_version"
7317 echo "$as_me:$LINENO: result: $WX_VERSION" >&5
7318 echo "${ECHO_T}$WX_VERSION" >&6
7322 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7323 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
7324 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
7325 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
7326 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
7327 echo "[dbg] VERSION: $VERSION, WX_VERSION: $WX_VERSION"
7330 # Force using a static wxWidgets library if the executable is to be linked statically.
7331 if test ${enable_static:-no} = yes; then
7332 WX_SHARED=0
7335 # Force using a unicode build of the library
7336 WX_UNICODE=1
7337 DEBUG=$WX_DEBUG
7339 if test "$WX_SHARED" = "1" ; then
7340 WXCONFIG_FLAGS="--static=no "
7341 elif test "$WX_SHARED" = "0" ; then
7342 WXCONFIG_FLAGS="--static=yes "
7345 if test "$WX_DEBUG" = "1" ; then
7346 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=yes "
7347 elif test "$WX_DEBUG" = "0" ; then
7348 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=no "
7351 if test "$WX_UNICODE" = "1" ; then
7352 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=yes "
7353 elif test "$WX_UNICODE" = "0" ; then
7354 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=no "
7357 if test "$TOOLKIT" != "auto" ; then
7358 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
7361 if test "$WX_VERSION" != "auto" ; then
7362 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--version=$WX_VERSION "
7365 WXCONFIG_FLAGS=${WXCONFIG_FLAGS% }
7367 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7368 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
7372 if test x${WX_CONFIG_NAME+set} != xset ; then
7373 WX_CONFIG_NAME=wx-config
7376 if test "x$wx_config_name" != x ; then
7377 WX_CONFIG_NAME="$wx_config_name"
7380 if test x$wx_config_exec_prefix != x ; then
7381 wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
7382 WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
7384 if test x$wx_config_prefix != x ; then
7385 wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
7386 WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
7388 if test "$cross_compiling" = "yes"; then
7389 wx_config_args="$wx_config_args --host=$host_alias"
7392 if test -x "$WX_CONFIG_NAME" ; then
7393 echo "$as_me:$LINENO: checking for wx-config" >&5
7394 echo $ECHO_N "checking for wx-config... $ECHO_C" >&6
7395 WX_CONFIG_PATH="$WX_CONFIG_NAME"
7396 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7397 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7398 else
7399 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
7400 set dummy $WX_CONFIG_NAME; ac_word=$2
7401 echo "$as_me:$LINENO: checking for $ac_word" >&5
7402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7403 if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then
7404 echo $ECHO_N "(cached) $ECHO_C" >&6
7405 else
7406 case $WX_CONFIG_PATH in
7407 [\\/]* | ?:[\\/]*)
7408 ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path.
7411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412 as_dummy=""$WX_LOOKUP_PATH:$PATH""
7413 for as_dir in $as_dummy
7415 IFS=$as_save_IFS
7416 test -z "$as_dir" && as_dir=.
7417 for ac_exec_ext in '' $ac_executable_extensions; do
7418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7419 ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7421 break 2
7423 done
7424 done
7426 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no"
7428 esac
7430 WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH
7432 if test -n "$WX_CONFIG_PATH"; then
7433 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7434 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7435 else
7436 echo "$as_me:$LINENO: result: no" >&5
7437 echo "${ECHO_T}no" >&6
7442 if test "$WX_CONFIG_PATH" != "no" ; then
7443 WX_VERSION_FULL=""
7445 min_wx_version=2.8.0
7446 if test -z "$WXCONFIG_FLAGS" ; then
7447 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version" >&5
7448 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version... $ECHO_C" >&6
7449 else
7450 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
7451 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... $ECHO_C" >&6
7454 WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS "
7456 WX_VERSION_FULL=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
7457 wx_config_major_version=`echo $WX_VERSION_FULL | \
7458 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7459 wx_config_minor_version=`echo $WX_VERSION_FULL | \
7460 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7461 wx_config_micro_version=`echo $WX_VERSION_FULL | \
7462 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7464 wx_requested_major_version=`echo $min_wx_version | \
7465 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7466 wx_requested_minor_version=`echo $min_wx_version | \
7467 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7468 wx_requested_micro_version=`echo $min_wx_version | \
7469 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7472 wx_ver_ok=""
7473 if test "x$WX_VERSION_FULL" != x ; then
7474 if test $wx_config_major_version -gt $wx_requested_major_version; then
7475 wx_ver_ok=yes
7476 else
7477 if test $wx_config_major_version -eq $wx_requested_major_version; then
7478 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
7479 wx_ver_ok=yes
7480 else
7481 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
7482 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
7483 wx_ver_ok=yes
7492 if test -n "$wx_ver_ok"; then
7494 echo "$as_me:$LINENO: result: yes (version $WX_VERSION_FULL)" >&5
7495 echo "${ECHO_T}yes (version $WX_VERSION_FULL)" >&6
7496 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs`
7498 echo "$as_me:$LINENO: checking for wxWidgets static library" >&5
7499 echo $ECHO_N "checking for wxWidgets static library... $ECHO_C" >&6
7500 WX_LIBS_STATIC=`$WX_CONFIG_WITH_ARGS --static --libs 2>/dev/null`
7501 if test "x$WX_LIBS_STATIC" = "x"; then
7502 echo "$as_me:$LINENO: result: no" >&5
7503 echo "${ECHO_T}no" >&6
7504 else
7505 echo "$as_me:$LINENO: result: yes" >&5
7506 echo "${ECHO_T}yes" >&6
7509 wx_has_cppflags=""
7510 if test $wx_config_major_version -gt 2; then
7511 wx_has_cppflags=yes
7512 else
7513 if test $wx_config_major_version -eq 2; then
7514 if test $wx_config_minor_version -gt 2; then
7515 wx_has_cppflags=yes
7516 else
7517 if test $wx_config_minor_version -eq 2; then
7518 if test $wx_config_micro_version -ge 6; then
7519 wx_has_cppflags=yes
7526 wx_has_rescomp=""
7527 if test $wx_config_major_version -gt 2; then
7528 wx_has_rescomp=yes
7529 else
7530 if test $wx_config_major_version -eq 2; then
7531 if test $wx_config_minor_version -ge 7; then
7532 wx_has_rescomp=yes
7536 if test "x$wx_has_rescomp" = x ; then
7537 WX_RESCOMP=
7538 else
7539 WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
7542 if test "x$wx_has_cppflags" = x ; then
7543 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
7544 WX_CPPFLAGS=$WX_CFLAGS
7545 WX_CXXFLAGS=$WX_CFLAGS
7547 WX_CFLAGS_ONLY=$WX_CFLAGS
7548 WX_CXXFLAGS_ONLY=$WX_CFLAGS
7549 else
7550 WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags`
7551 WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags`
7552 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
7554 WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
7555 WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
7558 wxWin=1
7560 else
7562 if test "x$WX_VERSION_FULL" = x; then
7563 echo "$as_me:$LINENO: result: no" >&5
7564 echo "${ECHO_T}no" >&6
7565 else
7566 echo "$as_me:$LINENO: result: no (version $WX_VERSION_FULL is not new enough)" >&5
7567 echo "${ECHO_T}no (version $WX_VERSION_FULL is not new enough)" >&6
7570 WX_CFLAGS=""
7571 WX_CPPFLAGS=""
7572 WX_CXXFLAGS=""
7573 WX_LIBS=""
7574 WX_LIBS_STATIC=""
7575 WX_RESCOMP=""
7577 if test ! -z "$WXCONFIG_FLAGS"; then
7579 wx_error_message="
7580 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
7581 build with the following settings:
7582 $WXCONFIG_FLAGS
7583 but such build is not available.
7585 To see the wxWidgets builds available on this system, please use
7586 'wx-config --list' command. To use the default build, returned by
7587 'wx-config --selected-config', use the options with their 'auto'
7588 default values."
7592 wx_error_message="
7593 The requested wxWidgets build couldn't be found.
7594 $wx_error_message
7596 If you still get this error, then check that 'wx-config' is
7597 in path, the directory where wxWidgets libraries are installed
7598 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
7599 or equivalent variable and wxWidgets version is 2.8.0 or above."
7601 { { echo "$as_me:$LINENO: error: $wx_error_message" >&5
7602 echo "$as_me: error: $wx_error_message" >&2;}
7603 { (exit 1); exit 1; }; }
7606 else
7608 WX_CFLAGS=""
7609 WX_CPPFLAGS=""
7610 WX_CXXFLAGS=""
7611 WX_LIBS=""
7612 WX_LIBS_STATIC=""
7613 WX_RESCOMP=""
7629 WX_VERSION_MAJOR="$wx_config_major_version"
7630 WX_VERSION_MINOR="$wx_config_minor_version"
7634 if test "$wxWin" != 1; then
7635 { { echo "$as_me:$LINENO: error:
7636 wxWidgets must be installed on your system but wx-config
7637 script couldn't be found. Please check that wx-config is
7638 in path or specified by --with-wx-config=path flag, the
7639 directory where wxWidgets libraries are installed (returned
7640 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7641 equivalent variable and wxWidgets version is 2.8.0 or above.
7642 " >&5
7643 echo "$as_me: error:
7644 wxWidgets must be installed on your system but wx-config
7645 script couldn't be found. Please check that wx-config is
7646 in path or specified by --with-wx-config=path flag, the
7647 directory where wxWidgets libraries are installed (returned
7648 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7649 equivalent variable and wxWidgets version is 2.8.0 or above.
7650 " >&2;}
7651 { (exit 1); exit 1; }; }
7654 WX_VERSION="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
7655 if test $WX_VERSION -lt 26 ; then
7657 { { echo "$as_me:$LINENO: error:
7658 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7659 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7660 version of wxWidgets.
7661 " >&5
7662 echo "$as_me: error:
7663 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7664 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7665 version of wxWidgets.
7666 " >&2;}
7667 { (exit 1); exit 1; }; }
7670 WX_SELECTEDCONFIG=$($WX_CONFIG_WITH_ARGS --selected_config)
7672 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7673 echo "[dbg] Using wx-config --selected-config"
7674 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
7678 if test $WX_SHARED = "1"; then
7679 STATIC=0
7680 elif test $WX_SHARED = "0"; then
7681 STATIC=1
7682 elif test $WX_SHARED = "auto"; then
7683 STATIC="auto"
7687 if test "$UNICODE" = "auto" ; then
7689 echo "$as_me:$LINENO: checking if wxWidgets was built with UNICODE enabled" >&5
7690 echo $ECHO_N "checking if wxWidgets was built with UNICODE enabled... $ECHO_C" >&6
7692 WX_UNICODE=$(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
7694 if test "$WX_UNICODE" != "0"; then
7695 WX_UNICODE=1
7696 echo "$as_me:$LINENO: result: yes" >&5
7697 echo "${ECHO_T}yes" >&6
7699 else
7700 WX_UNICODE=0
7701 echo "$as_me:$LINENO: result: no" >&5
7702 echo "${ECHO_T}no" >&6
7705 else
7707 WX_UNICODE=$UNICODE
7711 if test "$DEBUG" = "auto" ; then
7713 echo "$as_me:$LINENO: checking if wxWidgets was built in DEBUG mode" >&5
7714 echo $ECHO_N "checking if wxWidgets was built in DEBUG mode... $ECHO_C" >&6
7716 WX_DEBUG=$(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
7718 if test "$WX_DEBUG" != "0"; then
7719 WX_DEBUG=1
7720 echo "$as_me:$LINENO: result: yes" >&5
7721 echo "${ECHO_T}yes" >&6
7723 else
7724 WX_DEBUG=0
7725 echo "$as_me:$LINENO: result: no" >&5
7726 echo "${ECHO_T}no" >&6
7729 else
7731 WX_DEBUG=$DEBUG
7735 if test "$STATIC" = "auto" ; then
7737 echo "$as_me:$LINENO: checking if wxWidgets was built in STATIC mode" >&5
7738 echo $ECHO_N "checking if wxWidgets was built in STATIC mode... $ECHO_C" >&6
7740 WX_STATIC=$(expr "$WX_SELECTEDCONFIG" : ".*static.*")
7742 if test "$WX_STATIC" != "0"; then
7743 WX_STATIC=1
7744 echo "$as_me:$LINENO: result: yes" >&5
7745 echo "${ECHO_T}yes" >&6
7747 else
7748 WX_STATIC=0
7749 echo "$as_me:$LINENO: result: no" >&5
7750 echo "${ECHO_T}no" >&6
7753 else
7755 WX_STATIC=$STATIC
7759 if test "$WX_STATIC" != "0"; then
7760 WX_SHARED=0
7761 else
7762 WX_SHARED=1
7769 if test "$TOOLKIT" = "auto" ; then
7771 echo "$as_me:$LINENO: checking which wxWidgets toolkit was selected" >&5
7772 echo $ECHO_N "checking which wxWidgets toolkit was selected... $ECHO_C" >&6
7774 WX_GTKPORT1=$(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
7775 WX_GTKPORT2=$(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
7776 WX_MSWPORT=$(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
7777 WX_MOTIFPORT=$(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
7778 WX_MACPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
7779 WX_X11PORT=$(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
7780 WX_MGLPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mgl.*")
7781 WX_DFBPORT=$(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
7782 WX_BASEPORT=$(expr "$WX_SELECTEDCONFIG" : ".*base.*")
7784 WX_PORT="unknown"
7785 if test "$WX_GTKPORT1" != "0"; then WX_PORT="gtk1"; fi
7786 if test "$WX_GTKPORT2" != "0"; then WX_PORT="gtk2"; fi
7787 if test "$WX_MSWPORT" != "0"; then WX_PORT="msw"; fi
7788 if test "$WX_MOTIFPORT" != "0"; then WX_PORT="motif"; fi
7789 if test "$WX_MACPORT" != "0"; then WX_PORT="mac"; fi
7790 if test "$WX_X11PORT" != "0"; then WX_PORT="x11"; fi
7791 if test "$WX_MGLPORT" != "0"; then WX_PORT="mgl"; fi
7792 if test "$WX_DFBPORT" != "0"; then WX_PORT="dfb"; fi
7793 if test "$WX_BASEPORT" != "0"; then WX_PORT="base"; fi
7796 if test "$WX_PORT" = "unknown" ; then
7797 { { echo "$as_me:$LINENO: error:
7798 Cannot detect the currently installed wxWidgets port !
7799 Please check your 'wx-config --cxxflags'...
7800 " >&5
7801 echo "$as_me: error:
7802 Cannot detect the currently installed wxWidgets port !
7803 Please check your 'wx-config --cxxflags'...
7804 " >&2;}
7805 { (exit 1); exit 1; }; }
7808 echo "$as_me:$LINENO: result: $WX_PORT" >&5
7809 echo "${ECHO_T}$WX_PORT" >&6
7810 else
7812 if test -z "$TOOLKIT" ; then
7813 WX_PORT=$TOOLKIT
7814 else
7815 WX_PORT=$PORT
7821 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7822 echo "[dbg] Values of all WX_* options after final detection:"
7823 echo "[dbg] WX_DEBUG: $WX_DEBUG"
7824 echo "[dbg] WX_UNICODE: $WX_UNICODE"
7825 echo "[dbg] WX_SHARED: $WX_SHARED"
7826 echo "[dbg] WX_VERSION: $WX_VERSION"
7827 echo "[dbg] WX_PORT: $WX_PORT"
7830 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
7831 { { echo "$as_me:$LINENO: error:
7832 Cannot build shared library against a static build of wxWidgets !
7833 This error happens because the wxWidgets build which was selected
7834 has been detected as static while you asked to build $PACKAGE_NAME
7835 as shared library and this is not possible.
7836 Use the '--disable-shared' option to build $PACKAGE_NAME
7837 as static library or '--with-wxshared' to use wxWidgets as shared library.
7838 " >&5
7839 echo "$as_me: error:
7840 Cannot build shared library against a static build of wxWidgets !
7841 This error happens because the wxWidgets build which was selected
7842 has been detected as static while you asked to build $PACKAGE_NAME
7843 as shared library and this is not possible.
7844 Use the '--disable-shared' option to build $PACKAGE_NAME
7845 as static library or '--with-wxshared' to use wxWidgets as shared library.
7846 " >&2;}
7847 { (exit 1); exit 1; }; }
7850 if test "$DEBUG" = "auto"; then
7851 DEBUG=$WX_DEBUG
7853 if test "$DEBUG" = "1"; then
7854 BUILD="debug"
7855 elif test "$DEBUG" = ""; then
7856 BUILD="release"
7859 if test "$UNICODE" = "auto"; then
7860 UNICODE=$WX_UNICODE
7862 if test "$SHARED" = "auto"; then
7863 SHARED=$WX_SHARED
7865 if test "$TOOLKIT" = "auto"; then
7866 TOOLKIT=$WX_PORT
7871 # We also need wxBase
7872 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs adv,core,net`
7873 WXBASE_LIBS=`$WX_CONFIG_WITH_ARGS --libs net`
7874 WXBASE_CPPFLAGS="$WX_CPPFLAGS -DwxUSE_GUI=0"
7878 if test ${SYS:-unknown} = win32; then
7880 if test -n "$ac_tool_prefix"; then
7881 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7882 set dummy ${ac_tool_prefix}windres; ac_word=$2
7883 echo "$as_me:$LINENO: checking for $ac_word" >&5
7884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7885 if test "${ac_cv_prog_RC+set}" = set; then
7886 echo $ECHO_N "(cached) $ECHO_C" >&6
7887 else
7888 if test -n "$RC"; then
7889 ac_cv_prog_RC="$RC" # Let the user override the test.
7890 else
7891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892 for as_dir in $PATH
7894 IFS=$as_save_IFS
7895 test -z "$as_dir" && as_dir=.
7896 for ac_exec_ext in '' $ac_executable_extensions; do
7897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7898 ac_cv_prog_RC="${ac_tool_prefix}windres"
7899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7900 break 2
7902 done
7903 done
7907 RC=$ac_cv_prog_RC
7908 if test -n "$RC"; then
7909 echo "$as_me:$LINENO: result: $RC" >&5
7910 echo "${ECHO_T}$RC" >&6
7911 else
7912 echo "$as_me:$LINENO: result: no" >&5
7913 echo "${ECHO_T}no" >&6
7917 if test -z "$ac_cv_prog_RC"; then
7918 ac_ct_RC=$RC
7919 # Extract the first word of "windres", so it can be a program name with args.
7920 set dummy windres; ac_word=$2
7921 echo "$as_me:$LINENO: checking for $ac_word" >&5
7922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7923 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then
7924 echo $ECHO_N "(cached) $ECHO_C" >&6
7925 else
7926 if test -n "$ac_ct_RC"; then
7927 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
7928 else
7929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7930 for as_dir in $PATH
7932 IFS=$as_save_IFS
7933 test -z "$as_dir" && as_dir=.
7934 for ac_exec_ext in '' $ac_executable_extensions; do
7935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7936 ac_cv_prog_ac_ct_RC="windres"
7937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7938 break 2
7940 done
7941 done
7943 test -z "$ac_cv_prog_ac_ct_RC" && ac_cv_prog_ac_ct_RC=":"
7946 ac_ct_RC=$ac_cv_prog_ac_ct_RC
7947 if test -n "$ac_ct_RC"; then
7948 echo "$as_me:$LINENO: result: $ac_ct_RC" >&5
7949 echo "${ECHO_T}$ac_ct_RC" >&6
7950 else
7951 echo "$as_me:$LINENO: result: no" >&5
7952 echo "${ECHO_T}no" >&6
7955 RC=$ac_ct_RC
7956 else
7957 RC="$ac_cv_prog_RC"
7960 MULERCFLAGS=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
7965 # Check for Crypto++
7968 # Check whether --with-crypto-prefix or --without-crypto-prefix was given.
7969 if test "${with_crypto_prefix+set}" = set; then
7970 withval="$with_crypto_prefix"
7974 echo "$as_me:$LINENO: checking for crypto++ version >= 5.1" >&5
7975 echo $ECHO_N "checking for crypto++ version >= 5.1... $ECHO_C" >&6
7977 cryptopp_file_with_version="cryptlib.h"
7979 CRYPTOPP_STYLE="unknown"
7980 CRYPTOPP_LIB_NAME="unknown"
7981 cryptopp_includedir="unknown"
7982 CRYPTOPP_INCLUDE_PREFIX="unknown"
7983 cryptopp_libdir="unknown"
7985 for CRYPTOPP_PREFIX in "$with_crypto_prefix" /usr /usr/local /opt /opt/local /usr/pkg /mingw ; do
7986 if test -z "$CRYPTOPP_PREFIX"; then
7987 continue
7991 # Find the Cryptopp header
7992 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
7993 CRYPTOPP_STYLE="sources"
7994 CRYPTOPP_LIB_NAME="cryptopp"
7995 cryptopp_includedir=
7996 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
7997 cryptopp_libdir=
7998 break
7999 elif test -f $CRYPTOPP_PREFIX/include/cryptopp/$cryptopp_file_with_version; then
8000 CRYPTOPP_STYLE="installed"
8001 CRYPTOPP_LIB_NAME="cryptopp"
8002 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8003 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8004 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8005 break
8006 elif test -f $CRYPTOPP_PREFIX/include/crypto++/$cryptopp_file_with_version; then
8007 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8008 CRYPTOPP_STYLE="gentoo_debian"
8009 CRYPTOPP_LIB_NAME="crypto++"
8010 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8011 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8012 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8013 break
8015 done
8017 if test $CRYPTOPP_STYLE = "unknown"; then
8018 result=no
8019 else
8021 # Find out the crypto++ version and check against the minimum required
8022 cryptopp_header_path="${cryptopp_includedir+$cryptopp_includedir/}$CRYPTOPP_INCLUDE_PREFIX/$cryptopp_file_with_version"
8023 CRYPTOPP_VERSION_STRING=`grep "Reference Manual" $cryptopp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
8024 CRYPTOPP_VERSION_NUMBER=`echo $CRYPTOPP_VERSION_STRING | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8025 minvers=`echo 5.1 | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8027 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then
8029 result=yes
8030 resultstr=" (version $CRYPTOPP_VERSION_STRING, $CRYPTOPP_STYLE)"
8031 if test -n "$cryptopp_includedir"; then
8032 CRYPTOPP_CPPFLAGS="-I$cryptopp_includedir"
8033 else
8034 CRYPTOPP_CPPFLAGS=
8037 if test -n "$cryptopp_libdir"; then
8039 CRYPTOPP_LDFLAGS="-L$cryptopp_libdir"
8040 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME"
8042 else
8044 CRYPTOPP_LDFLAGS=
8045 CRYPTOPP_LIBS="${CRYPTOPP_INCLUDE_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a"
8051 cat >>confdefs.h <<_ACEOF
8052 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX
8053 _ACEOF
8056 else
8058 result=no
8059 resultstr=" (version $CRYPTOPP_VERSION_STRING is not new enough)"
8066 echo "$as_me:$LINENO: result: $result$resultstr" >&5
8067 echo "${ECHO_T}$result$resultstr" >&6
8069 if test ${result:-no} = yes; then
8071 # Check for CryptoPP >= 5.5
8072 if test $CRYPTOPP_VERSION_NUMBER -ge "5005000"; then
8073 CRYPTOPP_CPPFLAGS="$CRYPTOPP_CPPFLAGS -D__WEAK_CRYPTO__"
8077 else
8079 { { echo "$as_me:$LINENO: error:
8080 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8081 Please try again with --with-crypto-prefix=/my_crypto_prefix
8082 (replace /my_crypto_prefix with a valid path to your crypto++
8083 installation directory)." >&5
8084 echo "$as_me: error:
8085 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8086 Please try again with --with-crypto-prefix=/my_crypto_prefix
8087 (replace /my_crypto_prefix with a valid path to your crypto++
8088 installation directory)." >&2;}
8089 { (exit 1); exit 1; }; }
8096 ac_ext=cc
8097 ac_cpp='$CXXCPP $CPPFLAGS'
8098 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8099 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8100 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8105 echo "$as_me:$LINENO: checking if we're using the GNU C++ library" >&5
8106 echo $ECHO_N "checking if we're using the GNU C++ library... $ECHO_C" >&6
8107 cat >conftest.$ac_ext <<_ACEOF
8109 /* confdefs.h. */
8110 _ACEOF
8111 cat confdefs.h >>conftest.$ac_ext
8112 cat >>conftest.$ac_ext <<_ACEOF
8113 /* end confdefs.h. */
8115 #include <string>
8116 #ifndef __GLIBCXX__
8117 #error Non-GNU C++ library found.
8118 #endif
8121 _ACEOF
8122 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8123 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8124 ac_status=$?
8125 grep -v '^ *+' conftest.er1 >conftest.err
8126 rm -f conftest.er1
8127 cat conftest.err >&5
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); } >/dev/null; then
8130 if test -s conftest.err; then
8131 ac_cpp_err=$ac_cxx_preproc_warn_flag
8132 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8133 else
8134 ac_cpp_err=
8136 else
8137 ac_cpp_err=yes
8139 if test -z "$ac_cpp_err"; then
8140 GLIBCXX=yes
8141 else
8142 echo "$as_me: failed program was:" >&5
8143 sed 's/^/| /' conftest.$ac_ext >&5
8145 GLIBCXX=no
8147 rm -f conftest.err conftest.$ac_ext
8148 echo "$as_me:$LINENO: result: $GLIBCXX" >&5
8149 echo "${ECHO_T}$GLIBCXX" >&6
8152 mule_backup_CPPFLAGS="$CPPFLAGS"
8153 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
8155 echo "$as_me:$LINENO: checking that wxWidgets has support for large files" >&5
8156 echo $ECHO_N "checking that wxWidgets has support for large files... $ECHO_C" >&6
8157 cat >conftest.$ac_ext <<_ACEOF
8159 /* confdefs.h. */
8160 _ACEOF
8161 cat confdefs.h >>conftest.$ac_ext
8162 cat >>conftest.$ac_ext <<_ACEOF
8163 /* end confdefs.h. */
8165 #include <wx/wx.h>
8166 #if !HAVE_LARGEFILE_SUPPORT && !defined(_LARGE_FILES) && !defined(__WXMSW__)
8167 #error No LargeFile support!
8168 #endif
8171 _ACEOF
8172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8173 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8174 ac_status=$?
8175 grep -v '^ *+' conftest.er1 >conftest.err
8176 rm -f conftest.er1
8177 cat conftest.err >&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); } >/dev/null; then
8180 if test -s conftest.err; then
8181 ac_cpp_err=$ac_cxx_preproc_warn_flag
8182 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8183 else
8184 ac_cpp_err=
8186 else
8187 ac_cpp_err=yes
8189 if test -z "$ac_cpp_err"; then
8191 echo "$as_me:$LINENO: result: yes" >&5
8192 echo "${ECHO_T}yes" >&6
8194 else
8195 echo "$as_me: failed program was:" >&5
8196 sed 's/^/| /' conftest.$ac_ext >&5
8199 echo "$as_me:$LINENO: result: no" >&5
8200 echo "${ECHO_T}no" >&6
8201 { { echo "$as_me:$LINENO: error:
8202 Support for large files in wxWidgets is required by aMule.
8203 To continue you must recompile wxWidgets with support for
8204 large files enabled." >&5
8205 echo "$as_me: error:
8206 Support for large files in wxWidgets is required by aMule.
8207 To continue you must recompile wxWidgets with support for
8208 large files enabled." >&2;}
8209 { (exit 1); exit 1; }; }
8212 rm -f conftest.err conftest.$ac_ext
8214 CPPFLAGS="$mule_backup_CPPFLAGS"
8217 # Check if the compiler is broken, wrt. exceptions.
8219 echo "$as_me:$LINENO: checking for exception-handling" >&5
8220 echo $ECHO_N "checking for exception-handling... $ECHO_C" >&6
8221 if test "$cross_compiling" = yes; then
8223 echo "$as_me:$LINENO: result: undeterminable" >&5
8224 echo "${ECHO_T}undeterminable" >&6
8225 { echo "$as_me:$LINENO: WARNING:
8226 Cross-compilation detected, so exception handling cannot be tested.
8227 Note that broken exception handling in your compiler may lead to
8228 unexpected crashes." >&5
8229 echo "$as_me: WARNING:
8230 Cross-compilation detected, so exception handling cannot be tested.
8231 Note that broken exception handling in your compiler may lead to
8232 unexpected crashes." >&2;}
8234 else
8235 cat >conftest.$ac_ext <<_ACEOF
8237 /* confdefs.h. */
8238 _ACEOF
8239 cat confdefs.h >>conftest.$ac_ext
8240 cat >>conftest.$ac_ext <<_ACEOF
8241 /* end confdefs.h. */
8244 main ()
8247 try {
8248 throw 1;
8249 } catch (int) {
8250 return 0;
8252 return 1;
8255 return 0;
8258 _ACEOF
8259 rm -f conftest$ac_exeext
8260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8261 (eval $ac_link) 2>&5
8262 ac_status=$?
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8266 (eval $ac_try) 2>&5
8267 ac_status=$?
8268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 (exit $ac_status); }; }; then
8271 echo "$as_me:$LINENO: result: yes" >&5
8272 echo "${ECHO_T}yes" >&6
8274 else
8275 echo "$as_me: program exited with status $ac_status" >&5
8276 echo "$as_me: failed program was:" >&5
8277 sed 's/^/| /' conftest.$ac_ext >&5
8279 ( exit $ac_status )
8281 echo "$as_me:$LINENO: result: no" >&5
8282 echo "${ECHO_T}no" >&6
8283 { { echo "$as_me:$LINENO: error: Exception handling does not work. Broken compiler?" >&5
8284 echo "$as_me: error: Exception handling does not work. Broken compiler?" >&2;}
8285 { (exit 1); exit 1; }; }
8288 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8293 echo "$as_me:$LINENO: checking for <cxxabi.h> and __cxa_demangle()" >&5
8294 echo $ECHO_N "checking for <cxxabi.h> and __cxa_demangle()... $ECHO_C" >&6
8295 cat >conftest.$ac_ext <<_ACEOF
8297 /* confdefs.h. */
8298 _ACEOF
8299 cat confdefs.h >>conftest.$ac_ext
8300 cat >>conftest.$ac_ext <<_ACEOF
8301 /* end confdefs.h. */
8303 #include <cxxabi.h>
8306 main ()
8309 int status;
8310 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
8311 std::type_info *ti = abi::__cxa_current_exception_type();
8314 return 0;
8317 _ACEOF
8318 rm -f conftest.$ac_objext conftest$ac_exeext
8319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8320 (eval $ac_link) 2>conftest.er1
8321 ac_status=$?
8322 grep -v '^ *+' conftest.er1 >conftest.err
8323 rm -f conftest.er1
8324 cat conftest.err >&5
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); } &&
8327 { ac_try='test -z "$ac_cxx_werror_flag"
8328 || test ! -s conftest.err'
8329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8330 (eval $ac_try) 2>&5
8331 ac_status=$?
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); }; } &&
8334 { ac_try='test -s conftest$ac_exeext'
8335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8336 (eval $ac_try) 2>&5
8337 ac_status=$?
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); }; }; then
8343 cat >>confdefs.h <<\_ACEOF
8344 #define HAVE_CXXABI 1
8345 _ACEOF
8347 echo "$as_me:$LINENO: result: yes" >&5
8348 echo "${ECHO_T}yes" >&6
8350 else
8351 echo "$as_me: failed program was:" >&5
8352 sed 's/^/| /' conftest.$ac_ext >&5
8355 echo "$as_me:$LINENO: result: no" >&5
8356 echo "${ECHO_T}no" >&6
8359 rm -f conftest.err conftest.$ac_objext \
8360 conftest$ac_exeext conftest.$ac_ext
8362 ac_ext=c
8363 ac_cpp='$CPP $CPPFLAGS'
8364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8369 # Check for bfd.h (to have proper backtraces without using wxExecute)
8371 echo "$as_me:$LINENO: checking for bfd" >&5
8372 echo $ECHO_N "checking for bfd... $ECHO_C" >&6
8373 mule_backup_LIBS="$LIBS"
8374 LIBS="-lbfd -liberty $LIBS"
8375 cat >conftest.$ac_ext <<_ACEOF
8377 /* confdefs.h. */
8378 _ACEOF
8379 cat confdefs.h >>conftest.$ac_ext
8380 cat >>conftest.$ac_ext <<_ACEOF
8381 /* end confdefs.h. */
8383 #include <ansidecl.h>
8384 #include <bfd.h>
8387 main ()
8390 char *dummy = bfd_errmsg(bfd_get_error());
8393 return 0;
8396 _ACEOF
8397 rm -f conftest.$ac_objext conftest$ac_exeext
8398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8399 (eval $ac_link) 2>conftest.er1
8400 ac_status=$?
8401 grep -v '^ *+' conftest.er1 >conftest.err
8402 rm -f conftest.er1
8403 cat conftest.err >&5
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); } &&
8406 { ac_try='test -z "$ac_c_werror_flag"
8407 || test ! -s conftest.err'
8408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8409 (eval $ac_try) 2>&5
8410 ac_status=$?
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); }; } &&
8413 { ac_try='test -s conftest$ac_exeext'
8414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8415 (eval $ac_try) 2>&5
8416 ac_status=$?
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); }; }; then
8420 echo "$as_me:$LINENO: result: yes" >&5
8421 echo "${ECHO_T}yes" >&6
8422 BFD_CPPFLAGS="-DHAVE_BFD"
8423 BFD_LIBS="-lbfd -liberty"
8425 else
8426 echo "$as_me: failed program was:" >&5
8427 sed 's/^/| /' conftest.$ac_ext >&5
8430 echo "$as_me:$LINENO: result: no" >&5
8431 echo "${ECHO_T}no" >&6
8432 { echo "$as_me:$LINENO: WARNING:
8433 bfd.h not found or unusable, please install binutils development
8434 package if you are a developer or want to help testing aMule" >&5
8435 echo "$as_me: WARNING:
8436 bfd.h not found or unusable, please install binutils development
8437 package if you are a developer or want to help testing aMule" >&2;}
8440 rm -f conftest.err conftest.$ac_objext \
8441 conftest$ac_exeext conftest.$ac_ext
8442 LIBS="$mule_backup_LIBS"
8446 echo "$as_me:$LINENO: checking for <execinfo.h> and backtrace()" >&5
8447 echo $ECHO_N "checking for <execinfo.h> and backtrace()... $ECHO_C" >&6
8448 cat >conftest.$ac_ext <<_ACEOF
8450 /* confdefs.h. */
8451 _ACEOF
8452 cat confdefs.h >>conftest.$ac_ext
8453 cat >>conftest.$ac_ext <<_ACEOF
8454 /* end confdefs.h. */
8456 #include <execinfo.h>
8459 main ()
8462 void *bt[1];
8463 int n = backtrace(&bt, 1);
8464 const char **bt_syms = backtrace_symbols(bt, n);
8467 return 0;
8470 _ACEOF
8471 rm -f conftest.$ac_objext conftest$ac_exeext
8472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8473 (eval $ac_link) 2>conftest.er1
8474 ac_status=$?
8475 grep -v '^ *+' conftest.er1 >conftest.err
8476 rm -f conftest.er1
8477 cat conftest.err >&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); } &&
8480 { ac_try='test -z "$ac_c_werror_flag"
8481 || test ! -s conftest.err'
8482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8483 (eval $ac_try) 2>&5
8484 ac_status=$?
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); }; } &&
8487 { ac_try='test -s conftest$ac_exeext'
8488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8489 (eval $ac_try) 2>&5
8490 ac_status=$?
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); }; }; then
8496 cat >>confdefs.h <<\_ACEOF
8497 #define HAVE_EXECINFO 1
8498 _ACEOF
8500 echo "$as_me:$LINENO: result: yes" >&5
8501 echo "${ECHO_T}yes" >&6
8503 else
8504 echo "$as_me: failed program was:" >&5
8505 sed 's/^/| /' conftest.$ac_ext >&5
8508 echo "$as_me:$LINENO: result: no" >&5
8509 echo "${ECHO_T}no" >&6
8512 rm -f conftest.err conftest.$ac_objext \
8513 conftest$ac_exeext conftest.$ac_ext
8516 # Ok, we have all needed libs, now checking for other stuff
8517 if test "$LEX" = "flex"; then
8519 echo "$as_me:$LINENO: checking for extended flex capabilities" >&5
8520 echo $ECHO_N "checking for extended flex capabilities... $ECHO_C" >&6
8522 extended_flex=`flex --help | grep header-file`
8523 if test -n "$extended_flex"; then
8524 HAVE_FLEX_EXTENDED=yes
8525 else
8526 HAVE_FLEX_EXTENDED=no
8529 echo "$as_me:$LINENO: result: $HAVE_FLEX_EXTENDED" >&5
8530 echo "${ECHO_T}$HAVE_FLEX_EXTENDED" >&6
8532 if test $HAVE_FLEX_EXTENDED = no; then
8533 { echo "$as_me:$LINENO: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&5
8534 echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&6;}
8538 else
8539 HAVE_FLEX_EXTENDED=no
8543 # Flush standard test results for speeding cache
8544 cat >confcache <<\_ACEOF
8545 # This file is a shell script that caches the results of configure
8546 # tests run on this system so they can be shared between configure
8547 # scripts and configure runs, see configure's option --config-cache.
8548 # It is not useful on other systems. If it contains results you don't
8549 # want to keep, you may remove or edit it.
8551 # config.status only pays attention to the cache file if you give it
8552 # the --recheck option to rerun configure.
8554 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8555 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8556 # following values.
8558 _ACEOF
8560 # The following way of writing the cache mishandles newlines in values,
8561 # but we know of no workaround that is simple, portable, and efficient.
8562 # So, don't put newlines in cache variables' values.
8563 # Ultrix sh set writes to stderr and can't be redirected directly,
8564 # and sets the high bit in the cache file unless we assign to the vars.
8566 (set) 2>&1 |
8567 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8568 *ac_space=\ *)
8569 # `set' does not quote correctly, so add quotes (double-quote
8570 # substitution turns \\\\ into \\, and sed turns \\ into \).
8571 sed -n \
8572 "s/'/'\\\\''/g;
8573 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8576 # `set' quotes correctly as required by POSIX, so do not add quotes.
8577 sed -n \
8578 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8580 esac;
8582 sed '
8583 t clear
8584 : clear
8585 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8586 t end
8587 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8588 : end' >>confcache
8589 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8590 if test -w $cache_file; then
8591 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8592 cat confcache >$cache_file
8593 else
8594 echo "not updating unwritable cache $cache_file"
8597 rm -f confcache
8599 # Checks for header files.
8600 echo "$as_me:$LINENO: checking for X" >&5
8601 echo $ECHO_N "checking for X... $ECHO_C" >&6
8604 # Check whether --with-x or --without-x was given.
8605 if test "${with_x+set}" = set; then
8606 withval="$with_x"
8609 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8610 if test "x$with_x" = xno; then
8611 # The user explicitly disabled X.
8612 have_x=disabled
8613 else
8614 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8615 # Both variables are already set.
8616 have_x=yes
8617 else
8618 if test "${ac_cv_have_x+set}" = set; then
8619 echo $ECHO_N "(cached) $ECHO_C" >&6
8620 else
8621 # One or both of the vars are not set, and there is no cached value.
8622 ac_x_includes=no ac_x_libraries=no
8623 rm -fr conftest.dir
8624 if mkdir conftest.dir; then
8625 cd conftest.dir
8626 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8627 cat >Imakefile <<'_ACEOF'
8628 acfindx:
8629 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8630 _ACEOF
8631 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8632 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8633 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8634 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8635 for ac_extension in a so sl; do
8636 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8637 test -f $ac_im_libdir/libX11.$ac_extension; then
8638 ac_im_usrlibdir=$ac_im_libdir; break
8640 done
8641 # Screen out bogus values from the imake configuration. They are
8642 # bogus both because they are the default anyway, and because
8643 # using them would break gcc on systems where it needs fixed includes.
8644 case $ac_im_incroot in
8645 /usr/include) ;;
8646 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8647 esac
8648 case $ac_im_usrlibdir in
8649 /usr/lib | /lib) ;;
8650 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8651 esac
8653 cd ..
8654 rm -fr conftest.dir
8657 # Standard set of common directories for X headers.
8658 # Check X11 before X11Rn because it is often a symlink to the current release.
8659 ac_x_header_dirs='
8660 /usr/X11/include
8661 /usr/X11R6/include
8662 /usr/X11R5/include
8663 /usr/X11R4/include
8665 /usr/include/X11
8666 /usr/include/X11R6
8667 /usr/include/X11R5
8668 /usr/include/X11R4
8670 /usr/local/X11/include
8671 /usr/local/X11R6/include
8672 /usr/local/X11R5/include
8673 /usr/local/X11R4/include
8675 /usr/local/include/X11
8676 /usr/local/include/X11R6
8677 /usr/local/include/X11R5
8678 /usr/local/include/X11R4
8680 /usr/X386/include
8681 /usr/x386/include
8682 /usr/XFree86/include/X11
8684 /usr/include
8685 /usr/local/include
8686 /usr/unsupported/include
8687 /usr/athena/include
8688 /usr/local/x11r5/include
8689 /usr/lpp/Xamples/include
8691 /usr/openwin/include
8692 /usr/openwin/share/include'
8694 if test "$ac_x_includes" = no; then
8695 # Guess where to find include files, by looking for Intrinsic.h.
8696 # First, try using that file with no special directory specified.
8697 cat >conftest.$ac_ext <<_ACEOF
8698 /* confdefs.h. */
8699 _ACEOF
8700 cat confdefs.h >>conftest.$ac_ext
8701 cat >>conftest.$ac_ext <<_ACEOF
8702 /* end confdefs.h. */
8703 #include <X11/Intrinsic.h>
8704 _ACEOF
8705 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8707 ac_status=$?
8708 grep -v '^ *+' conftest.er1 >conftest.err
8709 rm -f conftest.er1
8710 cat conftest.err >&5
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); } >/dev/null; then
8713 if test -s conftest.err; then
8714 ac_cpp_err=$ac_c_preproc_warn_flag
8715 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8716 else
8717 ac_cpp_err=
8719 else
8720 ac_cpp_err=yes
8722 if test -z "$ac_cpp_err"; then
8723 # We can compile using X headers with no special include directory.
8724 ac_x_includes=
8725 else
8726 echo "$as_me: failed program was:" >&5
8727 sed 's/^/| /' conftest.$ac_ext >&5
8729 for ac_dir in $ac_x_header_dirs; do
8730 if test -r "$ac_dir/X11/Intrinsic.h"; then
8731 ac_x_includes=$ac_dir
8732 break
8734 done
8736 rm -f conftest.err conftest.$ac_ext
8737 fi # $ac_x_includes = no
8739 if test "$ac_x_libraries" = no; then
8740 # Check for the libraries.
8741 # See if we find them without any special options.
8742 # Don't add to $LIBS permanently.
8743 ac_save_LIBS=$LIBS
8744 LIBS="-lXt $LIBS"
8745 cat >conftest.$ac_ext <<_ACEOF
8746 /* confdefs.h. */
8747 _ACEOF
8748 cat confdefs.h >>conftest.$ac_ext
8749 cat >>conftest.$ac_ext <<_ACEOF
8750 /* end confdefs.h. */
8751 #include <X11/Intrinsic.h>
8753 main ()
8755 XtMalloc (0)
8757 return 0;
8759 _ACEOF
8760 rm -f conftest.$ac_objext conftest$ac_exeext
8761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8762 (eval $ac_link) 2>conftest.er1
8763 ac_status=$?
8764 grep -v '^ *+' conftest.er1 >conftest.err
8765 rm -f conftest.er1
8766 cat conftest.err >&5
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); } &&
8769 { ac_try='test -z "$ac_c_werror_flag"
8770 || test ! -s conftest.err'
8771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8772 (eval $ac_try) 2>&5
8773 ac_status=$?
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); }; } &&
8776 { ac_try='test -s conftest$ac_exeext'
8777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8778 (eval $ac_try) 2>&5
8779 ac_status=$?
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); }; }; then
8782 LIBS=$ac_save_LIBS
8783 # We can link X programs with no special library path.
8784 ac_x_libraries=
8785 else
8786 echo "$as_me: failed program was:" >&5
8787 sed 's/^/| /' conftest.$ac_ext >&5
8789 LIBS=$ac_save_LIBS
8790 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8792 # Don't even attempt the hair of trying to link an X program!
8793 for ac_extension in a so sl; do
8794 if test -r $ac_dir/libXt.$ac_extension; then
8795 ac_x_libraries=$ac_dir
8796 break 2
8798 done
8799 done
8801 rm -f conftest.err conftest.$ac_objext \
8802 conftest$ac_exeext conftest.$ac_ext
8803 fi # $ac_x_libraries = no
8805 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8806 # Didn't find X anywhere. Cache the known absence of X.
8807 ac_cv_have_x="have_x=no"
8808 else
8809 # Record where we found X for the cache.
8810 ac_cv_have_x="have_x=yes \
8811 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8816 eval "$ac_cv_have_x"
8817 fi # $with_x != no
8819 if test "$have_x" != yes; then
8820 echo "$as_me:$LINENO: result: $have_x" >&5
8821 echo "${ECHO_T}$have_x" >&6
8822 no_x=yes
8823 else
8824 # If each of the values was on the command line, it overrides each guess.
8825 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8826 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8827 # Update the cache value to reflect the command line values.
8828 ac_cv_have_x="have_x=yes \
8829 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8830 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8831 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8834 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8835 # for constant arguments. Useless!
8836 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8837 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8838 if test "${ac_cv_working_alloca_h+set}" = set; then
8839 echo $ECHO_N "(cached) $ECHO_C" >&6
8840 else
8841 cat >conftest.$ac_ext <<_ACEOF
8842 /* confdefs.h. */
8843 _ACEOF
8844 cat confdefs.h >>conftest.$ac_ext
8845 cat >>conftest.$ac_ext <<_ACEOF
8846 /* end confdefs.h. */
8847 #include <alloca.h>
8849 main ()
8851 char *p = (char *) alloca (2 * sizeof (int));
8853 return 0;
8855 _ACEOF
8856 rm -f conftest.$ac_objext conftest$ac_exeext
8857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8858 (eval $ac_link) 2>conftest.er1
8859 ac_status=$?
8860 grep -v '^ *+' conftest.er1 >conftest.err
8861 rm -f conftest.er1
8862 cat conftest.err >&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); } &&
8865 { ac_try='test -z "$ac_c_werror_flag"
8866 || test ! -s conftest.err'
8867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8868 (eval $ac_try) 2>&5
8869 ac_status=$?
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); }; } &&
8872 { ac_try='test -s conftest$ac_exeext'
8873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8874 (eval $ac_try) 2>&5
8875 ac_status=$?
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); }; }; then
8878 ac_cv_working_alloca_h=yes
8879 else
8880 echo "$as_me: failed program was:" >&5
8881 sed 's/^/| /' conftest.$ac_ext >&5
8883 ac_cv_working_alloca_h=no
8885 rm -f conftest.err conftest.$ac_objext \
8886 conftest$ac_exeext conftest.$ac_ext
8888 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8889 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8890 if test $ac_cv_working_alloca_h = yes; then
8892 cat >>confdefs.h <<\_ACEOF
8893 #define HAVE_ALLOCA_H 1
8894 _ACEOF
8898 echo "$as_me:$LINENO: checking for alloca" >&5
8899 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8900 if test "${ac_cv_func_alloca_works+set}" = set; then
8901 echo $ECHO_N "(cached) $ECHO_C" >&6
8902 else
8903 cat >conftest.$ac_ext <<_ACEOF
8904 /* confdefs.h. */
8905 _ACEOF
8906 cat confdefs.h >>conftest.$ac_ext
8907 cat >>conftest.$ac_ext <<_ACEOF
8908 /* end confdefs.h. */
8909 #ifdef __GNUC__
8910 # define alloca __builtin_alloca
8911 #else
8912 # ifdef _MSC_VER
8913 # include <malloc.h>
8914 # define alloca _alloca
8915 # else
8916 # if HAVE_ALLOCA_H
8917 # include <alloca.h>
8918 # else
8919 # ifdef _AIX
8920 #pragma alloca
8921 # else
8922 # ifndef alloca /* predefined by HP cc +Olibcalls */
8923 char *alloca ();
8924 # endif
8925 # endif
8926 # endif
8927 # endif
8928 #endif
8931 main ()
8933 char *p = (char *) alloca (1);
8935 return 0;
8937 _ACEOF
8938 rm -f conftest.$ac_objext conftest$ac_exeext
8939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8940 (eval $ac_link) 2>conftest.er1
8941 ac_status=$?
8942 grep -v '^ *+' conftest.er1 >conftest.err
8943 rm -f conftest.er1
8944 cat conftest.err >&5
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); } &&
8947 { ac_try='test -z "$ac_c_werror_flag"
8948 || test ! -s conftest.err'
8949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8950 (eval $ac_try) 2>&5
8951 ac_status=$?
8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 (exit $ac_status); }; } &&
8954 { ac_try='test -s conftest$ac_exeext'
8955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8956 (eval $ac_try) 2>&5
8957 ac_status=$?
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); }; }; then
8960 ac_cv_func_alloca_works=yes
8961 else
8962 echo "$as_me: failed program was:" >&5
8963 sed 's/^/| /' conftest.$ac_ext >&5
8965 ac_cv_func_alloca_works=no
8967 rm -f conftest.err conftest.$ac_objext \
8968 conftest$ac_exeext conftest.$ac_ext
8970 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8971 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8973 if test $ac_cv_func_alloca_works = yes; then
8975 cat >>confdefs.h <<\_ACEOF
8976 #define HAVE_ALLOCA 1
8977 _ACEOF
8979 else
8980 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8981 # that cause trouble. Some versions do not even contain alloca or
8982 # contain a buggy version. If you still want to use their alloca,
8983 # use ar to extract alloca.o from them instead of compiling alloca.c.
8985 ALLOCA=alloca.$ac_objext
8987 cat >>confdefs.h <<\_ACEOF
8988 #define C_ALLOCA 1
8989 _ACEOF
8992 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8993 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8994 if test "${ac_cv_os_cray+set}" = set; then
8995 echo $ECHO_N "(cached) $ECHO_C" >&6
8996 else
8997 cat >conftest.$ac_ext <<_ACEOF
8998 /* confdefs.h. */
8999 _ACEOF
9000 cat confdefs.h >>conftest.$ac_ext
9001 cat >>conftest.$ac_ext <<_ACEOF
9002 /* end confdefs.h. */
9003 #if defined(CRAY) && ! defined(CRAY2)
9004 webecray
9005 #else
9006 wenotbecray
9007 #endif
9009 _ACEOF
9010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9011 $EGREP "webecray" >/dev/null 2>&1; then
9012 ac_cv_os_cray=yes
9013 else
9014 ac_cv_os_cray=no
9016 rm -f conftest*
9019 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9020 echo "${ECHO_T}$ac_cv_os_cray" >&6
9021 if test $ac_cv_os_cray = yes; then
9022 for ac_func in _getb67 GETB67 getb67; do
9023 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9024 echo "$as_me:$LINENO: checking for $ac_func" >&5
9025 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9026 if eval "test \"\${$as_ac_var+set}\" = set"; then
9027 echo $ECHO_N "(cached) $ECHO_C" >&6
9028 else
9029 cat >conftest.$ac_ext <<_ACEOF
9030 /* confdefs.h. */
9031 _ACEOF
9032 cat confdefs.h >>conftest.$ac_ext
9033 cat >>conftest.$ac_ext <<_ACEOF
9034 /* end confdefs.h. */
9035 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9037 #define $ac_func innocuous_$ac_func
9039 /* System header to define __stub macros and hopefully few prototypes,
9040 which can conflict with char $ac_func (); below.
9041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9042 <limits.h> exists even on freestanding compilers. */
9044 #ifdef __STDC__
9045 # include <limits.h>
9046 #else
9047 # include <assert.h>
9048 #endif
9050 #undef $ac_func
9052 /* Override any gcc2 internal prototype to avoid an error. */
9053 #ifdef __cplusplus
9054 extern "C"
9056 #endif
9057 /* We use char because int might match the return type of a gcc2
9058 builtin and then its argument prototype would still apply. */
9059 char $ac_func ();
9060 /* The GNU C library defines this for functions which it implements
9061 to always fail with ENOSYS. Some functions are actually named
9062 something starting with __ and the normal name is an alias. */
9063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9064 choke me
9065 #else
9066 char (*f) () = $ac_func;
9067 #endif
9068 #ifdef __cplusplus
9070 #endif
9073 main ()
9075 return f != $ac_func;
9077 return 0;
9079 _ACEOF
9080 rm -f conftest.$ac_objext conftest$ac_exeext
9081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9082 (eval $ac_link) 2>conftest.er1
9083 ac_status=$?
9084 grep -v '^ *+' conftest.er1 >conftest.err
9085 rm -f conftest.er1
9086 cat conftest.err >&5
9087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088 (exit $ac_status); } &&
9089 { ac_try='test -z "$ac_c_werror_flag"
9090 || test ! -s conftest.err'
9091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9092 (eval $ac_try) 2>&5
9093 ac_status=$?
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); }; } &&
9096 { ac_try='test -s conftest$ac_exeext'
9097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9098 (eval $ac_try) 2>&5
9099 ac_status=$?
9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 (exit $ac_status); }; }; then
9102 eval "$as_ac_var=yes"
9103 else
9104 echo "$as_me: failed program was:" >&5
9105 sed 's/^/| /' conftest.$ac_ext >&5
9107 eval "$as_ac_var=no"
9109 rm -f conftest.err conftest.$ac_objext \
9110 conftest$ac_exeext conftest.$ac_ext
9112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9113 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9114 if test `eval echo '${'$as_ac_var'}'` = yes; then
9116 cat >>confdefs.h <<_ACEOF
9117 #define CRAY_STACKSEG_END $ac_func
9118 _ACEOF
9120 break
9123 done
9126 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9127 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9128 if test "${ac_cv_c_stack_direction+set}" = set; then
9129 echo $ECHO_N "(cached) $ECHO_C" >&6
9130 else
9131 if test "$cross_compiling" = yes; then
9132 ac_cv_c_stack_direction=0
9133 else
9134 cat >conftest.$ac_ext <<_ACEOF
9135 /* confdefs.h. */
9136 _ACEOF
9137 cat confdefs.h >>conftest.$ac_ext
9138 cat >>conftest.$ac_ext <<_ACEOF
9139 /* end confdefs.h. */
9141 find_stack_direction ()
9143 static char *addr = 0;
9144 auto char dummy;
9145 if (addr == 0)
9147 addr = &dummy;
9148 return find_stack_direction ();
9150 else
9151 return (&dummy > addr) ? 1 : -1;
9155 main ()
9157 exit (find_stack_direction () < 0);
9159 _ACEOF
9160 rm -f conftest$ac_exeext
9161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9162 (eval $ac_link) 2>&5
9163 ac_status=$?
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9167 (eval $ac_try) 2>&5
9168 ac_status=$?
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); }; }; then
9171 ac_cv_c_stack_direction=1
9172 else
9173 echo "$as_me: program exited with status $ac_status" >&5
9174 echo "$as_me: failed program was:" >&5
9175 sed 's/^/| /' conftest.$ac_ext >&5
9177 ( exit $ac_status )
9178 ac_cv_c_stack_direction=-1
9180 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9183 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9184 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9186 cat >>confdefs.h <<_ACEOF
9187 #define STACK_DIRECTION $ac_cv_c_stack_direction
9188 _ACEOF
9198 ac_header_dirent=no
9199 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9200 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9201 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9202 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9204 echo $ECHO_N "(cached) $ECHO_C" >&6
9205 else
9206 cat >conftest.$ac_ext <<_ACEOF
9207 /* confdefs.h. */
9208 _ACEOF
9209 cat confdefs.h >>conftest.$ac_ext
9210 cat >>conftest.$ac_ext <<_ACEOF
9211 /* end confdefs.h. */
9212 #include <sys/types.h>
9213 #include <$ac_hdr>
9216 main ()
9218 if ((DIR *) 0)
9219 return 0;
9221 return 0;
9223 _ACEOF
9224 rm -f conftest.$ac_objext
9225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9226 (eval $ac_compile) 2>conftest.er1
9227 ac_status=$?
9228 grep -v '^ *+' conftest.er1 >conftest.err
9229 rm -f conftest.er1
9230 cat conftest.err >&5
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); } &&
9233 { ac_try='test -z "$ac_c_werror_flag"
9234 || test ! -s conftest.err'
9235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9236 (eval $ac_try) 2>&5
9237 ac_status=$?
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); }; } &&
9240 { ac_try='test -s conftest.$ac_objext'
9241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9242 (eval $ac_try) 2>&5
9243 ac_status=$?
9244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245 (exit $ac_status); }; }; then
9246 eval "$as_ac_Header=yes"
9247 else
9248 echo "$as_me: failed program was:" >&5
9249 sed 's/^/| /' conftest.$ac_ext >&5
9251 eval "$as_ac_Header=no"
9253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9256 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9257 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9258 cat >>confdefs.h <<_ACEOF
9259 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9260 _ACEOF
9262 ac_header_dirent=$ac_hdr; break
9265 done
9266 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9267 if test $ac_header_dirent = dirent.h; then
9268 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9269 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9270 if test "${ac_cv_search_opendir+set}" = set; then
9271 echo $ECHO_N "(cached) $ECHO_C" >&6
9272 else
9273 ac_func_search_save_LIBS=$LIBS
9274 ac_cv_search_opendir=no
9275 cat >conftest.$ac_ext <<_ACEOF
9276 /* confdefs.h. */
9277 _ACEOF
9278 cat confdefs.h >>conftest.$ac_ext
9279 cat >>conftest.$ac_ext <<_ACEOF
9280 /* end confdefs.h. */
9282 /* Override any gcc2 internal prototype to avoid an error. */
9283 #ifdef __cplusplus
9284 extern "C"
9285 #endif
9286 /* We use char because int might match the return type of a gcc2
9287 builtin and then its argument prototype would still apply. */
9288 char opendir ();
9290 main ()
9292 opendir ();
9294 return 0;
9296 _ACEOF
9297 rm -f conftest.$ac_objext conftest$ac_exeext
9298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9299 (eval $ac_link) 2>conftest.er1
9300 ac_status=$?
9301 grep -v '^ *+' conftest.er1 >conftest.err
9302 rm -f conftest.er1
9303 cat conftest.err >&5
9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305 (exit $ac_status); } &&
9306 { ac_try='test -z "$ac_c_werror_flag"
9307 || test ! -s conftest.err'
9308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9309 (eval $ac_try) 2>&5
9310 ac_status=$?
9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 (exit $ac_status); }; } &&
9313 { ac_try='test -s conftest$ac_exeext'
9314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9315 (eval $ac_try) 2>&5
9316 ac_status=$?
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); }; }; then
9319 ac_cv_search_opendir="none required"
9320 else
9321 echo "$as_me: failed program was:" >&5
9322 sed 's/^/| /' conftest.$ac_ext >&5
9325 rm -f conftest.err conftest.$ac_objext \
9326 conftest$ac_exeext conftest.$ac_ext
9327 if test "$ac_cv_search_opendir" = no; then
9328 for ac_lib in dir; do
9329 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9330 cat >conftest.$ac_ext <<_ACEOF
9331 /* confdefs.h. */
9332 _ACEOF
9333 cat confdefs.h >>conftest.$ac_ext
9334 cat >>conftest.$ac_ext <<_ACEOF
9335 /* end confdefs.h. */
9337 /* Override any gcc2 internal prototype to avoid an error. */
9338 #ifdef __cplusplus
9339 extern "C"
9340 #endif
9341 /* We use char because int might match the return type of a gcc2
9342 builtin and then its argument prototype would still apply. */
9343 char opendir ();
9345 main ()
9347 opendir ();
9349 return 0;
9351 _ACEOF
9352 rm -f conftest.$ac_objext conftest$ac_exeext
9353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9354 (eval $ac_link) 2>conftest.er1
9355 ac_status=$?
9356 grep -v '^ *+' conftest.er1 >conftest.err
9357 rm -f conftest.er1
9358 cat conftest.err >&5
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); } &&
9361 { ac_try='test -z "$ac_c_werror_flag"
9362 || test ! -s conftest.err'
9363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9364 (eval $ac_try) 2>&5
9365 ac_status=$?
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); }; } &&
9368 { ac_try='test -s conftest$ac_exeext'
9369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9370 (eval $ac_try) 2>&5
9371 ac_status=$?
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); }; }; then
9374 ac_cv_search_opendir="-l$ac_lib"
9375 break
9376 else
9377 echo "$as_me: failed program was:" >&5
9378 sed 's/^/| /' conftest.$ac_ext >&5
9381 rm -f conftest.err conftest.$ac_objext \
9382 conftest$ac_exeext conftest.$ac_ext
9383 done
9385 LIBS=$ac_func_search_save_LIBS
9387 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9388 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9389 if test "$ac_cv_search_opendir" != no; then
9390 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9394 else
9395 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9396 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9397 if test "${ac_cv_search_opendir+set}" = set; then
9398 echo $ECHO_N "(cached) $ECHO_C" >&6
9399 else
9400 ac_func_search_save_LIBS=$LIBS
9401 ac_cv_search_opendir=no
9402 cat >conftest.$ac_ext <<_ACEOF
9403 /* confdefs.h. */
9404 _ACEOF
9405 cat confdefs.h >>conftest.$ac_ext
9406 cat >>conftest.$ac_ext <<_ACEOF
9407 /* end confdefs.h. */
9409 /* Override any gcc2 internal prototype to avoid an error. */
9410 #ifdef __cplusplus
9411 extern "C"
9412 #endif
9413 /* We use char because int might match the return type of a gcc2
9414 builtin and then its argument prototype would still apply. */
9415 char opendir ();
9417 main ()
9419 opendir ();
9421 return 0;
9423 _ACEOF
9424 rm -f conftest.$ac_objext conftest$ac_exeext
9425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9426 (eval $ac_link) 2>conftest.er1
9427 ac_status=$?
9428 grep -v '^ *+' conftest.er1 >conftest.err
9429 rm -f conftest.er1
9430 cat conftest.err >&5
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 (exit $ac_status); } &&
9433 { ac_try='test -z "$ac_c_werror_flag"
9434 || test ! -s conftest.err'
9435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9436 (eval $ac_try) 2>&5
9437 ac_status=$?
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); }; } &&
9440 { ac_try='test -s conftest$ac_exeext'
9441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9442 (eval $ac_try) 2>&5
9443 ac_status=$?
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); }; }; then
9446 ac_cv_search_opendir="none required"
9447 else
9448 echo "$as_me: failed program was:" >&5
9449 sed 's/^/| /' conftest.$ac_ext >&5
9452 rm -f conftest.err conftest.$ac_objext \
9453 conftest$ac_exeext conftest.$ac_ext
9454 if test "$ac_cv_search_opendir" = no; then
9455 for ac_lib in x; do
9456 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9457 cat >conftest.$ac_ext <<_ACEOF
9458 /* confdefs.h. */
9459 _ACEOF
9460 cat confdefs.h >>conftest.$ac_ext
9461 cat >>conftest.$ac_ext <<_ACEOF
9462 /* end confdefs.h. */
9464 /* Override any gcc2 internal prototype to avoid an error. */
9465 #ifdef __cplusplus
9466 extern "C"
9467 #endif
9468 /* We use char because int might match the return type of a gcc2
9469 builtin and then its argument prototype would still apply. */
9470 char opendir ();
9472 main ()
9474 opendir ();
9476 return 0;
9478 _ACEOF
9479 rm -f conftest.$ac_objext conftest$ac_exeext
9480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9481 (eval $ac_link) 2>conftest.er1
9482 ac_status=$?
9483 grep -v '^ *+' conftest.er1 >conftest.err
9484 rm -f conftest.er1
9485 cat conftest.err >&5
9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); } &&
9488 { ac_try='test -z "$ac_c_werror_flag"
9489 || test ! -s conftest.err'
9490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9491 (eval $ac_try) 2>&5
9492 ac_status=$?
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); }; } &&
9495 { ac_try='test -s conftest$ac_exeext'
9496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9497 (eval $ac_try) 2>&5
9498 ac_status=$?
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); }; }; then
9501 ac_cv_search_opendir="-l$ac_lib"
9502 break
9503 else
9504 echo "$as_me: failed program was:" >&5
9505 sed 's/^/| /' conftest.$ac_ext >&5
9508 rm -f conftest.err conftest.$ac_objext \
9509 conftest$ac_exeext conftest.$ac_ext
9510 done
9512 LIBS=$ac_func_search_save_LIBS
9514 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9515 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9516 if test "$ac_cv_search_opendir" != no; then
9517 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9523 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9524 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9525 if test "${ac_cv_header_stdc+set}" = set; then
9526 echo $ECHO_N "(cached) $ECHO_C" >&6
9527 else
9528 cat >conftest.$ac_ext <<_ACEOF
9529 /* confdefs.h. */
9530 _ACEOF
9531 cat confdefs.h >>conftest.$ac_ext
9532 cat >>conftest.$ac_ext <<_ACEOF
9533 /* end confdefs.h. */
9534 #include <stdlib.h>
9535 #include <stdarg.h>
9536 #include <string.h>
9537 #include <float.h>
9540 main ()
9544 return 0;
9546 _ACEOF
9547 rm -f conftest.$ac_objext
9548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9549 (eval $ac_compile) 2>conftest.er1
9550 ac_status=$?
9551 grep -v '^ *+' conftest.er1 >conftest.err
9552 rm -f conftest.er1
9553 cat conftest.err >&5
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); } &&
9556 { ac_try='test -z "$ac_c_werror_flag"
9557 || test ! -s conftest.err'
9558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9559 (eval $ac_try) 2>&5
9560 ac_status=$?
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); }; } &&
9563 { ac_try='test -s conftest.$ac_objext'
9564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9565 (eval $ac_try) 2>&5
9566 ac_status=$?
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); }; }; then
9569 ac_cv_header_stdc=yes
9570 else
9571 echo "$as_me: failed program was:" >&5
9572 sed 's/^/| /' conftest.$ac_ext >&5
9574 ac_cv_header_stdc=no
9576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9578 if test $ac_cv_header_stdc = yes; then
9579 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9580 cat >conftest.$ac_ext <<_ACEOF
9581 /* confdefs.h. */
9582 _ACEOF
9583 cat confdefs.h >>conftest.$ac_ext
9584 cat >>conftest.$ac_ext <<_ACEOF
9585 /* end confdefs.h. */
9586 #include <string.h>
9588 _ACEOF
9589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9590 $EGREP "memchr" >/dev/null 2>&1; then
9592 else
9593 ac_cv_header_stdc=no
9595 rm -f conftest*
9599 if test $ac_cv_header_stdc = yes; then
9600 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9601 cat >conftest.$ac_ext <<_ACEOF
9602 /* confdefs.h. */
9603 _ACEOF
9604 cat confdefs.h >>conftest.$ac_ext
9605 cat >>conftest.$ac_ext <<_ACEOF
9606 /* end confdefs.h. */
9607 #include <stdlib.h>
9609 _ACEOF
9610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9611 $EGREP "free" >/dev/null 2>&1; then
9613 else
9614 ac_cv_header_stdc=no
9616 rm -f conftest*
9620 if test $ac_cv_header_stdc = yes; then
9621 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9622 if test "$cross_compiling" = yes; then
9624 else
9625 cat >conftest.$ac_ext <<_ACEOF
9626 /* confdefs.h. */
9627 _ACEOF
9628 cat confdefs.h >>conftest.$ac_ext
9629 cat >>conftest.$ac_ext <<_ACEOF
9630 /* end confdefs.h. */
9631 #include <ctype.h>
9632 #if ((' ' & 0x0FF) == 0x020)
9633 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9634 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9635 #else
9636 # define ISLOWER(c) \
9637 (('a' <= (c) && (c) <= 'i') \
9638 || ('j' <= (c) && (c) <= 'r') \
9639 || ('s' <= (c) && (c) <= 'z'))
9640 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9641 #endif
9643 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9645 main ()
9647 int i;
9648 for (i = 0; i < 256; i++)
9649 if (XOR (islower (i), ISLOWER (i))
9650 || toupper (i) != TOUPPER (i))
9651 exit(2);
9652 exit (0);
9654 _ACEOF
9655 rm -f conftest$ac_exeext
9656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9657 (eval $ac_link) 2>&5
9658 ac_status=$?
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9662 (eval $ac_try) 2>&5
9663 ac_status=$?
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); }; }; then
9667 else
9668 echo "$as_me: program exited with status $ac_status" >&5
9669 echo "$as_me: failed program was:" >&5
9670 sed 's/^/| /' conftest.$ac_ext >&5
9672 ( exit $ac_status )
9673 ac_cv_header_stdc=no
9675 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9679 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9680 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9681 if test $ac_cv_header_stdc = yes; then
9683 cat >>confdefs.h <<\_ACEOF
9684 #define STDC_HEADERS 1
9685 _ACEOF
9719 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
9721 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9723 echo "$as_me:$LINENO: checking for $ac_header" >&5
9724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9726 echo $ECHO_N "(cached) $ECHO_C" >&6
9728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9730 else
9731 # Is the header compilable?
9732 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9733 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9734 cat >conftest.$ac_ext <<_ACEOF
9735 /* confdefs.h. */
9736 _ACEOF
9737 cat confdefs.h >>conftest.$ac_ext
9738 cat >>conftest.$ac_ext <<_ACEOF
9739 /* end confdefs.h. */
9740 $ac_includes_default
9741 #include <$ac_header>
9742 _ACEOF
9743 rm -f conftest.$ac_objext
9744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9745 (eval $ac_compile) 2>conftest.er1
9746 ac_status=$?
9747 grep -v '^ *+' conftest.er1 >conftest.err
9748 rm -f conftest.er1
9749 cat conftest.err >&5
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); } &&
9752 { ac_try='test -z "$ac_c_werror_flag"
9753 || test ! -s conftest.err'
9754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9755 (eval $ac_try) 2>&5
9756 ac_status=$?
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); }; } &&
9759 { ac_try='test -s conftest.$ac_objext'
9760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9761 (eval $ac_try) 2>&5
9762 ac_status=$?
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); }; }; then
9765 ac_header_compiler=yes
9766 else
9767 echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.$ac_ext >&5
9770 ac_header_compiler=no
9772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9773 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9774 echo "${ECHO_T}$ac_header_compiler" >&6
9776 # Is the header present?
9777 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9778 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9779 cat >conftest.$ac_ext <<_ACEOF
9780 /* confdefs.h. */
9781 _ACEOF
9782 cat confdefs.h >>conftest.$ac_ext
9783 cat >>conftest.$ac_ext <<_ACEOF
9784 /* end confdefs.h. */
9785 #include <$ac_header>
9786 _ACEOF
9787 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9789 ac_status=$?
9790 grep -v '^ *+' conftest.er1 >conftest.err
9791 rm -f conftest.er1
9792 cat conftest.err >&5
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); } >/dev/null; then
9795 if test -s conftest.err; then
9796 ac_cpp_err=$ac_c_preproc_warn_flag
9797 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9798 else
9799 ac_cpp_err=
9801 else
9802 ac_cpp_err=yes
9804 if test -z "$ac_cpp_err"; then
9805 ac_header_preproc=yes
9806 else
9807 echo "$as_me: failed program was:" >&5
9808 sed 's/^/| /' conftest.$ac_ext >&5
9810 ac_header_preproc=no
9812 rm -f conftest.err conftest.$ac_ext
9813 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9814 echo "${ECHO_T}$ac_header_preproc" >&6
9816 # So? What about this header?
9817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9818 yes:no: )
9819 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9820 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9822 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9823 ac_header_preproc=yes
9825 no:yes:* )
9826 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9827 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9828 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9829 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9830 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9831 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9832 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9833 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9835 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9836 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9837 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9839 cat <<\_ASBOX
9840 ## ------------------------------ ##
9841 ## Report this to admin@amule.org ##
9842 ## ------------------------------ ##
9843 _ASBOX
9845 sed "s/^/$as_me: WARNING: /" >&2
9847 esac
9848 echo "$as_me:$LINENO: checking for $ac_header" >&5
9849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9851 echo $ECHO_N "(cached) $ECHO_C" >&6
9852 else
9853 eval "$as_ac_Header=\$ac_header_preproc"
9855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9860 cat >>confdefs.h <<_ACEOF
9861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9862 _ACEOF
9866 done
9868 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9869 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9870 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9871 echo $ECHO_N "(cached) $ECHO_C" >&6
9872 else
9873 cat >conftest.$ac_ext <<_ACEOF
9874 /* confdefs.h. */
9875 _ACEOF
9876 cat confdefs.h >>conftest.$ac_ext
9877 cat >>conftest.$ac_ext <<_ACEOF
9878 /* end confdefs.h. */
9879 #include <sys/types.h>
9880 #include <sys/wait.h>
9881 #ifndef WEXITSTATUS
9882 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9883 #endif
9884 #ifndef WIFEXITED
9885 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9886 #endif
9889 main ()
9891 int s;
9892 wait (&s);
9893 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9895 return 0;
9897 _ACEOF
9898 rm -f conftest.$ac_objext
9899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9900 (eval $ac_compile) 2>conftest.er1
9901 ac_status=$?
9902 grep -v '^ *+' conftest.er1 >conftest.err
9903 rm -f conftest.er1
9904 cat conftest.err >&5
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); } &&
9907 { ac_try='test -z "$ac_c_werror_flag"
9908 || test ! -s conftest.err'
9909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9910 (eval $ac_try) 2>&5
9911 ac_status=$?
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); }; } &&
9914 { ac_try='test -s conftest.$ac_objext'
9915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9916 (eval $ac_try) 2>&5
9917 ac_status=$?
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); }; }; then
9920 ac_cv_header_sys_wait_h=yes
9921 else
9922 echo "$as_me: failed program was:" >&5
9923 sed 's/^/| /' conftest.$ac_ext >&5
9925 ac_cv_header_sys_wait_h=no
9927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9929 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9930 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9931 if test $ac_cv_header_sys_wait_h = yes; then
9933 cat >>confdefs.h <<\_ACEOF
9934 #define HAVE_SYS_WAIT_H 1
9935 _ACEOF
9940 # Checks for typedefs, structures, and compiler characteristics.
9941 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
9942 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
9943 if test "${ac_cv_header_stdbool_h+set}" = set; then
9944 echo $ECHO_N "(cached) $ECHO_C" >&6
9945 else
9946 cat >conftest.$ac_ext <<_ACEOF
9947 /* confdefs.h. */
9948 _ACEOF
9949 cat confdefs.h >>conftest.$ac_ext
9950 cat >>conftest.$ac_ext <<_ACEOF
9951 /* end confdefs.h. */
9953 #include <stdbool.h>
9954 #ifndef bool
9955 # error bool is not defined
9956 #endif
9957 #ifndef false
9958 # error false is not defined
9959 #endif
9960 #if false
9961 # error false is not 0
9962 #endif
9963 #ifndef true
9964 # error true is not defined
9965 #endif
9966 #if true != 1
9967 # error true is not 1
9968 #endif
9969 #ifndef __bool_true_false_are_defined
9970 # error __bool_true_false_are_defined is not defined
9971 #endif
9973 struct s { _Bool s: 1; _Bool t; } s;
9975 char a[true == 1 ? 1 : -1];
9976 char b[false == 0 ? 1 : -1];
9977 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9978 char d[(bool) -0.5 == true ? 1 : -1];
9979 bool e = &s;
9980 char f[(_Bool) -0.0 == false ? 1 : -1];
9981 char g[true];
9982 char h[sizeof (_Bool)];
9983 char i[sizeof s.t];
9986 main ()
9988 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
9990 return 0;
9992 _ACEOF
9993 rm -f conftest.$ac_objext
9994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9995 (eval $ac_compile) 2>conftest.er1
9996 ac_status=$?
9997 grep -v '^ *+' conftest.er1 >conftest.err
9998 rm -f conftest.er1
9999 cat conftest.err >&5
10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); } &&
10002 { ac_try='test -z "$ac_c_werror_flag"
10003 || test ! -s conftest.err'
10004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10005 (eval $ac_try) 2>&5
10006 ac_status=$?
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); }; } &&
10009 { ac_try='test -s conftest.$ac_objext'
10010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10011 (eval $ac_try) 2>&5
10012 ac_status=$?
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); }; }; then
10015 ac_cv_header_stdbool_h=yes
10016 else
10017 echo "$as_me: failed program was:" >&5
10018 sed 's/^/| /' conftest.$ac_ext >&5
10020 ac_cv_header_stdbool_h=no
10022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10024 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
10025 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
10026 echo "$as_me:$LINENO: checking for _Bool" >&5
10027 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
10028 if test "${ac_cv_type__Bool+set}" = set; then
10029 echo $ECHO_N "(cached) $ECHO_C" >&6
10030 else
10031 cat >conftest.$ac_ext <<_ACEOF
10032 /* confdefs.h. */
10033 _ACEOF
10034 cat confdefs.h >>conftest.$ac_ext
10035 cat >>conftest.$ac_ext <<_ACEOF
10036 /* end confdefs.h. */
10037 $ac_includes_default
10039 main ()
10041 if ((_Bool *) 0)
10042 return 0;
10043 if (sizeof (_Bool))
10044 return 0;
10046 return 0;
10048 _ACEOF
10049 rm -f conftest.$ac_objext
10050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10051 (eval $ac_compile) 2>conftest.er1
10052 ac_status=$?
10053 grep -v '^ *+' conftest.er1 >conftest.err
10054 rm -f conftest.er1
10055 cat conftest.err >&5
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); } &&
10058 { ac_try='test -z "$ac_c_werror_flag"
10059 || test ! -s conftest.err'
10060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10061 (eval $ac_try) 2>&5
10062 ac_status=$?
10063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064 (exit $ac_status); }; } &&
10065 { ac_try='test -s conftest.$ac_objext'
10066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10067 (eval $ac_try) 2>&5
10068 ac_status=$?
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); }; }; then
10071 ac_cv_type__Bool=yes
10072 else
10073 echo "$as_me: failed program was:" >&5
10074 sed 's/^/| /' conftest.$ac_ext >&5
10076 ac_cv_type__Bool=no
10078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10080 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10081 echo "${ECHO_T}$ac_cv_type__Bool" >&6
10082 if test $ac_cv_type__Bool = yes; then
10084 cat >>confdefs.h <<_ACEOF
10085 #define HAVE__BOOL 1
10086 _ACEOF
10091 if test $ac_cv_header_stdbool_h = yes; then
10093 cat >>confdefs.h <<\_ACEOF
10094 #define HAVE_STDBOOL_H 1
10095 _ACEOF
10099 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10100 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10101 if test "${ac_cv_c_const+set}" = set; then
10102 echo $ECHO_N "(cached) $ECHO_C" >&6
10103 else
10104 cat >conftest.$ac_ext <<_ACEOF
10105 /* confdefs.h. */
10106 _ACEOF
10107 cat confdefs.h >>conftest.$ac_ext
10108 cat >>conftest.$ac_ext <<_ACEOF
10109 /* end confdefs.h. */
10112 main ()
10114 /* FIXME: Include the comments suggested by Paul. */
10115 #ifndef __cplusplus
10116 /* Ultrix mips cc rejects this. */
10117 typedef int charset[2];
10118 const charset x;
10119 /* SunOS 4.1.1 cc rejects this. */
10120 char const *const *ccp;
10121 char **p;
10122 /* NEC SVR4.0.2 mips cc rejects this. */
10123 struct point {int x, y;};
10124 static struct point const zero = {0,0};
10125 /* AIX XL C 1.02.0.0 rejects this.
10126 It does not let you subtract one const X* pointer from another in
10127 an arm of an if-expression whose if-part is not a constant
10128 expression */
10129 const char *g = "string";
10130 ccp = &g + (g ? g-g : 0);
10131 /* HPUX 7.0 cc rejects these. */
10132 ++ccp;
10133 p = (char**) ccp;
10134 ccp = (char const *const *) p;
10135 { /* SCO 3.2v4 cc rejects this. */
10136 char *t;
10137 char const *s = 0 ? (char *) 0 : (char const *) 0;
10139 *t++ = 0;
10141 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10142 int x[] = {25, 17};
10143 const int *foo = &x[0];
10144 ++foo;
10146 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10147 typedef const int *iptr;
10148 iptr p = 0;
10149 ++p;
10151 { /* AIX XL C 1.02.0.0 rejects this saying
10152 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10153 struct s { int j; const int *ap[3]; };
10154 struct s *b; b->j = 5;
10156 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10157 const int foo = 10;
10159 #endif
10162 return 0;
10164 _ACEOF
10165 rm -f conftest.$ac_objext
10166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10167 (eval $ac_compile) 2>conftest.er1
10168 ac_status=$?
10169 grep -v '^ *+' conftest.er1 >conftest.err
10170 rm -f conftest.er1
10171 cat conftest.err >&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); } &&
10174 { ac_try='test -z "$ac_c_werror_flag"
10175 || test ! -s conftest.err'
10176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10177 (eval $ac_try) 2>&5
10178 ac_status=$?
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); }; } &&
10181 { ac_try='test -s conftest.$ac_objext'
10182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10183 (eval $ac_try) 2>&5
10184 ac_status=$?
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); }; }; then
10187 ac_cv_c_const=yes
10188 else
10189 echo "$as_me: failed program was:" >&5
10190 sed 's/^/| /' conftest.$ac_ext >&5
10192 ac_cv_c_const=no
10194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10196 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10197 echo "${ECHO_T}$ac_cv_c_const" >&6
10198 if test $ac_cv_c_const = no; then
10200 cat >>confdefs.h <<\_ACEOF
10201 #define const
10202 _ACEOF
10206 echo "$as_me:$LINENO: checking for inline" >&5
10207 echo $ECHO_N "checking for inline... $ECHO_C" >&6
10208 if test "${ac_cv_c_inline+set}" = set; then
10209 echo $ECHO_N "(cached) $ECHO_C" >&6
10210 else
10211 ac_cv_c_inline=no
10212 for ac_kw in inline __inline__ __inline; do
10213 cat >conftest.$ac_ext <<_ACEOF
10214 /* confdefs.h. */
10215 _ACEOF
10216 cat confdefs.h >>conftest.$ac_ext
10217 cat >>conftest.$ac_ext <<_ACEOF
10218 /* end confdefs.h. */
10219 #ifndef __cplusplus
10220 typedef int foo_t;
10221 static $ac_kw foo_t static_foo () {return 0; }
10222 $ac_kw foo_t foo () {return 0; }
10223 #endif
10225 _ACEOF
10226 rm -f conftest.$ac_objext
10227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10228 (eval $ac_compile) 2>conftest.er1
10229 ac_status=$?
10230 grep -v '^ *+' conftest.er1 >conftest.err
10231 rm -f conftest.er1
10232 cat conftest.err >&5
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); } &&
10235 { ac_try='test -z "$ac_c_werror_flag"
10236 || test ! -s conftest.err'
10237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10238 (eval $ac_try) 2>&5
10239 ac_status=$?
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); }; } &&
10242 { ac_try='test -s conftest.$ac_objext'
10243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10244 (eval $ac_try) 2>&5
10245 ac_status=$?
10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247 (exit $ac_status); }; }; then
10248 ac_cv_c_inline=$ac_kw; break
10249 else
10250 echo "$as_me: failed program was:" >&5
10251 sed 's/^/| /' conftest.$ac_ext >&5
10254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10255 done
10258 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10259 echo "${ECHO_T}$ac_cv_c_inline" >&6
10262 case $ac_cv_c_inline in
10263 inline | yes) ;;
10265 case $ac_cv_c_inline in
10266 no) ac_val=;;
10267 *) ac_val=$ac_cv_c_inline;;
10268 esac
10269 cat >>confdefs.h <<_ACEOF
10270 #ifndef __cplusplus
10271 #define inline $ac_val
10272 #endif
10273 _ACEOF
10275 esac
10277 echo "$as_me:$LINENO: checking for mode_t" >&5
10278 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10279 if test "${ac_cv_type_mode_t+set}" = set; then
10280 echo $ECHO_N "(cached) $ECHO_C" >&6
10281 else
10282 cat >conftest.$ac_ext <<_ACEOF
10283 /* confdefs.h. */
10284 _ACEOF
10285 cat confdefs.h >>conftest.$ac_ext
10286 cat >>conftest.$ac_ext <<_ACEOF
10287 /* end confdefs.h. */
10288 $ac_includes_default
10290 main ()
10292 if ((mode_t *) 0)
10293 return 0;
10294 if (sizeof (mode_t))
10295 return 0;
10297 return 0;
10299 _ACEOF
10300 rm -f conftest.$ac_objext
10301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10302 (eval $ac_compile) 2>conftest.er1
10303 ac_status=$?
10304 grep -v '^ *+' conftest.er1 >conftest.err
10305 rm -f conftest.er1
10306 cat conftest.err >&5
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); } &&
10309 { ac_try='test -z "$ac_c_werror_flag"
10310 || test ! -s conftest.err'
10311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10312 (eval $ac_try) 2>&5
10313 ac_status=$?
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); }; } &&
10316 { ac_try='test -s conftest.$ac_objext'
10317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10318 (eval $ac_try) 2>&5
10319 ac_status=$?
10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 (exit $ac_status); }; }; then
10322 ac_cv_type_mode_t=yes
10323 else
10324 echo "$as_me: failed program was:" >&5
10325 sed 's/^/| /' conftest.$ac_ext >&5
10327 ac_cv_type_mode_t=no
10329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10331 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10332 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10333 if test $ac_cv_type_mode_t = yes; then
10335 else
10337 cat >>confdefs.h <<_ACEOF
10338 #define mode_t int
10339 _ACEOF
10343 echo "$as_me:$LINENO: checking for off_t" >&5
10344 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10345 if test "${ac_cv_type_off_t+set}" = set; then
10346 echo $ECHO_N "(cached) $ECHO_C" >&6
10347 else
10348 cat >conftest.$ac_ext <<_ACEOF
10349 /* confdefs.h. */
10350 _ACEOF
10351 cat confdefs.h >>conftest.$ac_ext
10352 cat >>conftest.$ac_ext <<_ACEOF
10353 /* end confdefs.h. */
10354 $ac_includes_default
10356 main ()
10358 if ((off_t *) 0)
10359 return 0;
10360 if (sizeof (off_t))
10361 return 0;
10363 return 0;
10365 _ACEOF
10366 rm -f conftest.$ac_objext
10367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10368 (eval $ac_compile) 2>conftest.er1
10369 ac_status=$?
10370 grep -v '^ *+' conftest.er1 >conftest.err
10371 rm -f conftest.er1
10372 cat conftest.err >&5
10373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374 (exit $ac_status); } &&
10375 { ac_try='test -z "$ac_c_werror_flag"
10376 || test ! -s conftest.err'
10377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10378 (eval $ac_try) 2>&5
10379 ac_status=$?
10380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381 (exit $ac_status); }; } &&
10382 { ac_try='test -s conftest.$ac_objext'
10383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10384 (eval $ac_try) 2>&5
10385 ac_status=$?
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); }; }; then
10388 ac_cv_type_off_t=yes
10389 else
10390 echo "$as_me: failed program was:" >&5
10391 sed 's/^/| /' conftest.$ac_ext >&5
10393 ac_cv_type_off_t=no
10395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10397 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10398 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10399 if test $ac_cv_type_off_t = yes; then
10401 else
10403 cat >>confdefs.h <<_ACEOF
10404 #define off_t long
10405 _ACEOF
10409 echo "$as_me:$LINENO: checking for size_t" >&5
10410 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10411 if test "${ac_cv_type_size_t+set}" = set; then
10412 echo $ECHO_N "(cached) $ECHO_C" >&6
10413 else
10414 cat >conftest.$ac_ext <<_ACEOF
10415 /* confdefs.h. */
10416 _ACEOF
10417 cat confdefs.h >>conftest.$ac_ext
10418 cat >>conftest.$ac_ext <<_ACEOF
10419 /* end confdefs.h. */
10420 $ac_includes_default
10422 main ()
10424 if ((size_t *) 0)
10425 return 0;
10426 if (sizeof (size_t))
10427 return 0;
10429 return 0;
10431 _ACEOF
10432 rm -f conftest.$ac_objext
10433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10434 (eval $ac_compile) 2>conftest.er1
10435 ac_status=$?
10436 grep -v '^ *+' conftest.er1 >conftest.err
10437 rm -f conftest.er1
10438 cat conftest.err >&5
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); } &&
10441 { ac_try='test -z "$ac_c_werror_flag"
10442 || test ! -s conftest.err'
10443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10444 (eval $ac_try) 2>&5
10445 ac_status=$?
10446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447 (exit $ac_status); }; } &&
10448 { ac_try='test -s conftest.$ac_objext'
10449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10450 (eval $ac_try) 2>&5
10451 ac_status=$?
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); }; }; then
10454 ac_cv_type_size_t=yes
10455 else
10456 echo "$as_me: failed program was:" >&5
10457 sed 's/^/| /' conftest.$ac_ext >&5
10459 ac_cv_type_size_t=no
10461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10463 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10464 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10465 if test $ac_cv_type_size_t = yes; then
10467 else
10469 cat >>confdefs.h <<_ACEOF
10470 #define size_t unsigned
10471 _ACEOF
10475 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10476 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10477 if test "${ac_cv_header_time+set}" = set; then
10478 echo $ECHO_N "(cached) $ECHO_C" >&6
10479 else
10480 cat >conftest.$ac_ext <<_ACEOF
10481 /* confdefs.h. */
10482 _ACEOF
10483 cat confdefs.h >>conftest.$ac_ext
10484 cat >>conftest.$ac_ext <<_ACEOF
10485 /* end confdefs.h. */
10486 #include <sys/types.h>
10487 #include <sys/time.h>
10488 #include <time.h>
10491 main ()
10493 if ((struct tm *) 0)
10494 return 0;
10496 return 0;
10498 _ACEOF
10499 rm -f conftest.$ac_objext
10500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10501 (eval $ac_compile) 2>conftest.er1
10502 ac_status=$?
10503 grep -v '^ *+' conftest.er1 >conftest.err
10504 rm -f conftest.er1
10505 cat conftest.err >&5
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); } &&
10508 { ac_try='test -z "$ac_c_werror_flag"
10509 || test ! -s conftest.err'
10510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10511 (eval $ac_try) 2>&5
10512 ac_status=$?
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); }; } &&
10515 { ac_try='test -s conftest.$ac_objext'
10516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10517 (eval $ac_try) 2>&5
10518 ac_status=$?
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); }; }; then
10521 ac_cv_header_time=yes
10522 else
10523 echo "$as_me: failed program was:" >&5
10524 sed 's/^/| /' conftest.$ac_ext >&5
10526 ac_cv_header_time=no
10528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10530 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10531 echo "${ECHO_T}$ac_cv_header_time" >&6
10532 if test $ac_cv_header_time = yes; then
10534 cat >>confdefs.h <<\_ACEOF
10535 #define TIME_WITH_SYS_TIME 1
10536 _ACEOF
10540 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10541 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10542 if test "${ac_cv_struct_tm+set}" = set; then
10543 echo $ECHO_N "(cached) $ECHO_C" >&6
10544 else
10545 cat >conftest.$ac_ext <<_ACEOF
10546 /* confdefs.h. */
10547 _ACEOF
10548 cat confdefs.h >>conftest.$ac_ext
10549 cat >>conftest.$ac_ext <<_ACEOF
10550 /* end confdefs.h. */
10551 #include <sys/types.h>
10552 #include <time.h>
10555 main ()
10557 struct tm *tp; tp->tm_sec;
10559 return 0;
10561 _ACEOF
10562 rm -f conftest.$ac_objext
10563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10564 (eval $ac_compile) 2>conftest.er1
10565 ac_status=$?
10566 grep -v '^ *+' conftest.er1 >conftest.err
10567 rm -f conftest.er1
10568 cat conftest.err >&5
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); } &&
10571 { ac_try='test -z "$ac_c_werror_flag"
10572 || test ! -s conftest.err'
10573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10574 (eval $ac_try) 2>&5
10575 ac_status=$?
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); }; } &&
10578 { ac_try='test -s conftest.$ac_objext'
10579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10580 (eval $ac_try) 2>&5
10581 ac_status=$?
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); }; }; then
10584 ac_cv_struct_tm=time.h
10585 else
10586 echo "$as_me: failed program was:" >&5
10587 sed 's/^/| /' conftest.$ac_ext >&5
10589 ac_cv_struct_tm=sys/time.h
10591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10593 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10594 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10595 if test $ac_cv_struct_tm = sys/time.h; then
10597 cat >>confdefs.h <<\_ACEOF
10598 #define TM_IN_SYS_TIME 1
10599 _ACEOF
10603 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10604 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10605 if test "${ac_cv_type_uid_t+set}" = set; then
10606 echo $ECHO_N "(cached) $ECHO_C" >&6
10607 else
10608 cat >conftest.$ac_ext <<_ACEOF
10609 /* confdefs.h. */
10610 _ACEOF
10611 cat confdefs.h >>conftest.$ac_ext
10612 cat >>conftest.$ac_ext <<_ACEOF
10613 /* end confdefs.h. */
10614 #include <sys/types.h>
10616 _ACEOF
10617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10618 $EGREP "uid_t" >/dev/null 2>&1; then
10619 ac_cv_type_uid_t=yes
10620 else
10621 ac_cv_type_uid_t=no
10623 rm -f conftest*
10626 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10627 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10628 if test $ac_cv_type_uid_t = no; then
10630 cat >>confdefs.h <<\_ACEOF
10631 #define uid_t int
10632 _ACEOF
10635 cat >>confdefs.h <<\_ACEOF
10636 #define gid_t int
10637 _ACEOF
10641 echo "$as_me:$LINENO: checking for working volatile" >&5
10642 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
10643 if test "${ac_cv_c_volatile+set}" = set; then
10644 echo $ECHO_N "(cached) $ECHO_C" >&6
10645 else
10646 cat >conftest.$ac_ext <<_ACEOF
10647 /* confdefs.h. */
10648 _ACEOF
10649 cat confdefs.h >>conftest.$ac_ext
10650 cat >>conftest.$ac_ext <<_ACEOF
10651 /* end confdefs.h. */
10654 main ()
10657 volatile int x;
10658 int * volatile y;
10660 return 0;
10662 _ACEOF
10663 rm -f conftest.$ac_objext
10664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10665 (eval $ac_compile) 2>conftest.er1
10666 ac_status=$?
10667 grep -v '^ *+' conftest.er1 >conftest.err
10668 rm -f conftest.er1
10669 cat conftest.err >&5
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); } &&
10672 { ac_try='test -z "$ac_c_werror_flag"
10673 || test ! -s conftest.err'
10674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10675 (eval $ac_try) 2>&5
10676 ac_status=$?
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); }; } &&
10679 { ac_try='test -s conftest.$ac_objext'
10680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10681 (eval $ac_try) 2>&5
10682 ac_status=$?
10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); }; }; then
10685 ac_cv_c_volatile=yes
10686 else
10687 echo "$as_me: failed program was:" >&5
10688 sed 's/^/| /' conftest.$ac_ext >&5
10690 ac_cv_c_volatile=no
10692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10694 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
10695 echo "${ECHO_T}$ac_cv_c_volatile" >&6
10696 if test $ac_cv_c_volatile = no; then
10698 cat >>confdefs.h <<\_ACEOF
10699 #define volatile
10700 _ACEOF
10704 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10705 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10706 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10707 echo $ECHO_N "(cached) $ECHO_C" >&6
10708 else
10709 cat >conftest.$ac_ext <<_ACEOF
10710 /* confdefs.h. */
10711 _ACEOF
10712 cat confdefs.h >>conftest.$ac_ext
10713 cat >>conftest.$ac_ext <<_ACEOF
10714 /* end confdefs.h. */
10715 $ac_includes_default
10717 main ()
10719 if ((ptrdiff_t *) 0)
10720 return 0;
10721 if (sizeof (ptrdiff_t))
10722 return 0;
10724 return 0;
10726 _ACEOF
10727 rm -f conftest.$ac_objext
10728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10729 (eval $ac_compile) 2>conftest.er1
10730 ac_status=$?
10731 grep -v '^ *+' conftest.er1 >conftest.err
10732 rm -f conftest.er1
10733 cat conftest.err >&5
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); } &&
10736 { ac_try='test -z "$ac_c_werror_flag"
10737 || test ! -s conftest.err'
10738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10739 (eval $ac_try) 2>&5
10740 ac_status=$?
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); }; } &&
10743 { ac_try='test -s conftest.$ac_objext'
10744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10745 (eval $ac_try) 2>&5
10746 ac_status=$?
10747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748 (exit $ac_status); }; }; then
10749 ac_cv_type_ptrdiff_t=yes
10750 else
10751 echo "$as_me: failed program was:" >&5
10752 sed 's/^/| /' conftest.$ac_ext >&5
10754 ac_cv_type_ptrdiff_t=no
10756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10758 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10759 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10760 if test $ac_cv_type_ptrdiff_t = yes; then
10762 cat >>confdefs.h <<_ACEOF
10763 #define HAVE_PTRDIFF_T 1
10764 _ACEOF
10770 # Checks for library functions.
10771 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
10772 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
10773 if test "${ac_cv_func_closedir_void+set}" = set; then
10774 echo $ECHO_N "(cached) $ECHO_C" >&6
10775 else
10776 if test "$cross_compiling" = yes; then
10777 ac_cv_func_closedir_void=yes
10778 else
10779 cat >conftest.$ac_ext <<_ACEOF
10780 /* confdefs.h. */
10781 _ACEOF
10782 cat confdefs.h >>conftest.$ac_ext
10783 cat >>conftest.$ac_ext <<_ACEOF
10784 /* end confdefs.h. */
10785 $ac_includes_default
10786 #include <$ac_header_dirent>
10787 #ifndef __cplusplus
10788 int closedir ();
10789 #endif
10792 main ()
10794 exit (closedir (opendir (".")) != 0);
10796 return 0;
10798 _ACEOF
10799 rm -f conftest$ac_exeext
10800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10801 (eval $ac_link) 2>&5
10802 ac_status=$?
10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10806 (eval $ac_try) 2>&5
10807 ac_status=$?
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); }; }; then
10810 ac_cv_func_closedir_void=no
10811 else
10812 echo "$as_me: program exited with status $ac_status" >&5
10813 echo "$as_me: failed program was:" >&5
10814 sed 's/^/| /' conftest.$ac_ext >&5
10816 ( exit $ac_status )
10817 ac_cv_func_closedir_void=yes
10819 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10822 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
10823 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
10824 if test $ac_cv_func_closedir_void = yes; then
10826 cat >>confdefs.h <<\_ACEOF
10827 #define CLOSEDIR_VOID 1
10828 _ACEOF
10832 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
10833 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
10834 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
10835 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
10836 echo $ECHO_N "(cached) $ECHO_C" >&6
10837 else
10838 ac_check_lib_save_LIBS=$LIBS
10839 LIBS="-lsun $LIBS"
10840 cat >conftest.$ac_ext <<_ACEOF
10841 /* confdefs.h. */
10842 _ACEOF
10843 cat confdefs.h >>conftest.$ac_ext
10844 cat >>conftest.$ac_ext <<_ACEOF
10845 /* end confdefs.h. */
10847 /* Override any gcc2 internal prototype to avoid an error. */
10848 #ifdef __cplusplus
10849 extern "C"
10850 #endif
10851 /* We use char because int might match the return type of a gcc2
10852 builtin and then its argument prototype would still apply. */
10853 char getmntent ();
10855 main ()
10857 getmntent ();
10859 return 0;
10861 _ACEOF
10862 rm -f conftest.$ac_objext conftest$ac_exeext
10863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10864 (eval $ac_link) 2>conftest.er1
10865 ac_status=$?
10866 grep -v '^ *+' conftest.er1 >conftest.err
10867 rm -f conftest.er1
10868 cat conftest.err >&5
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); } &&
10871 { ac_try='test -z "$ac_c_werror_flag"
10872 || test ! -s conftest.err'
10873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10874 (eval $ac_try) 2>&5
10875 ac_status=$?
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); }; } &&
10878 { ac_try='test -s conftest$ac_exeext'
10879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10880 (eval $ac_try) 2>&5
10881 ac_status=$?
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); }; }; then
10884 ac_cv_lib_sun_getmntent=yes
10885 else
10886 echo "$as_me: failed program was:" >&5
10887 sed 's/^/| /' conftest.$ac_ext >&5
10889 ac_cv_lib_sun_getmntent=no
10891 rm -f conftest.err conftest.$ac_objext \
10892 conftest$ac_exeext conftest.$ac_ext
10893 LIBS=$ac_check_lib_save_LIBS
10895 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
10896 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
10897 if test $ac_cv_lib_sun_getmntent = yes; then
10898 LIBS="-lsun $LIBS"
10899 else
10900 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
10901 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
10902 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
10903 echo $ECHO_N "(cached) $ECHO_C" >&6
10904 else
10905 ac_check_lib_save_LIBS=$LIBS
10906 LIBS="-lseq $LIBS"
10907 cat >conftest.$ac_ext <<_ACEOF
10908 /* confdefs.h. */
10909 _ACEOF
10910 cat confdefs.h >>conftest.$ac_ext
10911 cat >>conftest.$ac_ext <<_ACEOF
10912 /* end confdefs.h. */
10914 /* Override any gcc2 internal prototype to avoid an error. */
10915 #ifdef __cplusplus
10916 extern "C"
10917 #endif
10918 /* We use char because int might match the return type of a gcc2
10919 builtin and then its argument prototype would still apply. */
10920 char getmntent ();
10922 main ()
10924 getmntent ();
10926 return 0;
10928 _ACEOF
10929 rm -f conftest.$ac_objext conftest$ac_exeext
10930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10931 (eval $ac_link) 2>conftest.er1
10932 ac_status=$?
10933 grep -v '^ *+' conftest.er1 >conftest.err
10934 rm -f conftest.er1
10935 cat conftest.err >&5
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); } &&
10938 { ac_try='test -z "$ac_c_werror_flag"
10939 || test ! -s conftest.err'
10940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10941 (eval $ac_try) 2>&5
10942 ac_status=$?
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); }; } &&
10945 { ac_try='test -s conftest$ac_exeext'
10946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10947 (eval $ac_try) 2>&5
10948 ac_status=$?
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); }; }; then
10951 ac_cv_lib_seq_getmntent=yes
10952 else
10953 echo "$as_me: failed program was:" >&5
10954 sed 's/^/| /' conftest.$ac_ext >&5
10956 ac_cv_lib_seq_getmntent=no
10958 rm -f conftest.err conftest.$ac_objext \
10959 conftest$ac_exeext conftest.$ac_ext
10960 LIBS=$ac_check_lib_save_LIBS
10962 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
10963 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
10964 if test $ac_cv_lib_seq_getmntent = yes; then
10965 LIBS="-lseq $LIBS"
10966 else
10967 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
10968 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
10969 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
10970 echo $ECHO_N "(cached) $ECHO_C" >&6
10971 else
10972 ac_check_lib_save_LIBS=$LIBS
10973 LIBS="-lgen $LIBS"
10974 cat >conftest.$ac_ext <<_ACEOF
10975 /* confdefs.h. */
10976 _ACEOF
10977 cat confdefs.h >>conftest.$ac_ext
10978 cat >>conftest.$ac_ext <<_ACEOF
10979 /* end confdefs.h. */
10981 /* Override any gcc2 internal prototype to avoid an error. */
10982 #ifdef __cplusplus
10983 extern "C"
10984 #endif
10985 /* We use char because int might match the return type of a gcc2
10986 builtin and then its argument prototype would still apply. */
10987 char getmntent ();
10989 main ()
10991 getmntent ();
10993 return 0;
10995 _ACEOF
10996 rm -f conftest.$ac_objext conftest$ac_exeext
10997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10998 (eval $ac_link) 2>conftest.er1
10999 ac_status=$?
11000 grep -v '^ *+' conftest.er1 >conftest.err
11001 rm -f conftest.er1
11002 cat conftest.err >&5
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); } &&
11005 { ac_try='test -z "$ac_c_werror_flag"
11006 || test ! -s conftest.err'
11007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11008 (eval $ac_try) 2>&5
11009 ac_status=$?
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); }; } &&
11012 { ac_try='test -s conftest$ac_exeext'
11013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11014 (eval $ac_try) 2>&5
11015 ac_status=$?
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); }; }; then
11018 ac_cv_lib_gen_getmntent=yes
11019 else
11020 echo "$as_me: failed program was:" >&5
11021 sed 's/^/| /' conftest.$ac_ext >&5
11023 ac_cv_lib_gen_getmntent=no
11025 rm -f conftest.err conftest.$ac_objext \
11026 conftest$ac_exeext conftest.$ac_ext
11027 LIBS=$ac_check_lib_save_LIBS
11029 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
11030 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
11031 if test $ac_cv_lib_gen_getmntent = yes; then
11032 LIBS="-lgen $LIBS"
11040 for ac_func in getmntent
11042 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11043 echo "$as_me:$LINENO: checking for $ac_func" >&5
11044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11045 if eval "test \"\${$as_ac_var+set}\" = set"; then
11046 echo $ECHO_N "(cached) $ECHO_C" >&6
11047 else
11048 cat >conftest.$ac_ext <<_ACEOF
11049 /* confdefs.h. */
11050 _ACEOF
11051 cat confdefs.h >>conftest.$ac_ext
11052 cat >>conftest.$ac_ext <<_ACEOF
11053 /* end confdefs.h. */
11054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11056 #define $ac_func innocuous_$ac_func
11058 /* System header to define __stub macros and hopefully few prototypes,
11059 which can conflict with char $ac_func (); below.
11060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11061 <limits.h> exists even on freestanding compilers. */
11063 #ifdef __STDC__
11064 # include <limits.h>
11065 #else
11066 # include <assert.h>
11067 #endif
11069 #undef $ac_func
11071 /* Override any gcc2 internal prototype to avoid an error. */
11072 #ifdef __cplusplus
11073 extern "C"
11075 #endif
11076 /* We use char because int might match the return type of a gcc2
11077 builtin and then its argument prototype would still apply. */
11078 char $ac_func ();
11079 /* The GNU C library defines this for functions which it implements
11080 to always fail with ENOSYS. Some functions are actually named
11081 something starting with __ and the normal name is an alias. */
11082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11083 choke me
11084 #else
11085 char (*f) () = $ac_func;
11086 #endif
11087 #ifdef __cplusplus
11089 #endif
11092 main ()
11094 return f != $ac_func;
11096 return 0;
11098 _ACEOF
11099 rm -f conftest.$ac_objext conftest$ac_exeext
11100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11101 (eval $ac_link) 2>conftest.er1
11102 ac_status=$?
11103 grep -v '^ *+' conftest.er1 >conftest.err
11104 rm -f conftest.er1
11105 cat conftest.err >&5
11106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107 (exit $ac_status); } &&
11108 { ac_try='test -z "$ac_c_werror_flag"
11109 || test ! -s conftest.err'
11110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11111 (eval $ac_try) 2>&5
11112 ac_status=$?
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); }; } &&
11115 { ac_try='test -s conftest$ac_exeext'
11116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11117 (eval $ac_try) 2>&5
11118 ac_status=$?
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); }; }; then
11121 eval "$as_ac_var=yes"
11122 else
11123 echo "$as_me: failed program was:" >&5
11124 sed 's/^/| /' conftest.$ac_ext >&5
11126 eval "$as_ac_var=no"
11128 rm -f conftest.err conftest.$ac_objext \
11129 conftest$ac_exeext conftest.$ac_ext
11131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11132 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11133 if test `eval echo '${'$as_ac_var'}'` = yes; then
11134 cat >>confdefs.h <<_ACEOF
11135 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11136 _ACEOF
11139 done
11142 if test $ac_cv_c_compiler_gnu = yes; then
11143 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11144 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11145 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11146 echo $ECHO_N "(cached) $ECHO_C" >&6
11147 else
11148 ac_pattern="Autoconf.*'x'"
11149 cat >conftest.$ac_ext <<_ACEOF
11150 /* confdefs.h. */
11151 _ACEOF
11152 cat confdefs.h >>conftest.$ac_ext
11153 cat >>conftest.$ac_ext <<_ACEOF
11154 /* end confdefs.h. */
11155 #include <sgtty.h>
11156 Autoconf TIOCGETP
11157 _ACEOF
11158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11159 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11160 ac_cv_prog_gcc_traditional=yes
11161 else
11162 ac_cv_prog_gcc_traditional=no
11164 rm -f conftest*
11167 if test $ac_cv_prog_gcc_traditional = no; then
11168 cat >conftest.$ac_ext <<_ACEOF
11169 /* confdefs.h. */
11170 _ACEOF
11171 cat confdefs.h >>conftest.$ac_ext
11172 cat >>conftest.$ac_ext <<_ACEOF
11173 /* end confdefs.h. */
11174 #include <termio.h>
11175 Autoconf TCGETA
11176 _ACEOF
11177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11178 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11179 ac_cv_prog_gcc_traditional=yes
11181 rm -f conftest*
11185 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11186 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11187 if test $ac_cv_prog_gcc_traditional = yes; then
11188 CC="$CC -traditional"
11192 echo "$as_me:$LINENO: checking for pid_t" >&5
11193 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11194 if test "${ac_cv_type_pid_t+set}" = set; then
11195 echo $ECHO_N "(cached) $ECHO_C" >&6
11196 else
11197 cat >conftest.$ac_ext <<_ACEOF
11198 /* confdefs.h. */
11199 _ACEOF
11200 cat confdefs.h >>conftest.$ac_ext
11201 cat >>conftest.$ac_ext <<_ACEOF
11202 /* end confdefs.h. */
11203 $ac_includes_default
11205 main ()
11207 if ((pid_t *) 0)
11208 return 0;
11209 if (sizeof (pid_t))
11210 return 0;
11212 return 0;
11214 _ACEOF
11215 rm -f conftest.$ac_objext
11216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11217 (eval $ac_compile) 2>conftest.er1
11218 ac_status=$?
11219 grep -v '^ *+' conftest.er1 >conftest.err
11220 rm -f conftest.er1
11221 cat conftest.err >&5
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); } &&
11224 { ac_try='test -z "$ac_c_werror_flag"
11225 || test ! -s conftest.err'
11226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11227 (eval $ac_try) 2>&5
11228 ac_status=$?
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); }; } &&
11231 { ac_try='test -s conftest.$ac_objext'
11232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11233 (eval $ac_try) 2>&5
11234 ac_status=$?
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); }; }; then
11237 ac_cv_type_pid_t=yes
11238 else
11239 echo "$as_me: failed program was:" >&5
11240 sed 's/^/| /' conftest.$ac_ext >&5
11242 ac_cv_type_pid_t=no
11244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11246 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11247 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11248 if test $ac_cv_type_pid_t = yes; then
11250 else
11252 cat >>confdefs.h <<_ACEOF
11253 #define pid_t int
11254 _ACEOF
11260 for ac_header in unistd.h vfork.h
11262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11264 echo "$as_me:$LINENO: checking for $ac_header" >&5
11265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11267 echo $ECHO_N "(cached) $ECHO_C" >&6
11269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11270 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11271 else
11272 # Is the header compilable?
11273 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11274 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11275 cat >conftest.$ac_ext <<_ACEOF
11276 /* confdefs.h. */
11277 _ACEOF
11278 cat confdefs.h >>conftest.$ac_ext
11279 cat >>conftest.$ac_ext <<_ACEOF
11280 /* end confdefs.h. */
11281 $ac_includes_default
11282 #include <$ac_header>
11283 _ACEOF
11284 rm -f conftest.$ac_objext
11285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11286 (eval $ac_compile) 2>conftest.er1
11287 ac_status=$?
11288 grep -v '^ *+' conftest.er1 >conftest.err
11289 rm -f conftest.er1
11290 cat conftest.err >&5
11291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292 (exit $ac_status); } &&
11293 { ac_try='test -z "$ac_c_werror_flag"
11294 || test ! -s conftest.err'
11295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11296 (eval $ac_try) 2>&5
11297 ac_status=$?
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); }; } &&
11300 { ac_try='test -s conftest.$ac_objext'
11301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11302 (eval $ac_try) 2>&5
11303 ac_status=$?
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); }; }; then
11306 ac_header_compiler=yes
11307 else
11308 echo "$as_me: failed program was:" >&5
11309 sed 's/^/| /' conftest.$ac_ext >&5
11311 ac_header_compiler=no
11313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11314 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11315 echo "${ECHO_T}$ac_header_compiler" >&6
11317 # Is the header present?
11318 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11319 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11320 cat >conftest.$ac_ext <<_ACEOF
11321 /* confdefs.h. */
11322 _ACEOF
11323 cat confdefs.h >>conftest.$ac_ext
11324 cat >>conftest.$ac_ext <<_ACEOF
11325 /* end confdefs.h. */
11326 #include <$ac_header>
11327 _ACEOF
11328 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11329 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11330 ac_status=$?
11331 grep -v '^ *+' conftest.er1 >conftest.err
11332 rm -f conftest.er1
11333 cat conftest.err >&5
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); } >/dev/null; then
11336 if test -s conftest.err; then
11337 ac_cpp_err=$ac_c_preproc_warn_flag
11338 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11339 else
11340 ac_cpp_err=
11342 else
11343 ac_cpp_err=yes
11345 if test -z "$ac_cpp_err"; then
11346 ac_header_preproc=yes
11347 else
11348 echo "$as_me: failed program was:" >&5
11349 sed 's/^/| /' conftest.$ac_ext >&5
11351 ac_header_preproc=no
11353 rm -f conftest.err conftest.$ac_ext
11354 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11355 echo "${ECHO_T}$ac_header_preproc" >&6
11357 # So? What about this header?
11358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11359 yes:no: )
11360 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11361 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11363 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11364 ac_header_preproc=yes
11366 no:yes:* )
11367 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11368 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11369 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11370 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11371 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11372 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11373 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11374 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11376 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11377 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11378 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11380 cat <<\_ASBOX
11381 ## ------------------------------ ##
11382 ## Report this to admin@amule.org ##
11383 ## ------------------------------ ##
11384 _ASBOX
11386 sed "s/^/$as_me: WARNING: /" >&2
11388 esac
11389 echo "$as_me:$LINENO: checking for $ac_header" >&5
11390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11392 echo $ECHO_N "(cached) $ECHO_C" >&6
11393 else
11394 eval "$as_ac_Header=\$ac_header_preproc"
11396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11397 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11400 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11401 cat >>confdefs.h <<_ACEOF
11402 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11403 _ACEOF
11407 done
11411 for ac_func in fork vfork
11413 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11414 echo "$as_me:$LINENO: checking for $ac_func" >&5
11415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11416 if eval "test \"\${$as_ac_var+set}\" = set"; then
11417 echo $ECHO_N "(cached) $ECHO_C" >&6
11418 else
11419 cat >conftest.$ac_ext <<_ACEOF
11420 /* confdefs.h. */
11421 _ACEOF
11422 cat confdefs.h >>conftest.$ac_ext
11423 cat >>conftest.$ac_ext <<_ACEOF
11424 /* end confdefs.h. */
11425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11427 #define $ac_func innocuous_$ac_func
11429 /* System header to define __stub macros and hopefully few prototypes,
11430 which can conflict with char $ac_func (); below.
11431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11432 <limits.h> exists even on freestanding compilers. */
11434 #ifdef __STDC__
11435 # include <limits.h>
11436 #else
11437 # include <assert.h>
11438 #endif
11440 #undef $ac_func
11442 /* Override any gcc2 internal prototype to avoid an error. */
11443 #ifdef __cplusplus
11444 extern "C"
11446 #endif
11447 /* We use char because int might match the return type of a gcc2
11448 builtin and then its argument prototype would still apply. */
11449 char $ac_func ();
11450 /* The GNU C library defines this for functions which it implements
11451 to always fail with ENOSYS. Some functions are actually named
11452 something starting with __ and the normal name is an alias. */
11453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11454 choke me
11455 #else
11456 char (*f) () = $ac_func;
11457 #endif
11458 #ifdef __cplusplus
11460 #endif
11463 main ()
11465 return f != $ac_func;
11467 return 0;
11469 _ACEOF
11470 rm -f conftest.$ac_objext conftest$ac_exeext
11471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11472 (eval $ac_link) 2>conftest.er1
11473 ac_status=$?
11474 grep -v '^ *+' conftest.er1 >conftest.err
11475 rm -f conftest.er1
11476 cat conftest.err >&5
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); } &&
11479 { ac_try='test -z "$ac_c_werror_flag"
11480 || test ! -s conftest.err'
11481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11482 (eval $ac_try) 2>&5
11483 ac_status=$?
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); }; } &&
11486 { ac_try='test -s conftest$ac_exeext'
11487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11488 (eval $ac_try) 2>&5
11489 ac_status=$?
11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491 (exit $ac_status); }; }; then
11492 eval "$as_ac_var=yes"
11493 else
11494 echo "$as_me: failed program was:" >&5
11495 sed 's/^/| /' conftest.$ac_ext >&5
11497 eval "$as_ac_var=no"
11499 rm -f conftest.err conftest.$ac_objext \
11500 conftest$ac_exeext conftest.$ac_ext
11502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11503 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11504 if test `eval echo '${'$as_ac_var'}'` = yes; then
11505 cat >>confdefs.h <<_ACEOF
11506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11507 _ACEOF
11510 done
11512 if test "x$ac_cv_func_fork" = xyes; then
11513 echo "$as_me:$LINENO: checking for working fork" >&5
11514 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
11515 if test "${ac_cv_func_fork_works+set}" = set; then
11516 echo $ECHO_N "(cached) $ECHO_C" >&6
11517 else
11518 if test "$cross_compiling" = yes; then
11519 ac_cv_func_fork_works=cross
11520 else
11521 cat >conftest.$ac_ext <<_ACEOF
11522 /* By Ruediger Kuhlmann. */
11523 #include <sys/types.h>
11524 #if HAVE_UNISTD_H
11525 # include <unistd.h>
11526 #endif
11527 /* Some systems only have a dummy stub for fork() */
11528 int main ()
11530 if (fork() < 0)
11531 exit (1);
11532 exit (0);
11534 _ACEOF
11535 rm -f conftest$ac_exeext
11536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11537 (eval $ac_link) 2>&5
11538 ac_status=$?
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11542 (eval $ac_try) 2>&5
11543 ac_status=$?
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); }; }; then
11546 ac_cv_func_fork_works=yes
11547 else
11548 echo "$as_me: program exited with status $ac_status" >&5
11549 echo "$as_me: failed program was:" >&5
11550 sed 's/^/| /' conftest.$ac_ext >&5
11552 ( exit $ac_status )
11553 ac_cv_func_fork_works=no
11555 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11558 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11559 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11561 else
11562 ac_cv_func_fork_works=$ac_cv_func_fork
11564 if test "x$ac_cv_func_fork_works" = xcross; then
11565 case $host in
11566 *-*-amigaos* | *-*-msdosdjgpp*)
11567 # Override, as these systems have only a dummy fork() stub
11568 ac_cv_func_fork_works=no
11571 ac_cv_func_fork_works=yes
11573 esac
11574 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11575 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11577 ac_cv_func_vfork_works=$ac_cv_func_vfork
11578 if test "x$ac_cv_func_vfork" = xyes; then
11579 echo "$as_me:$LINENO: checking for working vfork" >&5
11580 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11581 if test "${ac_cv_func_vfork_works+set}" = set; then
11582 echo $ECHO_N "(cached) $ECHO_C" >&6
11583 else
11584 if test "$cross_compiling" = yes; then
11585 ac_cv_func_vfork_works=cross
11586 else
11587 cat >conftest.$ac_ext <<_ACEOF
11588 /* confdefs.h. */
11589 _ACEOF
11590 cat confdefs.h >>conftest.$ac_ext
11591 cat >>conftest.$ac_ext <<_ACEOF
11592 /* end confdefs.h. */
11593 /* Thanks to Paul Eggert for this test. */
11594 #include <stdio.h>
11595 #include <stdlib.h>
11596 #include <sys/types.h>
11597 #include <sys/stat.h>
11598 #include <sys/wait.h>
11599 #if HAVE_UNISTD_H
11600 # include <unistd.h>
11601 #endif
11602 #if HAVE_VFORK_H
11603 # include <vfork.h>
11604 #endif
11605 /* On some sparc systems, changes by the child to local and incoming
11606 argument registers are propagated back to the parent. The compiler
11607 is told about this with #include <vfork.h>, but some compilers
11608 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11609 static variable whose address is put into a register that is
11610 clobbered by the vfork. */
11611 static void
11612 #ifdef __cplusplus
11613 sparc_address_test (int arg)
11614 # else
11615 sparc_address_test (arg) int arg;
11616 #endif
11618 static pid_t child;
11619 if (!child) {
11620 child = vfork ();
11621 if (child < 0) {
11622 perror ("vfork");
11623 _exit(2);
11625 if (!child) {
11626 arg = getpid();
11627 write(-1, "", 0);
11628 _exit (arg);
11634 main ()
11636 pid_t parent = getpid ();
11637 pid_t child;
11639 sparc_address_test (0);
11641 child = vfork ();
11643 if (child == 0) {
11644 /* Here is another test for sparc vfork register problems. This
11645 test uses lots of local variables, at least as many local
11646 variables as main has allocated so far including compiler
11647 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11648 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11649 reuse the register of parent for one of the local variables,
11650 since it will think that parent can't possibly be used any more
11651 in this routine. Assigning to the local variable will thus
11652 munge parent in the parent process. */
11653 pid_t
11654 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11655 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11656 /* Convince the compiler that p..p7 are live; otherwise, it might
11657 use the same hardware register for all 8 local variables. */
11658 if (p != p1 || p != p2 || p != p3 || p != p4
11659 || p != p5 || p != p6 || p != p7)
11660 _exit(1);
11662 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11663 from child file descriptors. If the child closes a descriptor
11664 before it execs or exits, this munges the parent's descriptor
11665 as well. Test for this by closing stdout in the child. */
11666 _exit(close(fileno(stdout)) != 0);
11667 } else {
11668 int status;
11669 struct stat st;
11671 while (wait(&status) != child)
11673 exit(
11674 /* Was there some problem with vforking? */
11675 child < 0
11677 /* Did the child fail? (This shouldn't happen.) */
11678 || status
11680 /* Did the vfork/compiler bug occur? */
11681 || parent != getpid()
11683 /* Did the file descriptor bug occur? */
11684 || fstat(fileno(stdout), &st) != 0
11688 _ACEOF
11689 rm -f conftest$ac_exeext
11690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11691 (eval $ac_link) 2>&5
11692 ac_status=$?
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11696 (eval $ac_try) 2>&5
11697 ac_status=$?
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); }; }; then
11700 ac_cv_func_vfork_works=yes
11701 else
11702 echo "$as_me: program exited with status $ac_status" >&5
11703 echo "$as_me: failed program was:" >&5
11704 sed 's/^/| /' conftest.$ac_ext >&5
11706 ( exit $ac_status )
11707 ac_cv_func_vfork_works=no
11709 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11712 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11713 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11716 if test "x$ac_cv_func_fork_works" = xcross; then
11717 ac_cv_func_vfork_works=$ac_cv_func_vfork
11718 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11719 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11722 if test "x$ac_cv_func_vfork_works" = xyes; then
11724 cat >>confdefs.h <<\_ACEOF
11725 #define HAVE_WORKING_VFORK 1
11726 _ACEOF
11728 else
11730 cat >>confdefs.h <<\_ACEOF
11731 #define vfork fork
11732 _ACEOF
11735 if test "x$ac_cv_func_fork_works" = xyes; then
11737 cat >>confdefs.h <<\_ACEOF
11738 #define HAVE_WORKING_FORK 1
11739 _ACEOF
11743 if test x$SYS != xwin32; then
11744 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
11745 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
11746 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
11747 echo $ECHO_N "(cached) $ECHO_C" >&6
11748 else
11749 rm -f conftest.sym conftest.file
11750 echo >conftest.file
11751 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
11752 if test "$cross_compiling" = yes; then
11753 ac_cv_func_lstat_dereferences_slashed_symlink=no
11754 else
11755 cat >conftest.$ac_ext <<_ACEOF
11756 /* confdefs.h. */
11757 _ACEOF
11758 cat confdefs.h >>conftest.$ac_ext
11759 cat >>conftest.$ac_ext <<_ACEOF
11760 /* end confdefs.h. */
11761 $ac_includes_default
11763 main ()
11765 struct stat sbuf;
11766 /* Linux will dereference the symlink and fail.
11767 That is better in the sense that it means we will not
11768 have to compile and use the lstat wrapper. */
11769 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
11771 return 0;
11773 _ACEOF
11774 rm -f conftest$ac_exeext
11775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11776 (eval $ac_link) 2>&5
11777 ac_status=$?
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11781 (eval $ac_try) 2>&5
11782 ac_status=$?
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); }; }; then
11785 ac_cv_func_lstat_dereferences_slashed_symlink=yes
11786 else
11787 echo "$as_me: program exited with status $ac_status" >&5
11788 echo "$as_me: failed program was:" >&5
11789 sed 's/^/| /' conftest.$ac_ext >&5
11791 ( exit $ac_status )
11792 ac_cv_func_lstat_dereferences_slashed_symlink=no
11794 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11796 else
11797 # If the `ln -s' command failed, then we probably don't even
11798 # have an lstat function.
11799 ac_cv_func_lstat_dereferences_slashed_symlink=no
11801 rm -f conftest.sym conftest.file
11804 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11805 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
11807 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11809 cat >>confdefs.h <<_ACEOF
11810 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11811 _ACEOF
11814 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
11815 case $LIBOBJS in
11816 "lstat.$ac_objext" | \
11817 *" lstat.$ac_objext" | \
11818 "lstat.$ac_objext "* | \
11819 *" lstat.$ac_objext "* ) ;;
11820 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
11821 esac
11825 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
11826 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
11827 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
11828 echo $ECHO_N "(cached) $ECHO_C" >&6
11829 else
11830 if test "$cross_compiling" = yes; then
11831 ac_cv_func_lstat_empty_string_bug=yes
11832 else
11833 cat >conftest.$ac_ext <<_ACEOF
11834 /* confdefs.h. */
11835 _ACEOF
11836 cat confdefs.h >>conftest.$ac_ext
11837 cat >>conftest.$ac_ext <<_ACEOF
11838 /* end confdefs.h. */
11839 $ac_includes_default
11841 main ()
11843 struct stat sbuf;
11844 exit (lstat ("", &sbuf) ? 1 : 0);
11846 return 0;
11848 _ACEOF
11849 rm -f conftest$ac_exeext
11850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11851 (eval $ac_link) 2>&5
11852 ac_status=$?
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11856 (eval $ac_try) 2>&5
11857 ac_status=$?
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); }; }; then
11860 ac_cv_func_lstat_empty_string_bug=yes
11861 else
11862 echo "$as_me: program exited with status $ac_status" >&5
11863 echo "$as_me: failed program was:" >&5
11864 sed 's/^/| /' conftest.$ac_ext >&5
11866 ( exit $ac_status )
11867 ac_cv_func_lstat_empty_string_bug=no
11869 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11872 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
11873 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
11874 if test $ac_cv_func_lstat_empty_string_bug = yes; then
11875 case $LIBOBJS in
11876 "lstat.$ac_objext" | \
11877 *" lstat.$ac_objext" | \
11878 "lstat.$ac_objext "* | \
11879 *" lstat.$ac_objext "* ) ;;
11880 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
11881 esac
11884 cat >>confdefs.h <<_ACEOF
11885 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
11886 _ACEOF
11890 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
11891 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
11892 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
11893 echo $ECHO_N "(cached) $ECHO_C" >&6
11894 else
11895 rm -f conftest.sym conftest.file
11896 echo >conftest.file
11897 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
11898 if test "$cross_compiling" = yes; then
11899 ac_cv_func_lstat_dereferences_slashed_symlink=no
11900 else
11901 cat >conftest.$ac_ext <<_ACEOF
11902 /* confdefs.h. */
11903 _ACEOF
11904 cat confdefs.h >>conftest.$ac_ext
11905 cat >>conftest.$ac_ext <<_ACEOF
11906 /* end confdefs.h. */
11907 $ac_includes_default
11909 main ()
11911 struct stat sbuf;
11912 /* Linux will dereference the symlink and fail.
11913 That is better in the sense that it means we will not
11914 have to compile and use the lstat wrapper. */
11915 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
11917 return 0;
11919 _ACEOF
11920 rm -f conftest$ac_exeext
11921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11922 (eval $ac_link) 2>&5
11923 ac_status=$?
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11927 (eval $ac_try) 2>&5
11928 ac_status=$?
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); }; }; then
11931 ac_cv_func_lstat_dereferences_slashed_symlink=yes
11932 else
11933 echo "$as_me: program exited with status $ac_status" >&5
11934 echo "$as_me: failed program was:" >&5
11935 sed 's/^/| /' conftest.$ac_ext >&5
11937 ( exit $ac_status )
11938 ac_cv_func_lstat_dereferences_slashed_symlink=no
11940 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11942 else
11943 # If the `ln -s' command failed, then we probably don't even
11944 # have an lstat function.
11945 ac_cv_func_lstat_dereferences_slashed_symlink=no
11947 rm -f conftest.sym conftest.file
11950 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11951 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
11953 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11955 cat >>confdefs.h <<_ACEOF
11956 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11957 _ACEOF
11960 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
11961 case $LIBOBJS in
11962 "lstat.$ac_objext" | \
11963 *" lstat.$ac_objext" | \
11964 "lstat.$ac_objext "* | \
11965 *" lstat.$ac_objext "* ) ;;
11966 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
11967 esac
11974 echo "$as_me:$LINENO: checking for working memcmp" >&5
11975 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
11976 if test "${ac_cv_func_memcmp_working+set}" = set; then
11977 echo $ECHO_N "(cached) $ECHO_C" >&6
11978 else
11979 if test "$cross_compiling" = yes; then
11980 ac_cv_func_memcmp_working=no
11981 else
11982 cat >conftest.$ac_ext <<_ACEOF
11983 /* confdefs.h. */
11984 _ACEOF
11985 cat confdefs.h >>conftest.$ac_ext
11986 cat >>conftest.$ac_ext <<_ACEOF
11987 /* end confdefs.h. */
11988 $ac_includes_default
11990 main ()
11993 /* Some versions of memcmp are not 8-bit clean. */
11994 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
11995 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11996 exit (1);
11998 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11999 or more and with at least one buffer not starting on a 4-byte boundary.
12000 William Lewis provided this test program. */
12002 char foo[21];
12003 char bar[21];
12004 int i;
12005 for (i = 0; i < 4; i++)
12007 char *a = foo + i;
12008 char *b = bar + i;
12009 strcpy (a, "--------01111111");
12010 strcpy (b, "--------10000000");
12011 if (memcmp (a, b, 16) >= 0)
12012 exit (1);
12014 exit (0);
12018 return 0;
12020 _ACEOF
12021 rm -f conftest$ac_exeext
12022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12023 (eval $ac_link) 2>&5
12024 ac_status=$?
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12028 (eval $ac_try) 2>&5
12029 ac_status=$?
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); }; }; then
12032 ac_cv_func_memcmp_working=yes
12033 else
12034 echo "$as_me: program exited with status $ac_status" >&5
12035 echo "$as_me: failed program was:" >&5
12036 sed 's/^/| /' conftest.$ac_ext >&5
12038 ( exit $ac_status )
12039 ac_cv_func_memcmp_working=no
12041 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12044 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
12045 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
12046 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
12047 "memcmp.$ac_objext" | \
12048 *" memcmp.$ac_objext" | \
12049 "memcmp.$ac_objext "* | \
12050 *" memcmp.$ac_objext "* ) ;;
12051 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
12052 esac
12057 for ac_header in stdlib.h unistd.h
12059 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12061 echo "$as_me:$LINENO: checking for $ac_header" >&5
12062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12063 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12064 echo $ECHO_N "(cached) $ECHO_C" >&6
12066 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12067 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12068 else
12069 # Is the header compilable?
12070 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12071 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12072 cat >conftest.$ac_ext <<_ACEOF
12073 /* confdefs.h. */
12074 _ACEOF
12075 cat confdefs.h >>conftest.$ac_ext
12076 cat >>conftest.$ac_ext <<_ACEOF
12077 /* end confdefs.h. */
12078 $ac_includes_default
12079 #include <$ac_header>
12080 _ACEOF
12081 rm -f conftest.$ac_objext
12082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12083 (eval $ac_compile) 2>conftest.er1
12084 ac_status=$?
12085 grep -v '^ *+' conftest.er1 >conftest.err
12086 rm -f conftest.er1
12087 cat conftest.err >&5
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); } &&
12090 { ac_try='test -z "$ac_c_werror_flag"
12091 || test ! -s conftest.err'
12092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12093 (eval $ac_try) 2>&5
12094 ac_status=$?
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); }; } &&
12097 { ac_try='test -s conftest.$ac_objext'
12098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12099 (eval $ac_try) 2>&5
12100 ac_status=$?
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); }; }; then
12103 ac_header_compiler=yes
12104 else
12105 echo "$as_me: failed program was:" >&5
12106 sed 's/^/| /' conftest.$ac_ext >&5
12108 ac_header_compiler=no
12110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12111 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12112 echo "${ECHO_T}$ac_header_compiler" >&6
12114 # Is the header present?
12115 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12116 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12117 cat >conftest.$ac_ext <<_ACEOF
12118 /* confdefs.h. */
12119 _ACEOF
12120 cat confdefs.h >>conftest.$ac_ext
12121 cat >>conftest.$ac_ext <<_ACEOF
12122 /* end confdefs.h. */
12123 #include <$ac_header>
12124 _ACEOF
12125 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12126 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12127 ac_status=$?
12128 grep -v '^ *+' conftest.er1 >conftest.err
12129 rm -f conftest.er1
12130 cat conftest.err >&5
12131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132 (exit $ac_status); } >/dev/null; then
12133 if test -s conftest.err; then
12134 ac_cpp_err=$ac_c_preproc_warn_flag
12135 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12136 else
12137 ac_cpp_err=
12139 else
12140 ac_cpp_err=yes
12142 if test -z "$ac_cpp_err"; then
12143 ac_header_preproc=yes
12144 else
12145 echo "$as_me: failed program was:" >&5
12146 sed 's/^/| /' conftest.$ac_ext >&5
12148 ac_header_preproc=no
12150 rm -f conftest.err conftest.$ac_ext
12151 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12152 echo "${ECHO_T}$ac_header_preproc" >&6
12154 # So? What about this header?
12155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12156 yes:no: )
12157 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12158 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12160 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12161 ac_header_preproc=yes
12163 no:yes:* )
12164 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12165 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12166 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12167 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12168 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12169 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12170 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12171 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12173 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12174 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12175 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12177 cat <<\_ASBOX
12178 ## ------------------------------ ##
12179 ## Report this to admin@amule.org ##
12180 ## ------------------------------ ##
12181 _ASBOX
12183 sed "s/^/$as_me: WARNING: /" >&2
12185 esac
12186 echo "$as_me:$LINENO: checking for $ac_header" >&5
12187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12189 echo $ECHO_N "(cached) $ECHO_C" >&6
12190 else
12191 eval "$as_ac_Header=\$ac_header_preproc"
12193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12194 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12197 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12198 cat >>confdefs.h <<_ACEOF
12199 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12200 _ACEOF
12204 done
12207 for ac_func in getpagesize
12209 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12210 echo "$as_me:$LINENO: checking for $ac_func" >&5
12211 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12212 if eval "test \"\${$as_ac_var+set}\" = set"; then
12213 echo $ECHO_N "(cached) $ECHO_C" >&6
12214 else
12215 cat >conftest.$ac_ext <<_ACEOF
12216 /* confdefs.h. */
12217 _ACEOF
12218 cat confdefs.h >>conftest.$ac_ext
12219 cat >>conftest.$ac_ext <<_ACEOF
12220 /* end confdefs.h. */
12221 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12223 #define $ac_func innocuous_$ac_func
12225 /* System header to define __stub macros and hopefully few prototypes,
12226 which can conflict with char $ac_func (); below.
12227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12228 <limits.h> exists even on freestanding compilers. */
12230 #ifdef __STDC__
12231 # include <limits.h>
12232 #else
12233 # include <assert.h>
12234 #endif
12236 #undef $ac_func
12238 /* Override any gcc2 internal prototype to avoid an error. */
12239 #ifdef __cplusplus
12240 extern "C"
12242 #endif
12243 /* We use char because int might match the return type of a gcc2
12244 builtin and then its argument prototype would still apply. */
12245 char $ac_func ();
12246 /* The GNU C library defines this for functions which it implements
12247 to always fail with ENOSYS. Some functions are actually named
12248 something starting with __ and the normal name is an alias. */
12249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12250 choke me
12251 #else
12252 char (*f) () = $ac_func;
12253 #endif
12254 #ifdef __cplusplus
12256 #endif
12259 main ()
12261 return f != $ac_func;
12263 return 0;
12265 _ACEOF
12266 rm -f conftest.$ac_objext conftest$ac_exeext
12267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12268 (eval $ac_link) 2>conftest.er1
12269 ac_status=$?
12270 grep -v '^ *+' conftest.er1 >conftest.err
12271 rm -f conftest.er1
12272 cat conftest.err >&5
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); } &&
12275 { ac_try='test -z "$ac_c_werror_flag"
12276 || test ! -s conftest.err'
12277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12278 (eval $ac_try) 2>&5
12279 ac_status=$?
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); }; } &&
12282 { ac_try='test -s conftest$ac_exeext'
12283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12284 (eval $ac_try) 2>&5
12285 ac_status=$?
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); }; }; then
12288 eval "$as_ac_var=yes"
12289 else
12290 echo "$as_me: failed program was:" >&5
12291 sed 's/^/| /' conftest.$ac_ext >&5
12293 eval "$as_ac_var=no"
12295 rm -f conftest.err conftest.$ac_objext \
12296 conftest$ac_exeext conftest.$ac_ext
12298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12299 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12300 if test `eval echo '${'$as_ac_var'}'` = yes; then
12301 cat >>confdefs.h <<_ACEOF
12302 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12303 _ACEOF
12306 done
12308 echo "$as_me:$LINENO: checking for working mmap" >&5
12309 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
12310 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12311 echo $ECHO_N "(cached) $ECHO_C" >&6
12312 else
12313 if test "$cross_compiling" = yes; then
12314 ac_cv_func_mmap_fixed_mapped=no
12315 else
12316 cat >conftest.$ac_ext <<_ACEOF
12317 /* confdefs.h. */
12318 _ACEOF
12319 cat confdefs.h >>conftest.$ac_ext
12320 cat >>conftest.$ac_ext <<_ACEOF
12321 /* end confdefs.h. */
12322 $ac_includes_default
12323 /* malloc might have been renamed as rpl_malloc. */
12324 #undef malloc
12326 /* Thanks to Mike Haertel and Jim Avera for this test.
12327 Here is a matrix of mmap possibilities:
12328 mmap private not fixed
12329 mmap private fixed at somewhere currently unmapped
12330 mmap private fixed at somewhere already mapped
12331 mmap shared not fixed
12332 mmap shared fixed at somewhere currently unmapped
12333 mmap shared fixed at somewhere already mapped
12334 For private mappings, we should verify that changes cannot be read()
12335 back from the file, nor mmap's back from the file at a different
12336 address. (There have been systems where private was not correctly
12337 implemented like the infamous i386 svr4.0, and systems where the
12338 VM page cache was not coherent with the file system buffer cache
12339 like early versions of FreeBSD and possibly contemporary NetBSD.)
12340 For shared mappings, we should conversely verify that changes get
12341 propagated back to all the places they're supposed to be.
12343 Grep wants private fixed already mapped.
12344 The main things grep needs to know about mmap are:
12345 * does it exist and is it safe to write into the mmap'd area
12346 * how to use it (BSD variants) */
12348 #include <fcntl.h>
12349 #include <sys/mman.h>
12351 #if !STDC_HEADERS && !HAVE_STDLIB_H
12352 char *malloc ();
12353 #endif
12355 /* This mess was copied from the GNU getpagesize.h. */
12356 #if !HAVE_GETPAGESIZE
12357 /* Assume that all systems that can run configure have sys/param.h. */
12358 # if !HAVE_SYS_PARAM_H
12359 # define HAVE_SYS_PARAM_H 1
12360 # endif
12362 # ifdef _SC_PAGESIZE
12363 # define getpagesize() sysconf(_SC_PAGESIZE)
12364 # else /* no _SC_PAGESIZE */
12365 # if HAVE_SYS_PARAM_H
12366 # include <sys/param.h>
12367 # ifdef EXEC_PAGESIZE
12368 # define getpagesize() EXEC_PAGESIZE
12369 # else /* no EXEC_PAGESIZE */
12370 # ifdef NBPG
12371 # define getpagesize() NBPG * CLSIZE
12372 # ifndef CLSIZE
12373 # define CLSIZE 1
12374 # endif /* no CLSIZE */
12375 # else /* no NBPG */
12376 # ifdef NBPC
12377 # define getpagesize() NBPC
12378 # else /* no NBPC */
12379 # ifdef PAGESIZE
12380 # define getpagesize() PAGESIZE
12381 # endif /* PAGESIZE */
12382 # endif /* no NBPC */
12383 # endif /* no NBPG */
12384 # endif /* no EXEC_PAGESIZE */
12385 # else /* no HAVE_SYS_PARAM_H */
12386 # define getpagesize() 8192 /* punt totally */
12387 # endif /* no HAVE_SYS_PARAM_H */
12388 # endif /* no _SC_PAGESIZE */
12390 #endif /* no HAVE_GETPAGESIZE */
12393 main ()
12395 char *data, *data2, *data3;
12396 int i, pagesize;
12397 int fd;
12399 pagesize = getpagesize ();
12401 /* First, make a file with some known garbage in it. */
12402 data = (char *) malloc (pagesize);
12403 if (!data)
12404 exit (1);
12405 for (i = 0; i < pagesize; ++i)
12406 *(data + i) = rand ();
12407 umask (0);
12408 fd = creat ("conftest.mmap", 0600);
12409 if (fd < 0)
12410 exit (1);
12411 if (write (fd, data, pagesize) != pagesize)
12412 exit (1);
12413 close (fd);
12415 /* Next, try to mmap the file at a fixed address which already has
12416 something else allocated at it. If we can, also make sure that
12417 we see the same garbage. */
12418 fd = open ("conftest.mmap", O_RDWR);
12419 if (fd < 0)
12420 exit (1);
12421 data2 = (char *) malloc (2 * pagesize);
12422 if (!data2)
12423 exit (1);
12424 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
12425 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12426 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12427 exit (1);
12428 for (i = 0; i < pagesize; ++i)
12429 if (*(data + i) != *(data2 + i))
12430 exit (1);
12432 /* Finally, make sure that changes to the mapped area do not
12433 percolate back to the file as seen by read(). (This is a bug on
12434 some variants of i386 svr4.0.) */
12435 for (i = 0; i < pagesize; ++i)
12436 *(data2 + i) = *(data2 + i) + 1;
12437 data3 = (char *) malloc (pagesize);
12438 if (!data3)
12439 exit (1);
12440 if (read (fd, data3, pagesize) != pagesize)
12441 exit (1);
12442 for (i = 0; i < pagesize; ++i)
12443 if (*(data + i) != *(data3 + i))
12444 exit (1);
12445 close (fd);
12446 exit (0);
12448 _ACEOF
12449 rm -f conftest$ac_exeext
12450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12451 (eval $ac_link) 2>&5
12452 ac_status=$?
12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12456 (eval $ac_try) 2>&5
12457 ac_status=$?
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); }; }; then
12460 ac_cv_func_mmap_fixed_mapped=yes
12461 else
12462 echo "$as_me: program exited with status $ac_status" >&5
12463 echo "$as_me: failed program was:" >&5
12464 sed 's/^/| /' conftest.$ac_ext >&5
12466 ( exit $ac_status )
12467 ac_cv_func_mmap_fixed_mapped=no
12469 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12472 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12473 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12474 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12476 cat >>confdefs.h <<\_ACEOF
12477 #define HAVE_MMAP 1
12478 _ACEOF
12481 rm -f conftest.mmap
12485 for ac_header in sys/select.h sys/socket.h
12487 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12489 echo "$as_me:$LINENO: checking for $ac_header" >&5
12490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12492 echo $ECHO_N "(cached) $ECHO_C" >&6
12494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12496 else
12497 # Is the header compilable?
12498 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12499 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12500 cat >conftest.$ac_ext <<_ACEOF
12501 /* confdefs.h. */
12502 _ACEOF
12503 cat confdefs.h >>conftest.$ac_ext
12504 cat >>conftest.$ac_ext <<_ACEOF
12505 /* end confdefs.h. */
12506 $ac_includes_default
12507 #include <$ac_header>
12508 _ACEOF
12509 rm -f conftest.$ac_objext
12510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12511 (eval $ac_compile) 2>conftest.er1
12512 ac_status=$?
12513 grep -v '^ *+' conftest.er1 >conftest.err
12514 rm -f conftest.er1
12515 cat conftest.err >&5
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); } &&
12518 { ac_try='test -z "$ac_c_werror_flag"
12519 || test ! -s conftest.err'
12520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12521 (eval $ac_try) 2>&5
12522 ac_status=$?
12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 (exit $ac_status); }; } &&
12525 { ac_try='test -s conftest.$ac_objext'
12526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12527 (eval $ac_try) 2>&5
12528 ac_status=$?
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); }; }; then
12531 ac_header_compiler=yes
12532 else
12533 echo "$as_me: failed program was:" >&5
12534 sed 's/^/| /' conftest.$ac_ext >&5
12536 ac_header_compiler=no
12538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12539 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12540 echo "${ECHO_T}$ac_header_compiler" >&6
12542 # Is the header present?
12543 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12544 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12545 cat >conftest.$ac_ext <<_ACEOF
12546 /* confdefs.h. */
12547 _ACEOF
12548 cat confdefs.h >>conftest.$ac_ext
12549 cat >>conftest.$ac_ext <<_ACEOF
12550 /* end confdefs.h. */
12551 #include <$ac_header>
12552 _ACEOF
12553 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12554 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12555 ac_status=$?
12556 grep -v '^ *+' conftest.er1 >conftest.err
12557 rm -f conftest.er1
12558 cat conftest.err >&5
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); } >/dev/null; then
12561 if test -s conftest.err; then
12562 ac_cpp_err=$ac_c_preproc_warn_flag
12563 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12564 else
12565 ac_cpp_err=
12567 else
12568 ac_cpp_err=yes
12570 if test -z "$ac_cpp_err"; then
12571 ac_header_preproc=yes
12572 else
12573 echo "$as_me: failed program was:" >&5
12574 sed 's/^/| /' conftest.$ac_ext >&5
12576 ac_header_preproc=no
12578 rm -f conftest.err conftest.$ac_ext
12579 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12580 echo "${ECHO_T}$ac_header_preproc" >&6
12582 # So? What about this header?
12583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12584 yes:no: )
12585 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12586 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12588 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12589 ac_header_preproc=yes
12591 no:yes:* )
12592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12595 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12596 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12597 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12598 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12599 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12602 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12603 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12605 cat <<\_ASBOX
12606 ## ------------------------------ ##
12607 ## Report this to admin@amule.org ##
12608 ## ------------------------------ ##
12609 _ASBOX
12611 sed "s/^/$as_me: WARNING: /" >&2
12613 esac
12614 echo "$as_me:$LINENO: checking for $ac_header" >&5
12615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12617 echo $ECHO_N "(cached) $ECHO_C" >&6
12618 else
12619 eval "$as_ac_Header=\$ac_header_preproc"
12621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12622 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12626 cat >>confdefs.h <<_ACEOF
12627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12628 _ACEOF
12632 done
12634 echo "$as_me:$LINENO: checking types of arguments for select" >&5
12635 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
12636 if test "${ac_cv_func_select_args+set}" = set; then
12637 echo $ECHO_N "(cached) $ECHO_C" >&6
12638 else
12639 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
12640 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
12641 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
12642 cat >conftest.$ac_ext <<_ACEOF
12643 /* confdefs.h. */
12644 _ACEOF
12645 cat confdefs.h >>conftest.$ac_ext
12646 cat >>conftest.$ac_ext <<_ACEOF
12647 /* end confdefs.h. */
12648 $ac_includes_default
12649 #if HAVE_SYS_SELECT_H
12650 # include <sys/select.h>
12651 #endif
12652 #if HAVE_SYS_SOCKET_H
12653 # include <sys/socket.h>
12654 #endif
12657 main ()
12659 extern int select ($ac_arg1,
12660 $ac_arg234, $ac_arg234, $ac_arg234,
12661 $ac_arg5);
12663 return 0;
12665 _ACEOF
12666 rm -f conftest.$ac_objext
12667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12668 (eval $ac_compile) 2>conftest.er1
12669 ac_status=$?
12670 grep -v '^ *+' conftest.er1 >conftest.err
12671 rm -f conftest.er1
12672 cat conftest.err >&5
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); } &&
12675 { ac_try='test -z "$ac_c_werror_flag"
12676 || test ! -s conftest.err'
12677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12678 (eval $ac_try) 2>&5
12679 ac_status=$?
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); }; } &&
12682 { ac_try='test -s conftest.$ac_objext'
12683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12684 (eval $ac_try) 2>&5
12685 ac_status=$?
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); }; }; then
12688 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12689 else
12690 echo "$as_me: failed program was:" >&5
12691 sed 's/^/| /' conftest.$ac_ext >&5
12694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12695 done
12696 done
12697 done
12698 # Provide a safe default value.
12699 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
12702 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
12703 echo "${ECHO_T}$ac_cv_func_select_args" >&6
12704 ac_save_IFS=$IFS; IFS=','
12705 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12706 IFS=$ac_save_IFS
12707 shift
12709 cat >>confdefs.h <<_ACEOF
12710 #define SELECT_TYPE_ARG1 $1
12711 _ACEOF
12714 cat >>confdefs.h <<_ACEOF
12715 #define SELECT_TYPE_ARG234 ($2)
12716 _ACEOF
12719 cat >>confdefs.h <<_ACEOF
12720 #define SELECT_TYPE_ARG5 ($3)
12721 _ACEOF
12723 rm -f conftest*
12725 echo "$as_me:$LINENO: checking for function prototypes" >&5
12726 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
12727 if test "$ac_cv_prog_cc_stdc" != no; then
12728 echo "$as_me:$LINENO: result: yes" >&5
12729 echo "${ECHO_T}yes" >&6
12731 cat >>confdefs.h <<\_ACEOF
12732 #define PROTOTYPES 1
12733 _ACEOF
12736 cat >>confdefs.h <<\_ACEOF
12737 #define __PROTOTYPES 1
12738 _ACEOF
12740 else
12741 echo "$as_me:$LINENO: result: no" >&5
12742 echo "${ECHO_T}no" >&6
12745 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
12746 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
12747 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
12748 echo $ECHO_N "(cached) $ECHO_C" >&6
12749 else
12750 ac_cv_func_setvbuf_reversed=no
12751 cat >conftest.$ac_ext <<_ACEOF
12752 /* confdefs.h. */
12753 _ACEOF
12754 cat confdefs.h >>conftest.$ac_ext
12755 cat >>conftest.$ac_ext <<_ACEOF
12756 /* end confdefs.h. */
12757 #include <stdio.h>
12758 # if PROTOTYPES
12759 int (setvbuf) (FILE *, int, char *, size_t);
12760 # endif
12762 main ()
12764 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
12766 return 0;
12768 _ACEOF
12769 rm -f conftest.$ac_objext conftest$ac_exeext
12770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12771 (eval $ac_link) 2>conftest.er1
12772 ac_status=$?
12773 grep -v '^ *+' conftest.er1 >conftest.err
12774 rm -f conftest.er1
12775 cat conftest.err >&5
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); } &&
12778 { ac_try='test -z "$ac_c_werror_flag"
12779 || test ! -s conftest.err'
12780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12781 (eval $ac_try) 2>&5
12782 ac_status=$?
12783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784 (exit $ac_status); }; } &&
12785 { ac_try='test -s conftest$ac_exeext'
12786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12787 (eval $ac_try) 2>&5
12788 ac_status=$?
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); }; }; then
12791 cat >conftest.$ac_ext <<_ACEOF
12792 /* confdefs.h. */
12793 _ACEOF
12794 cat confdefs.h >>conftest.$ac_ext
12795 cat >>conftest.$ac_ext <<_ACEOF
12796 /* end confdefs.h. */
12797 #include <stdio.h>
12798 # if PROTOTYPES
12799 int (setvbuf) (FILE *, int, char *, size_t);
12800 # endif
12802 main ()
12804 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
12806 return 0;
12808 _ACEOF
12809 rm -f conftest.$ac_objext conftest$ac_exeext
12810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12811 (eval $ac_link) 2>conftest.er1
12812 ac_status=$?
12813 grep -v '^ *+' conftest.er1 >conftest.err
12814 rm -f conftest.er1
12815 cat conftest.err >&5
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); } &&
12818 { ac_try='test -z "$ac_c_werror_flag"
12819 || test ! -s conftest.err'
12820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12821 (eval $ac_try) 2>&5
12822 ac_status=$?
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); }; } &&
12825 { ac_try='test -s conftest$ac_exeext'
12826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12827 (eval $ac_try) 2>&5
12828 ac_status=$?
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); }; }; then
12831 # It compiles and links either way, so it must not be declared
12832 # with a prototype and most likely this is a K&R C compiler.
12833 # Try running it.
12834 if test "$cross_compiling" = yes; then
12835 : # Assume setvbuf is not reversed when cross-compiling.
12836 else
12837 cat >conftest.$ac_ext <<_ACEOF
12838 /* confdefs.h. */
12839 _ACEOF
12840 cat confdefs.h >>conftest.$ac_ext
12841 cat >>conftest.$ac_ext <<_ACEOF
12842 /* end confdefs.h. */
12843 #include <stdio.h>
12845 main ()
12847 /* This call has the arguments reversed.
12848 A reversed system may check and see that the address of buf
12849 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
12850 char buf;
12851 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
12852 exit (1);
12853 putchar ('\r');
12854 exit (0); /* Non-reversed systems SEGV here. */
12856 return 0;
12858 _ACEOF
12859 rm -f conftest$ac_exeext
12860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12861 (eval $ac_link) 2>&5
12862 ac_status=$?
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12866 (eval $ac_try) 2>&5
12867 ac_status=$?
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); }; }; then
12870 ac_cv_func_setvbuf_reversed=yes
12871 else
12872 echo "$as_me: program exited with status $ac_status" >&5
12873 echo "$as_me: failed program was:" >&5
12874 sed 's/^/| /' conftest.$ac_ext >&5
12876 ( exit $ac_status )
12877 rm -f core *.core
12879 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12881 ac_cv_func_setvbuf_reversed=yes
12882 else
12883 echo "$as_me: failed program was:" >&5
12884 sed 's/^/| /' conftest.$ac_ext >&5
12887 rm -f conftest.err conftest.$ac_objext \
12888 conftest$ac_exeext conftest.$ac_ext
12889 else
12890 echo "$as_me: failed program was:" >&5
12891 sed 's/^/| /' conftest.$ac_ext >&5
12894 rm -f conftest.err conftest.$ac_objext \
12895 conftest$ac_exeext conftest.$ac_ext
12897 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
12898 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
12899 if test $ac_cv_func_setvbuf_reversed = yes; then
12901 cat >>confdefs.h <<\_ACEOF
12902 #define SETVBUF_REVERSED 1
12903 _ACEOF
12907 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12908 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12909 if test "${ac_cv_type_signal+set}" = set; then
12910 echo $ECHO_N "(cached) $ECHO_C" >&6
12911 else
12912 cat >conftest.$ac_ext <<_ACEOF
12913 /* confdefs.h. */
12914 _ACEOF
12915 cat confdefs.h >>conftest.$ac_ext
12916 cat >>conftest.$ac_ext <<_ACEOF
12917 /* end confdefs.h. */
12918 #include <sys/types.h>
12919 #include <signal.h>
12920 #ifdef signal
12921 # undef signal
12922 #endif
12923 #ifdef __cplusplus
12924 extern "C" void (*signal (int, void (*)(int)))(int);
12925 #else
12926 void (*signal ()) ();
12927 #endif
12930 main ()
12932 int i;
12934 return 0;
12936 _ACEOF
12937 rm -f conftest.$ac_objext
12938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12939 (eval $ac_compile) 2>conftest.er1
12940 ac_status=$?
12941 grep -v '^ *+' conftest.er1 >conftest.err
12942 rm -f conftest.er1
12943 cat conftest.err >&5
12944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945 (exit $ac_status); } &&
12946 { ac_try='test -z "$ac_c_werror_flag"
12947 || test ! -s conftest.err'
12948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12949 (eval $ac_try) 2>&5
12950 ac_status=$?
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); }; } &&
12953 { ac_try='test -s conftest.$ac_objext'
12954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12955 (eval $ac_try) 2>&5
12956 ac_status=$?
12957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 (exit $ac_status); }; }; then
12959 ac_cv_type_signal=void
12960 else
12961 echo "$as_me: failed program was:" >&5
12962 sed 's/^/| /' conftest.$ac_ext >&5
12964 ac_cv_type_signal=int
12966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12968 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12969 echo "${ECHO_T}$ac_cv_type_signal" >&6
12971 cat >>confdefs.h <<_ACEOF
12972 #define RETSIGTYPE $ac_cv_type_signal
12973 _ACEOF
12976 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
12977 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
12978 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
12979 echo $ECHO_N "(cached) $ECHO_C" >&6
12980 else
12981 if test "$cross_compiling" = yes; then
12982 ac_cv_func_stat_empty_string_bug=yes
12983 else
12984 cat >conftest.$ac_ext <<_ACEOF
12985 /* confdefs.h. */
12986 _ACEOF
12987 cat confdefs.h >>conftest.$ac_ext
12988 cat >>conftest.$ac_ext <<_ACEOF
12989 /* end confdefs.h. */
12990 $ac_includes_default
12992 main ()
12994 struct stat sbuf;
12995 exit (stat ("", &sbuf) ? 1 : 0);
12997 return 0;
12999 _ACEOF
13000 rm -f conftest$ac_exeext
13001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13002 (eval $ac_link) 2>&5
13003 ac_status=$?
13004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13007 (eval $ac_try) 2>&5
13008 ac_status=$?
13009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 (exit $ac_status); }; }; then
13011 ac_cv_func_stat_empty_string_bug=yes
13012 else
13013 echo "$as_me: program exited with status $ac_status" >&5
13014 echo "$as_me: failed program was:" >&5
13015 sed 's/^/| /' conftest.$ac_ext >&5
13017 ( exit $ac_status )
13018 ac_cv_func_stat_empty_string_bug=no
13020 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13023 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
13024 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
13025 if test $ac_cv_func_stat_empty_string_bug = yes; then
13026 case $LIBOBJS in
13027 "stat.$ac_objext" | \
13028 *" stat.$ac_objext" | \
13029 "stat.$ac_objext "* | \
13030 *" stat.$ac_objext "* ) ;;
13031 *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
13032 esac
13035 cat >>confdefs.h <<_ACEOF
13036 #define HAVE_STAT_EMPTY_STRING_BUG 1
13037 _ACEOF
13042 for ac_func in strftime
13044 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13045 echo "$as_me:$LINENO: checking for $ac_func" >&5
13046 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13047 if eval "test \"\${$as_ac_var+set}\" = set"; then
13048 echo $ECHO_N "(cached) $ECHO_C" >&6
13049 else
13050 cat >conftest.$ac_ext <<_ACEOF
13051 /* confdefs.h. */
13052 _ACEOF
13053 cat confdefs.h >>conftest.$ac_ext
13054 cat >>conftest.$ac_ext <<_ACEOF
13055 /* end confdefs.h. */
13056 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13058 #define $ac_func innocuous_$ac_func
13060 /* System header to define __stub macros and hopefully few prototypes,
13061 which can conflict with char $ac_func (); below.
13062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13063 <limits.h> exists even on freestanding compilers. */
13065 #ifdef __STDC__
13066 # include <limits.h>
13067 #else
13068 # include <assert.h>
13069 #endif
13071 #undef $ac_func
13073 /* Override any gcc2 internal prototype to avoid an error. */
13074 #ifdef __cplusplus
13075 extern "C"
13077 #endif
13078 /* We use char because int might match the return type of a gcc2
13079 builtin and then its argument prototype would still apply. */
13080 char $ac_func ();
13081 /* The GNU C library defines this for functions which it implements
13082 to always fail with ENOSYS. Some functions are actually named
13083 something starting with __ and the normal name is an alias. */
13084 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13085 choke me
13086 #else
13087 char (*f) () = $ac_func;
13088 #endif
13089 #ifdef __cplusplus
13091 #endif
13094 main ()
13096 return f != $ac_func;
13098 return 0;
13100 _ACEOF
13101 rm -f conftest.$ac_objext conftest$ac_exeext
13102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13103 (eval $ac_link) 2>conftest.er1
13104 ac_status=$?
13105 grep -v '^ *+' conftest.er1 >conftest.err
13106 rm -f conftest.er1
13107 cat conftest.err >&5
13108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); } &&
13110 { ac_try='test -z "$ac_c_werror_flag"
13111 || test ! -s conftest.err'
13112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13113 (eval $ac_try) 2>&5
13114 ac_status=$?
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); }; } &&
13117 { ac_try='test -s conftest$ac_exeext'
13118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13119 (eval $ac_try) 2>&5
13120 ac_status=$?
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); }; }; then
13123 eval "$as_ac_var=yes"
13124 else
13125 echo "$as_me: failed program was:" >&5
13126 sed 's/^/| /' conftest.$ac_ext >&5
13128 eval "$as_ac_var=no"
13130 rm -f conftest.err conftest.$ac_objext \
13131 conftest$ac_exeext conftest.$ac_ext
13133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13134 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13135 if test `eval echo '${'$as_ac_var'}'` = yes; then
13136 cat >>confdefs.h <<_ACEOF
13137 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13138 _ACEOF
13140 else
13141 # strftime is in -lintl on SCO UNIX.
13142 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
13143 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
13144 if test "${ac_cv_lib_intl_strftime+set}" = set; then
13145 echo $ECHO_N "(cached) $ECHO_C" >&6
13146 else
13147 ac_check_lib_save_LIBS=$LIBS
13148 LIBS="-lintl $LIBS"
13149 cat >conftest.$ac_ext <<_ACEOF
13150 /* confdefs.h. */
13151 _ACEOF
13152 cat confdefs.h >>conftest.$ac_ext
13153 cat >>conftest.$ac_ext <<_ACEOF
13154 /* end confdefs.h. */
13156 /* Override any gcc2 internal prototype to avoid an error. */
13157 #ifdef __cplusplus
13158 extern "C"
13159 #endif
13160 /* We use char because int might match the return type of a gcc2
13161 builtin and then its argument prototype would still apply. */
13162 char strftime ();
13164 main ()
13166 strftime ();
13168 return 0;
13170 _ACEOF
13171 rm -f conftest.$ac_objext conftest$ac_exeext
13172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13173 (eval $ac_link) 2>conftest.er1
13174 ac_status=$?
13175 grep -v '^ *+' conftest.er1 >conftest.err
13176 rm -f conftest.er1
13177 cat conftest.err >&5
13178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); } &&
13180 { ac_try='test -z "$ac_c_werror_flag"
13181 || test ! -s conftest.err'
13182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13183 (eval $ac_try) 2>&5
13184 ac_status=$?
13185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); }; } &&
13187 { ac_try='test -s conftest$ac_exeext'
13188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13189 (eval $ac_try) 2>&5
13190 ac_status=$?
13191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192 (exit $ac_status); }; }; then
13193 ac_cv_lib_intl_strftime=yes
13194 else
13195 echo "$as_me: failed program was:" >&5
13196 sed 's/^/| /' conftest.$ac_ext >&5
13198 ac_cv_lib_intl_strftime=no
13200 rm -f conftest.err conftest.$ac_objext \
13201 conftest$ac_exeext conftest.$ac_ext
13202 LIBS=$ac_check_lib_save_LIBS
13204 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
13205 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
13206 if test $ac_cv_lib_intl_strftime = yes; then
13207 cat >>confdefs.h <<\_ACEOF
13208 #define HAVE_STRFTIME 1
13209 _ACEOF
13211 LIBS="-lintl $LIBS"
13215 done
13217 echo "$as_me:$LINENO: checking for working strtod" >&5
13218 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
13219 if test "${ac_cv_func_strtod+set}" = set; then
13220 echo $ECHO_N "(cached) $ECHO_C" >&6
13221 else
13222 if test "$cross_compiling" = yes; then
13223 ac_cv_func_strtod=no
13224 else
13225 cat >conftest.$ac_ext <<_ACEOF
13226 /* confdefs.h. */
13227 _ACEOF
13228 cat confdefs.h >>conftest.$ac_ext
13229 cat >>conftest.$ac_ext <<_ACEOF
13230 /* end confdefs.h. */
13232 double strtod ();
13234 main()
13237 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
13238 char *string = " +69";
13239 char *term;
13240 double value;
13241 value = strtod (string, &term);
13242 if (value != 69 || term != (string + 4))
13243 exit (1);
13247 /* Under Solaris 2.4, strtod returns the wrong value for the
13248 terminating character under some conditions. */
13249 char *string = "NaN";
13250 char *term;
13251 strtod (string, &term);
13252 if (term != string && *(term - 1) == 0)
13253 exit (1);
13255 exit (0);
13258 _ACEOF
13259 rm -f conftest$ac_exeext
13260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13261 (eval $ac_link) 2>&5
13262 ac_status=$?
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13266 (eval $ac_try) 2>&5
13267 ac_status=$?
13268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269 (exit $ac_status); }; }; then
13270 ac_cv_func_strtod=yes
13271 else
13272 echo "$as_me: program exited with status $ac_status" >&5
13273 echo "$as_me: failed program was:" >&5
13274 sed 's/^/| /' conftest.$ac_ext >&5
13276 ( exit $ac_status )
13277 ac_cv_func_strtod=no
13279 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13282 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
13283 echo "${ECHO_T}$ac_cv_func_strtod" >&6
13284 if test $ac_cv_func_strtod = no; then
13285 case $LIBOBJS in
13286 "strtod.$ac_objext" | \
13287 *" strtod.$ac_objext" | \
13288 "strtod.$ac_objext "* | \
13289 *" strtod.$ac_objext "* ) ;;
13290 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;;
13291 esac
13293 echo "$as_me:$LINENO: checking for pow" >&5
13294 echo $ECHO_N "checking for pow... $ECHO_C" >&6
13295 if test "${ac_cv_func_pow+set}" = set; then
13296 echo $ECHO_N "(cached) $ECHO_C" >&6
13297 else
13298 cat >conftest.$ac_ext <<_ACEOF
13299 /* confdefs.h. */
13300 _ACEOF
13301 cat confdefs.h >>conftest.$ac_ext
13302 cat >>conftest.$ac_ext <<_ACEOF
13303 /* end confdefs.h. */
13304 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
13305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13306 #define pow innocuous_pow
13308 /* System header to define __stub macros and hopefully few prototypes,
13309 which can conflict with char pow (); below.
13310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13311 <limits.h> exists even on freestanding compilers. */
13313 #ifdef __STDC__
13314 # include <limits.h>
13315 #else
13316 # include <assert.h>
13317 #endif
13319 #undef pow
13321 /* Override any gcc2 internal prototype to avoid an error. */
13322 #ifdef __cplusplus
13323 extern "C"
13325 #endif
13326 /* We use char because int might match the return type of a gcc2
13327 builtin and then its argument prototype would still apply. */
13328 char pow ();
13329 /* The GNU C library defines this for functions which it implements
13330 to always fail with ENOSYS. Some functions are actually named
13331 something starting with __ and the normal name is an alias. */
13332 #if defined (__stub_pow) || defined (__stub___pow)
13333 choke me
13334 #else
13335 char (*f) () = pow;
13336 #endif
13337 #ifdef __cplusplus
13339 #endif
13342 main ()
13344 return f != pow;
13346 return 0;
13348 _ACEOF
13349 rm -f conftest.$ac_objext conftest$ac_exeext
13350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13351 (eval $ac_link) 2>conftest.er1
13352 ac_status=$?
13353 grep -v '^ *+' conftest.er1 >conftest.err
13354 rm -f conftest.er1
13355 cat conftest.err >&5
13356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357 (exit $ac_status); } &&
13358 { ac_try='test -z "$ac_c_werror_flag"
13359 || test ! -s conftest.err'
13360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13361 (eval $ac_try) 2>&5
13362 ac_status=$?
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); }; } &&
13365 { ac_try='test -s conftest$ac_exeext'
13366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13367 (eval $ac_try) 2>&5
13368 ac_status=$?
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); }; }; then
13371 ac_cv_func_pow=yes
13372 else
13373 echo "$as_me: failed program was:" >&5
13374 sed 's/^/| /' conftest.$ac_ext >&5
13376 ac_cv_func_pow=no
13378 rm -f conftest.err conftest.$ac_objext \
13379 conftest$ac_exeext conftest.$ac_ext
13381 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
13382 echo "${ECHO_T}$ac_cv_func_pow" >&6
13384 if test $ac_cv_func_pow = no; then
13385 echo "$as_me:$LINENO: checking for pow in -lm" >&5
13386 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
13387 if test "${ac_cv_lib_m_pow+set}" = set; then
13388 echo $ECHO_N "(cached) $ECHO_C" >&6
13389 else
13390 ac_check_lib_save_LIBS=$LIBS
13391 LIBS="-lm $LIBS"
13392 cat >conftest.$ac_ext <<_ACEOF
13393 /* confdefs.h. */
13394 _ACEOF
13395 cat confdefs.h >>conftest.$ac_ext
13396 cat >>conftest.$ac_ext <<_ACEOF
13397 /* end confdefs.h. */
13399 /* Override any gcc2 internal prototype to avoid an error. */
13400 #ifdef __cplusplus
13401 extern "C"
13402 #endif
13403 /* We use char because int might match the return type of a gcc2
13404 builtin and then its argument prototype would still apply. */
13405 char pow ();
13407 main ()
13409 pow ();
13411 return 0;
13413 _ACEOF
13414 rm -f conftest.$ac_objext conftest$ac_exeext
13415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13416 (eval $ac_link) 2>conftest.er1
13417 ac_status=$?
13418 grep -v '^ *+' conftest.er1 >conftest.err
13419 rm -f conftest.er1
13420 cat conftest.err >&5
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); } &&
13423 { ac_try='test -z "$ac_c_werror_flag"
13424 || test ! -s conftest.err'
13425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13426 (eval $ac_try) 2>&5
13427 ac_status=$?
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); }; } &&
13430 { ac_try='test -s conftest$ac_exeext'
13431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13432 (eval $ac_try) 2>&5
13433 ac_status=$?
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; }; then
13436 ac_cv_lib_m_pow=yes
13437 else
13438 echo "$as_me: failed program was:" >&5
13439 sed 's/^/| /' conftest.$ac_ext >&5
13441 ac_cv_lib_m_pow=no
13443 rm -f conftest.err conftest.$ac_objext \
13444 conftest$ac_exeext conftest.$ac_ext
13445 LIBS=$ac_check_lib_save_LIBS
13447 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
13448 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
13449 if test $ac_cv_lib_m_pow = yes; then
13450 POW_LIB=-lm
13451 else
13452 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
13453 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
13461 for ac_func in vprintf
13463 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13464 echo "$as_me:$LINENO: checking for $ac_func" >&5
13465 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13466 if eval "test \"\${$as_ac_var+set}\" = set"; then
13467 echo $ECHO_N "(cached) $ECHO_C" >&6
13468 else
13469 cat >conftest.$ac_ext <<_ACEOF
13470 /* confdefs.h. */
13471 _ACEOF
13472 cat confdefs.h >>conftest.$ac_ext
13473 cat >>conftest.$ac_ext <<_ACEOF
13474 /* end confdefs.h. */
13475 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13477 #define $ac_func innocuous_$ac_func
13479 /* System header to define __stub macros and hopefully few prototypes,
13480 which can conflict with char $ac_func (); below.
13481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13482 <limits.h> exists even on freestanding compilers. */
13484 #ifdef __STDC__
13485 # include <limits.h>
13486 #else
13487 # include <assert.h>
13488 #endif
13490 #undef $ac_func
13492 /* Override any gcc2 internal prototype to avoid an error. */
13493 #ifdef __cplusplus
13494 extern "C"
13496 #endif
13497 /* We use char because int might match the return type of a gcc2
13498 builtin and then its argument prototype would still apply. */
13499 char $ac_func ();
13500 /* The GNU C library defines this for functions which it implements
13501 to always fail with ENOSYS. Some functions are actually named
13502 something starting with __ and the normal name is an alias. */
13503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13504 choke me
13505 #else
13506 char (*f) () = $ac_func;
13507 #endif
13508 #ifdef __cplusplus
13510 #endif
13513 main ()
13515 return f != $ac_func;
13517 return 0;
13519 _ACEOF
13520 rm -f conftest.$ac_objext conftest$ac_exeext
13521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13522 (eval $ac_link) 2>conftest.er1
13523 ac_status=$?
13524 grep -v '^ *+' conftest.er1 >conftest.err
13525 rm -f conftest.er1
13526 cat conftest.err >&5
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); } &&
13529 { ac_try='test -z "$ac_c_werror_flag"
13530 || test ! -s conftest.err'
13531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13532 (eval $ac_try) 2>&5
13533 ac_status=$?
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); }; } &&
13536 { ac_try='test -s conftest$ac_exeext'
13537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13538 (eval $ac_try) 2>&5
13539 ac_status=$?
13540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 (exit $ac_status); }; }; then
13542 eval "$as_ac_var=yes"
13543 else
13544 echo "$as_me: failed program was:" >&5
13545 sed 's/^/| /' conftest.$ac_ext >&5
13547 eval "$as_ac_var=no"
13549 rm -f conftest.err conftest.$ac_objext \
13550 conftest$ac_exeext conftest.$ac_ext
13552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13553 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13554 if test `eval echo '${'$as_ac_var'}'` = yes; then
13555 cat >>confdefs.h <<_ACEOF
13556 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13557 _ACEOF
13559 echo "$as_me:$LINENO: checking for _doprnt" >&5
13560 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
13561 if test "${ac_cv_func__doprnt+set}" = set; then
13562 echo $ECHO_N "(cached) $ECHO_C" >&6
13563 else
13564 cat >conftest.$ac_ext <<_ACEOF
13565 /* confdefs.h. */
13566 _ACEOF
13567 cat confdefs.h >>conftest.$ac_ext
13568 cat >>conftest.$ac_ext <<_ACEOF
13569 /* end confdefs.h. */
13570 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
13571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13572 #define _doprnt innocuous__doprnt
13574 /* System header to define __stub macros and hopefully few prototypes,
13575 which can conflict with char _doprnt (); below.
13576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13577 <limits.h> exists even on freestanding compilers. */
13579 #ifdef __STDC__
13580 # include <limits.h>
13581 #else
13582 # include <assert.h>
13583 #endif
13585 #undef _doprnt
13587 /* Override any gcc2 internal prototype to avoid an error. */
13588 #ifdef __cplusplus
13589 extern "C"
13591 #endif
13592 /* We use char because int might match the return type of a gcc2
13593 builtin and then its argument prototype would still apply. */
13594 char _doprnt ();
13595 /* The GNU C library defines this for functions which it implements
13596 to always fail with ENOSYS. Some functions are actually named
13597 something starting with __ and the normal name is an alias. */
13598 #if defined (__stub__doprnt) || defined (__stub____doprnt)
13599 choke me
13600 #else
13601 char (*f) () = _doprnt;
13602 #endif
13603 #ifdef __cplusplus
13605 #endif
13608 main ()
13610 return f != _doprnt;
13612 return 0;
13614 _ACEOF
13615 rm -f conftest.$ac_objext conftest$ac_exeext
13616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13617 (eval $ac_link) 2>conftest.er1
13618 ac_status=$?
13619 grep -v '^ *+' conftest.er1 >conftest.err
13620 rm -f conftest.er1
13621 cat conftest.err >&5
13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); } &&
13624 { ac_try='test -z "$ac_c_werror_flag"
13625 || test ! -s conftest.err'
13626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13627 (eval $ac_try) 2>&5
13628 ac_status=$?
13629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630 (exit $ac_status); }; } &&
13631 { ac_try='test -s conftest$ac_exeext'
13632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13633 (eval $ac_try) 2>&5
13634 ac_status=$?
13635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636 (exit $ac_status); }; }; then
13637 ac_cv_func__doprnt=yes
13638 else
13639 echo "$as_me: failed program was:" >&5
13640 sed 's/^/| /' conftest.$ac_ext >&5
13642 ac_cv_func__doprnt=no
13644 rm -f conftest.err conftest.$ac_objext \
13645 conftest$ac_exeext conftest.$ac_ext
13647 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13648 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
13649 if test $ac_cv_func__doprnt = yes; then
13651 cat >>confdefs.h <<\_ACEOF
13652 #define HAVE_DOPRNT 1
13653 _ACEOF
13658 done
13661 if test $cross_compiling = yes -a $gnumalloc = yes; then
13663 { echo "$as_me:$LINENO: WARNING:
13664 configure cannot check whether malloc() and realloc() are GNU libc
13665 compatible. You have to be ABSOLUTELY sure that they are, otherwise
13666 run configure with the --without-gnu-malloc switch." >&5
13667 echo "$as_me: WARNING:
13668 configure cannot check whether malloc() and realloc() are GNU libc
13669 compatible. You have to be ABSOLUTELY sure that they are, otherwise
13670 run configure with the --without-gnu-malloc switch." >&2;}
13671 ac_cv_func_malloc_0_nonnull=yes
13672 ac_cv_func_realloc_0_nonnull=yes
13677 for ac_header in stdlib.h
13679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13681 echo "$as_me:$LINENO: checking for $ac_header" >&5
13682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13684 echo $ECHO_N "(cached) $ECHO_C" >&6
13686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13687 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13688 else
13689 # Is the header compilable?
13690 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13691 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13692 cat >conftest.$ac_ext <<_ACEOF
13693 /* confdefs.h. */
13694 _ACEOF
13695 cat confdefs.h >>conftest.$ac_ext
13696 cat >>conftest.$ac_ext <<_ACEOF
13697 /* end confdefs.h. */
13698 $ac_includes_default
13699 #include <$ac_header>
13700 _ACEOF
13701 rm -f conftest.$ac_objext
13702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13703 (eval $ac_compile) 2>conftest.er1
13704 ac_status=$?
13705 grep -v '^ *+' conftest.er1 >conftest.err
13706 rm -f conftest.er1
13707 cat conftest.err >&5
13708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709 (exit $ac_status); } &&
13710 { ac_try='test -z "$ac_c_werror_flag"
13711 || test ! -s conftest.err'
13712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13713 (eval $ac_try) 2>&5
13714 ac_status=$?
13715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716 (exit $ac_status); }; } &&
13717 { ac_try='test -s conftest.$ac_objext'
13718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13719 (eval $ac_try) 2>&5
13720 ac_status=$?
13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); }; }; then
13723 ac_header_compiler=yes
13724 else
13725 echo "$as_me: failed program was:" >&5
13726 sed 's/^/| /' conftest.$ac_ext >&5
13728 ac_header_compiler=no
13730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13731 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13732 echo "${ECHO_T}$ac_header_compiler" >&6
13734 # Is the header present?
13735 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13736 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13737 cat >conftest.$ac_ext <<_ACEOF
13738 /* confdefs.h. */
13739 _ACEOF
13740 cat confdefs.h >>conftest.$ac_ext
13741 cat >>conftest.$ac_ext <<_ACEOF
13742 /* end confdefs.h. */
13743 #include <$ac_header>
13744 _ACEOF
13745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13746 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13747 ac_status=$?
13748 grep -v '^ *+' conftest.er1 >conftest.err
13749 rm -f conftest.er1
13750 cat conftest.err >&5
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); } >/dev/null; then
13753 if test -s conftest.err; then
13754 ac_cpp_err=$ac_c_preproc_warn_flag
13755 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13756 else
13757 ac_cpp_err=
13759 else
13760 ac_cpp_err=yes
13762 if test -z "$ac_cpp_err"; then
13763 ac_header_preproc=yes
13764 else
13765 echo "$as_me: failed program was:" >&5
13766 sed 's/^/| /' conftest.$ac_ext >&5
13768 ac_header_preproc=no
13770 rm -f conftest.err conftest.$ac_ext
13771 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13772 echo "${ECHO_T}$ac_header_preproc" >&6
13774 # So? What about this header?
13775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13776 yes:no: )
13777 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13778 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13780 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13781 ac_header_preproc=yes
13783 no:yes:* )
13784 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13785 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13786 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13787 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13788 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13789 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13790 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13791 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13793 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13794 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13795 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13797 cat <<\_ASBOX
13798 ## ------------------------------ ##
13799 ## Report this to admin@amule.org ##
13800 ## ------------------------------ ##
13801 _ASBOX
13803 sed "s/^/$as_me: WARNING: /" >&2
13805 esac
13806 echo "$as_me:$LINENO: checking for $ac_header" >&5
13807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13809 echo $ECHO_N "(cached) $ECHO_C" >&6
13810 else
13811 eval "$as_ac_Header=\$ac_header_preproc"
13813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13817 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13818 cat >>confdefs.h <<_ACEOF
13819 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13820 _ACEOF
13824 done
13826 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
13827 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
13828 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
13829 echo $ECHO_N "(cached) $ECHO_C" >&6
13830 else
13831 if test "$cross_compiling" = yes; then
13832 ac_cv_func_malloc_0_nonnull=no
13833 else
13834 cat >conftest.$ac_ext <<_ACEOF
13835 /* confdefs.h. */
13836 _ACEOF
13837 cat confdefs.h >>conftest.$ac_ext
13838 cat >>conftest.$ac_ext <<_ACEOF
13839 /* end confdefs.h. */
13840 #if STDC_HEADERS || HAVE_STDLIB_H
13841 # include <stdlib.h>
13842 #else
13843 char *malloc ();
13844 #endif
13847 main ()
13849 exit (malloc (0) ? 0 : 1);
13851 return 0;
13853 _ACEOF
13854 rm -f conftest$ac_exeext
13855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13856 (eval $ac_link) 2>&5
13857 ac_status=$?
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13861 (eval $ac_try) 2>&5
13862 ac_status=$?
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); }; }; then
13865 ac_cv_func_malloc_0_nonnull=yes
13866 else
13867 echo "$as_me: program exited with status $ac_status" >&5
13868 echo "$as_me: failed program was:" >&5
13869 sed 's/^/| /' conftest.$ac_ext >&5
13871 ( exit $ac_status )
13872 ac_cv_func_malloc_0_nonnull=no
13874 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13877 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
13878 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
13879 if test $ac_cv_func_malloc_0_nonnull = yes; then
13881 cat >>confdefs.h <<\_ACEOF
13882 #define HAVE_MALLOC 1
13883 _ACEOF
13885 else
13886 cat >>confdefs.h <<\_ACEOF
13887 #define HAVE_MALLOC 0
13888 _ACEOF
13890 case $LIBOBJS in
13891 "malloc.$ac_objext" | \
13892 *" malloc.$ac_objext" | \
13893 "malloc.$ac_objext "* | \
13894 *" malloc.$ac_objext "* ) ;;
13895 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
13896 esac
13899 cat >>confdefs.h <<\_ACEOF
13900 #define malloc rpl_malloc
13901 _ACEOF
13908 for ac_header in stdlib.h
13910 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13912 echo "$as_me:$LINENO: checking for $ac_header" >&5
13913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13915 echo $ECHO_N "(cached) $ECHO_C" >&6
13917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13919 else
13920 # Is the header compilable?
13921 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13922 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13923 cat >conftest.$ac_ext <<_ACEOF
13924 /* confdefs.h. */
13925 _ACEOF
13926 cat confdefs.h >>conftest.$ac_ext
13927 cat >>conftest.$ac_ext <<_ACEOF
13928 /* end confdefs.h. */
13929 $ac_includes_default
13930 #include <$ac_header>
13931 _ACEOF
13932 rm -f conftest.$ac_objext
13933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13934 (eval $ac_compile) 2>conftest.er1
13935 ac_status=$?
13936 grep -v '^ *+' conftest.er1 >conftest.err
13937 rm -f conftest.er1
13938 cat conftest.err >&5
13939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940 (exit $ac_status); } &&
13941 { ac_try='test -z "$ac_c_werror_flag"
13942 || test ! -s conftest.err'
13943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13944 (eval $ac_try) 2>&5
13945 ac_status=$?
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); }; } &&
13948 { ac_try='test -s conftest.$ac_objext'
13949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13950 (eval $ac_try) 2>&5
13951 ac_status=$?
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); }; }; then
13954 ac_header_compiler=yes
13955 else
13956 echo "$as_me: failed program was:" >&5
13957 sed 's/^/| /' conftest.$ac_ext >&5
13959 ac_header_compiler=no
13961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13962 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13963 echo "${ECHO_T}$ac_header_compiler" >&6
13965 # Is the header present?
13966 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13967 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13968 cat >conftest.$ac_ext <<_ACEOF
13969 /* confdefs.h. */
13970 _ACEOF
13971 cat confdefs.h >>conftest.$ac_ext
13972 cat >>conftest.$ac_ext <<_ACEOF
13973 /* end confdefs.h. */
13974 #include <$ac_header>
13975 _ACEOF
13976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13977 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13978 ac_status=$?
13979 grep -v '^ *+' conftest.er1 >conftest.err
13980 rm -f conftest.er1
13981 cat conftest.err >&5
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); } >/dev/null; then
13984 if test -s conftest.err; then
13985 ac_cpp_err=$ac_c_preproc_warn_flag
13986 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13987 else
13988 ac_cpp_err=
13990 else
13991 ac_cpp_err=yes
13993 if test -z "$ac_cpp_err"; then
13994 ac_header_preproc=yes
13995 else
13996 echo "$as_me: failed program was:" >&5
13997 sed 's/^/| /' conftest.$ac_ext >&5
13999 ac_header_preproc=no
14001 rm -f conftest.err conftest.$ac_ext
14002 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14003 echo "${ECHO_T}$ac_header_preproc" >&6
14005 # So? What about this header?
14006 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14007 yes:no: )
14008 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14009 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14011 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14012 ac_header_preproc=yes
14014 no:yes:* )
14015 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14016 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14017 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14018 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14019 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14020 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14021 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14022 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14023 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14024 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14025 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14026 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14028 cat <<\_ASBOX
14029 ## ------------------------------ ##
14030 ## Report this to admin@amule.org ##
14031 ## ------------------------------ ##
14032 _ASBOX
14034 sed "s/^/$as_me: WARNING: /" >&2
14036 esac
14037 echo "$as_me:$LINENO: checking for $ac_header" >&5
14038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14039 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14040 echo $ECHO_N "(cached) $ECHO_C" >&6
14041 else
14042 eval "$as_ac_Header=\$ac_header_preproc"
14044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14049 cat >>confdefs.h <<_ACEOF
14050 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14051 _ACEOF
14055 done
14057 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
14058 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
14059 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
14060 echo $ECHO_N "(cached) $ECHO_C" >&6
14061 else
14062 if test "$cross_compiling" = yes; then
14063 ac_cv_func_realloc_0_nonnull=no
14064 else
14065 cat >conftest.$ac_ext <<_ACEOF
14066 /* confdefs.h. */
14067 _ACEOF
14068 cat confdefs.h >>conftest.$ac_ext
14069 cat >>conftest.$ac_ext <<_ACEOF
14070 /* end confdefs.h. */
14071 #if STDC_HEADERS || HAVE_STDLIB_H
14072 # include <stdlib.h>
14073 #else
14074 char *realloc ();
14075 #endif
14078 main ()
14080 exit (realloc (0, 0) ? 0 : 1);
14082 return 0;
14084 _ACEOF
14085 rm -f conftest$ac_exeext
14086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14087 (eval $ac_link) 2>&5
14088 ac_status=$?
14089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14092 (eval $ac_try) 2>&5
14093 ac_status=$?
14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); }; }; then
14096 ac_cv_func_realloc_0_nonnull=yes
14097 else
14098 echo "$as_me: program exited with status $ac_status" >&5
14099 echo "$as_me: failed program was:" >&5
14100 sed 's/^/| /' conftest.$ac_ext >&5
14102 ( exit $ac_status )
14103 ac_cv_func_realloc_0_nonnull=no
14105 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14108 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
14109 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
14110 if test $ac_cv_func_realloc_0_nonnull = yes; then
14112 cat >>confdefs.h <<\_ACEOF
14113 #define HAVE_REALLOC 1
14114 _ACEOF
14116 else
14117 cat >>confdefs.h <<\_ACEOF
14118 #define HAVE_REALLOC 0
14119 _ACEOF
14121 case $LIBOBJS in
14122 "realloc.$ac_objext" | \
14123 *" realloc.$ac_objext" | \
14124 "realloc.$ac_objext "* | \
14125 *" realloc.$ac_objext "* ) ;;
14126 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
14127 esac
14130 cat >>confdefs.h <<\_ACEOF
14131 #define realloc rpl_realloc
14132 _ACEOF
14171 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
14173 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14174 echo "$as_me:$LINENO: checking for $ac_func" >&5
14175 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14176 if eval "test \"\${$as_ac_var+set}\" = set"; then
14177 echo $ECHO_N "(cached) $ECHO_C" >&6
14178 else
14179 cat >conftest.$ac_ext <<_ACEOF
14180 /* confdefs.h. */
14181 _ACEOF
14182 cat confdefs.h >>conftest.$ac_ext
14183 cat >>conftest.$ac_ext <<_ACEOF
14184 /* end confdefs.h. */
14185 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14187 #define $ac_func innocuous_$ac_func
14189 /* System header to define __stub macros and hopefully few prototypes,
14190 which can conflict with char $ac_func (); below.
14191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14192 <limits.h> exists even on freestanding compilers. */
14194 #ifdef __STDC__
14195 # include <limits.h>
14196 #else
14197 # include <assert.h>
14198 #endif
14200 #undef $ac_func
14202 /* Override any gcc2 internal prototype to avoid an error. */
14203 #ifdef __cplusplus
14204 extern "C"
14206 #endif
14207 /* We use char because int might match the return type of a gcc2
14208 builtin and then its argument prototype would still apply. */
14209 char $ac_func ();
14210 /* The GNU C library defines this for functions which it implements
14211 to always fail with ENOSYS. Some functions are actually named
14212 something starting with __ and the normal name is an alias. */
14213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14214 choke me
14215 #else
14216 char (*f) () = $ac_func;
14217 #endif
14218 #ifdef __cplusplus
14220 #endif
14223 main ()
14225 return f != $ac_func;
14227 return 0;
14229 _ACEOF
14230 rm -f conftest.$ac_objext conftest$ac_exeext
14231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14232 (eval $ac_link) 2>conftest.er1
14233 ac_status=$?
14234 grep -v '^ *+' conftest.er1 >conftest.err
14235 rm -f conftest.er1
14236 cat conftest.err >&5
14237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238 (exit $ac_status); } &&
14239 { ac_try='test -z "$ac_c_werror_flag"
14240 || test ! -s conftest.err'
14241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14242 (eval $ac_try) 2>&5
14243 ac_status=$?
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); }; } &&
14246 { ac_try='test -s conftest$ac_exeext'
14247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14248 (eval $ac_try) 2>&5
14249 ac_status=$?
14250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); }; }; then
14252 eval "$as_ac_var=yes"
14253 else
14254 echo "$as_me: failed program was:" >&5
14255 sed 's/^/| /' conftest.$ac_ext >&5
14257 eval "$as_ac_var=no"
14259 rm -f conftest.err conftest.$ac_objext \
14260 conftest$ac_exeext conftest.$ac_ext
14262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14263 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14264 if test `eval echo '${'$as_ac_var'}'` = yes; then
14265 cat >>confdefs.h <<_ACEOF
14266 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14267 _ACEOF
14270 done
14272 #-------------------------------------------------------------------------------
14273 # End of autoscan stuff
14274 #-------------------------------------------------------------------------------
14279 for ac_func in mkdir getrlimit setrlimit
14281 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14282 echo "$as_me:$LINENO: checking for $ac_func" >&5
14283 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14284 if eval "test \"\${$as_ac_var+set}\" = set"; then
14285 echo $ECHO_N "(cached) $ECHO_C" >&6
14286 else
14287 cat >conftest.$ac_ext <<_ACEOF
14288 /* confdefs.h. */
14289 _ACEOF
14290 cat confdefs.h >>conftest.$ac_ext
14291 cat >>conftest.$ac_ext <<_ACEOF
14292 /* end confdefs.h. */
14293 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14295 #define $ac_func innocuous_$ac_func
14297 /* System header to define __stub macros and hopefully few prototypes,
14298 which can conflict with char $ac_func (); below.
14299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14300 <limits.h> exists even on freestanding compilers. */
14302 #ifdef __STDC__
14303 # include <limits.h>
14304 #else
14305 # include <assert.h>
14306 #endif
14308 #undef $ac_func
14310 /* Override any gcc2 internal prototype to avoid an error. */
14311 #ifdef __cplusplus
14312 extern "C"
14314 #endif
14315 /* We use char because int might match the return type of a gcc2
14316 builtin and then its argument prototype would still apply. */
14317 char $ac_func ();
14318 /* The GNU C library defines this for functions which it implements
14319 to always fail with ENOSYS. Some functions are actually named
14320 something starting with __ and the normal name is an alias. */
14321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14322 choke me
14323 #else
14324 char (*f) () = $ac_func;
14325 #endif
14326 #ifdef __cplusplus
14328 #endif
14331 main ()
14333 return f != $ac_func;
14335 return 0;
14337 _ACEOF
14338 rm -f conftest.$ac_objext conftest$ac_exeext
14339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14340 (eval $ac_link) 2>conftest.er1
14341 ac_status=$?
14342 grep -v '^ *+' conftest.er1 >conftest.err
14343 rm -f conftest.er1
14344 cat conftest.err >&5
14345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346 (exit $ac_status); } &&
14347 { ac_try='test -z "$ac_c_werror_flag"
14348 || test ! -s conftest.err'
14349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14350 (eval $ac_try) 2>&5
14351 ac_status=$?
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); }; } &&
14354 { ac_try='test -s conftest$ac_exeext'
14355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14356 (eval $ac_try) 2>&5
14357 ac_status=$?
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); }; }; then
14360 eval "$as_ac_var=yes"
14361 else
14362 echo "$as_me: failed program was:" >&5
14363 sed 's/^/| /' conftest.$ac_ext >&5
14365 eval "$as_ac_var=no"
14367 rm -f conftest.err conftest.$ac_objext \
14368 conftest$ac_exeext conftest.$ac_ext
14370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14371 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14372 if test `eval echo '${'$as_ac_var'}'` = yes; then
14373 cat >>confdefs.h <<_ACEOF
14374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14375 _ACEOF
14378 done
14381 mule_backup_CPPFLAGS="$CPPFLAGS"
14382 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600"
14383 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
14384 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
14385 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
14386 echo $ECHO_N "(cached) $ECHO_C" >&6
14387 else
14388 cat >conftest.$ac_ext <<_ACEOF
14389 /* confdefs.h. */
14390 _ACEOF
14391 cat confdefs.h >>conftest.$ac_ext
14392 cat >>conftest.$ac_ext <<_ACEOF
14393 /* end confdefs.h. */
14394 $ac_includes_default
14396 main ()
14398 #ifndef strerror_r
14399 char *p = (char *) strerror_r;
14400 #endif
14403 return 0;
14405 _ACEOF
14406 rm -f conftest.$ac_objext
14407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14408 (eval $ac_compile) 2>conftest.er1
14409 ac_status=$?
14410 grep -v '^ *+' conftest.er1 >conftest.err
14411 rm -f conftest.er1
14412 cat conftest.err >&5
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); } &&
14415 { ac_try='test -z "$ac_c_werror_flag"
14416 || test ! -s conftest.err'
14417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14418 (eval $ac_try) 2>&5
14419 ac_status=$?
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); }; } &&
14422 { ac_try='test -s conftest.$ac_objext'
14423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14424 (eval $ac_try) 2>&5
14425 ac_status=$?
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); }; }; then
14428 ac_cv_have_decl_strerror_r=yes
14429 else
14430 echo "$as_me: failed program was:" >&5
14431 sed 's/^/| /' conftest.$ac_ext >&5
14433 ac_cv_have_decl_strerror_r=no
14435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14437 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
14438 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
14439 if test $ac_cv_have_decl_strerror_r = yes; then
14441 cat >>confdefs.h <<_ACEOF
14442 #define HAVE_DECL_STRERROR_R 1
14443 _ACEOF
14446 else
14447 cat >>confdefs.h <<_ACEOF
14448 #define HAVE_DECL_STRERROR_R 0
14449 _ACEOF
14456 for ac_func in strerror_r
14458 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14459 echo "$as_me:$LINENO: checking for $ac_func" >&5
14460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14461 if eval "test \"\${$as_ac_var+set}\" = set"; then
14462 echo $ECHO_N "(cached) $ECHO_C" >&6
14463 else
14464 cat >conftest.$ac_ext <<_ACEOF
14465 /* confdefs.h. */
14466 _ACEOF
14467 cat confdefs.h >>conftest.$ac_ext
14468 cat >>conftest.$ac_ext <<_ACEOF
14469 /* end confdefs.h. */
14470 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14472 #define $ac_func innocuous_$ac_func
14474 /* System header to define __stub macros and hopefully few prototypes,
14475 which can conflict with char $ac_func (); below.
14476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14477 <limits.h> exists even on freestanding compilers. */
14479 #ifdef __STDC__
14480 # include <limits.h>
14481 #else
14482 # include <assert.h>
14483 #endif
14485 #undef $ac_func
14487 /* Override any gcc2 internal prototype to avoid an error. */
14488 #ifdef __cplusplus
14489 extern "C"
14491 #endif
14492 /* We use char because int might match the return type of a gcc2
14493 builtin and then its argument prototype would still apply. */
14494 char $ac_func ();
14495 /* The GNU C library defines this for functions which it implements
14496 to always fail with ENOSYS. Some functions are actually named
14497 something starting with __ and the normal name is an alias. */
14498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14499 choke me
14500 #else
14501 char (*f) () = $ac_func;
14502 #endif
14503 #ifdef __cplusplus
14505 #endif
14508 main ()
14510 return f != $ac_func;
14512 return 0;
14514 _ACEOF
14515 rm -f conftest.$ac_objext conftest$ac_exeext
14516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14517 (eval $ac_link) 2>conftest.er1
14518 ac_status=$?
14519 grep -v '^ *+' conftest.er1 >conftest.err
14520 rm -f conftest.er1
14521 cat conftest.err >&5
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); } &&
14524 { ac_try='test -z "$ac_c_werror_flag"
14525 || test ! -s conftest.err'
14526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14527 (eval $ac_try) 2>&5
14528 ac_status=$?
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); }; } &&
14531 { ac_try='test -s conftest$ac_exeext'
14532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14533 (eval $ac_try) 2>&5
14534 ac_status=$?
14535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536 (exit $ac_status); }; }; then
14537 eval "$as_ac_var=yes"
14538 else
14539 echo "$as_me: failed program was:" >&5
14540 sed 's/^/| /' conftest.$ac_ext >&5
14542 eval "$as_ac_var=no"
14544 rm -f conftest.err conftest.$ac_objext \
14545 conftest$ac_exeext conftest.$ac_ext
14547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14548 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14549 if test `eval echo '${'$as_ac_var'}'` = yes; then
14550 cat >>confdefs.h <<_ACEOF
14551 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14552 _ACEOF
14555 done
14557 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
14558 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
14559 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
14560 echo $ECHO_N "(cached) $ECHO_C" >&6
14561 else
14563 ac_cv_func_strerror_r_char_p=no
14564 if test $ac_cv_have_decl_strerror_r = yes; then
14565 cat >conftest.$ac_ext <<_ACEOF
14566 /* confdefs.h. */
14567 _ACEOF
14568 cat confdefs.h >>conftest.$ac_ext
14569 cat >>conftest.$ac_ext <<_ACEOF
14570 /* end confdefs.h. */
14571 $ac_includes_default
14573 main ()
14576 char buf[100];
14577 char x = *strerror_r (0, buf, sizeof buf);
14578 char *p = strerror_r (0, buf, sizeof buf);
14581 return 0;
14583 _ACEOF
14584 rm -f conftest.$ac_objext
14585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14586 (eval $ac_compile) 2>conftest.er1
14587 ac_status=$?
14588 grep -v '^ *+' conftest.er1 >conftest.err
14589 rm -f conftest.er1
14590 cat conftest.err >&5
14591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592 (exit $ac_status); } &&
14593 { ac_try='test -z "$ac_c_werror_flag"
14594 || test ! -s conftest.err'
14595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14596 (eval $ac_try) 2>&5
14597 ac_status=$?
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); }; } &&
14600 { ac_try='test -s conftest.$ac_objext'
14601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14602 (eval $ac_try) 2>&5
14603 ac_status=$?
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); }; }; then
14606 ac_cv_func_strerror_r_char_p=yes
14607 else
14608 echo "$as_me: failed program was:" >&5
14609 sed 's/^/| /' conftest.$ac_ext >&5
14612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14613 else
14614 # strerror_r is not declared. Choose between
14615 # systems that have relatively inaccessible declarations for the
14616 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
14617 # former has a strerror_r that returns char*, while the latter
14618 # has a strerror_r that returns `int'.
14619 # This test should segfault on the DEC system.
14620 if test "$cross_compiling" = yes; then
14622 else
14623 cat >conftest.$ac_ext <<_ACEOF
14624 /* confdefs.h. */
14625 _ACEOF
14626 cat confdefs.h >>conftest.$ac_ext
14627 cat >>conftest.$ac_ext <<_ACEOF
14628 /* end confdefs.h. */
14629 $ac_includes_default
14630 extern char *strerror_r ();
14632 main ()
14634 char buf[100];
14635 char x = *strerror_r (0, buf, sizeof buf);
14636 exit (!isalpha (x));
14638 return 0;
14640 _ACEOF
14641 rm -f conftest$ac_exeext
14642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14643 (eval $ac_link) 2>&5
14644 ac_status=$?
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14648 (eval $ac_try) 2>&5
14649 ac_status=$?
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); }; }; then
14652 ac_cv_func_strerror_r_char_p=yes
14653 else
14654 echo "$as_me: program exited with status $ac_status" >&5
14655 echo "$as_me: failed program was:" >&5
14656 sed 's/^/| /' conftest.$ac_ext >&5
14659 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14664 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
14665 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
14666 if test $ac_cv_func_strerror_r_char_p = yes; then
14668 cat >>confdefs.h <<\_ACEOF
14669 #define STRERROR_R_CHAR_P 1
14670 _ACEOF
14674 CPPFLAGS="$mule_backup_CPPFLAGS"
14676 # Look for a way to preallocate disk space for files.
14678 echo "$as_me:$LINENO: checking for fallocate" >&5
14679 echo $ECHO_N "checking for fallocate... $ECHO_C" >&6
14680 cat >conftest.$ac_ext <<_ACEOF
14682 /* confdefs.h. */
14683 _ACEOF
14684 cat confdefs.h >>conftest.$ac_ext
14685 cat >>conftest.$ac_ext <<_ACEOF
14686 /* end confdefs.h. */
14688 #include <linux/falloc.h>
14691 main ()
14694 fallocate(0, 0, 0, 0);
14697 return 0;
14700 _ACEOF
14701 rm -f conftest.$ac_objext conftest$ac_exeext
14702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14703 (eval $ac_link) 2>conftest.er1
14704 ac_status=$?
14705 grep -v '^ *+' conftest.er1 >conftest.err
14706 rm -f conftest.er1
14707 cat conftest.err >&5
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); } &&
14710 { ac_try='test -z "$ac_c_werror_flag"
14711 || test ! -s conftest.err'
14712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14713 (eval $ac_try) 2>&5
14714 ac_status=$?
14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716 (exit $ac_status); }; } &&
14717 { ac_try='test -s conftest$ac_exeext'
14718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14719 (eval $ac_try) 2>&5
14720 ac_status=$?
14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722 (exit $ac_status); }; }; then
14726 cat >>confdefs.h <<\_ACEOF
14727 #define HAVE_FALLOCATE 1
14728 _ACEOF
14730 echo "$as_me:$LINENO: result: yes" >&5
14731 echo "${ECHO_T}yes" >&6
14733 else
14734 echo "$as_me: failed program was:" >&5
14735 sed 's/^/| /' conftest.$ac_ext >&5
14738 echo "$as_me:$LINENO: result: no" >&5
14739 echo "${ECHO_T}no" >&6
14742 rm -f conftest.err conftest.$ac_objext \
14743 conftest$ac_exeext conftest.$ac_ext
14746 echo "$as_me:$LINENO: checking for SYS_fallocate" >&5
14747 echo $ECHO_N "checking for SYS_fallocate... $ECHO_C" >&6
14748 cat >conftest.$ac_ext <<_ACEOF
14750 /* confdefs.h. */
14751 _ACEOF
14752 cat confdefs.h >>conftest.$ac_ext
14753 cat >>conftest.$ac_ext <<_ACEOF
14754 /* end confdefs.h. */
14756 #include <sys/sycall.h>
14757 #include <sys/types.h>
14758 #include <unistd.h>
14761 main ()
14764 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0);
14767 return 0;
14770 _ACEOF
14771 rm -f conftest.$ac_objext conftest$ac_exeext
14772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14773 (eval $ac_link) 2>conftest.er1
14774 ac_status=$?
14775 grep -v '^ *+' conftest.er1 >conftest.err
14776 rm -f conftest.er1
14777 cat conftest.err >&5
14778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779 (exit $ac_status); } &&
14780 { ac_try='test -z "$ac_c_werror_flag"
14781 || test ! -s conftest.err'
14782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14783 (eval $ac_try) 2>&5
14784 ac_status=$?
14785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786 (exit $ac_status); }; } &&
14787 { ac_try='test -s conftest$ac_exeext'
14788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14789 (eval $ac_try) 2>&5
14790 ac_status=$?
14791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792 (exit $ac_status); }; }; then
14796 cat >>confdefs.h <<\_ACEOF
14797 #define HAVE_SYS_FALLOCATE 1
14798 _ACEOF
14800 echo "$as_me:$LINENO: result: yes" >&5
14801 echo "${ECHO_T}yes" >&6
14803 else
14804 echo "$as_me: failed program was:" >&5
14805 sed 's/^/| /' conftest.$ac_ext >&5
14808 echo "$as_me:$LINENO: result: no" >&5
14809 echo "${ECHO_T}no" >&6
14812 rm -f conftest.err conftest.$ac_objext \
14813 conftest$ac_exeext conftest.$ac_ext
14815 echo "$as_me:$LINENO: checking for posix_fallocate" >&5
14816 echo $ECHO_N "checking for posix_fallocate... $ECHO_C" >&6
14817 cat >conftest.$ac_ext <<_ACEOF
14819 /* confdefs.h. */
14820 _ACEOF
14821 cat confdefs.h >>conftest.$ac_ext
14822 cat >>conftest.$ac_ext <<_ACEOF
14823 /* end confdefs.h. */
14825 #define _XOPEN_SOURCE 600
14826 #include <stdlib.h>
14827 #ifdef HAVE_FCNTL_H
14828 # include <fcntl.h>
14829 #endif
14832 main ()
14835 posix_fallocate(0, 0, 0);
14838 return 0;
14841 _ACEOF
14842 rm -f conftest.$ac_objext conftest$ac_exeext
14843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14844 (eval $ac_link) 2>conftest.er1
14845 ac_status=$?
14846 grep -v '^ *+' conftest.er1 >conftest.err
14847 rm -f conftest.er1
14848 cat conftest.err >&5
14849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850 (exit $ac_status); } &&
14851 { ac_try='test -z "$ac_c_werror_flag"
14852 || test ! -s conftest.err'
14853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14854 (eval $ac_try) 2>&5
14855 ac_status=$?
14856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857 (exit $ac_status); }; } &&
14858 { ac_try='test -s conftest$ac_exeext'
14859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14860 (eval $ac_try) 2>&5
14861 ac_status=$?
14862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863 (exit $ac_status); }; }; then
14867 cat >>confdefs.h <<\_ACEOF
14868 #define HAVE_POSIX_FALLOCATE 1
14869 _ACEOF
14871 echo "$as_me:$LINENO: result: yes" >&5
14872 echo "${ECHO_T}yes" >&6
14874 else
14875 echo "$as_me: failed program was:" >&5
14876 sed 's/^/| /' conftest.$ac_ext >&5
14879 echo "$as_me:$LINENO: result: no" >&5
14880 echo "${ECHO_T}no" >&6
14883 rm -f conftest.err conftest.$ac_objext \
14884 conftest$ac_exeext conftest.$ac_ext
14887 # Checking Native Language Support
14890 MKINSTALLDIRS=
14891 if test -n "$ac_aux_dir"; then
14892 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
14894 if test -z "$MKINSTALLDIRS"; then
14895 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
14902 # Extract the first word of "msgfmt", so it can be a program name with args.
14903 set dummy msgfmt; ac_word=$2
14904 echo "$as_me:$LINENO: checking for $ac_word" >&5
14905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14906 if test "${ac_cv_path_MSGFMT+set}" = set; then
14907 echo $ECHO_N "(cached) $ECHO_C" >&6
14908 else
14909 case "$MSGFMT" in
14911 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14914 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14915 for ac_dir in $PATH; do
14916 test -z "$ac_dir" && ac_dir=.
14917 if test -f $ac_dir/$ac_word; then
14918 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
14919 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14920 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
14921 break
14924 done
14925 IFS="$ac_save_ifs"
14926 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14928 esac
14930 MSGFMT="$ac_cv_path_MSGFMT"
14931 if test "$MSGFMT" != ":"; then
14932 echo "$as_me:$LINENO: result: $MSGFMT" >&5
14933 echo "${ECHO_T}$MSGFMT" >&6
14934 else
14935 echo "$as_me:$LINENO: result: no" >&5
14936 echo "${ECHO_T}no" >&6
14939 # Extract the first word of "gmsgfmt", so it can be a program name with args.
14940 set dummy gmsgfmt; ac_word=$2
14941 echo "$as_me:$LINENO: checking for $ac_word" >&5
14942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14943 if test "${ac_cv_path_GMSGFMT+set}" = set; then
14944 echo $ECHO_N "(cached) $ECHO_C" >&6
14945 else
14946 case $GMSGFMT in
14947 [\\/]* | ?:[\\/]*)
14948 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14952 for as_dir in $PATH
14954 IFS=$as_save_IFS
14955 test -z "$as_dir" && as_dir=.
14956 for ac_exec_ext in '' $ac_executable_extensions; do
14957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14958 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14960 break 2
14962 done
14963 done
14965 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14967 esac
14969 GMSGFMT=$ac_cv_path_GMSGFMT
14971 if test -n "$GMSGFMT"; then
14972 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
14973 echo "${ECHO_T}$GMSGFMT" >&6
14974 else
14975 echo "$as_me:$LINENO: result: no" >&5
14976 echo "${ECHO_T}no" >&6
14980 # Extract the first word of "xgettext", so it can be a program name with args.
14981 set dummy xgettext; ac_word=$2
14982 echo "$as_me:$LINENO: checking for $ac_word" >&5
14983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14984 if test "${ac_cv_path_XGETTEXT+set}" = set; then
14985 echo $ECHO_N "(cached) $ECHO_C" >&6
14986 else
14987 case "$XGETTEXT" in
14989 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14992 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14993 for ac_dir in $PATH; do
14994 test -z "$ac_dir" && ac_dir=.
14995 if test -f $ac_dir/$ac_word; then
14996 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
14997 (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
14998 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
14999 break
15002 done
15003 IFS="$ac_save_ifs"
15004 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15006 esac
15008 XGETTEXT="$ac_cv_path_XGETTEXT"
15009 if test "$XGETTEXT" != ":"; then
15010 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15011 echo "${ECHO_T}$XGETTEXT" >&6
15012 else
15013 echo "$as_me:$LINENO: result: no" >&5
15014 echo "${ECHO_T}no" >&6
15017 rm -f messages.po
15019 # Extract the first word of "msgmerge", so it can be a program name with args.
15020 set dummy msgmerge; ac_word=$2
15021 echo "$as_me:$LINENO: checking for $ac_word" >&5
15022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15023 if test "${ac_cv_path_MSGMERGE+set}" = set; then
15024 echo $ECHO_N "(cached) $ECHO_C" >&6
15025 else
15026 case "$MSGMERGE" in
15028 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15031 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15032 for ac_dir in $PATH; do
15033 test -z "$ac_dir" && ac_dir=.
15034 if test -f $ac_dir/$ac_word; then
15035 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
15036 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
15037 break
15040 done
15041 IFS="$ac_save_ifs"
15042 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
15044 esac
15046 MSGMERGE="$ac_cv_path_MSGMERGE"
15047 if test "$MSGMERGE" != ":"; then
15048 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15049 echo "${ECHO_T}$MSGMERGE" >&6
15050 else
15051 echo "$as_me:$LINENO: result: no" >&5
15052 echo "${ECHO_T}no" >&6
15056 if test "$GMSGFMT" != ":"; then
15057 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
15058 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15060 else
15061 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
15062 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
15063 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
15064 GMSGFMT=":"
15068 if test "$XGETTEXT" != ":"; then
15069 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
15070 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15072 else
15073 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
15074 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
15075 XGETTEXT=":"
15077 rm -f messages.po
15080 ac_config_commands="$ac_config_commands default-1"
15083 echo "$as_me:$LINENO: checking for library containing strerror" >&5
15084 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
15085 if test "${ac_cv_search_strerror+set}" = set; then
15086 echo $ECHO_N "(cached) $ECHO_C" >&6
15087 else
15088 ac_func_search_save_LIBS=$LIBS
15089 ac_cv_search_strerror=no
15090 cat >conftest.$ac_ext <<_ACEOF
15091 /* confdefs.h. */
15092 _ACEOF
15093 cat confdefs.h >>conftest.$ac_ext
15094 cat >>conftest.$ac_ext <<_ACEOF
15095 /* end confdefs.h. */
15097 /* Override any gcc2 internal prototype to avoid an error. */
15098 #ifdef __cplusplus
15099 extern "C"
15100 #endif
15101 /* We use char because int might match the return type of a gcc2
15102 builtin and then its argument prototype would still apply. */
15103 char strerror ();
15105 main ()
15107 strerror ();
15109 return 0;
15111 _ACEOF
15112 rm -f conftest.$ac_objext conftest$ac_exeext
15113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15114 (eval $ac_link) 2>conftest.er1
15115 ac_status=$?
15116 grep -v '^ *+' conftest.er1 >conftest.err
15117 rm -f conftest.er1
15118 cat conftest.err >&5
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); } &&
15121 { ac_try='test -z "$ac_c_werror_flag"
15122 || test ! -s conftest.err'
15123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15124 (eval $ac_try) 2>&5
15125 ac_status=$?
15126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127 (exit $ac_status); }; } &&
15128 { ac_try='test -s conftest$ac_exeext'
15129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15130 (eval $ac_try) 2>&5
15131 ac_status=$?
15132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133 (exit $ac_status); }; }; then
15134 ac_cv_search_strerror="none required"
15135 else
15136 echo "$as_me: failed program was:" >&5
15137 sed 's/^/| /' conftest.$ac_ext >&5
15140 rm -f conftest.err conftest.$ac_objext \
15141 conftest$ac_exeext conftest.$ac_ext
15142 if test "$ac_cv_search_strerror" = no; then
15143 for ac_lib in cposix; do
15144 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15145 cat >conftest.$ac_ext <<_ACEOF
15146 /* confdefs.h. */
15147 _ACEOF
15148 cat confdefs.h >>conftest.$ac_ext
15149 cat >>conftest.$ac_ext <<_ACEOF
15150 /* end confdefs.h. */
15152 /* Override any gcc2 internal prototype to avoid an error. */
15153 #ifdef __cplusplus
15154 extern "C"
15155 #endif
15156 /* We use char because int might match the return type of a gcc2
15157 builtin and then its argument prototype would still apply. */
15158 char strerror ();
15160 main ()
15162 strerror ();
15164 return 0;
15166 _ACEOF
15167 rm -f conftest.$ac_objext conftest$ac_exeext
15168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15169 (eval $ac_link) 2>conftest.er1
15170 ac_status=$?
15171 grep -v '^ *+' conftest.er1 >conftest.err
15172 rm -f conftest.er1
15173 cat conftest.err >&5
15174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175 (exit $ac_status); } &&
15176 { ac_try='test -z "$ac_c_werror_flag"
15177 || test ! -s conftest.err'
15178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15179 (eval $ac_try) 2>&5
15180 ac_status=$?
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); }; } &&
15183 { ac_try='test -s conftest$ac_exeext'
15184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15185 (eval $ac_try) 2>&5
15186 ac_status=$?
15187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188 (exit $ac_status); }; }; then
15189 ac_cv_search_strerror="-l$ac_lib"
15190 break
15191 else
15192 echo "$as_me: failed program was:" >&5
15193 sed 's/^/| /' conftest.$ac_ext >&5
15196 rm -f conftest.err conftest.$ac_objext \
15197 conftest$ac_exeext conftest.$ac_ext
15198 done
15200 LIBS=$ac_func_search_save_LIBS
15202 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
15203 echo "${ECHO_T}$ac_cv_search_strerror" >&6
15204 if test "$ac_cv_search_strerror" != no; then
15205 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
15210 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
15211 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
15212 if test "${ac_cv_gnu_library_2_1+set}" = set; then
15213 echo $ECHO_N "(cached) $ECHO_C" >&6
15214 else
15215 cat >conftest.$ac_ext <<_ACEOF
15216 /* confdefs.h. */
15217 _ACEOF
15218 cat confdefs.h >>conftest.$ac_ext
15219 cat >>conftest.$ac_ext <<_ACEOF
15220 /* end confdefs.h. */
15222 #include <features.h>
15223 #ifdef __GNU_LIBRARY__
15224 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
15225 Lucky GNU user
15226 #endif
15227 #endif
15229 _ACEOF
15230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15231 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
15232 ac_cv_gnu_library_2_1=yes
15233 else
15234 ac_cv_gnu_library_2_1=no
15236 rm -f conftest*
15241 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
15242 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
15244 GLIBC21="$ac_cv_gnu_library_2_1"
15249 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
15250 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
15251 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
15252 echo $ECHO_N "(cached) $ECHO_C" >&6
15253 else
15255 if test "$cross_compiling" = yes; then
15257 # Guess based on the CPU.
15258 case "$host_cpu" in
15259 alpha* | i3456786 | m68k | s390*)
15260 gt_cv_int_divbyzero_sigfpe="guessing yes";;
15262 gt_cv_int_divbyzero_sigfpe="guessing no";;
15263 esac
15265 else
15266 cat >conftest.$ac_ext <<_ACEOF
15267 /* confdefs.h. */
15268 _ACEOF
15269 cat confdefs.h >>conftest.$ac_ext
15270 cat >>conftest.$ac_ext <<_ACEOF
15271 /* end confdefs.h. */
15273 #include <stdlib.h>
15274 #include <signal.h>
15276 static void
15277 #ifdef __cplusplus
15278 sigfpe_handler (int sig)
15279 #else
15280 sigfpe_handler (sig) int sig;
15281 #endif
15283 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
15284 exit (sig != SIGFPE);
15287 int x = 1;
15288 int y = 0;
15289 int z;
15290 int nan;
15292 int main ()
15294 signal (SIGFPE, sigfpe_handler);
15295 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
15296 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
15297 signal (SIGTRAP, sigfpe_handler);
15298 #endif
15299 /* Linux/SPARC yields signal SIGILL. */
15300 #if defined (__sparc__) && defined (__linux__)
15301 signal (SIGILL, sigfpe_handler);
15302 #endif
15304 z = x / y;
15305 nan = y / y;
15306 exit (1);
15309 _ACEOF
15310 rm -f conftest$ac_exeext
15311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15312 (eval $ac_link) 2>&5
15313 ac_status=$?
15314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15317 (eval $ac_try) 2>&5
15318 ac_status=$?
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); }; }; then
15321 gt_cv_int_divbyzero_sigfpe=yes
15322 else
15323 echo "$as_me: program exited with status $ac_status" >&5
15324 echo "$as_me: failed program was:" >&5
15325 sed 's/^/| /' conftest.$ac_ext >&5
15327 ( exit $ac_status )
15328 gt_cv_int_divbyzero_sigfpe=no
15330 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15334 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
15335 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
15336 case "$gt_cv_int_divbyzero_sigfpe" in
15337 *yes) value=1;;
15338 *) value=0;;
15339 esac
15341 cat >>confdefs.h <<_ACEOF
15342 #define INTDIV0_RAISES_SIGFPE $value
15343 _ACEOF
15347 echo "$as_me:$LINENO: checking for inttypes.h" >&5
15348 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
15349 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
15350 echo $ECHO_N "(cached) $ECHO_C" >&6
15351 else
15352 cat >conftest.$ac_ext <<_ACEOF
15353 /* confdefs.h. */
15354 _ACEOF
15355 cat confdefs.h >>conftest.$ac_ext
15356 cat >>conftest.$ac_ext <<_ACEOF
15357 /* end confdefs.h. */
15358 #include <sys/types.h>
15359 #include <inttypes.h>
15361 main ()
15363 uintmax_t i = (uintmax_t) -1;
15365 return 0;
15367 _ACEOF
15368 rm -f conftest.$ac_objext
15369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15370 (eval $ac_compile) 2>conftest.er1
15371 ac_status=$?
15372 grep -v '^ *+' conftest.er1 >conftest.err
15373 rm -f conftest.er1
15374 cat conftest.err >&5
15375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); } &&
15377 { ac_try='test -z "$ac_c_werror_flag"
15378 || test ! -s conftest.err'
15379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15380 (eval $ac_try) 2>&5
15381 ac_status=$?
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); }; } &&
15384 { ac_try='test -s conftest.$ac_objext'
15385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15386 (eval $ac_try) 2>&5
15387 ac_status=$?
15388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389 (exit $ac_status); }; }; then
15390 jm_ac_cv_header_inttypes_h=yes
15391 else
15392 echo "$as_me: failed program was:" >&5
15393 sed 's/^/| /' conftest.$ac_ext >&5
15395 jm_ac_cv_header_inttypes_h=no
15397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15399 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
15400 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
15401 if test $jm_ac_cv_header_inttypes_h = yes; then
15403 cat >>confdefs.h <<_ACEOF
15404 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
15405 _ACEOF
15410 echo "$as_me:$LINENO: checking for stdint.h" >&5
15411 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
15412 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
15413 echo $ECHO_N "(cached) $ECHO_C" >&6
15414 else
15415 cat >conftest.$ac_ext <<_ACEOF
15416 /* confdefs.h. */
15417 _ACEOF
15418 cat confdefs.h >>conftest.$ac_ext
15419 cat >>conftest.$ac_ext <<_ACEOF
15420 /* end confdefs.h. */
15421 #include <sys/types.h>
15422 #include <stdint.h>
15424 main ()
15426 uintmax_t i = (uintmax_t) -1;
15428 return 0;
15430 _ACEOF
15431 rm -f conftest.$ac_objext
15432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15433 (eval $ac_compile) 2>conftest.er1
15434 ac_status=$?
15435 grep -v '^ *+' conftest.er1 >conftest.err
15436 rm -f conftest.er1
15437 cat conftest.err >&5
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); } &&
15440 { ac_try='test -z "$ac_c_werror_flag"
15441 || test ! -s conftest.err'
15442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15443 (eval $ac_try) 2>&5
15444 ac_status=$?
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); }; } &&
15447 { ac_try='test -s conftest.$ac_objext'
15448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15449 (eval $ac_try) 2>&5
15450 ac_status=$?
15451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452 (exit $ac_status); }; }; then
15453 jm_ac_cv_header_stdint_h=yes
15454 else
15455 echo "$as_me: failed program was:" >&5
15456 sed 's/^/| /' conftest.$ac_ext >&5
15458 jm_ac_cv_header_stdint_h=no
15460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15462 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
15463 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
15464 if test $jm_ac_cv_header_stdint_h = yes; then
15466 cat >>confdefs.h <<_ACEOF
15467 #define HAVE_STDINT_H_WITH_UINTMAX 1
15468 _ACEOF
15473 echo "$as_me:$LINENO: checking for unsigned long long" >&5
15474 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
15475 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
15476 echo $ECHO_N "(cached) $ECHO_C" >&6
15477 else
15478 cat >conftest.$ac_ext <<_ACEOF
15479 /* confdefs.h. */
15480 _ACEOF
15481 cat confdefs.h >>conftest.$ac_ext
15482 cat >>conftest.$ac_ext <<_ACEOF
15483 /* end confdefs.h. */
15484 unsigned long long ull = 1; int i = 63;
15486 main ()
15488 unsigned long long ullmax = (unsigned long long) -1;
15489 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
15491 return 0;
15493 _ACEOF
15494 rm -f conftest.$ac_objext conftest$ac_exeext
15495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15496 (eval $ac_link) 2>conftest.er1
15497 ac_status=$?
15498 grep -v '^ *+' conftest.er1 >conftest.err
15499 rm -f conftest.er1
15500 cat conftest.err >&5
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); } &&
15503 { ac_try='test -z "$ac_c_werror_flag"
15504 || test ! -s conftest.err'
15505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15506 (eval $ac_try) 2>&5
15507 ac_status=$?
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); }; } &&
15510 { ac_try='test -s conftest$ac_exeext'
15511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15512 (eval $ac_try) 2>&5
15513 ac_status=$?
15514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); }; }; then
15516 ac_cv_type_unsigned_long_long=yes
15517 else
15518 echo "$as_me: failed program was:" >&5
15519 sed 's/^/| /' conftest.$ac_ext >&5
15521 ac_cv_type_unsigned_long_long=no
15523 rm -f conftest.err conftest.$ac_objext \
15524 conftest$ac_exeext conftest.$ac_ext
15526 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
15527 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
15528 if test $ac_cv_type_unsigned_long_long = yes; then
15530 cat >>confdefs.h <<\_ACEOF
15531 #define HAVE_UNSIGNED_LONG_LONG 1
15532 _ACEOF
15539 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
15541 test $ac_cv_type_unsigned_long_long = yes \
15542 && ac_type='unsigned long long' \
15543 || ac_type='unsigned long'
15545 cat >>confdefs.h <<_ACEOF
15546 #define uintmax_t $ac_type
15547 _ACEOF
15552 echo "$as_me:$LINENO: checking for inttypes.h" >&5
15553 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
15554 if test "${gt_cv_header_inttypes_h+set}" = set; then
15555 echo $ECHO_N "(cached) $ECHO_C" >&6
15556 else
15558 cat >conftest.$ac_ext <<_ACEOF
15559 /* confdefs.h. */
15560 _ACEOF
15561 cat confdefs.h >>conftest.$ac_ext
15562 cat >>conftest.$ac_ext <<_ACEOF
15563 /* end confdefs.h. */
15564 #include <sys/types.h>
15565 #include <inttypes.h>
15567 main ()
15571 return 0;
15573 _ACEOF
15574 rm -f conftest.$ac_objext
15575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15576 (eval $ac_compile) 2>conftest.er1
15577 ac_status=$?
15578 grep -v '^ *+' conftest.er1 >conftest.err
15579 rm -f conftest.er1
15580 cat conftest.err >&5
15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 (exit $ac_status); } &&
15583 { ac_try='test -z "$ac_c_werror_flag"
15584 || test ! -s conftest.err'
15585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15586 (eval $ac_try) 2>&5
15587 ac_status=$?
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); }; } &&
15590 { ac_try='test -s conftest.$ac_objext'
15591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15592 (eval $ac_try) 2>&5
15593 ac_status=$?
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); }; }; then
15596 gt_cv_header_inttypes_h=yes
15597 else
15598 echo "$as_me: failed program was:" >&5
15599 sed 's/^/| /' conftest.$ac_ext >&5
15601 gt_cv_header_inttypes_h=no
15603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15606 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
15607 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
15608 if test $gt_cv_header_inttypes_h = yes; then
15610 cat >>confdefs.h <<_ACEOF
15611 #define HAVE_INTTYPES_H 1
15612 _ACEOF
15618 if test $gt_cv_header_inttypes_h = yes; then
15619 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
15620 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
15621 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
15622 echo $ECHO_N "(cached) $ECHO_C" >&6
15623 else
15625 cat >conftest.$ac_ext <<_ACEOF
15626 /* confdefs.h. */
15627 _ACEOF
15628 cat confdefs.h >>conftest.$ac_ext
15629 cat >>conftest.$ac_ext <<_ACEOF
15630 /* end confdefs.h. */
15631 #include <inttypes.h>
15632 #ifdef PRId32
15633 char *p = PRId32;
15634 #endif
15637 main ()
15641 return 0;
15643 _ACEOF
15644 rm -f conftest.$ac_objext
15645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15646 (eval $ac_compile) 2>conftest.er1
15647 ac_status=$?
15648 grep -v '^ *+' conftest.er1 >conftest.err
15649 rm -f conftest.er1
15650 cat conftest.err >&5
15651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652 (exit $ac_status); } &&
15653 { ac_try='test -z "$ac_c_werror_flag"
15654 || test ! -s conftest.err'
15655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15656 (eval $ac_try) 2>&5
15657 ac_status=$?
15658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659 (exit $ac_status); }; } &&
15660 { ac_try='test -s conftest.$ac_objext'
15661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15662 (eval $ac_try) 2>&5
15663 ac_status=$?
15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 (exit $ac_status); }; }; then
15666 gt_cv_inttypes_pri_broken=no
15667 else
15668 echo "$as_me: failed program was:" >&5
15669 sed 's/^/| /' conftest.$ac_ext >&5
15671 gt_cv_inttypes_pri_broken=yes
15673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15676 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
15677 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
15679 if test "$gt_cv_inttypes_pri_broken" = yes; then
15681 cat >>confdefs.h <<_ACEOF
15682 #define PRI_MACROS_BROKEN 1
15683 _ACEOF
15688 if test "X$prefix" = "XNONE"; then
15689 acl_final_prefix="$ac_default_prefix"
15690 else
15691 acl_final_prefix="$prefix"
15693 if test "X$exec_prefix" = "XNONE"; then
15694 acl_final_exec_prefix='${prefix}'
15695 else
15696 acl_final_exec_prefix="$exec_prefix"
15698 acl_save_prefix="$prefix"
15699 prefix="$acl_final_prefix"
15700 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
15701 prefix="$acl_save_prefix"
15704 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15705 if test "${with_gnu_ld+set}" = set; then
15706 withval="$with_gnu_ld"
15707 test "$withval" = no || with_gnu_ld=yes
15708 else
15709 with_gnu_ld=no
15711 ac_prog=ld
15712 if test "$GCC" = yes; then
15713 # Check if gcc -print-prog-name=ld gives a path.
15714 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
15715 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
15716 case $host in
15717 *-*-mingw*)
15718 # gcc leaves a trailing carriage return which upsets mingw
15719 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15721 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15722 esac
15723 case $ac_prog in
15724 # Accept absolute paths.
15725 [\\/]* | [A-Za-z]:[\\/]*)
15726 re_direlt='/[^/][^/]*/\.\./'
15727 # Canonicalize the path of ld
15728 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
15729 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15730 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
15731 done
15732 test -z "$LD" && LD="$ac_prog"
15735 # If it fails, then pretend we aren't using GCC.
15736 ac_prog=ld
15739 # If it is relative, then search for the first ld in PATH.
15740 with_gnu_ld=unknown
15742 esac
15743 elif test "$with_gnu_ld" = yes; then
15744 echo "$as_me:$LINENO: checking for GNU ld" >&5
15745 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15746 else
15747 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15748 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15750 if test "${acl_cv_path_LD+set}" = set; then
15751 echo $ECHO_N "(cached) $ECHO_C" >&6
15752 else
15753 if test -z "$LD"; then
15754 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
15755 for ac_dir in $PATH; do
15756 test -z "$ac_dir" && ac_dir=.
15757 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15758 acl_cv_path_LD="$ac_dir/$ac_prog"
15759 # Check to see if the program is GNU ld. I'd rather use --version,
15760 # but apparently some GNU ld's only accept -v.
15761 # Break only if it was the GNU/non-GNU ld that we prefer.
15762 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
15763 test "$with_gnu_ld" != no && break
15764 else
15765 test "$with_gnu_ld" != yes && break
15768 done
15769 IFS="$ac_save_ifs"
15770 else
15771 acl_cv_path_LD="$LD" # Let the user override the test with a path.
15775 LD="$acl_cv_path_LD"
15776 if test -n "$LD"; then
15777 echo "$as_me:$LINENO: result: $LD" >&5
15778 echo "${ECHO_T}$LD" >&6
15779 else
15780 echo "$as_me:$LINENO: result: no" >&5
15781 echo "${ECHO_T}no" >&6
15783 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15784 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15785 { (exit 1); exit 1; }; }
15786 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15787 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15788 if test "${acl_cv_prog_gnu_ld+set}" = set; then
15789 echo $ECHO_N "(cached) $ECHO_C" >&6
15790 else
15791 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15792 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
15793 acl_cv_prog_gnu_ld=yes
15794 else
15795 acl_cv_prog_gnu_ld=no
15798 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
15799 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
15800 with_gnu_ld=$acl_cv_prog_gnu_ld
15804 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
15805 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
15806 if test "${acl_cv_rpath+set}" = set; then
15807 echo $ECHO_N "(cached) $ECHO_C" >&6
15808 else
15810 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
15811 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
15812 . ./conftest.sh
15813 rm -f ./conftest.sh
15814 acl_cv_rpath=done
15817 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
15818 echo "${ECHO_T}$acl_cv_rpath" >&6
15819 wl="$acl_cv_wl"
15820 libext="$acl_cv_libext"
15821 shlibext="$acl_cv_shlibext"
15822 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
15823 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
15824 hardcode_direct="$acl_cv_hardcode_direct"
15825 hardcode_minus_L="$acl_cv_hardcode_minus_L"
15826 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
15827 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
15828 # Check whether --enable-rpath or --disable-rpath was given.
15829 if test "${enable_rpath+set}" = set; then
15830 enableval="$enable_rpath"
15832 else
15833 enable_rpath=yes
15842 use_additional=yes
15844 acl_save_prefix="$prefix"
15845 prefix="$acl_final_prefix"
15846 acl_save_exec_prefix="$exec_prefix"
15847 exec_prefix="$acl_final_exec_prefix"
15849 eval additional_includedir=\"$includedir\"
15850 eval additional_libdir=\"$libdir\"
15852 exec_prefix="$acl_save_exec_prefix"
15853 prefix="$acl_save_prefix"
15856 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
15857 if test "${with_libiconv_prefix+set}" = set; then
15858 withval="$with_libiconv_prefix"
15860 if test "X$withval" = "Xno"; then
15861 use_additional=no
15862 else
15863 if test "X$withval" = "X"; then
15865 acl_save_prefix="$prefix"
15866 prefix="$acl_final_prefix"
15867 acl_save_exec_prefix="$exec_prefix"
15868 exec_prefix="$acl_final_exec_prefix"
15870 eval additional_includedir=\"$includedir\"
15871 eval additional_libdir=\"$libdir\"
15873 exec_prefix="$acl_save_exec_prefix"
15874 prefix="$acl_save_prefix"
15876 else
15877 additional_includedir="$withval/include"
15878 additional_libdir="$withval/lib"
15883 LIBICONV=
15884 LTLIBICONV=
15885 INCICONV=
15886 rpathdirs=
15887 ltrpathdirs=
15888 names_already_handled=
15889 names_next_round='iconv '
15890 while test -n "$names_next_round"; do
15891 names_this_round="$names_next_round"
15892 names_next_round=
15893 for name in $names_this_round; do
15894 already_handled=
15895 for n in $names_already_handled; do
15896 if test "$n" = "$name"; then
15897 already_handled=yes
15898 break
15900 done
15901 if test -z "$already_handled"; then
15902 names_already_handled="$names_already_handled $name"
15903 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15904 eval value=\"\$HAVE_LIB$uppername\"
15905 if test -n "$value"; then
15906 if test "$value" = yes; then
15907 eval value=\"\$LIB$uppername\"
15908 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
15909 eval value=\"\$LTLIB$uppername\"
15910 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
15911 else
15914 else
15915 found_dir=
15916 found_la=
15917 found_so=
15918 found_a=
15919 if test $use_additional = yes; then
15920 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
15921 found_dir="$additional_libdir"
15922 found_so="$additional_libdir/lib$name.$shlibext"
15923 if test -f "$additional_libdir/lib$name.la"; then
15924 found_la="$additional_libdir/lib$name.la"
15926 else
15927 if test -f "$additional_libdir/lib$name.$libext"; then
15928 found_dir="$additional_libdir"
15929 found_a="$additional_libdir/lib$name.$libext"
15930 if test -f "$additional_libdir/lib$name.la"; then
15931 found_la="$additional_libdir/lib$name.la"
15936 if test "X$found_dir" = "X"; then
15937 for x in $LDFLAGS $LTLIBICONV; do
15939 acl_save_prefix="$prefix"
15940 prefix="$acl_final_prefix"
15941 acl_save_exec_prefix="$exec_prefix"
15942 exec_prefix="$acl_final_exec_prefix"
15943 eval x=\"$x\"
15944 exec_prefix="$acl_save_exec_prefix"
15945 prefix="$acl_save_prefix"
15947 case "$x" in
15948 -L*)
15949 dir=`echo "X$x" | sed -e 's/^X-L//'`
15950 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
15951 found_dir="$dir"
15952 found_so="$dir/lib$name.$shlibext"
15953 if test -f "$dir/lib$name.la"; then
15954 found_la="$dir/lib$name.la"
15956 else
15957 if test -f "$dir/lib$name.$libext"; then
15958 found_dir="$dir"
15959 found_a="$dir/lib$name.$libext"
15960 if test -f "$dir/lib$name.la"; then
15961 found_la="$dir/lib$name.la"
15966 esac
15967 if test "X$found_dir" != "X"; then
15968 break
15970 done
15972 if test "X$found_dir" != "X"; then
15973 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15974 if test "X$found_so" != "X"; then
15975 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
15976 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15977 else
15978 haveit=
15979 for x in $ltrpathdirs; do
15980 if test "X$x" = "X$found_dir"; then
15981 haveit=yes
15982 break
15984 done
15985 if test -z "$haveit"; then
15986 ltrpathdirs="$ltrpathdirs $found_dir"
15988 if test "$hardcode_direct" = yes; then
15989 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15990 else
15991 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
15992 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15993 haveit=
15994 for x in $rpathdirs; do
15995 if test "X$x" = "X$found_dir"; then
15996 haveit=yes
15997 break
15999 done
16000 if test -z "$haveit"; then
16001 rpathdirs="$rpathdirs $found_dir"
16003 else
16004 haveit=
16005 for x in $LDFLAGS $LIBICONV; do
16007 acl_save_prefix="$prefix"
16008 prefix="$acl_final_prefix"
16009 acl_save_exec_prefix="$exec_prefix"
16010 exec_prefix="$acl_final_exec_prefix"
16011 eval x=\"$x\"
16012 exec_prefix="$acl_save_exec_prefix"
16013 prefix="$acl_save_prefix"
16015 if test "X$x" = "X-L$found_dir"; then
16016 haveit=yes
16017 break
16019 done
16020 if test -z "$haveit"; then
16021 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16023 if test "$hardcode_minus_L" != no; then
16024 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16025 else
16026 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16031 else
16032 if test "X$found_a" != "X"; then
16033 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16034 else
16035 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16038 additional_includedir=
16039 case "$found_dir" in
16040 */lib | */lib/)
16041 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16042 additional_includedir="$basedir/include"
16044 esac
16045 if test "X$additional_includedir" != "X"; then
16046 if test "X$additional_includedir" != "X/usr/include"; then
16047 haveit=
16048 if test "X$additional_includedir" = "X/usr/local/include"; then
16049 if test -n "$GCC"; then
16050 case $host_os in
16051 linux*) haveit=yes;;
16052 esac
16055 if test -z "$haveit"; then
16056 for x in $CPPFLAGS $INCICONV; do
16058 acl_save_prefix="$prefix"
16059 prefix="$acl_final_prefix"
16060 acl_save_exec_prefix="$exec_prefix"
16061 exec_prefix="$acl_final_exec_prefix"
16062 eval x=\"$x\"
16063 exec_prefix="$acl_save_exec_prefix"
16064 prefix="$acl_save_prefix"
16066 if test "X$x" = "X-I$additional_includedir"; then
16067 haveit=yes
16068 break
16070 done
16071 if test -z "$haveit"; then
16072 if test -d "$additional_includedir"; then
16073 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16079 if test -n "$found_la"; then
16080 save_libdir="$libdir"
16081 case "$found_la" in
16082 */* | *\\*) . "$found_la" ;;
16083 *) . "./$found_la" ;;
16084 esac
16085 libdir="$save_libdir"
16086 for dep in $dependency_libs; do
16087 case "$dep" in
16088 -L*)
16089 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16090 if test "X$additional_libdir" != "X/usr/lib"; then
16091 haveit=
16092 if test "X$additional_libdir" = "X/usr/local/lib"; then
16093 if test -n "$GCC"; then
16094 case $host_os in
16095 linux*) haveit=yes;;
16096 esac
16099 if test -z "$haveit"; then
16100 haveit=
16101 for x in $LDFLAGS $LIBICONV; do
16103 acl_save_prefix="$prefix"
16104 prefix="$acl_final_prefix"
16105 acl_save_exec_prefix="$exec_prefix"
16106 exec_prefix="$acl_final_exec_prefix"
16107 eval x=\"$x\"
16108 exec_prefix="$acl_save_exec_prefix"
16109 prefix="$acl_save_prefix"
16111 if test "X$x" = "X-L$additional_libdir"; then
16112 haveit=yes
16113 break
16115 done
16116 if test -z "$haveit"; then
16117 if test -d "$additional_libdir"; then
16118 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16121 haveit=
16122 for x in $LDFLAGS $LTLIBICONV; do
16124 acl_save_prefix="$prefix"
16125 prefix="$acl_final_prefix"
16126 acl_save_exec_prefix="$exec_prefix"
16127 exec_prefix="$acl_final_exec_prefix"
16128 eval x=\"$x\"
16129 exec_prefix="$acl_save_exec_prefix"
16130 prefix="$acl_save_prefix"
16132 if test "X$x" = "X-L$additional_libdir"; then
16133 haveit=yes
16134 break
16136 done
16137 if test -z "$haveit"; then
16138 if test -d "$additional_libdir"; then
16139 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16145 -R*)
16146 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16147 if test "$enable_rpath" != no; then
16148 haveit=
16149 for x in $rpathdirs; do
16150 if test "X$x" = "X$dir"; then
16151 haveit=yes
16152 break
16154 done
16155 if test -z "$haveit"; then
16156 rpathdirs="$rpathdirs $dir"
16158 haveit=
16159 for x in $ltrpathdirs; do
16160 if test "X$x" = "X$dir"; then
16161 haveit=yes
16162 break
16164 done
16165 if test -z "$haveit"; then
16166 ltrpathdirs="$ltrpathdirs $dir"
16170 -l*)
16171 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16173 *.la)
16174 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16177 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16178 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16180 esac
16181 done
16183 else
16184 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16185 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16189 done
16190 done
16191 if test "X$rpathdirs" != "X"; then
16192 if test -n "$hardcode_libdir_separator"; then
16193 alldirs=
16194 for found_dir in $rpathdirs; do
16195 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16196 done
16197 acl_save_libdir="$libdir"
16198 libdir="$alldirs"
16199 eval flag=\"$hardcode_libdir_flag_spec\"
16200 libdir="$acl_save_libdir"
16201 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16202 else
16203 for found_dir in $rpathdirs; do
16204 acl_save_libdir="$libdir"
16205 libdir="$found_dir"
16206 eval flag=\"$hardcode_libdir_flag_spec\"
16207 libdir="$acl_save_libdir"
16208 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16209 done
16212 if test "X$ltrpathdirs" != "X"; then
16213 for found_dir in $ltrpathdirs; do
16214 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16215 done
16231 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
16232 stdlib.h string.h unistd.h sys/param.h
16234 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16236 echo "$as_me:$LINENO: checking for $ac_header" >&5
16237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16239 echo $ECHO_N "(cached) $ECHO_C" >&6
16241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16243 else
16244 # Is the header compilable?
16245 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16246 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16247 cat >conftest.$ac_ext <<_ACEOF
16248 /* confdefs.h. */
16249 _ACEOF
16250 cat confdefs.h >>conftest.$ac_ext
16251 cat >>conftest.$ac_ext <<_ACEOF
16252 /* end confdefs.h. */
16253 $ac_includes_default
16254 #include <$ac_header>
16255 _ACEOF
16256 rm -f conftest.$ac_objext
16257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16258 (eval $ac_compile) 2>conftest.er1
16259 ac_status=$?
16260 grep -v '^ *+' conftest.er1 >conftest.err
16261 rm -f conftest.er1
16262 cat conftest.err >&5
16263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264 (exit $ac_status); } &&
16265 { ac_try='test -z "$ac_c_werror_flag"
16266 || test ! -s conftest.err'
16267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16268 (eval $ac_try) 2>&5
16269 ac_status=$?
16270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271 (exit $ac_status); }; } &&
16272 { ac_try='test -s conftest.$ac_objext'
16273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16274 (eval $ac_try) 2>&5
16275 ac_status=$?
16276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); }; }; then
16278 ac_header_compiler=yes
16279 else
16280 echo "$as_me: failed program was:" >&5
16281 sed 's/^/| /' conftest.$ac_ext >&5
16283 ac_header_compiler=no
16285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16286 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16287 echo "${ECHO_T}$ac_header_compiler" >&6
16289 # Is the header present?
16290 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16291 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16292 cat >conftest.$ac_ext <<_ACEOF
16293 /* confdefs.h. */
16294 _ACEOF
16295 cat confdefs.h >>conftest.$ac_ext
16296 cat >>conftest.$ac_ext <<_ACEOF
16297 /* end confdefs.h. */
16298 #include <$ac_header>
16299 _ACEOF
16300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16302 ac_status=$?
16303 grep -v '^ *+' conftest.er1 >conftest.err
16304 rm -f conftest.er1
16305 cat conftest.err >&5
16306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307 (exit $ac_status); } >/dev/null; then
16308 if test -s conftest.err; then
16309 ac_cpp_err=$ac_c_preproc_warn_flag
16310 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16311 else
16312 ac_cpp_err=
16314 else
16315 ac_cpp_err=yes
16317 if test -z "$ac_cpp_err"; then
16318 ac_header_preproc=yes
16319 else
16320 echo "$as_me: failed program was:" >&5
16321 sed 's/^/| /' conftest.$ac_ext >&5
16323 ac_header_preproc=no
16325 rm -f conftest.err conftest.$ac_ext
16326 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16327 echo "${ECHO_T}$ac_header_preproc" >&6
16329 # So? What about this header?
16330 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16331 yes:no: )
16332 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16333 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16335 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16336 ac_header_preproc=yes
16338 no:yes:* )
16339 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16340 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16341 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16342 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16343 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16344 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16345 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16346 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16348 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16349 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16350 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16352 cat <<\_ASBOX
16353 ## ------------------------------ ##
16354 ## Report this to admin@amule.org ##
16355 ## ------------------------------ ##
16356 _ASBOX
16358 sed "s/^/$as_me: WARNING: /" >&2
16360 esac
16361 echo "$as_me:$LINENO: checking for $ac_header" >&5
16362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16364 echo $ECHO_N "(cached) $ECHO_C" >&6
16365 else
16366 eval "$as_ac_Header=\$ac_header_preproc"
16368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16369 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16373 cat >>confdefs.h <<_ACEOF
16374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16375 _ACEOF
16379 done
16402 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
16403 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
16404 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
16406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16407 echo "$as_me:$LINENO: checking for $ac_func" >&5
16408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16409 if eval "test \"\${$as_ac_var+set}\" = set"; then
16410 echo $ECHO_N "(cached) $ECHO_C" >&6
16411 else
16412 cat >conftest.$ac_ext <<_ACEOF
16413 /* confdefs.h. */
16414 _ACEOF
16415 cat confdefs.h >>conftest.$ac_ext
16416 cat >>conftest.$ac_ext <<_ACEOF
16417 /* end confdefs.h. */
16418 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16420 #define $ac_func innocuous_$ac_func
16422 /* System header to define __stub macros and hopefully few prototypes,
16423 which can conflict with char $ac_func (); below.
16424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16425 <limits.h> exists even on freestanding compilers. */
16427 #ifdef __STDC__
16428 # include <limits.h>
16429 #else
16430 # include <assert.h>
16431 #endif
16433 #undef $ac_func
16435 /* Override any gcc2 internal prototype to avoid an error. */
16436 #ifdef __cplusplus
16437 extern "C"
16439 #endif
16440 /* We use char because int might match the return type of a gcc2
16441 builtin and then its argument prototype would still apply. */
16442 char $ac_func ();
16443 /* The GNU C library defines this for functions which it implements
16444 to always fail with ENOSYS. Some functions are actually named
16445 something starting with __ and the normal name is an alias. */
16446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16447 choke me
16448 #else
16449 char (*f) () = $ac_func;
16450 #endif
16451 #ifdef __cplusplus
16453 #endif
16456 main ()
16458 return f != $ac_func;
16460 return 0;
16462 _ACEOF
16463 rm -f conftest.$ac_objext conftest$ac_exeext
16464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16465 (eval $ac_link) 2>conftest.er1
16466 ac_status=$?
16467 grep -v '^ *+' conftest.er1 >conftest.err
16468 rm -f conftest.er1
16469 cat conftest.err >&5
16470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471 (exit $ac_status); } &&
16472 { ac_try='test -z "$ac_c_werror_flag"
16473 || test ! -s conftest.err'
16474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16475 (eval $ac_try) 2>&5
16476 ac_status=$?
16477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478 (exit $ac_status); }; } &&
16479 { ac_try='test -s conftest$ac_exeext'
16480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16481 (eval $ac_try) 2>&5
16482 ac_status=$?
16483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484 (exit $ac_status); }; }; then
16485 eval "$as_ac_var=yes"
16486 else
16487 echo "$as_me: failed program was:" >&5
16488 sed 's/^/| /' conftest.$ac_ext >&5
16490 eval "$as_ac_var=no"
16492 rm -f conftest.err conftest.$ac_objext \
16493 conftest$ac_exeext conftest.$ac_ext
16495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16496 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16497 if test `eval echo '${'$as_ac_var'}'` = yes; then
16498 cat >>confdefs.h <<_ACEOF
16499 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16500 _ACEOF
16503 done
16511 am_save_CPPFLAGS="$CPPFLAGS"
16513 for element in $INCICONV; do
16514 haveit=
16515 for x in $CPPFLAGS; do
16517 acl_save_prefix="$prefix"
16518 prefix="$acl_final_prefix"
16519 acl_save_exec_prefix="$exec_prefix"
16520 exec_prefix="$acl_final_exec_prefix"
16521 eval x=\"$x\"
16522 exec_prefix="$acl_save_exec_prefix"
16523 prefix="$acl_save_prefix"
16525 if test "X$x" = "X$element"; then
16526 haveit=yes
16527 break
16529 done
16530 if test -z "$haveit"; then
16531 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16533 done
16536 echo "$as_me:$LINENO: checking for iconv" >&5
16537 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
16538 if test "${am_cv_func_iconv+set}" = set; then
16539 echo $ECHO_N "(cached) $ECHO_C" >&6
16540 else
16542 am_cv_func_iconv="no, consider installing GNU libiconv"
16543 am_cv_lib_iconv=no
16544 cat >conftest.$ac_ext <<_ACEOF
16545 /* confdefs.h. */
16546 _ACEOF
16547 cat confdefs.h >>conftest.$ac_ext
16548 cat >>conftest.$ac_ext <<_ACEOF
16549 /* end confdefs.h. */
16550 #include <stdlib.h>
16551 #include <iconv.h>
16553 main ()
16555 iconv_t cd = iconv_open("","");
16556 iconv(cd,NULL,NULL,NULL,NULL);
16557 iconv_close(cd);
16559 return 0;
16561 _ACEOF
16562 rm -f conftest.$ac_objext conftest$ac_exeext
16563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16564 (eval $ac_link) 2>conftest.er1
16565 ac_status=$?
16566 grep -v '^ *+' conftest.er1 >conftest.err
16567 rm -f conftest.er1
16568 cat conftest.err >&5
16569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570 (exit $ac_status); } &&
16571 { ac_try='test -z "$ac_c_werror_flag"
16572 || test ! -s conftest.err'
16573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16574 (eval $ac_try) 2>&5
16575 ac_status=$?
16576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577 (exit $ac_status); }; } &&
16578 { ac_try='test -s conftest$ac_exeext'
16579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16580 (eval $ac_try) 2>&5
16581 ac_status=$?
16582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583 (exit $ac_status); }; }; then
16584 am_cv_func_iconv=yes
16585 else
16586 echo "$as_me: failed program was:" >&5
16587 sed 's/^/| /' conftest.$ac_ext >&5
16590 rm -f conftest.err conftest.$ac_objext \
16591 conftest$ac_exeext conftest.$ac_ext
16592 if test "$am_cv_func_iconv" != yes; then
16593 am_save_LIBS="$LIBS"
16594 LIBS="$LIBS $LIBICONV"
16595 cat >conftest.$ac_ext <<_ACEOF
16596 /* confdefs.h. */
16597 _ACEOF
16598 cat confdefs.h >>conftest.$ac_ext
16599 cat >>conftest.$ac_ext <<_ACEOF
16600 /* end confdefs.h. */
16601 #include <stdlib.h>
16602 #include <iconv.h>
16604 main ()
16606 iconv_t cd = iconv_open("","");
16607 iconv(cd,NULL,NULL,NULL,NULL);
16608 iconv_close(cd);
16610 return 0;
16612 _ACEOF
16613 rm -f conftest.$ac_objext conftest$ac_exeext
16614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16615 (eval $ac_link) 2>conftest.er1
16616 ac_status=$?
16617 grep -v '^ *+' conftest.er1 >conftest.err
16618 rm -f conftest.er1
16619 cat conftest.err >&5
16620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621 (exit $ac_status); } &&
16622 { ac_try='test -z "$ac_c_werror_flag"
16623 || test ! -s conftest.err'
16624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16625 (eval $ac_try) 2>&5
16626 ac_status=$?
16627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628 (exit $ac_status); }; } &&
16629 { ac_try='test -s conftest$ac_exeext'
16630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16631 (eval $ac_try) 2>&5
16632 ac_status=$?
16633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634 (exit $ac_status); }; }; then
16635 am_cv_lib_iconv=yes
16636 am_cv_func_iconv=yes
16637 else
16638 echo "$as_me: failed program was:" >&5
16639 sed 's/^/| /' conftest.$ac_ext >&5
16642 rm -f conftest.err conftest.$ac_objext \
16643 conftest$ac_exeext conftest.$ac_ext
16644 LIBS="$am_save_LIBS"
16648 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
16649 echo "${ECHO_T}$am_cv_func_iconv" >&6
16650 if test "$am_cv_func_iconv" = yes; then
16652 cat >>confdefs.h <<\_ACEOF
16653 #define HAVE_ICONV 1
16654 _ACEOF
16657 if test "$am_cv_lib_iconv" = yes; then
16658 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
16659 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
16660 echo "$as_me:$LINENO: result: $LIBICONV" >&5
16661 echo "${ECHO_T}$LIBICONV" >&6
16662 else
16663 CPPFLAGS="$am_save_CPPFLAGS"
16664 LIBICONV=
16665 LTLIBICONV=
16670 if test "$am_cv_func_iconv" = yes; then
16671 echo "$as_me:$LINENO: checking for iconv declaration" >&5
16672 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
16673 if test "${am_cv_proto_iconv+set}" = set; then
16674 echo $ECHO_N "(cached) $ECHO_C" >&6
16675 else
16677 cat >conftest.$ac_ext <<_ACEOF
16678 /* confdefs.h. */
16679 _ACEOF
16680 cat confdefs.h >>conftest.$ac_ext
16681 cat >>conftest.$ac_ext <<_ACEOF
16682 /* end confdefs.h. */
16684 #include <stdlib.h>
16685 #include <iconv.h>
16686 extern
16687 #ifdef __cplusplus
16689 #endif
16690 #if defined(__STDC__) || defined(__cplusplus)
16691 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16692 #else
16693 size_t iconv();
16694 #endif
16697 main ()
16701 return 0;
16703 _ACEOF
16704 rm -f conftest.$ac_objext
16705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16706 (eval $ac_compile) 2>conftest.er1
16707 ac_status=$?
16708 grep -v '^ *+' conftest.er1 >conftest.err
16709 rm -f conftest.er1
16710 cat conftest.err >&5
16711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); } &&
16713 { ac_try='test -z "$ac_c_werror_flag"
16714 || test ! -s conftest.err'
16715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16716 (eval $ac_try) 2>&5
16717 ac_status=$?
16718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); }; } &&
16720 { ac_try='test -s conftest.$ac_objext'
16721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16722 (eval $ac_try) 2>&5
16723 ac_status=$?
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); }; }; then
16726 am_cv_proto_iconv_arg1=""
16727 else
16728 echo "$as_me: failed program was:" >&5
16729 sed 's/^/| /' conftest.$ac_ext >&5
16731 am_cv_proto_iconv_arg1="const"
16733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16734 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);"
16737 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
16738 echo "$as_me:$LINENO: result: ${ac_t:-
16739 }$am_cv_proto_iconv" >&5
16740 echo "${ECHO_T}${ac_t:-
16741 }$am_cv_proto_iconv" >&6
16743 cat >>confdefs.h <<_ACEOF
16744 #define ICONV_CONST $am_cv_proto_iconv_arg1
16745 _ACEOF
16750 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
16751 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
16752 if test "${am_cv_langinfo_codeset+set}" = set; then
16753 echo $ECHO_N "(cached) $ECHO_C" >&6
16754 else
16755 cat >conftest.$ac_ext <<_ACEOF
16756 /* confdefs.h. */
16757 _ACEOF
16758 cat confdefs.h >>conftest.$ac_ext
16759 cat >>conftest.$ac_ext <<_ACEOF
16760 /* end confdefs.h. */
16761 #include <langinfo.h>
16763 main ()
16765 char* cs = nl_langinfo(CODESET);
16767 return 0;
16769 _ACEOF
16770 rm -f conftest.$ac_objext conftest$ac_exeext
16771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16772 (eval $ac_link) 2>conftest.er1
16773 ac_status=$?
16774 grep -v '^ *+' conftest.er1 >conftest.err
16775 rm -f conftest.er1
16776 cat conftest.err >&5
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); } &&
16779 { ac_try='test -z "$ac_c_werror_flag"
16780 || test ! -s conftest.err'
16781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16782 (eval $ac_try) 2>&5
16783 ac_status=$?
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); }; } &&
16786 { ac_try='test -s conftest$ac_exeext'
16787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16788 (eval $ac_try) 2>&5
16789 ac_status=$?
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); }; }; then
16792 am_cv_langinfo_codeset=yes
16793 else
16794 echo "$as_me: failed program was:" >&5
16795 sed 's/^/| /' conftest.$ac_ext >&5
16797 am_cv_langinfo_codeset=no
16799 rm -f conftest.err conftest.$ac_objext \
16800 conftest$ac_exeext conftest.$ac_ext
16803 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
16804 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
16805 if test $am_cv_langinfo_codeset = yes; then
16807 cat >>confdefs.h <<\_ACEOF
16808 #define HAVE_LANGINFO_CODESET 1
16809 _ACEOF
16813 if test $ac_cv_header_locale_h = yes; then
16815 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
16816 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
16817 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
16818 echo $ECHO_N "(cached) $ECHO_C" >&6
16819 else
16820 cat >conftest.$ac_ext <<_ACEOF
16821 /* confdefs.h. */
16822 _ACEOF
16823 cat confdefs.h >>conftest.$ac_ext
16824 cat >>conftest.$ac_ext <<_ACEOF
16825 /* end confdefs.h. */
16826 #include <locale.h>
16828 main ()
16830 return LC_MESSAGES
16832 return 0;
16834 _ACEOF
16835 rm -f conftest.$ac_objext conftest$ac_exeext
16836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16837 (eval $ac_link) 2>conftest.er1
16838 ac_status=$?
16839 grep -v '^ *+' conftest.er1 >conftest.err
16840 rm -f conftest.er1
16841 cat conftest.err >&5
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); } &&
16844 { ac_try='test -z "$ac_c_werror_flag"
16845 || test ! -s conftest.err'
16846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16847 (eval $ac_try) 2>&5
16848 ac_status=$?
16849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850 (exit $ac_status); }; } &&
16851 { ac_try='test -s conftest$ac_exeext'
16852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16853 (eval $ac_try) 2>&5
16854 ac_status=$?
16855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856 (exit $ac_status); }; }; then
16857 am_cv_val_LC_MESSAGES=yes
16858 else
16859 echo "$as_me: failed program was:" >&5
16860 sed 's/^/| /' conftest.$ac_ext >&5
16862 am_cv_val_LC_MESSAGES=no
16864 rm -f conftest.err conftest.$ac_objext \
16865 conftest$ac_exeext conftest.$ac_ext
16867 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
16868 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
16869 if test $am_cv_val_LC_MESSAGES = yes; then
16871 cat >>confdefs.h <<\_ACEOF
16872 #define HAVE_LC_MESSAGES 1
16873 _ACEOF
16879 for ac_prog in bison
16881 # Extract the first word of "$ac_prog", so it can be a program name with args.
16882 set dummy $ac_prog; ac_word=$2
16883 echo "$as_me:$LINENO: checking for $ac_word" >&5
16884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16885 if test "${ac_cv_prog_INTLBISON+set}" = set; then
16886 echo $ECHO_N "(cached) $ECHO_C" >&6
16887 else
16888 if test -n "$INTLBISON"; then
16889 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
16890 else
16891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16892 for as_dir in $PATH
16894 IFS=$as_save_IFS
16895 test -z "$as_dir" && as_dir=.
16896 for ac_exec_ext in '' $ac_executable_extensions; do
16897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16898 ac_cv_prog_INTLBISON="$ac_prog"
16899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16900 break 2
16902 done
16903 done
16907 INTLBISON=$ac_cv_prog_INTLBISON
16908 if test -n "$INTLBISON"; then
16909 echo "$as_me:$LINENO: result: $INTLBISON" >&5
16910 echo "${ECHO_T}$INTLBISON" >&6
16911 else
16912 echo "$as_me:$LINENO: result: no" >&5
16913 echo "${ECHO_T}no" >&6
16916 test -n "$INTLBISON" && break
16917 done
16919 if test -z "$INTLBISON"; then
16920 ac_verc_fail=yes
16921 else
16922 echo "$as_me:$LINENO: checking version of bison" >&5
16923 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
16924 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
16925 case $ac_prog_version in
16926 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
16927 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
16928 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
16929 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
16930 esac
16931 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
16932 echo "${ECHO_T}$ac_prog_version" >&6
16934 if test $ac_verc_fail = yes; then
16935 INTLBISON=:
16940 # Check whether --with-language or --without-language was given.
16941 if test "${with_language+set}" = set; then
16942 withval="$with_language"
16943 if test "$withval" = "all"; then
16944 LINGUAS='%UNSET%'
16945 else
16946 LINGUAS="`echo $withval | sed -e 's/,/ /g'`"
16965 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16966 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
16967 # Check whether --enable-nls or --disable-nls was given.
16968 if test "${enable_nls+set}" = set; then
16969 enableval="$enable_nls"
16970 USE_NLS=$enableval
16971 else
16972 USE_NLS=yes
16974 echo "$as_me:$LINENO: result: $USE_NLS" >&5
16975 echo "${ECHO_T}$USE_NLS" >&6
16979 BUILD_INCLUDED_LIBINTL=no
16980 USE_INCLUDED_LIBINTL=no
16982 LIBINTL=
16983 LTLIBINTL=
16984 POSUB=
16986 if test "$USE_NLS" = "yes"; then
16987 gt_use_preinstalled_gnugettext=no
16989 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
16990 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
16992 # Check whether --with-included-gettext or --without-included-gettext was given.
16993 if test "${with_included_gettext+set}" = set; then
16994 withval="$with_included_gettext"
16995 nls_cv_force_use_gnu_gettext=$withval
16996 else
16997 nls_cv_force_use_gnu_gettext=no
16999 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
17000 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
17002 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
17003 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
17010 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17011 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
17012 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
17013 echo $ECHO_N "(cached) $ECHO_C" >&6
17014 else
17015 cat >conftest.$ac_ext <<_ACEOF
17016 /* confdefs.h. */
17017 _ACEOF
17018 cat confdefs.h >>conftest.$ac_ext
17019 cat >>conftest.$ac_ext <<_ACEOF
17020 /* end confdefs.h. */
17021 #include <libintl.h>
17022 extern int _nl_msg_cat_cntr;
17023 extern int *_nl_domain_bindings;
17025 main ()
17027 bindtextdomain ("", "");
17028 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
17030 return 0;
17032 _ACEOF
17033 rm -f conftest.$ac_objext conftest$ac_exeext
17034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17035 (eval $ac_link) 2>conftest.er1
17036 ac_status=$?
17037 grep -v '^ *+' conftest.er1 >conftest.err
17038 rm -f conftest.er1
17039 cat conftest.err >&5
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); } &&
17042 { ac_try='test -z "$ac_c_werror_flag"
17043 || test ! -s conftest.err'
17044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17045 (eval $ac_try) 2>&5
17046 ac_status=$?
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); }; } &&
17049 { ac_try='test -s conftest$ac_exeext'
17050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17051 (eval $ac_try) 2>&5
17052 ac_status=$?
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); }; }; then
17055 gt_cv_func_gnugettext2_libc=yes
17056 else
17057 echo "$as_me: failed program was:" >&5
17058 sed 's/^/| /' conftest.$ac_ext >&5
17060 gt_cv_func_gnugettext2_libc=no
17062 rm -f conftest.err conftest.$ac_objext \
17063 conftest$ac_exeext conftest.$ac_ext
17065 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
17066 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
17068 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
17072 use_additional=yes
17074 acl_save_prefix="$prefix"
17075 prefix="$acl_final_prefix"
17076 acl_save_exec_prefix="$exec_prefix"
17077 exec_prefix="$acl_final_exec_prefix"
17079 eval additional_includedir=\"$includedir\"
17080 eval additional_libdir=\"$libdir\"
17082 exec_prefix="$acl_save_exec_prefix"
17083 prefix="$acl_save_prefix"
17086 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
17087 if test "${with_libintl_prefix+set}" = set; then
17088 withval="$with_libintl_prefix"
17090 if test "X$withval" = "Xno"; then
17091 use_additional=no
17092 else
17093 if test "X$withval" = "X"; then
17095 acl_save_prefix="$prefix"
17096 prefix="$acl_final_prefix"
17097 acl_save_exec_prefix="$exec_prefix"
17098 exec_prefix="$acl_final_exec_prefix"
17100 eval additional_includedir=\"$includedir\"
17101 eval additional_libdir=\"$libdir\"
17103 exec_prefix="$acl_save_exec_prefix"
17104 prefix="$acl_save_prefix"
17106 else
17107 additional_includedir="$withval/include"
17108 additional_libdir="$withval/lib"
17113 LIBINTL=
17114 LTLIBINTL=
17115 INCINTL=
17116 rpathdirs=
17117 ltrpathdirs=
17118 names_already_handled=
17119 names_next_round='intl '
17120 while test -n "$names_next_round"; do
17121 names_this_round="$names_next_round"
17122 names_next_round=
17123 for name in $names_this_round; do
17124 already_handled=
17125 for n in $names_already_handled; do
17126 if test "$n" = "$name"; then
17127 already_handled=yes
17128 break
17130 done
17131 if test -z "$already_handled"; then
17132 names_already_handled="$names_already_handled $name"
17133 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17134 eval value=\"\$HAVE_LIB$uppername\"
17135 if test -n "$value"; then
17136 if test "$value" = yes; then
17137 eval value=\"\$LIB$uppername\"
17138 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17139 eval value=\"\$LTLIB$uppername\"
17140 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17141 else
17144 else
17145 found_dir=
17146 found_la=
17147 found_so=
17148 found_a=
17149 if test $use_additional = yes; then
17150 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17151 found_dir="$additional_libdir"
17152 found_so="$additional_libdir/lib$name.$shlibext"
17153 if test -f "$additional_libdir/lib$name.la"; then
17154 found_la="$additional_libdir/lib$name.la"
17156 else
17157 if test -f "$additional_libdir/lib$name.$libext"; then
17158 found_dir="$additional_libdir"
17159 found_a="$additional_libdir/lib$name.$libext"
17160 if test -f "$additional_libdir/lib$name.la"; then
17161 found_la="$additional_libdir/lib$name.la"
17166 if test "X$found_dir" = "X"; then
17167 for x in $LDFLAGS $LTLIBINTL; do
17169 acl_save_prefix="$prefix"
17170 prefix="$acl_final_prefix"
17171 acl_save_exec_prefix="$exec_prefix"
17172 exec_prefix="$acl_final_exec_prefix"
17173 eval x=\"$x\"
17174 exec_prefix="$acl_save_exec_prefix"
17175 prefix="$acl_save_prefix"
17177 case "$x" in
17178 -L*)
17179 dir=`echo "X$x" | sed -e 's/^X-L//'`
17180 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17181 found_dir="$dir"
17182 found_so="$dir/lib$name.$shlibext"
17183 if test -f "$dir/lib$name.la"; then
17184 found_la="$dir/lib$name.la"
17186 else
17187 if test -f "$dir/lib$name.$libext"; then
17188 found_dir="$dir"
17189 found_a="$dir/lib$name.$libext"
17190 if test -f "$dir/lib$name.la"; then
17191 found_la="$dir/lib$name.la"
17196 esac
17197 if test "X$found_dir" != "X"; then
17198 break
17200 done
17202 if test "X$found_dir" != "X"; then
17203 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17204 if test "X$found_so" != "X"; then
17205 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17206 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17207 else
17208 haveit=
17209 for x in $ltrpathdirs; do
17210 if test "X$x" = "X$found_dir"; then
17211 haveit=yes
17212 break
17214 done
17215 if test -z "$haveit"; then
17216 ltrpathdirs="$ltrpathdirs $found_dir"
17218 if test "$hardcode_direct" = yes; then
17219 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17220 else
17221 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17222 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17223 haveit=
17224 for x in $rpathdirs; do
17225 if test "X$x" = "X$found_dir"; then
17226 haveit=yes
17227 break
17229 done
17230 if test -z "$haveit"; then
17231 rpathdirs="$rpathdirs $found_dir"
17233 else
17234 haveit=
17235 for x in $LDFLAGS $LIBINTL; do
17237 acl_save_prefix="$prefix"
17238 prefix="$acl_final_prefix"
17239 acl_save_exec_prefix="$exec_prefix"
17240 exec_prefix="$acl_final_exec_prefix"
17241 eval x=\"$x\"
17242 exec_prefix="$acl_save_exec_prefix"
17243 prefix="$acl_save_prefix"
17245 if test "X$x" = "X-L$found_dir"; then
17246 haveit=yes
17247 break
17249 done
17250 if test -z "$haveit"; then
17251 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17253 if test "$hardcode_minus_L" != no; then
17254 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17255 else
17256 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17261 else
17262 if test "X$found_a" != "X"; then
17263 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17264 else
17265 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17268 additional_includedir=
17269 case "$found_dir" in
17270 */lib | */lib/)
17271 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17272 additional_includedir="$basedir/include"
17274 esac
17275 if test "X$additional_includedir" != "X"; then
17276 if test "X$additional_includedir" != "X/usr/include"; then
17277 haveit=
17278 if test "X$additional_includedir" = "X/usr/local/include"; then
17279 if test -n "$GCC"; then
17280 case $host_os in
17281 linux*) haveit=yes;;
17282 esac
17285 if test -z "$haveit"; then
17286 for x in $CPPFLAGS $INCINTL; do
17288 acl_save_prefix="$prefix"
17289 prefix="$acl_final_prefix"
17290 acl_save_exec_prefix="$exec_prefix"
17291 exec_prefix="$acl_final_exec_prefix"
17292 eval x=\"$x\"
17293 exec_prefix="$acl_save_exec_prefix"
17294 prefix="$acl_save_prefix"
17296 if test "X$x" = "X-I$additional_includedir"; then
17297 haveit=yes
17298 break
17300 done
17301 if test -z "$haveit"; then
17302 if test -d "$additional_includedir"; then
17303 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17309 if test -n "$found_la"; then
17310 save_libdir="$libdir"
17311 case "$found_la" in
17312 */* | *\\*) . "$found_la" ;;
17313 *) . "./$found_la" ;;
17314 esac
17315 libdir="$save_libdir"
17316 for dep in $dependency_libs; do
17317 case "$dep" in
17318 -L*)
17319 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17320 if test "X$additional_libdir" != "X/usr/lib"; then
17321 haveit=
17322 if test "X$additional_libdir" = "X/usr/local/lib"; then
17323 if test -n "$GCC"; then
17324 case $host_os in
17325 linux*) haveit=yes;;
17326 esac
17329 if test -z "$haveit"; then
17330 haveit=
17331 for x in $LDFLAGS $LIBINTL; do
17333 acl_save_prefix="$prefix"
17334 prefix="$acl_final_prefix"
17335 acl_save_exec_prefix="$exec_prefix"
17336 exec_prefix="$acl_final_exec_prefix"
17337 eval x=\"$x\"
17338 exec_prefix="$acl_save_exec_prefix"
17339 prefix="$acl_save_prefix"
17341 if test "X$x" = "X-L$additional_libdir"; then
17342 haveit=yes
17343 break
17345 done
17346 if test -z "$haveit"; then
17347 if test -d "$additional_libdir"; then
17348 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17351 haveit=
17352 for x in $LDFLAGS $LTLIBINTL; do
17354 acl_save_prefix="$prefix"
17355 prefix="$acl_final_prefix"
17356 acl_save_exec_prefix="$exec_prefix"
17357 exec_prefix="$acl_final_exec_prefix"
17358 eval x=\"$x\"
17359 exec_prefix="$acl_save_exec_prefix"
17360 prefix="$acl_save_prefix"
17362 if test "X$x" = "X-L$additional_libdir"; then
17363 haveit=yes
17364 break
17366 done
17367 if test -z "$haveit"; then
17368 if test -d "$additional_libdir"; then
17369 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17375 -R*)
17376 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17377 if test "$enable_rpath" != no; then
17378 haveit=
17379 for x in $rpathdirs; do
17380 if test "X$x" = "X$dir"; then
17381 haveit=yes
17382 break
17384 done
17385 if test -z "$haveit"; then
17386 rpathdirs="$rpathdirs $dir"
17388 haveit=
17389 for x in $ltrpathdirs; do
17390 if test "X$x" = "X$dir"; then
17391 haveit=yes
17392 break
17394 done
17395 if test -z "$haveit"; then
17396 ltrpathdirs="$ltrpathdirs $dir"
17400 -l*)
17401 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17403 *.la)
17404 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17407 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17408 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17410 esac
17411 done
17413 else
17414 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17415 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17419 done
17420 done
17421 if test "X$rpathdirs" != "X"; then
17422 if test -n "$hardcode_libdir_separator"; then
17423 alldirs=
17424 for found_dir in $rpathdirs; do
17425 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17426 done
17427 acl_save_libdir="$libdir"
17428 libdir="$alldirs"
17429 eval flag=\"$hardcode_libdir_flag_spec\"
17430 libdir="$acl_save_libdir"
17431 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17432 else
17433 for found_dir in $rpathdirs; do
17434 acl_save_libdir="$libdir"
17435 libdir="$found_dir"
17436 eval flag=\"$hardcode_libdir_flag_spec\"
17437 libdir="$acl_save_libdir"
17438 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17439 done
17442 if test "X$ltrpathdirs" != "X"; then
17443 for found_dir in $ltrpathdirs; do
17444 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17445 done
17448 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
17449 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
17450 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
17451 echo $ECHO_N "(cached) $ECHO_C" >&6
17452 else
17453 gt_save_CPPFLAGS="$CPPFLAGS"
17454 CPPFLAGS="$CPPFLAGS $INCINTL"
17455 gt_save_LIBS="$LIBS"
17456 LIBS="$LIBS $LIBINTL"
17457 cat >conftest.$ac_ext <<_ACEOF
17458 /* confdefs.h. */
17459 _ACEOF
17460 cat confdefs.h >>conftest.$ac_ext
17461 cat >>conftest.$ac_ext <<_ACEOF
17462 /* end confdefs.h. */
17463 #include <libintl.h>
17464 extern int _nl_msg_cat_cntr;
17465 extern
17466 #ifdef __cplusplus
17468 #endif
17469 const char *_nl_expand_alias ();
17471 main ()
17473 bindtextdomain ("", "");
17474 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17476 return 0;
17478 _ACEOF
17479 rm -f conftest.$ac_objext conftest$ac_exeext
17480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17481 (eval $ac_link) 2>conftest.er1
17482 ac_status=$?
17483 grep -v '^ *+' conftest.er1 >conftest.err
17484 rm -f conftest.er1
17485 cat conftest.err >&5
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); } &&
17488 { ac_try='test -z "$ac_c_werror_flag"
17489 || test ! -s conftest.err'
17490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17491 (eval $ac_try) 2>&5
17492 ac_status=$?
17493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494 (exit $ac_status); }; } &&
17495 { ac_try='test -s conftest$ac_exeext'
17496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17497 (eval $ac_try) 2>&5
17498 ac_status=$?
17499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500 (exit $ac_status); }; }; then
17501 gt_cv_func_gnugettext2_libintl=yes
17502 else
17503 echo "$as_me: failed program was:" >&5
17504 sed 's/^/| /' conftest.$ac_ext >&5
17506 gt_cv_func_gnugettext2_libintl=no
17508 rm -f conftest.err conftest.$ac_objext \
17509 conftest$ac_exeext conftest.$ac_ext
17510 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
17511 LIBS="$LIBS $LIBICONV"
17512 cat >conftest.$ac_ext <<_ACEOF
17513 /* confdefs.h. */
17514 _ACEOF
17515 cat confdefs.h >>conftest.$ac_ext
17516 cat >>conftest.$ac_ext <<_ACEOF
17517 /* end confdefs.h. */
17518 #include <libintl.h>
17519 extern int _nl_msg_cat_cntr;
17520 extern
17521 #ifdef __cplusplus
17523 #endif
17524 const char *_nl_expand_alias ();
17526 main ()
17528 bindtextdomain ("", "");
17529 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17531 return 0;
17533 _ACEOF
17534 rm -f conftest.$ac_objext conftest$ac_exeext
17535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17536 (eval $ac_link) 2>conftest.er1
17537 ac_status=$?
17538 grep -v '^ *+' conftest.er1 >conftest.err
17539 rm -f conftest.er1
17540 cat conftest.err >&5
17541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542 (exit $ac_status); } &&
17543 { ac_try='test -z "$ac_c_werror_flag"
17544 || test ! -s conftest.err'
17545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17546 (eval $ac_try) 2>&5
17547 ac_status=$?
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); }; } &&
17550 { ac_try='test -s conftest$ac_exeext'
17551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17552 (eval $ac_try) 2>&5
17553 ac_status=$?
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); }; }; then
17556 LIBINTL="$LIBINTL $LIBICONV"
17557 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17558 gt_cv_func_gnugettext2_libintl=yes
17560 else
17561 echo "$as_me: failed program was:" >&5
17562 sed 's/^/| /' conftest.$ac_ext >&5
17565 rm -f conftest.err conftest.$ac_objext \
17566 conftest$ac_exeext conftest.$ac_ext
17568 CPPFLAGS="$gt_save_CPPFLAGS"
17569 LIBS="$gt_save_LIBS"
17571 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
17572 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
17575 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
17576 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
17577 && test "$PACKAGE" != gettext; }; then
17578 gt_use_preinstalled_gnugettext=yes
17579 else
17580 LIBINTL=
17581 LTLIBINTL=
17582 INCINTL=
17586 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
17587 nls_cv_use_gnu_gettext=yes
17591 if test "$nls_cv_use_gnu_gettext" = "yes"; then
17592 INTLOBJS="\$(GETTOBJS)"
17593 BUILD_INCLUDED_LIBINTL=yes
17594 USE_INCLUDED_LIBINTL=yes
17595 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
17596 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
17597 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
17600 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17601 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17602 CATOBJEXT=.gmo
17606 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17607 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17609 cat >>confdefs.h <<\_ACEOF
17610 #define ENABLE_NLS 1
17611 _ACEOF
17613 else
17614 USE_NLS=no
17618 if test "$USE_NLS" = "yes"; then
17620 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17621 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
17622 echo "$as_me:$LINENO: checking how to link with libintl" >&5
17623 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
17624 echo "$as_me:$LINENO: result: $LIBINTL" >&5
17625 echo "${ECHO_T}$LIBINTL" >&6
17627 for element in $INCINTL; do
17628 haveit=
17629 for x in $CPPFLAGS; do
17631 acl_save_prefix="$prefix"
17632 prefix="$acl_final_prefix"
17633 acl_save_exec_prefix="$exec_prefix"
17634 exec_prefix="$acl_final_exec_prefix"
17635 eval x=\"$x\"
17636 exec_prefix="$acl_save_exec_prefix"
17637 prefix="$acl_save_prefix"
17639 if test "X$x" = "X$element"; then
17640 haveit=yes
17641 break
17643 done
17644 if test -z "$haveit"; then
17645 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17647 done
17652 cat >>confdefs.h <<\_ACEOF
17653 #define HAVE_GETTEXT 1
17654 _ACEOF
17657 cat >>confdefs.h <<\_ACEOF
17658 #define HAVE_DCGETTEXT 1
17659 _ACEOF
17663 POSUB=po
17667 if test "$PACKAGE" = gettext; then
17668 BUILD_INCLUDED_LIBINTL=yes
17676 nls_cv_header_intl=
17677 nls_cv_header_libgt=
17679 DATADIRNAME=share
17682 INSTOBJEXT=.mo
17685 GENCAT=gencat
17688 INTL_LIBTOOL_SUFFIX_PREFIX=
17692 INTLLIBS="$LIBINTL"
17699 if test $USE_INCLUDED_LIBINTL = yes; then
17700 INCINTL=-I\${top_builddir}/intl
17704 if test x$USE_NLS = xyes; then
17706 echo "$as_me:$LINENO: checking for autopoint" >&5
17707 echo $ECHO_N "checking for autopoint... $ECHO_C" >&6
17708 autopoint_version=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
17709 if test -n "$autopoint_version"; then
17711 echo "$as_me:$LINENO: result: yes ($autopoint_version)" >&5
17712 echo "${ECHO_T}yes ($autopoint_version)" >&6
17715 else
17717 echo "$as_me:$LINENO: result: no" >&5
17718 echo "${ECHO_T}no" >&6
17719 USE_NLS=no
17726 if test x$USE_NLS = xno -a x${enable_nls:-yes} = xyes; then
17727 { echo "$as_me:$LINENO: WARNING: You need to install GNU gettext/gettext-tools to compile aMule with i18n support." >&5
17728 echo "$as_me: WARNING: You need to install GNU gettext/gettext-tools to compile aMule with i18n support." >&2;}
17732 if test ${USE_NLS:-no} = yes; then
17734 echo "$as_me:$LINENO: checking for requested languages" >&5
17735 echo $ECHO_N "checking for requested languages... $ECHO_C" >&6
17736 Generate_Langs=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
17738 if test "$AMULE_DAEMON" == "yes"; then
17740 if test -z "$LINGUAS"; then
17741 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
17742 else
17744 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17745 AMULE_DAEMON_MANPAGES="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
17749 AMULE_DAEMON_MANPAGES=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
17751 else
17752 AMULE_DAEMON_MANPAGES=
17758 if test "$AMULECMD" == "yes"; then
17760 if test -z "$LINGUAS"; then
17761 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
17762 else
17764 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17765 AMULECMD_MANPAGES="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
17769 AMULECMD_MANPAGES=`echo $AMULECMD_MANPAGES | tr -d '\n'`
17771 else
17772 AMULECMD_MANPAGES=
17778 if test "$WEB" == "yes"; then
17780 if test -z "$LINGUAS"; then
17781 WEB_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
17782 else
17784 WEB_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17785 WEB_MANPAGES="`basename docs/man/amuleweb.1` $WEB_MANPAGES"
17789 WEB_MANPAGES=`echo $WEB_MANPAGES | tr -d '\n'`
17791 else
17792 WEB_MANPAGES=
17798 if test "$AMULE_GUI" == "yes"; then
17800 if test -z "$LINGUAS"; then
17801 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
17802 else
17804 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17805 AMULE_GUI_MANPAGES="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
17809 AMULE_GUI_MANPAGES=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
17811 else
17812 AMULE_GUI_MANPAGES=
17818 if test "$CAS" == "yes"; then
17820 if test -z "$LINGUAS"; then
17821 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
17822 else
17824 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17825 CAS_MANPAGES="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
17829 CAS_MANPAGES=`echo $CAS_MANPAGES | tr -d '\n'`
17831 else
17832 CAS_MANPAGES=
17838 if test "$WXCAS" == "yes"; then
17840 if test -z "$LINGUAS"; then
17841 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
17842 else
17844 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17845 WXCAS_MANPAGES="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
17849 WXCAS_MANPAGES=`echo $WXCAS_MANPAGES | tr -d '\n'`
17851 else
17852 WXCAS_MANPAGES=
17858 if test "$ED2K" == "yes"; then
17860 if test -z "$LINGUAS"; then
17861 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
17862 else
17864 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17865 ED2K_MANPAGES="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
17869 ED2K_MANPAGES=`echo $ED2K_MANPAGES | tr -d '\n'`
17871 else
17872 ED2K_MANPAGES=
17878 if test "$ALC" == "yes"; then
17880 if test -z "$LINGUAS"; then
17881 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
17882 else
17884 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17885 ALC_MANPAGES="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
17889 ALC_MANPAGES=`echo $ALC_MANPAGES | tr -d '\n'`
17891 else
17892 ALC_MANPAGES=
17898 if test "$ALCC" == "yes"; then
17900 if test -z "$LINGUAS"; then
17901 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
17902 else
17904 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17905 ALCC_MANPAGES="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
17909 ALCC_MANPAGES=`echo $ALCC_MANPAGES | tr -d '\n'`
17911 else
17912 ALCC_MANPAGES=
17918 if test "$MONOLITHIC" == "yes"; then
17920 if test -z "$LINGUAS"; then
17921 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
17922 else
17924 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17925 MONOLITHIC_MANPAGES="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
17929 MONOLITHIC_MANPAGES=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
17931 else
17932 MONOLITHIC_MANPAGES=
17937 echo "$as_me:$LINENO: result: ${LINGUAS:-all}" >&5
17938 echo "${ECHO_T}${LINGUAS:-all}" >&6
17945 # Flush standard test results for speeding cache
17946 cat >confcache <<\_ACEOF
17947 # This file is a shell script that caches the results of configure
17948 # tests run on this system so they can be shared between configure
17949 # scripts and configure runs, see configure's option --config-cache.
17950 # It is not useful on other systems. If it contains results you don't
17951 # want to keep, you may remove or edit it.
17953 # config.status only pays attention to the cache file if you give it
17954 # the --recheck option to rerun configure.
17956 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17957 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17958 # following values.
17960 _ACEOF
17962 # The following way of writing the cache mishandles newlines in values,
17963 # but we know of no workaround that is simple, portable, and efficient.
17964 # So, don't put newlines in cache variables' values.
17965 # Ultrix sh set writes to stderr and can't be redirected directly,
17966 # and sets the high bit in the cache file unless we assign to the vars.
17968 (set) 2>&1 |
17969 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17970 *ac_space=\ *)
17971 # `set' does not quote correctly, so add quotes (double-quote
17972 # substitution turns \\\\ into \\, and sed turns \\ into \).
17973 sed -n \
17974 "s/'/'\\\\''/g;
17975 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17978 # `set' quotes correctly as required by POSIX, so do not add quotes.
17979 sed -n \
17980 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17982 esac;
17984 sed '
17985 t clear
17986 : clear
17987 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17988 t end
17989 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17990 : end' >>confcache
17991 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17992 if test -w $cache_file; then
17993 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17994 cat confcache >$cache_file
17995 else
17996 echo "not updating unwritable cache $cache_file"
17999 rm -f confcache
18001 # Other tests
18002 # aMule options
18005 # Check whether --enable-debug or --disable-debug was given.
18006 if test "${enable_debug+set}" = set; then
18007 enableval="$enable_debug"
18008 USE_DEBUG=${enableval:-yes}
18009 else
18010 USE_DEBUG=yes
18013 if test $USE_DEBUG = yes; then
18015 MULECPPFLAGS="$MULECPPFLAGS -D__DEBUG__"
18017 MULECFLAGS="$MULECFLAGS -g"
18018 MULECXXFLAGS="$MULECXXFLAGS -g"
18020 if test ${GLIBCXX:-no} = yes; then
18021 MULECPPFLAGS="$MULECPPFLAGS -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC"
18024 if test ${GCC:-no} = yes; then
18026 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18027 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18031 if test ${SYS:-unknown} = win32; then
18032 MULERCFLAGS="$MULERCFLAGS -D__DEBUG__"
18036 else
18038 if test ${GCC:-no} = yes; then
18040 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef"
18041 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef"
18050 # Check whether --enable-optimize or --disable-optimize was given.
18051 if test "${enable_optimize+set}" = set; then
18052 enableval="$enable_optimize"
18053 USE_OPTIMIZE=${enableval:-no}
18054 else
18055 USE_OPTIMIZE=no
18058 if test $USE_OPTIMIZE = yes; then
18060 MULECFLAGS="$MULECFLAGS -O2"
18061 MULECXXFLAGS="$MULECXXFLAGS -O2"
18067 # Check whether --enable-profile or --disable-profile was given.
18068 if test "${enable_profile+set}" = set; then
18069 enableval="$enable_profile"
18070 USE_PROFILE=${enableval:-no}
18071 else
18072 USE_PROFILE=no
18075 if test $USE_PROFILE = yes; then
18078 MULECFLAGS="$MULECFLAGS -pg"
18079 MULECXXFLAGS="$MULECXXFLAGS -pg"
18081 MULELDFLAGS="$MULELDFLAGS -pg"
18087 echo "$as_me:$LINENO: checking if the applications should be statically linked" >&5
18088 echo $ECHO_N "checking if the applications should be statically linked... $ECHO_C" >&6
18089 # Check whether --enable-static or --disable-static was given.
18090 if test "${enable_static+set}" = set; then
18091 enableval="$enable_static"
18092 if test ${enableval:-no} = yes; then
18093 MULELDFLAGS="$MULELDFLAGS -static"
18097 echo "$as_me:$LINENO: result: ${enableval:-no}" >&5
18098 echo "${ECHO_T}${enableval:-no}" >&6
18100 MULECPPFLAGS="$MULECPPFLAGS -DUSE_WX_EXTENSIONS"
18103 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
18104 echo "$as_me:$LINENO: checking for docdir" >&5
18105 echo $ECHO_N "checking for docdir... $ECHO_C" >&6
18106 if test -z "$docdir"; then
18107 docdir="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}"
18110 echo "$as_me:$LINENO: result: $docdir" >&5
18111 echo "${ECHO_T}$docdir" >&6
18113 # Try to set the SVN checkout-date
18114 echo "$as_me:$LINENO: checking for SVNDATE" >&5
18115 echo $ECHO_N "checking for SVNDATE... $ECHO_C" >&6
18116 if test -f "$srcdir/SVNDATE" # SVNDATE for tarballs
18117 then
18118 svndate=`cat $srcdir/SVNDATE`
18119 elif test -d $srcdir/.svn # SVNDATE for svn
18120 then
18121 svndate="rev. `svnversion $srcdir | sed -e 's/[0-9][0-9]*:\(.*\)/\1/' -e 's/\([0-9][0-9]*\).*/\1/'`"
18123 echo "$as_me:$LINENO: result: ${svndate:-None required}" >&5
18124 echo "${ECHO_T}${svndate:-None required}" >&6
18125 if test -n "$svndate"; then
18128 cat >>confdefs.h <<_ACEOF
18129 #define SVNDATE "$svndate"
18130 _ACEOF
18132 MULERCFLAGS="$MULERCFLAGS -D__PRERELEASE__"
18136 SVNDATE=$svndate
18140 # Check whether --with-denoise-level or --without-denoise-level was given.
18141 if test "${with_denoise_level+set}" = set; then
18142 withval="$with_denoise_level"
18146 echo "$as_me:$LINENO: checking denoising level" >&5
18147 echo $ECHO_N "checking denoising level... $ECHO_C" >&6
18148 if test ${with_denoise_level:-5} = yes; then
18149 with_denoise_level=5
18152 if test ${with_denoise_level:-5} = no; then
18153 with_denoise_level=0
18156 if test ${with_denoise_level:-5} -gt 4; then
18157 if test "${svndate:+set}" = "set"; then
18158 with_denoise_level=0
18159 else
18160 with_denoise_level=4
18165 echo "$as_me:$LINENO: result: $with_denoise_level" >&5
18166 echo "${ECHO_T}$with_denoise_level" >&6
18168 ac_config_commands="$ac_config_commands denoiser"
18174 if test x$WEB = xyes; then
18175 WEB_TRUE=
18176 WEB_FALSE='#'
18177 else
18178 WEB_TRUE='#'
18179 WEB_FALSE=
18184 if test x$ED2K = xyes; then
18185 ED2K_TRUE=
18186 ED2K_FALSE='#'
18187 else
18188 ED2K_TRUE='#'
18189 ED2K_FALSE=
18194 if test x$CAS = xyes; then
18195 CAS_TRUE=
18196 CAS_FALSE='#'
18197 else
18198 CAS_TRUE='#'
18199 CAS_FALSE=
18204 if test x$WXCAS = xyes; then
18205 WXCAS_TRUE=
18206 WXCAS_FALSE='#'
18207 else
18208 WXCAS_TRUE='#'
18209 WXCAS_FALSE=
18214 if test x$ALC = xyes; then
18215 ALC_TRUE=
18216 ALC_FALSE='#'
18217 else
18218 ALC_TRUE='#'
18219 ALC_FALSE=
18224 if test x$ALCC = xyes; then
18225 ALCC_TRUE=
18226 ALCC_FALSE='#'
18227 else
18228 ALCC_TRUE='#'
18229 ALCC_FALSE=
18234 if test x$AMULE_GUI = xyes; then
18235 AMULE_GUI_TRUE=
18236 AMULE_GUI_FALSE='#'
18237 else
18238 AMULE_GUI_TRUE='#'
18239 AMULE_GUI_FALSE=
18244 if test x$AMULE_DAEMON = xyes; then
18245 AMULE_DAEMON_TRUE=
18246 AMULE_DAEMON_FALSE='#'
18247 else
18248 AMULE_DAEMON_TRUE='#'
18249 AMULE_DAEMON_FALSE=
18254 if test x$AMULECMD = xyes; then
18255 COMPILE_CMD_TRUE=
18256 COMPILE_CMD_FALSE='#'
18257 else
18258 COMPILE_CMD_TRUE='#'
18259 COMPILE_CMD_FALSE=
18264 if test x$MONOLITHIC = xyes; then
18265 MONOLITHIC_TRUE=
18266 MONOLITHIC_FALSE='#'
18267 else
18268 MONOLITHIC_TRUE='#'
18269 MONOLITHIC_FALSE=
18274 if test x$ENABLE_UPNP = xyes -a x$SYS != xwin32; then
18275 ENABLE_UPNP_TRUE=
18276 ENABLE_UPNP_FALSE='#'
18277 else
18278 ENABLE_UPNP_TRUE='#'
18279 ENABLE_UPNP_FALSE=
18284 if test x$ENABLE_IP2COUNTRY = xyes; then
18285 ENABLE_IP2COUNTRY_TRUE=
18286 ENABLE_IP2COUNTRY_FALSE='#'
18287 else
18288 ENABLE_IP2COUNTRY_TRUE='#'
18289 ENABLE_IP2COUNTRY_FALSE=
18294 if test x$SYS = xwin32; then
18295 SYS_WIN32_TRUE=
18296 SYS_WIN32_FALSE='#'
18297 else
18298 SYS_WIN32_TRUE='#'
18299 SYS_WIN32_FALSE=
18304 if test x$SYS = xwin32 -a "$RC" != ":"; then
18305 NEED_RC_TRUE=
18306 NEED_RC_FALSE='#'
18307 else
18308 NEED_RC_TRUE='#'
18309 NEED_RC_FALSE=
18314 if test x$SYS = xdarwin; then
18315 NEED_CORESERVICES_TRUE=
18316 NEED_CORESERVICES_FALSE='#'
18317 else
18318 NEED_CORESERVICES_TRUE='#'
18319 NEED_CORESERVICES_FALSE=
18324 if test x$USE_NLS = xyes; then
18325 COMPILE_NLS_TRUE=
18326 COMPILE_NLS_FALSE='#'
18327 else
18328 COMPILE_NLS_TRUE='#'
18329 COMPILE_NLS_FALSE=
18334 if test x$HAVE_FLEX_EXTENDED = xyes; then
18335 GENERATE_FLEX_HEADER_TRUE=
18336 GENERATE_FLEX_HEADER_FALSE='#'
18337 else
18338 GENERATE_FLEX_HEADER_TRUE='#'
18339 GENERATE_FLEX_HEADER_FALSE=
18343 # Check for readline library
18344 if test x$AMULECMD = xyes -o x$WEB = xyes; then
18346 echo "$as_me:$LINENO: checking for a readline compatible library" >&5
18347 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6
18348 if test "${vl_cv_lib_readline+set}" = set; then
18349 echo $ECHO_N "(cached) $ECHO_C" >&6
18350 else
18352 ORIG_LIBS="$LIBS"
18353 for readline_lib in readline edit editline; do
18354 for termcap_lib in "" termcap curses ncurses; do
18355 if test -z "$termcap_lib"; then
18356 TRY_LIB="-l$readline_lib"
18357 else
18358 TRY_LIB="-l$readline_lib -l$termcap_lib"
18360 LIBS="$ORIG_LIBS $TRY_LIB"
18361 cat >conftest.$ac_ext <<_ACEOF
18362 /* confdefs.h. */
18363 _ACEOF
18364 cat confdefs.h >>conftest.$ac_ext
18365 cat >>conftest.$ac_ext <<_ACEOF
18366 /* end confdefs.h. */
18368 /* Override any gcc2 internal prototype to avoid an error. */
18369 #ifdef __cplusplus
18370 extern "C"
18371 #endif
18372 /* We use char because int might match the return type of a gcc2
18373 builtin and then its argument prototype would still apply. */
18374 char readline ();
18376 main ()
18378 readline ();
18380 return 0;
18382 _ACEOF
18383 rm -f conftest.$ac_objext conftest$ac_exeext
18384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18385 (eval $ac_link) 2>conftest.er1
18386 ac_status=$?
18387 grep -v '^ *+' conftest.er1 >conftest.err
18388 rm -f conftest.er1
18389 cat conftest.err >&5
18390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391 (exit $ac_status); } &&
18392 { ac_try='test -z "$ac_c_werror_flag"
18393 || test ! -s conftest.err'
18394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18395 (eval $ac_try) 2>&5
18396 ac_status=$?
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); }; } &&
18399 { ac_try='test -s conftest$ac_exeext'
18400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18401 (eval $ac_try) 2>&5
18402 ac_status=$?
18403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404 (exit $ac_status); }; }; then
18405 vl_cv_lib_readline="$TRY_LIB"
18406 else
18407 echo "$as_me: failed program was:" >&5
18408 sed 's/^/| /' conftest.$ac_ext >&5
18411 rm -f conftest.err conftest.$ac_objext \
18412 conftest$ac_exeext conftest.$ac_ext
18413 if test -n "$vl_cv_lib_readline"; then
18414 break
18416 done
18417 if test -n "$vl_cv_lib_readline"; then
18418 break
18420 done
18421 if test -z "$vl_cv_lib_readline"; then
18422 vl_cv_lib_readline="no"
18423 LIBS="$ORIG_LIBS"
18424 READLINE_LIBS=""
18425 else
18426 READLINE_LIBS="$vl_cv_lib_readline"
18430 echo "$as_me:$LINENO: result: $vl_cv_lib_readline" >&5
18431 echo "${ECHO_T}$vl_cv_lib_readline" >&6
18433 if test "$vl_cv_lib_readline" != "no"; then
18435 cat >>confdefs.h <<\_ACEOF
18436 #define HAVE_LIBREADLINE 1
18437 _ACEOF
18441 for ac_header in readline.h readline/readline.h
18443 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18445 echo "$as_me:$LINENO: checking for $ac_header" >&5
18446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18448 echo $ECHO_N "(cached) $ECHO_C" >&6
18450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18452 else
18453 # Is the header compilable?
18454 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18455 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18456 cat >conftest.$ac_ext <<_ACEOF
18457 /* confdefs.h. */
18458 _ACEOF
18459 cat confdefs.h >>conftest.$ac_ext
18460 cat >>conftest.$ac_ext <<_ACEOF
18461 /* end confdefs.h. */
18462 $ac_includes_default
18463 #include <$ac_header>
18464 _ACEOF
18465 rm -f conftest.$ac_objext
18466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18467 (eval $ac_compile) 2>conftest.er1
18468 ac_status=$?
18469 grep -v '^ *+' conftest.er1 >conftest.err
18470 rm -f conftest.er1
18471 cat conftest.err >&5
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); } &&
18474 { ac_try='test -z "$ac_c_werror_flag"
18475 || test ! -s conftest.err'
18476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18477 (eval $ac_try) 2>&5
18478 ac_status=$?
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); }; } &&
18481 { ac_try='test -s conftest.$ac_objext'
18482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18483 (eval $ac_try) 2>&5
18484 ac_status=$?
18485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486 (exit $ac_status); }; }; then
18487 ac_header_compiler=yes
18488 else
18489 echo "$as_me: failed program was:" >&5
18490 sed 's/^/| /' conftest.$ac_ext >&5
18492 ac_header_compiler=no
18494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18495 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18496 echo "${ECHO_T}$ac_header_compiler" >&6
18498 # Is the header present?
18499 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18500 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18501 cat >conftest.$ac_ext <<_ACEOF
18502 /* confdefs.h. */
18503 _ACEOF
18504 cat confdefs.h >>conftest.$ac_ext
18505 cat >>conftest.$ac_ext <<_ACEOF
18506 /* end confdefs.h. */
18507 #include <$ac_header>
18508 _ACEOF
18509 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18510 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18511 ac_status=$?
18512 grep -v '^ *+' conftest.er1 >conftest.err
18513 rm -f conftest.er1
18514 cat conftest.err >&5
18515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516 (exit $ac_status); } >/dev/null; then
18517 if test -s conftest.err; then
18518 ac_cpp_err=$ac_c_preproc_warn_flag
18519 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18520 else
18521 ac_cpp_err=
18523 else
18524 ac_cpp_err=yes
18526 if test -z "$ac_cpp_err"; then
18527 ac_header_preproc=yes
18528 else
18529 echo "$as_me: failed program was:" >&5
18530 sed 's/^/| /' conftest.$ac_ext >&5
18532 ac_header_preproc=no
18534 rm -f conftest.err conftest.$ac_ext
18535 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18536 echo "${ECHO_T}$ac_header_preproc" >&6
18538 # So? What about this header?
18539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18540 yes:no: )
18541 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18542 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18544 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18545 ac_header_preproc=yes
18547 no:yes:* )
18548 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18549 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18550 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18551 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18552 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18553 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18554 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18555 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18557 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18558 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18559 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18561 cat <<\_ASBOX
18562 ## ------------------------------ ##
18563 ## Report this to admin@amule.org ##
18564 ## ------------------------------ ##
18565 _ASBOX
18567 sed "s/^/$as_me: WARNING: /" >&2
18569 esac
18570 echo "$as_me:$LINENO: checking for $ac_header" >&5
18571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18573 echo $ECHO_N "(cached) $ECHO_C" >&6
18574 else
18575 eval "$as_ac_Header=\$ac_header_preproc"
18577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18578 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18582 cat >>confdefs.h <<_ACEOF
18583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18584 _ACEOF
18588 done
18590 echo "$as_me:$LINENO: checking whether readline supports history" >&5
18591 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6
18592 if test "${vl_cv_lib_readline_history+set}" = set; then
18593 echo $ECHO_N "(cached) $ECHO_C" >&6
18594 else
18596 vl_cv_lib_readline_history="no"
18597 cat >conftest.$ac_ext <<_ACEOF
18598 /* confdefs.h. */
18599 _ACEOF
18600 cat confdefs.h >>conftest.$ac_ext
18601 cat >>conftest.$ac_ext <<_ACEOF
18602 /* end confdefs.h. */
18604 /* Override any gcc2 internal prototype to avoid an error. */
18605 #ifdef __cplusplus
18606 extern "C"
18607 #endif
18608 /* We use char because int might match the return type of a gcc2
18609 builtin and then its argument prototype would still apply. */
18610 char add_history ();
18612 main ()
18614 add_history ();
18616 return 0;
18618 _ACEOF
18619 rm -f conftest.$ac_objext conftest$ac_exeext
18620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18621 (eval $ac_link) 2>conftest.er1
18622 ac_status=$?
18623 grep -v '^ *+' conftest.er1 >conftest.err
18624 rm -f conftest.er1
18625 cat conftest.err >&5
18626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627 (exit $ac_status); } &&
18628 { ac_try='test -z "$ac_c_werror_flag"
18629 || test ! -s conftest.err'
18630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18631 (eval $ac_try) 2>&5
18632 ac_status=$?
18633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634 (exit $ac_status); }; } &&
18635 { ac_try='test -s conftest$ac_exeext'
18636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18637 (eval $ac_try) 2>&5
18638 ac_status=$?
18639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640 (exit $ac_status); }; }; then
18641 vl_cv_lib_readline_history="yes"
18642 else
18643 echo "$as_me: failed program was:" >&5
18644 sed 's/^/| /' conftest.$ac_ext >&5
18647 rm -f conftest.err conftest.$ac_objext \
18648 conftest$ac_exeext conftest.$ac_ext
18651 echo "$as_me:$LINENO: result: $vl_cv_lib_readline_history" >&5
18652 echo "${ECHO_T}$vl_cv_lib_readline_history" >&6
18653 if test "$vl_cv_lib_readline_history" = "yes"; then
18655 cat >>confdefs.h <<\_ACEOF
18656 #define HAVE_READLINE_HISTORY 1
18657 _ACEOF
18661 for ac_header in history.h readline/history.h
18663 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18665 echo "$as_me:$LINENO: checking for $ac_header" >&5
18666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18668 echo $ECHO_N "(cached) $ECHO_C" >&6
18670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18671 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18672 else
18673 # Is the header compilable?
18674 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18675 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18676 cat >conftest.$ac_ext <<_ACEOF
18677 /* confdefs.h. */
18678 _ACEOF
18679 cat confdefs.h >>conftest.$ac_ext
18680 cat >>conftest.$ac_ext <<_ACEOF
18681 /* end confdefs.h. */
18682 $ac_includes_default
18683 #include <$ac_header>
18684 _ACEOF
18685 rm -f conftest.$ac_objext
18686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18687 (eval $ac_compile) 2>conftest.er1
18688 ac_status=$?
18689 grep -v '^ *+' conftest.er1 >conftest.err
18690 rm -f conftest.er1
18691 cat conftest.err >&5
18692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693 (exit $ac_status); } &&
18694 { ac_try='test -z "$ac_c_werror_flag"
18695 || test ! -s conftest.err'
18696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18697 (eval $ac_try) 2>&5
18698 ac_status=$?
18699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18700 (exit $ac_status); }; } &&
18701 { ac_try='test -s conftest.$ac_objext'
18702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18703 (eval $ac_try) 2>&5
18704 ac_status=$?
18705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706 (exit $ac_status); }; }; then
18707 ac_header_compiler=yes
18708 else
18709 echo "$as_me: failed program was:" >&5
18710 sed 's/^/| /' conftest.$ac_ext >&5
18712 ac_header_compiler=no
18714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18715 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18716 echo "${ECHO_T}$ac_header_compiler" >&6
18718 # Is the header present?
18719 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18720 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18721 cat >conftest.$ac_ext <<_ACEOF
18722 /* confdefs.h. */
18723 _ACEOF
18724 cat confdefs.h >>conftest.$ac_ext
18725 cat >>conftest.$ac_ext <<_ACEOF
18726 /* end confdefs.h. */
18727 #include <$ac_header>
18728 _ACEOF
18729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18731 ac_status=$?
18732 grep -v '^ *+' conftest.er1 >conftest.err
18733 rm -f conftest.er1
18734 cat conftest.err >&5
18735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736 (exit $ac_status); } >/dev/null; then
18737 if test -s conftest.err; then
18738 ac_cpp_err=$ac_c_preproc_warn_flag
18739 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18740 else
18741 ac_cpp_err=
18743 else
18744 ac_cpp_err=yes
18746 if test -z "$ac_cpp_err"; then
18747 ac_header_preproc=yes
18748 else
18749 echo "$as_me: failed program was:" >&5
18750 sed 's/^/| /' conftest.$ac_ext >&5
18752 ac_header_preproc=no
18754 rm -f conftest.err conftest.$ac_ext
18755 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18756 echo "${ECHO_T}$ac_header_preproc" >&6
18758 # So? What about this header?
18759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18760 yes:no: )
18761 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18762 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18764 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18765 ac_header_preproc=yes
18767 no:yes:* )
18768 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18769 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18770 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18771 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18772 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18773 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18774 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18775 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18777 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18778 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18779 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18781 cat <<\_ASBOX
18782 ## ------------------------------ ##
18783 ## Report this to admin@amule.org ##
18784 ## ------------------------------ ##
18785 _ASBOX
18787 sed "s/^/$as_me: WARNING: /" >&2
18789 esac
18790 echo "$as_me:$LINENO: checking for $ac_header" >&5
18791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18793 echo $ECHO_N "(cached) $ECHO_C" >&6
18794 else
18795 eval "$as_ac_Header=\$ac_header_preproc"
18797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18802 cat >>confdefs.h <<_ACEOF
18803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18804 _ACEOF
18808 done
18813 LIBS="$ORIG_LIBS"
18817 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
18820 # Check whether --enable-ccache or --disable-ccache was given.
18821 if test "${enable_ccache+set}" = set; then
18822 enableval="$enable_ccache"
18827 # Check whether --with-ccache-prefix or --without-ccache-prefix was given.
18828 if test "${with_ccache_prefix+set}" = set; then
18829 withval="$with_ccache_prefix"
18833 echo "$as_me:$LINENO: checking whether ccache support should be added" >&5
18834 echo $ECHO_N "checking whether ccache support should be added... $ECHO_C" >&6
18835 echo "$as_me:$LINENO: result: ${enable_ccache:-no}" >&5
18836 echo "${ECHO_T}${enable_ccache:-no}" >&6
18838 if test ${enable_ccache:-no} = yes; then
18840 echo "$as_me:$LINENO: checking for ccache presence" >&5
18841 echo $ECHO_N "checking for ccache presence... $ECHO_C" >&6
18842 if test -z "$with_ccache_prefix"; then
18844 ccache_full=`which ccache`
18845 with_ccache_prefix=`dirname ${ccache_full}`
18849 if $with_ccache_prefix/ccache -V >/dev/null 2>&1; then
18851 echo "$as_me:$LINENO: result: yes" >&5
18852 echo "${ECHO_T}yes" >&6
18853 CC="$with_ccache_prefix/ccache $CC"
18854 CXX="$with_ccache_prefix/ccache $CXX"
18855 BUILD_CC="$with_ccache_prefix/ccache $BUILD_CC"
18857 else
18859 echo "$as_me:$LINENO: result: no" >&5
18860 echo "${ECHO_T}no" >&6
18869 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"
18871 ac_config_files="$ac_config_files po/Makefile.in Compilation.flags"
18873 if test x$SYS = xwin32; then
18874 ac_config_files="$ac_config_files version.rc"
18878 cat >confcache <<\_ACEOF
18879 # This file is a shell script that caches the results of configure
18880 # tests run on this system so they can be shared between configure
18881 # scripts and configure runs, see configure's option --config-cache.
18882 # It is not useful on other systems. If it contains results you don't
18883 # want to keep, you may remove or edit it.
18885 # config.status only pays attention to the cache file if you give it
18886 # the --recheck option to rerun configure.
18888 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18889 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18890 # following values.
18892 _ACEOF
18894 # The following way of writing the cache mishandles newlines in values,
18895 # but we know of no workaround that is simple, portable, and efficient.
18896 # So, don't put newlines in cache variables' values.
18897 # Ultrix sh set writes to stderr and can't be redirected directly,
18898 # and sets the high bit in the cache file unless we assign to the vars.
18900 (set) 2>&1 |
18901 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18902 *ac_space=\ *)
18903 # `set' does not quote correctly, so add quotes (double-quote
18904 # substitution turns \\\\ into \\, and sed turns \\ into \).
18905 sed -n \
18906 "s/'/'\\\\''/g;
18907 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18910 # `set' quotes correctly as required by POSIX, so do not add quotes.
18911 sed -n \
18912 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18914 esac;
18916 sed '
18917 t clear
18918 : clear
18919 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18920 t end
18921 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18922 : end' >>confcache
18923 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18924 if test -w $cache_file; then
18925 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18926 cat confcache >$cache_file
18927 else
18928 echo "not updating unwritable cache $cache_file"
18931 rm -f confcache
18933 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18934 # Let make expand exec_prefix.
18935 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18937 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18938 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18939 # trailing colons and then remove the whole line if VPATH becomes empty
18940 # (actually we leave an empty line to preserve line numbers).
18941 if test "x$srcdir" = x.; then
18942 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18943 s/:*\$(srcdir):*/:/;
18944 s/:*\${srcdir}:*/:/;
18945 s/:*@srcdir@:*/:/;
18946 s/^\([^=]*=[ ]*\):*/\1/;
18947 s/:*$//;
18948 s/^[^=]*=[ ]*$//;
18952 DEFS=-DHAVE_CONFIG_H
18954 ac_libobjs=
18955 ac_ltlibobjs=
18956 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18957 # 1. Remove the extension, and $U if already installed.
18958 ac_i=`echo "$ac_i" |
18959 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18960 # 2. Add them.
18961 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18962 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18963 done
18964 LIBOBJS=$ac_libobjs
18966 LTLIBOBJS=$ac_ltlibobjs
18969 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18970 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
18971 Usually this means the macro was only invoked conditionally." >&5
18972 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
18973 Usually this means the macro was only invoked conditionally." >&2;}
18974 { (exit 1); exit 1; }; }
18976 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18977 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
18978 Usually this means the macro was only invoked conditionally." >&5
18979 echo "$as_me: error: conditional \"AMDEP\" was never defined.
18980 Usually this means the macro was only invoked conditionally." >&2;}
18981 { (exit 1); exit 1; }; }
18983 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18984 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
18985 Usually this means the macro was only invoked conditionally." >&5
18986 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
18987 Usually this means the macro was only invoked conditionally." >&2;}
18988 { (exit 1); exit 1; }; }
18990 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18991 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
18992 Usually this means the macro was only invoked conditionally." >&5
18993 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
18994 Usually this means the macro was only invoked conditionally." >&2;}
18995 { (exit 1); exit 1; }; }
18997 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
18998 { { echo "$as_me:$LINENO: error: conditional \"WEB\" was never defined.
18999 Usually this means the macro was only invoked conditionally." >&5
19000 echo "$as_me: error: conditional \"WEB\" was never defined.
19001 Usually this means the macro was only invoked conditionally." >&2;}
19002 { (exit 1); exit 1; }; }
19004 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
19005 { { echo "$as_me:$LINENO: error: conditional \"ED2K\" was never defined.
19006 Usually this means the macro was only invoked conditionally." >&5
19007 echo "$as_me: error: conditional \"ED2K\" was never defined.
19008 Usually this means the macro was only invoked conditionally." >&2;}
19009 { (exit 1); exit 1; }; }
19011 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
19012 { { echo "$as_me:$LINENO: error: conditional \"CAS\" was never defined.
19013 Usually this means the macro was only invoked conditionally." >&5
19014 echo "$as_me: error: conditional \"CAS\" was never defined.
19015 Usually this means the macro was only invoked conditionally." >&2;}
19016 { (exit 1); exit 1; }; }
19018 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
19019 { { echo "$as_me:$LINENO: error: conditional \"WXCAS\" was never defined.
19020 Usually this means the macro was only invoked conditionally." >&5
19021 echo "$as_me: error: conditional \"WXCAS\" was never defined.
19022 Usually this means the macro was only invoked conditionally." >&2;}
19023 { (exit 1); exit 1; }; }
19025 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
19026 { { echo "$as_me:$LINENO: error: conditional \"ALC\" was never defined.
19027 Usually this means the macro was only invoked conditionally." >&5
19028 echo "$as_me: error: conditional \"ALC\" was never defined.
19029 Usually this means the macro was only invoked conditionally." >&2;}
19030 { (exit 1); exit 1; }; }
19032 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
19033 { { echo "$as_me:$LINENO: error: conditional \"ALCC\" was never defined.
19034 Usually this means the macro was only invoked conditionally." >&5
19035 echo "$as_me: error: conditional \"ALCC\" was never defined.
19036 Usually this means the macro was only invoked conditionally." >&2;}
19037 { (exit 1); exit 1; }; }
19039 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
19040 { { echo "$as_me:$LINENO: error: conditional \"AMULE_GUI\" was never defined.
19041 Usually this means the macro was only invoked conditionally." >&5
19042 echo "$as_me: error: conditional \"AMULE_GUI\" was never defined.
19043 Usually this means the macro was only invoked conditionally." >&2;}
19044 { (exit 1); exit 1; }; }
19046 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
19047 { { echo "$as_me:$LINENO: error: conditional \"AMULE_DAEMON\" was never defined.
19048 Usually this means the macro was only invoked conditionally." >&5
19049 echo "$as_me: error: conditional \"AMULE_DAEMON\" was never defined.
19050 Usually this means the macro was only invoked conditionally." >&2;}
19051 { (exit 1); exit 1; }; }
19053 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
19054 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_CMD\" was never defined.
19055 Usually this means the macro was only invoked conditionally." >&5
19056 echo "$as_me: error: conditional \"COMPILE_CMD\" was never defined.
19057 Usually this means the macro was only invoked conditionally." >&2;}
19058 { (exit 1); exit 1; }; }
19060 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
19061 { { echo "$as_me:$LINENO: error: conditional \"MONOLITHIC\" was never defined.
19062 Usually this means the macro was only invoked conditionally." >&5
19063 echo "$as_me: error: conditional \"MONOLITHIC\" was never defined.
19064 Usually this means the macro was only invoked conditionally." >&2;}
19065 { (exit 1); exit 1; }; }
19067 if test -z "${ENABLE_UPNP_TRUE}" && test -z "${ENABLE_UPNP_FALSE}"; then
19068 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_UPNP\" was never defined.
19069 Usually this means the macro was only invoked conditionally." >&5
19070 echo "$as_me: error: conditional \"ENABLE_UPNP\" was never defined.
19071 Usually this means the macro was only invoked conditionally." >&2;}
19072 { (exit 1); exit 1; }; }
19074 if test -z "${ENABLE_IP2COUNTRY_TRUE}" && test -z "${ENABLE_IP2COUNTRY_FALSE}"; then
19075 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
19076 Usually this means the macro was only invoked conditionally." >&5
19077 echo "$as_me: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
19078 Usually this means the macro was only invoked conditionally." >&2;}
19079 { (exit 1); exit 1; }; }
19081 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
19082 { { echo "$as_me:$LINENO: error: conditional \"SYS_WIN32\" was never defined.
19083 Usually this means the macro was only invoked conditionally." >&5
19084 echo "$as_me: error: conditional \"SYS_WIN32\" was never defined.
19085 Usually this means the macro was only invoked conditionally." >&2;}
19086 { (exit 1); exit 1; }; }
19088 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
19089 { { echo "$as_me:$LINENO: error: conditional \"NEED_RC\" was never defined.
19090 Usually this means the macro was only invoked conditionally." >&5
19091 echo "$as_me: error: conditional \"NEED_RC\" was never defined.
19092 Usually this means the macro was only invoked conditionally." >&2;}
19093 { (exit 1); exit 1; }; }
19095 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
19096 { { echo "$as_me:$LINENO: error: conditional \"NEED_CORESERVICES\" was never defined.
19097 Usually this means the macro was only invoked conditionally." >&5
19098 echo "$as_me: error: conditional \"NEED_CORESERVICES\" was never defined.
19099 Usually this means the macro was only invoked conditionally." >&2;}
19100 { (exit 1); exit 1; }; }
19102 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
19103 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_NLS\" was never defined.
19104 Usually this means the macro was only invoked conditionally." >&5
19105 echo "$as_me: error: conditional \"COMPILE_NLS\" was never defined.
19106 Usually this means the macro was only invoked conditionally." >&2;}
19107 { (exit 1); exit 1; }; }
19109 if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then
19110 { { echo "$as_me:$LINENO: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19111 Usually this means the macro was only invoked conditionally." >&5
19112 echo "$as_me: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19113 Usually this means the macro was only invoked conditionally." >&2;}
19114 { (exit 1); exit 1; }; }
19117 : ${CONFIG_STATUS=./config.status}
19118 ac_clean_files_save=$ac_clean_files
19119 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19120 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19121 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19122 cat >$CONFIG_STATUS <<_ACEOF
19123 #! $SHELL
19124 # Generated by $as_me.
19125 # Run this file to recreate the current configuration.
19126 # Compiler output produced by configure, useful for debugging
19127 # configure, is in config.log if it exists.
19129 debug=false
19130 ac_cs_recheck=false
19131 ac_cs_silent=false
19132 SHELL=\${CONFIG_SHELL-$SHELL}
19133 _ACEOF
19135 cat >>$CONFIG_STATUS <<\_ACEOF
19136 ## --------------------- ##
19137 ## M4sh Initialization. ##
19138 ## --------------------- ##
19140 # Be Bourne compatible
19141 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19142 emulate sh
19143 NULLCMD=:
19144 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19145 # is contrary to our usage. Disable this feature.
19146 alias -g '${1+"$@"}'='"$@"'
19147 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19148 set -o posix
19150 DUALCASE=1; export DUALCASE # for MKS sh
19152 # Support unset when possible.
19153 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19154 as_unset=unset
19155 else
19156 as_unset=false
19160 # Work around bugs in pre-3.0 UWIN ksh.
19161 $as_unset ENV MAIL MAILPATH
19162 PS1='$ '
19163 PS2='> '
19164 PS4='+ '
19166 # NLS nuisances.
19167 for as_var in \
19168 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19169 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19170 LC_TELEPHONE LC_TIME
19172 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19173 eval $as_var=C; export $as_var
19174 else
19175 $as_unset $as_var
19177 done
19179 # Required to use basename.
19180 if expr a : '\(a\)' >/dev/null 2>&1; then
19181 as_expr=expr
19182 else
19183 as_expr=false
19186 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19187 as_basename=basename
19188 else
19189 as_basename=false
19193 # Name of the executable.
19194 as_me=`$as_basename "$0" ||
19195 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19196 X"$0" : 'X\(//\)$' \| \
19197 X"$0" : 'X\(/\)$' \| \
19198 . : '\(.\)' 2>/dev/null ||
19199 echo X/"$0" |
19200 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19201 /^X\/\(\/\/\)$/{ s//\1/; q; }
19202 /^X\/\(\/\).*/{ s//\1/; q; }
19203 s/.*/./; q'`
19206 # PATH needs CR, and LINENO needs CR and PATH.
19207 # Avoid depending upon Character Ranges.
19208 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19209 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19210 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19211 as_cr_digits='0123456789'
19212 as_cr_alnum=$as_cr_Letters$as_cr_digits
19214 # The user is always right.
19215 if test "${PATH_SEPARATOR+set}" != set; then
19216 echo "#! /bin/sh" >conf$$.sh
19217 echo "exit 0" >>conf$$.sh
19218 chmod +x conf$$.sh
19219 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19220 PATH_SEPARATOR=';'
19221 else
19222 PATH_SEPARATOR=:
19224 rm -f conf$$.sh
19228 as_lineno_1=$LINENO
19229 as_lineno_2=$LINENO
19230 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19231 test "x$as_lineno_1" != "x$as_lineno_2" &&
19232 test "x$as_lineno_3" = "x$as_lineno_2" || {
19233 # Find who we are. Look in the path if we contain no path at all
19234 # relative or not.
19235 case $0 in
19236 *[\\/]* ) as_myself=$0 ;;
19237 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19238 for as_dir in $PATH
19240 IFS=$as_save_IFS
19241 test -z "$as_dir" && as_dir=.
19242 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19243 done
19246 esac
19247 # We did not find ourselves, most probably we were run as `sh COMMAND'
19248 # in which case we are not to be found in the path.
19249 if test "x$as_myself" = x; then
19250 as_myself=$0
19252 if test ! -f "$as_myself"; then
19253 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19254 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19255 { (exit 1); exit 1; }; }
19257 case $CONFIG_SHELL in
19259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19260 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19262 IFS=$as_save_IFS
19263 test -z "$as_dir" && as_dir=.
19264 for as_base in sh bash ksh sh5; do
19265 case $as_dir in
19267 if ("$as_dir/$as_base" -c '
19268 as_lineno_1=$LINENO
19269 as_lineno_2=$LINENO
19270 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19271 test "x$as_lineno_1" != "x$as_lineno_2" &&
19272 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19273 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19274 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19275 CONFIG_SHELL=$as_dir/$as_base
19276 export CONFIG_SHELL
19277 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19278 fi;;
19279 esac
19280 done
19281 done
19283 esac
19285 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19286 # uniformly replaced by the line number. The first 'sed' inserts a
19287 # line-number line before each line; the second 'sed' does the real
19288 # work. The second script uses 'N' to pair each line-number line
19289 # with the numbered line, and appends trailing '-' during
19290 # substitution so that $LINENO is not a special case at line end.
19291 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19292 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19293 sed '=' <$as_myself |
19294 sed '
19296 s,$,-,
19297 : loop
19298 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19299 t loop
19300 s,-$,,
19301 s,^['$as_cr_digits']*\n,,
19302 ' >$as_me.lineno &&
19303 chmod +x $as_me.lineno ||
19304 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19305 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19306 { (exit 1); exit 1; }; }
19308 # Don't try to exec as it changes $[0], causing all sort of problems
19309 # (the dirname of $[0] is not the place where we might find the
19310 # original and so on. Autoconf is especially sensible to this).
19311 . ./$as_me.lineno
19312 # Exit status is that of the last command.
19313 exit
19317 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19318 *c*,-n*) ECHO_N= ECHO_C='
19319 ' ECHO_T=' ' ;;
19320 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19321 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19322 esac
19324 if expr a : '\(a\)' >/dev/null 2>&1; then
19325 as_expr=expr
19326 else
19327 as_expr=false
19330 rm -f conf$$ conf$$.exe conf$$.file
19331 echo >conf$$.file
19332 if ln -s conf$$.file conf$$ 2>/dev/null; then
19333 # We could just check for DJGPP; but this test a) works b) is more generic
19334 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19335 if test -f conf$$.exe; then
19336 # Don't use ln at all; we don't have any links
19337 as_ln_s='cp -p'
19338 else
19339 as_ln_s='ln -s'
19341 elif ln conf$$.file conf$$ 2>/dev/null; then
19342 as_ln_s=ln
19343 else
19344 as_ln_s='cp -p'
19346 rm -f conf$$ conf$$.exe conf$$.file
19348 if mkdir -p . 2>/dev/null; then
19349 as_mkdir_p=:
19350 else
19351 test -d ./-p && rmdir ./-p
19352 as_mkdir_p=false
19355 as_executable_p="test -f"
19357 # Sed expression to map a string onto a valid CPP name.
19358 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19360 # Sed expression to map a string onto a valid variable name.
19361 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19364 # IFS
19365 # We need space, tab and new line, in precisely that order.
19366 as_nl='
19368 IFS=" $as_nl"
19370 # CDPATH.
19371 $as_unset CDPATH
19373 exec 6>&1
19375 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19376 # report actual input values of CONFIG_FILES etc. instead of their
19377 # values after options handling. Logging --version etc. is OK.
19378 exec 5>>config.log
19380 echo
19381 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19382 ## Running $as_me. ##
19383 _ASBOX
19384 } >&5
19385 cat >&5 <<_CSEOF
19387 This file was extended by aMule $as_me SVN, which was
19388 generated by GNU Autoconf 2.59. Invocation command line was
19390 CONFIG_FILES = $CONFIG_FILES
19391 CONFIG_HEADERS = $CONFIG_HEADERS
19392 CONFIG_LINKS = $CONFIG_LINKS
19393 CONFIG_COMMANDS = $CONFIG_COMMANDS
19394 $ $0 $@
19396 _CSEOF
19397 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19398 echo >&5
19399 _ACEOF
19401 # Files that config.status was made for.
19402 if test -n "$ac_config_files"; then
19403 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19406 if test -n "$ac_config_headers"; then
19407 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19410 if test -n "$ac_config_links"; then
19411 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19414 if test -n "$ac_config_commands"; then
19415 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19418 cat >>$CONFIG_STATUS <<\_ACEOF
19420 ac_cs_usage="\
19421 \`$as_me' instantiates files from templates according to the
19422 current configuration.
19424 Usage: $0 [OPTIONS] [FILE]...
19426 -h, --help print this help, then exit
19427 -V, --version print version number, then exit
19428 -q, --quiet do not print progress messages
19429 -d, --debug don't remove temporary files
19430 --recheck update $as_me by reconfiguring in the same conditions
19431 --file=FILE[:TEMPLATE]
19432 instantiate the configuration file FILE
19433 --header=FILE[:TEMPLATE]
19434 instantiate the configuration header FILE
19436 Configuration files:
19437 $config_files
19439 Configuration headers:
19440 $config_headers
19442 Configuration commands:
19443 $config_commands
19445 Report bugs to <bug-autoconf@gnu.org>."
19446 _ACEOF
19448 cat >>$CONFIG_STATUS <<_ACEOF
19449 ac_cs_version="\\
19450 aMule config.status SVN
19451 configured by $0, generated by GNU Autoconf 2.59,
19452 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19454 Copyright (C) 2003 Free Software Foundation, Inc.
19455 This config.status script is free software; the Free Software Foundation
19456 gives unlimited permission to copy, distribute and modify it."
19457 srcdir=$srcdir
19458 INSTALL="$INSTALL"
19459 _ACEOF
19461 cat >>$CONFIG_STATUS <<\_ACEOF
19462 # If no file are specified by the user, then we need to provide default
19463 # value. By we need to know if files were specified by the user.
19464 ac_need_defaults=:
19465 while test $# != 0
19467 case $1 in
19468 --*=*)
19469 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19470 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19471 ac_shift=:
19474 ac_option=$1
19475 ac_optarg=$2
19476 ac_shift=shift
19478 *) # This is not an option, so the user has probably given explicit
19479 # arguments.
19480 ac_option=$1
19481 ac_need_defaults=false;;
19482 esac
19484 case $ac_option in
19485 # Handling of the options.
19486 _ACEOF
19487 cat >>$CONFIG_STATUS <<\_ACEOF
19488 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19489 ac_cs_recheck=: ;;
19490 --version | --vers* | -V )
19491 echo "$ac_cs_version"; exit 0 ;;
19492 --he | --h)
19493 # Conflict between --help and --header
19494 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19495 Try \`$0 --help' for more information." >&5
19496 echo "$as_me: error: ambiguous option: $1
19497 Try \`$0 --help' for more information." >&2;}
19498 { (exit 1); exit 1; }; };;
19499 --help | --hel | -h )
19500 echo "$ac_cs_usage"; exit 0 ;;
19501 --debug | --d* | -d )
19502 debug=: ;;
19503 --file | --fil | --fi | --f )
19504 $ac_shift
19505 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19506 ac_need_defaults=false;;
19507 --header | --heade | --head | --hea )
19508 $ac_shift
19509 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19510 ac_need_defaults=false;;
19511 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19512 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19513 ac_cs_silent=: ;;
19515 # This is an error.
19516 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19517 Try \`$0 --help' for more information." >&5
19518 echo "$as_me: error: unrecognized option: $1
19519 Try \`$0 --help' for more information." >&2;}
19520 { (exit 1); exit 1; }; } ;;
19522 *) ac_config_targets="$ac_config_targets $1" ;;
19524 esac
19525 shift
19526 done
19528 ac_configure_extra_args=
19530 if $ac_cs_silent; then
19531 exec 6>/dev/null
19532 ac_configure_extra_args="$ac_configure_extra_args --silent"
19535 _ACEOF
19536 cat >>$CONFIG_STATUS <<_ACEOF
19537 if \$ac_cs_recheck; then
19538 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19539 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19542 _ACEOF
19544 cat >>$CONFIG_STATUS <<_ACEOF
19546 # INIT-COMMANDS section.
19549 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19550 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
19551 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
19552 # from automake.
19553 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
19554 # Capture the value of LINGUAS because we need it to compute CATALOGS.
19555 LINGUAS="${LINGUAS-%UNSET%}"
19557 denoiserlevel=$with_denoise_level
19559 _ACEOF
19563 cat >>$CONFIG_STATUS <<\_ACEOF
19564 for ac_config_target in $ac_config_targets
19566 case "$ac_config_target" in
19567 # Handling of arguments.
19568 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19569 "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
19570 "docs/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/man/Makefile" ;;
19571 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
19572 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19573 "src/pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pixmaps/Makefile" ;;
19574 "src/pixmaps/flags_xpm/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
19575 "src/libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/Makefile" ;;
19576 "src/libs/ec/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/ec/Makefile" ;;
19577 "src/libs/ec/cpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
19578 "src/libs/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/common/Makefile" ;;
19579 "src/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
19580 "src/utils/aLinkCreator/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
19581 "src/utils/aLinkCreator/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
19582 "src/utils/aLinkCreator/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
19583 "src/utils/cas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/cas/Makefile" ;;
19584 "src/utils/cas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
19585 "src/utils/fileview/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/fileview/Makefile" ;;
19586 "src/utils/wxCas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
19587 "src/utils/wxCas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
19588 "src/utils/wxCas/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
19589 "src/utils/xas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/Makefile" ;;
19590 "src/utils/xas/autostart-xas" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
19591 "src/utils/xas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
19592 "src/skins/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/skins/Makefile" ;;
19593 "src/webserver/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/Makefile" ;;
19594 "src/webserver/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/src/Makefile" ;;
19595 "src/webserver/default/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/default/Makefile" ;;
19596 "src/webserver/php-default/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/php-default/Makefile" ;;
19597 "src/webserver/chicane/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/chicane/Makefile" ;;
19598 "src/webserver/litoral/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/litoral/Makefile" ;;
19599 "unittests/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/Makefile" ;;
19600 "unittests/muleunit/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/muleunit/Makefile" ;;
19601 "unittests/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/tests/Makefile" ;;
19602 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
19603 "Compilation.flags" ) CONFIG_FILES="$CONFIG_FILES Compilation.flags" ;;
19604 "version.rc" ) CONFIG_FILES="$CONFIG_FILES version.rc" ;;
19605 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19606 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
19607 "denoiser" ) CONFIG_COMMANDS="$CONFIG_COMMANDS denoiser" ;;
19608 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19609 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19610 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19611 { (exit 1); exit 1; }; };;
19612 esac
19613 done
19615 # If the user did not use the arguments to specify the items to instantiate,
19616 # then the envvar interface is used. Set only those that are not.
19617 # We use the long form for the default assignment because of an extremely
19618 # bizarre bug on SunOS 4.1.3.
19619 if $ac_need_defaults; then
19620 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19621 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19622 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19625 # Have a temporary directory for convenience. Make it in the build tree
19626 # simply because there is no reason to put it here, and in addition,
19627 # creating and moving files from /tmp can sometimes cause problems.
19628 # Create a temporary directory, and hook for its removal unless debugging.
19629 $debug ||
19631 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19632 trap '{ (exit 1); exit 1; }' 1 2 13 15
19635 # Create a (secure) tmp directory for tmp files.
19638 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19639 test -n "$tmp" && test -d "$tmp"
19640 } ||
19642 tmp=./confstat$$-$RANDOM
19643 (umask 077 && mkdir $tmp)
19644 } ||
19646 echo "$me: cannot create a temporary directory in ." >&2
19647 { (exit 1); exit 1; }
19650 _ACEOF
19652 cat >>$CONFIG_STATUS <<_ACEOF
19655 # CONFIG_FILES section.
19658 # No need to generate the scripts if there are no CONFIG_FILES.
19659 # This happens for instance when ./config.status config.h
19660 if test -n "\$CONFIG_FILES"; then
19661 # Protect against being on the right side of a sed subst in config.status.
19662 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19663 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19664 s,@SHELL@,$SHELL,;t t
19665 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19666 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19667 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19668 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19669 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19670 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19671 s,@exec_prefix@,$exec_prefix,;t t
19672 s,@prefix@,$prefix,;t t
19673 s,@program_transform_name@,$program_transform_name,;t t
19674 s,@bindir@,$bindir,;t t
19675 s,@sbindir@,$sbindir,;t t
19676 s,@libexecdir@,$libexecdir,;t t
19677 s,@datadir@,$datadir,;t t
19678 s,@sysconfdir@,$sysconfdir,;t t
19679 s,@sharedstatedir@,$sharedstatedir,;t t
19680 s,@localstatedir@,$localstatedir,;t t
19681 s,@libdir@,$libdir,;t t
19682 s,@includedir@,$includedir,;t t
19683 s,@oldincludedir@,$oldincludedir,;t t
19684 s,@infodir@,$infodir,;t t
19685 s,@mandir@,$mandir,;t t
19686 s,@build_alias@,$build_alias,;t t
19687 s,@host_alias@,$host_alias,;t t
19688 s,@target_alias@,$target_alias,;t t
19689 s,@DEFS@,$DEFS,;t t
19690 s,@ECHO_C@,$ECHO_C,;t t
19691 s,@ECHO_N@,$ECHO_N,;t t
19692 s,@ECHO_T@,$ECHO_T,;t t
19693 s,@LIBS@,$LIBS,;t t
19694 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19695 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19696 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19697 s,@CYGPATH_W@,$CYGPATH_W,;t t
19698 s,@PACKAGE@,$PACKAGE,;t t
19699 s,@VERSION@,$VERSION,;t t
19700 s,@ACLOCAL@,$ACLOCAL,;t t
19701 s,@AUTOCONF@,$AUTOCONF,;t t
19702 s,@AUTOMAKE@,$AUTOMAKE,;t t
19703 s,@AUTOHEADER@,$AUTOHEADER,;t t
19704 s,@MAKEINFO@,$MAKEINFO,;t t
19705 s,@install_sh@,$install_sh,;t t
19706 s,@STRIP@,$STRIP,;t t
19707 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19708 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
19709 s,@mkdir_p@,$mkdir_p,;t t
19710 s,@AWK@,$AWK,;t t
19711 s,@SET_MAKE@,$SET_MAKE,;t t
19712 s,@am__leading_dot@,$am__leading_dot,;t t
19713 s,@AMTAR@,$AMTAR,;t t
19714 s,@am__tar@,$am__tar,;t t
19715 s,@am__untar@,$am__untar,;t t
19716 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
19717 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
19718 s,@MAINT@,$MAINT,;t t
19719 s,@build@,$build,;t t
19720 s,@build_cpu@,$build_cpu,;t t
19721 s,@build_vendor@,$build_vendor,;t t
19722 s,@build_os@,$build_os,;t t
19723 s,@host@,$host,;t t
19724 s,@host_cpu@,$host_cpu,;t t
19725 s,@host_vendor@,$host_vendor,;t t
19726 s,@host_os@,$host_os,;t t
19727 s,@RESOLV_LIB@,$RESOLV_LIB,;t t
19728 s,@X11LIBS@,$X11LIBS,;t t
19729 s,@MULECPPFLAGS@,$MULECPPFLAGS,;t t
19730 s,@MULECFLAGS@,$MULECFLAGS,;t t
19731 s,@MULECXXFLAGS@,$MULECXXFLAGS,;t t
19732 s,@MULELDFLAGS@,$MULELDFLAGS,;t t
19733 s,@MULERCFLAGS@,$MULERCFLAGS,;t t
19734 s,@CXX@,$CXX,;t t
19735 s,@CXXFLAGS@,$CXXFLAGS,;t t
19736 s,@LDFLAGS@,$LDFLAGS,;t t
19737 s,@CPPFLAGS@,$CPPFLAGS,;t t
19738 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19739 s,@EXEEXT@,$EXEEXT,;t t
19740 s,@OBJEXT@,$OBJEXT,;t t
19741 s,@DEPDIR@,$DEPDIR,;t t
19742 s,@am__include@,$am__include,;t t
19743 s,@am__quote@,$am__quote,;t t
19744 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
19745 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
19746 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
19747 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
19748 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
19749 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
19750 s,@CXXCPP@,$CXXCPP,;t t
19751 s,@CC@,$CC,;t t
19752 s,@CFLAGS@,$CFLAGS,;t t
19753 s,@ac_ct_CC@,$ac_ct_CC,;t t
19754 s,@CCDEPMODE@,$CCDEPMODE,;t t
19755 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
19756 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
19757 s,@CPP@,$CPP,;t t
19758 s,@BUILD_CC@,$BUILD_CC,;t t
19759 s,@ac_ct_BUILD_CC@,$ac_ct_BUILD_CC,;t t
19760 s,@EXEEXT@,$EXEEXT,;t t
19761 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
19762 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
19763 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
19764 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
19765 s,@EGREP@,$EGREP,;t t
19766 s,@LEX@,$LEX,;t t
19767 s,@LEXLIB@,$LEXLIB,;t t
19768 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
19769 s,@RANLIB@,$RANLIB,;t t
19770 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19771 s,@YACC@,$YACC,;t t
19772 s,@AR@,$AR,;t t
19773 s,@ac_ct_AR@,$ac_ct_AR,;t t
19774 s,@LD@,$LD,;t t
19775 s,@ac_ct_LD@,$ac_ct_LD,;t t
19776 s,@ZLIB_CPPFLAGS@,$ZLIB_CPPFLAGS,;t t
19777 s,@ZLIB_LDFLAGS@,$ZLIB_LDFLAGS,;t t
19778 s,@ZLIB_LIBS@,$ZLIB_LIBS,;t t
19779 s,@GDLIB_CONFIG_PATH@,$GDLIB_CONFIG_PATH,;t t
19780 s,@GDLIB_CFLAGS@,$GDLIB_CFLAGS,;t t
19781 s,@GDLIB_LDFLAGS@,$GDLIB_LDFLAGS,;t t
19782 s,@GDLIB_LIBS@,$GDLIB_LIBS,;t t
19783 s,@CAS_DEFS@,$CAS_DEFS,;t t
19784 s,@REGEX_LIBS@,$REGEX_LIBS,;t t
19785 s,@LIBPNG_CONFIG_PATH@,$LIBPNG_CONFIG_PATH,;t t
19786 s,@LIBPNG_CFLAGS@,$LIBPNG_CFLAGS,;t t
19787 s,@LIBPNG_LDFLAGS@,$LIBPNG_LDFLAGS,;t t
19788 s,@LIBPNG_LIBS@,$LIBPNG_LIBS,;t t
19789 s,@AMULEWEB_DEFS@,$AMULEWEB_DEFS,;t t
19790 s,@GEOIP_CPPFLAGS@,$GEOIP_CPPFLAGS,;t t
19791 s,@GEOIP_LDFLAGS@,$GEOIP_LDFLAGS,;t t
19792 s,@GEOIP_LIBS@,$GEOIP_LIBS,;t t
19793 s,@WX_CONFIG_PATH@,$WX_CONFIG_PATH,;t t
19794 s,@WX_CPPFLAGS@,$WX_CPPFLAGS,;t t
19795 s,@WX_CFLAGS@,$WX_CFLAGS,;t t
19796 s,@WX_CXXFLAGS@,$WX_CXXFLAGS,;t t
19797 s,@WX_CFLAGS_ONLY@,$WX_CFLAGS_ONLY,;t t
19798 s,@WX_CXXFLAGS_ONLY@,$WX_CXXFLAGS_ONLY,;t t
19799 s,@WX_LIBS@,$WX_LIBS,;t t
19800 s,@WX_LIBS_STATIC@,$WX_LIBS_STATIC,;t t
19801 s,@WX_VERSION_FULL@,$WX_VERSION_FULL,;t t
19802 s,@WX_RESCOMP@,$WX_RESCOMP,;t t
19803 s,@WX_VERSION_MAJOR@,$WX_VERSION_MAJOR,;t t
19804 s,@WX_VERSION_MINOR@,$WX_VERSION_MINOR,;t t
19805 s,@WX_UNICODE@,$WX_UNICODE,;t t
19806 s,@WX_DEBUG@,$WX_DEBUG,;t t
19807 s,@WX_SHARED@,$WX_SHARED,;t t
19808 s,@WX_PORT@,$WX_PORT,;t t
19809 s,@WXBASE_LIBS@,$WXBASE_LIBS,;t t
19810 s,@WXBASE_CPPFLAGS@,$WXBASE_CPPFLAGS,;t t
19811 s,@RC@,$RC,;t t
19812 s,@RCFLAGS@,$RCFLAGS,;t t
19813 s,@ac_ct_RC@,$ac_ct_RC,;t t
19814 s,@CRYPTOPP_CPPFLAGS@,$CRYPTOPP_CPPFLAGS,;t t
19815 s,@CRYPTOPP_LDFLAGS@,$CRYPTOPP_LDFLAGS,;t t
19816 s,@CRYPTOPP_LIBS@,$CRYPTOPP_LIBS,;t t
19817 s,@BFD_CPPFLAGS@,$BFD_CPPFLAGS,;t t
19818 s,@BFD_LIBS@,$BFD_LIBS,;t t
19819 s,@ALLOCA@,$ALLOCA,;t t
19820 s,@LIBOBJS@,$LIBOBJS,;t t
19821 s,@POW_LIB@,$POW_LIB,;t t
19822 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
19823 s,@MSGFMT@,$MSGFMT,;t t
19824 s,@GMSGFMT@,$GMSGFMT,;t t
19825 s,@XGETTEXT@,$XGETTEXT,;t t
19826 s,@MSGMERGE@,$MSGMERGE,;t t
19827 s,@GLIBC21@,$GLIBC21,;t t
19828 s,@LIBICONV@,$LIBICONV,;t t
19829 s,@LTLIBICONV@,$LTLIBICONV,;t t
19830 s,@INTLBISON@,$INTLBISON,;t t
19831 s,@USE_NLS@,$USE_NLS,;t t
19832 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
19833 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
19834 s,@CATOBJEXT@,$CATOBJEXT,;t t
19835 s,@INTLOBJS@,$INTLOBJS,;t t
19836 s,@DATADIRNAME@,$DATADIRNAME,;t t
19837 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
19838 s,@GENCAT@,$GENCAT,;t t
19839 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
19840 s,@INTLLIBS@,$INTLLIBS,;t t
19841 s,@LIBINTL@,$LIBINTL,;t t
19842 s,@LTLIBINTL@,$LTLIBINTL,;t t
19843 s,@POSUB@,$POSUB,;t t
19844 s,@AMULE_DAEMON_MANPAGES@,$AMULE_DAEMON_MANPAGES,;t t
19845 s,@AMULECMD_MANPAGES@,$AMULECMD_MANPAGES,;t t
19846 s,@WEB_MANPAGES@,$WEB_MANPAGES,;t t
19847 s,@AMULE_GUI_MANPAGES@,$AMULE_GUI_MANPAGES,;t t
19848 s,@CAS_MANPAGES@,$CAS_MANPAGES,;t t
19849 s,@WXCAS_MANPAGES@,$WXCAS_MANPAGES,;t t
19850 s,@ED2K_MANPAGES@,$ED2K_MANPAGES,;t t
19851 s,@ALC_MANPAGES@,$ALC_MANPAGES,;t t
19852 s,@ALCC_MANPAGES@,$ALCC_MANPAGES,;t t
19853 s,@MONOLITHIC_MANPAGES@,$MONOLITHIC_MANPAGES,;t t
19854 s,@INCINTL@,$INCINTL,;t t
19855 s,@docdir@,$docdir,;t t
19856 s,@SVNDATE@,$SVNDATE,;t t
19857 s,@WEB_TRUE@,$WEB_TRUE,;t t
19858 s,@WEB_FALSE@,$WEB_FALSE,;t t
19859 s,@ED2K_TRUE@,$ED2K_TRUE,;t t
19860 s,@ED2K_FALSE@,$ED2K_FALSE,;t t
19861 s,@CAS_TRUE@,$CAS_TRUE,;t t
19862 s,@CAS_FALSE@,$CAS_FALSE,;t t
19863 s,@WXCAS_TRUE@,$WXCAS_TRUE,;t t
19864 s,@WXCAS_FALSE@,$WXCAS_FALSE,;t t
19865 s,@ALC_TRUE@,$ALC_TRUE,;t t
19866 s,@ALC_FALSE@,$ALC_FALSE,;t t
19867 s,@ALCC_TRUE@,$ALCC_TRUE,;t t
19868 s,@ALCC_FALSE@,$ALCC_FALSE,;t t
19869 s,@AMULE_GUI_TRUE@,$AMULE_GUI_TRUE,;t t
19870 s,@AMULE_GUI_FALSE@,$AMULE_GUI_FALSE,;t t
19871 s,@AMULE_DAEMON_TRUE@,$AMULE_DAEMON_TRUE,;t t
19872 s,@AMULE_DAEMON_FALSE@,$AMULE_DAEMON_FALSE,;t t
19873 s,@COMPILE_CMD_TRUE@,$COMPILE_CMD_TRUE,;t t
19874 s,@COMPILE_CMD_FALSE@,$COMPILE_CMD_FALSE,;t t
19875 s,@MONOLITHIC_TRUE@,$MONOLITHIC_TRUE,;t t
19876 s,@MONOLITHIC_FALSE@,$MONOLITHIC_FALSE,;t t
19877 s,@ENABLE_UPNP_TRUE@,$ENABLE_UPNP_TRUE,;t t
19878 s,@ENABLE_UPNP_FALSE@,$ENABLE_UPNP_FALSE,;t t
19879 s,@ENABLE_IP2COUNTRY_TRUE@,$ENABLE_IP2COUNTRY_TRUE,;t t
19880 s,@ENABLE_IP2COUNTRY_FALSE@,$ENABLE_IP2COUNTRY_FALSE,;t t
19881 s,@SYS_WIN32_TRUE@,$SYS_WIN32_TRUE,;t t
19882 s,@SYS_WIN32_FALSE@,$SYS_WIN32_FALSE,;t t
19883 s,@NEED_RC_TRUE@,$NEED_RC_TRUE,;t t
19884 s,@NEED_RC_FALSE@,$NEED_RC_FALSE,;t t
19885 s,@NEED_CORESERVICES_TRUE@,$NEED_CORESERVICES_TRUE,;t t
19886 s,@NEED_CORESERVICES_FALSE@,$NEED_CORESERVICES_FALSE,;t t
19887 s,@COMPILE_NLS_TRUE@,$COMPILE_NLS_TRUE,;t t
19888 s,@COMPILE_NLS_FALSE@,$COMPILE_NLS_FALSE,;t t
19889 s,@GENERATE_FLEX_HEADER_TRUE@,$GENERATE_FLEX_HEADER_TRUE,;t t
19890 s,@GENERATE_FLEX_HEADER_FALSE@,$GENERATE_FLEX_HEADER_FALSE,;t t
19891 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
19892 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19893 CEOF
19895 _ACEOF
19897 cat >>$CONFIG_STATUS <<\_ACEOF
19898 # Split the substitutions into bite-sized pieces for seds with
19899 # small command number limits, like on Digital OSF/1 and HP-UX.
19900 ac_max_sed_lines=48
19901 ac_sed_frag=1 # Number of current file.
19902 ac_beg=1 # First line for current file.
19903 ac_end=$ac_max_sed_lines # Line after last line for current file.
19904 ac_more_lines=:
19905 ac_sed_cmds=
19906 while $ac_more_lines; do
19907 if test $ac_beg -gt 1; then
19908 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19909 else
19910 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19912 if test ! -s $tmp/subs.frag; then
19913 ac_more_lines=false
19914 else
19915 # The purpose of the label and of the branching condition is to
19916 # speed up the sed processing (if there are no `@' at all, there
19917 # is no need to browse any of the substitutions).
19918 # These are the two extra sed commands mentioned above.
19919 (echo ':t
19920 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19921 if test -z "$ac_sed_cmds"; then
19922 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19923 else
19924 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19926 ac_sed_frag=`expr $ac_sed_frag + 1`
19927 ac_beg=$ac_end
19928 ac_end=`expr $ac_end + $ac_max_sed_lines`
19930 done
19931 if test -z "$ac_sed_cmds"; then
19932 ac_sed_cmds=cat
19934 fi # test -n "$CONFIG_FILES"
19936 _ACEOF
19937 cat >>$CONFIG_STATUS <<\_ACEOF
19938 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19939 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19940 case $ac_file in
19941 - | *:- | *:-:* ) # input from stdin
19942 cat >$tmp/stdin
19943 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19944 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19945 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19946 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19947 * ) ac_file_in=$ac_file.in ;;
19948 esac
19950 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19951 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19952 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19953 X"$ac_file" : 'X\(//\)[^/]' \| \
19954 X"$ac_file" : 'X\(//\)$' \| \
19955 X"$ac_file" : 'X\(/\)' \| \
19956 . : '\(.\)' 2>/dev/null ||
19957 echo X"$ac_file" |
19958 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19959 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19960 /^X\(\/\/\)$/{ s//\1/; q; }
19961 /^X\(\/\).*/{ s//\1/; q; }
19962 s/.*/./; q'`
19963 { if $as_mkdir_p; then
19964 mkdir -p "$ac_dir"
19965 else
19966 as_dir="$ac_dir"
19967 as_dirs=
19968 while test ! -d "$as_dir"; do
19969 as_dirs="$as_dir $as_dirs"
19970 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19971 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19972 X"$as_dir" : 'X\(//\)[^/]' \| \
19973 X"$as_dir" : 'X\(//\)$' \| \
19974 X"$as_dir" : 'X\(/\)' \| \
19975 . : '\(.\)' 2>/dev/null ||
19976 echo X"$as_dir" |
19977 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19978 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19979 /^X\(\/\/\)$/{ s//\1/; q; }
19980 /^X\(\/\).*/{ s//\1/; q; }
19981 s/.*/./; q'`
19982 done
19983 test ! -n "$as_dirs" || mkdir $as_dirs
19984 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19985 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19986 { (exit 1); exit 1; }; }; }
19988 ac_builddir=.
19990 if test "$ac_dir" != .; then
19991 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19992 # A "../" for each directory in $ac_dir_suffix.
19993 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19994 else
19995 ac_dir_suffix= ac_top_builddir=
19998 case $srcdir in
19999 .) # No --srcdir option. We are building in place.
20000 ac_srcdir=.
20001 if test -z "$ac_top_builddir"; then
20002 ac_top_srcdir=.
20003 else
20004 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20005 fi ;;
20006 [\\/]* | ?:[\\/]* ) # Absolute path.
20007 ac_srcdir=$srcdir$ac_dir_suffix;
20008 ac_top_srcdir=$srcdir ;;
20009 *) # Relative path.
20010 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20011 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20012 esac
20014 # Do not use `cd foo && pwd` to compute absolute paths, because
20015 # the directories may not exist.
20016 case `pwd` in
20017 .) ac_abs_builddir="$ac_dir";;
20019 case "$ac_dir" in
20020 .) ac_abs_builddir=`pwd`;;
20021 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20022 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20023 esac;;
20024 esac
20025 case $ac_abs_builddir in
20026 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20028 case ${ac_top_builddir}. in
20029 .) ac_abs_top_builddir=$ac_abs_builddir;;
20030 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20031 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20032 esac;;
20033 esac
20034 case $ac_abs_builddir in
20035 .) ac_abs_srcdir=$ac_srcdir;;
20037 case $ac_srcdir in
20038 .) ac_abs_srcdir=$ac_abs_builddir;;
20039 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20040 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20041 esac;;
20042 esac
20043 case $ac_abs_builddir in
20044 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20046 case $ac_top_srcdir in
20047 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20048 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20049 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20050 esac;;
20051 esac
20054 case $INSTALL in
20055 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20056 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20057 esac
20059 if test x"$ac_file" != x-; then
20060 { echo "$as_me:$LINENO: creating $ac_file" >&5
20061 echo "$as_me: creating $ac_file" >&6;}
20062 rm -f "$ac_file"
20064 # Let's still pretend it is `configure' which instantiates (i.e., don't
20065 # use $as_me), people would be surprised to read:
20066 # /* config.h. Generated by config.status. */
20067 if test x"$ac_file" = x-; then
20068 configure_input=
20069 else
20070 configure_input="$ac_file. "
20072 configure_input=$configure_input"Generated from `echo $ac_file_in |
20073 sed 's,.*/,,'` by configure."
20075 # First look for the input files in the build tree, otherwise in the
20076 # src tree.
20077 ac_file_inputs=`IFS=:
20078 for f in $ac_file_in; do
20079 case $f in
20080 -) echo $tmp/stdin ;;
20081 [\\/$]*)
20082 # Absolute (can't be DOS-style, as IFS=:)
20083 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20084 echo "$as_me: error: cannot find input file: $f" >&2;}
20085 { (exit 1); exit 1; }; }
20086 echo "$f";;
20087 *) # Relative
20088 if test -f "$f"; then
20089 # Build tree
20090 echo "$f"
20091 elif test -f "$srcdir/$f"; then
20092 # Source tree
20093 echo "$srcdir/$f"
20094 else
20095 # /dev/null tree
20096 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20097 echo "$as_me: error: cannot find input file: $f" >&2;}
20098 { (exit 1); exit 1; }; }
20099 fi;;
20100 esac
20101 done` || { (exit 1); exit 1; }
20102 _ACEOF
20103 cat >>$CONFIG_STATUS <<_ACEOF
20104 sed "$ac_vpsub
20105 $extrasub
20106 _ACEOF
20107 cat >>$CONFIG_STATUS <<\_ACEOF
20109 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20110 s,@configure_input@,$configure_input,;t t
20111 s,@srcdir@,$ac_srcdir,;t t
20112 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20113 s,@top_srcdir@,$ac_top_srcdir,;t t
20114 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20115 s,@builddir@,$ac_builddir,;t t
20116 s,@abs_builddir@,$ac_abs_builddir,;t t
20117 s,@top_builddir@,$ac_top_builddir,;t t
20118 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20119 s,@INSTALL@,$ac_INSTALL,;t t
20120 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20121 rm -f $tmp/stdin
20122 if test x"$ac_file" != x-; then
20123 mv $tmp/out $ac_file
20124 else
20125 cat $tmp/out
20126 rm -f $tmp/out
20129 done
20130 _ACEOF
20131 cat >>$CONFIG_STATUS <<\_ACEOF
20134 # CONFIG_HEADER section.
20137 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20138 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20140 # ac_d sets the value in "#define NAME VALUE" lines.
20141 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20142 ac_dB='[ ].*$,\1#\2'
20143 ac_dC=' '
20144 ac_dD=',;t'
20145 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20146 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20147 ac_uB='$,\1#\2define\3'
20148 ac_uC=' '
20149 ac_uD=',;t'
20151 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20152 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20153 case $ac_file in
20154 - | *:- | *:-:* ) # input from stdin
20155 cat >$tmp/stdin
20156 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20157 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20158 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20159 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20160 * ) ac_file_in=$ac_file.in ;;
20161 esac
20163 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20164 echo "$as_me: creating $ac_file" >&6;}
20166 # First look for the input files in the build tree, otherwise in the
20167 # src tree.
20168 ac_file_inputs=`IFS=:
20169 for f in $ac_file_in; do
20170 case $f in
20171 -) echo $tmp/stdin ;;
20172 [\\/$]*)
20173 # Absolute (can't be DOS-style, as IFS=:)
20174 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20175 echo "$as_me: error: cannot find input file: $f" >&2;}
20176 { (exit 1); exit 1; }; }
20177 # Do quote $f, to prevent DOS paths from being IFS'd.
20178 echo "$f";;
20179 *) # Relative
20180 if test -f "$f"; then
20181 # Build tree
20182 echo "$f"
20183 elif test -f "$srcdir/$f"; then
20184 # Source tree
20185 echo "$srcdir/$f"
20186 else
20187 # /dev/null tree
20188 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20189 echo "$as_me: error: cannot find input file: $f" >&2;}
20190 { (exit 1); exit 1; }; }
20191 fi;;
20192 esac
20193 done` || { (exit 1); exit 1; }
20194 # Remove the trailing spaces.
20195 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20197 _ACEOF
20199 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20200 # `conftest.undefs', that substitutes the proper values into
20201 # config.h.in to produce config.h. The first handles `#define'
20202 # templates, and the second `#undef' templates.
20203 # And first: Protect against being on the right side of a sed subst in
20204 # config.status. Protect against being in an unquoted here document
20205 # in config.status.
20206 rm -f conftest.defines conftest.undefs
20207 # Using a here document instead of a string reduces the quoting nightmare.
20208 # Putting comments in sed scripts is not portable.
20210 # `end' is used to avoid that the second main sed command (meant for
20211 # 0-ary CPP macros) applies to n-ary macro definitions.
20212 # See the Autoconf documentation for `clear'.
20213 cat >confdef2sed.sed <<\_ACEOF
20214 s/[\\&,]/\\&/g
20215 s,[\\$`],\\&,g
20216 t clear
20217 : clear
20218 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20219 t end
20220 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20221 : end
20222 _ACEOF
20223 # If some macros were called several times there might be several times
20224 # the same #defines, which is useless. Nevertheless, we may not want to
20225 # sort them, since we want the *last* AC-DEFINE to be honored.
20226 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20227 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20228 rm -f confdef2sed.sed
20230 # This sed command replaces #undef with comments. This is necessary, for
20231 # example, in the case of _POSIX_SOURCE, which is predefined and required
20232 # on some systems where configure will not decide to define it.
20233 cat >>conftest.undefs <<\_ACEOF
20234 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20235 _ACEOF
20237 # Break up conftest.defines because some shells have a limit on the size
20238 # of here documents, and old seds have small limits too (100 cmds).
20239 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20240 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20241 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20242 echo ' :' >>$CONFIG_STATUS
20243 rm -f conftest.tail
20244 while grep . conftest.defines >/dev/null
20246 # Write a limited-size here document to $tmp/defines.sed.
20247 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20248 # Speed up: don't consider the non `#define' lines.
20249 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20250 # Work around the forget-to-reset-the-flag bug.
20251 echo 't clr' >>$CONFIG_STATUS
20252 echo ': clr' >>$CONFIG_STATUS
20253 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20254 echo 'CEOF
20255 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20256 rm -f $tmp/in
20257 mv $tmp/out $tmp/in
20258 ' >>$CONFIG_STATUS
20259 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20260 rm -f conftest.defines
20261 mv conftest.tail conftest.defines
20262 done
20263 rm -f conftest.defines
20264 echo ' fi # grep' >>$CONFIG_STATUS
20265 echo >>$CONFIG_STATUS
20267 # Break up conftest.undefs because some shells have a limit on the size
20268 # of here documents, and old seds have small limits too (100 cmds).
20269 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20270 rm -f conftest.tail
20271 while grep . conftest.undefs >/dev/null
20273 # Write a limited-size here document to $tmp/undefs.sed.
20274 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20275 # Speed up: don't consider the non `#undef'
20276 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20277 # Work around the forget-to-reset-the-flag bug.
20278 echo 't clr' >>$CONFIG_STATUS
20279 echo ': clr' >>$CONFIG_STATUS
20280 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20281 echo 'CEOF
20282 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20283 rm -f $tmp/in
20284 mv $tmp/out $tmp/in
20285 ' >>$CONFIG_STATUS
20286 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20287 rm -f conftest.undefs
20288 mv conftest.tail conftest.undefs
20289 done
20290 rm -f conftest.undefs
20292 cat >>$CONFIG_STATUS <<\_ACEOF
20293 # Let's still pretend it is `configure' which instantiates (i.e., don't
20294 # use $as_me), people would be surprised to read:
20295 # /* config.h. Generated by config.status. */
20296 if test x"$ac_file" = x-; then
20297 echo "/* Generated by configure. */" >$tmp/config.h
20298 else
20299 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20301 cat $tmp/in >>$tmp/config.h
20302 rm -f $tmp/in
20303 if test x"$ac_file" != x-; then
20304 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20305 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20306 echo "$as_me: $ac_file is unchanged" >&6;}
20307 else
20308 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20309 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20310 X"$ac_file" : 'X\(//\)[^/]' \| \
20311 X"$ac_file" : 'X\(//\)$' \| \
20312 X"$ac_file" : 'X\(/\)' \| \
20313 . : '\(.\)' 2>/dev/null ||
20314 echo X"$ac_file" |
20315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20316 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20317 /^X\(\/\/\)$/{ s//\1/; q; }
20318 /^X\(\/\).*/{ s//\1/; q; }
20319 s/.*/./; q'`
20320 { if $as_mkdir_p; then
20321 mkdir -p "$ac_dir"
20322 else
20323 as_dir="$ac_dir"
20324 as_dirs=
20325 while test ! -d "$as_dir"; do
20326 as_dirs="$as_dir $as_dirs"
20327 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20328 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20329 X"$as_dir" : 'X\(//\)[^/]' \| \
20330 X"$as_dir" : 'X\(//\)$' \| \
20331 X"$as_dir" : 'X\(/\)' \| \
20332 . : '\(.\)' 2>/dev/null ||
20333 echo X"$as_dir" |
20334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20335 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20336 /^X\(\/\/\)$/{ s//\1/; q; }
20337 /^X\(\/\).*/{ s//\1/; q; }
20338 s/.*/./; q'`
20339 done
20340 test ! -n "$as_dirs" || mkdir $as_dirs
20341 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20342 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20343 { (exit 1); exit 1; }; }; }
20345 rm -f $ac_file
20346 mv $tmp/config.h $ac_file
20348 else
20349 cat $tmp/config.h
20350 rm -f $tmp/config.h
20352 # Compute $ac_file's index in $config_headers.
20353 _am_stamp_count=1
20354 for _am_header in $config_headers :; do
20355 case $_am_header in
20356 $ac_file | $ac_file:* )
20357 break ;;
20359 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20360 esac
20361 done
20362 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20363 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20364 X$ac_file : 'X\(//\)[^/]' \| \
20365 X$ac_file : 'X\(//\)$' \| \
20366 X$ac_file : 'X\(/\)' \| \
20367 . : '\(.\)' 2>/dev/null ||
20368 echo X$ac_file |
20369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20370 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20371 /^X\(\/\/\)$/{ s//\1/; q; }
20372 /^X\(\/\).*/{ s//\1/; q; }
20373 s/.*/./; q'`/stamp-h$_am_stamp_count
20374 done
20375 _ACEOF
20376 cat >>$CONFIG_STATUS <<\_ACEOF
20379 # CONFIG_COMMANDS section.
20381 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20382 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20383 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20384 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20385 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20386 X"$ac_dest" : 'X\(//\)[^/]' \| \
20387 X"$ac_dest" : 'X\(//\)$' \| \
20388 X"$ac_dest" : 'X\(/\)' \| \
20389 . : '\(.\)' 2>/dev/null ||
20390 echo X"$ac_dest" |
20391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20392 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20393 /^X\(\/\/\)$/{ s//\1/; q; }
20394 /^X\(\/\).*/{ s//\1/; q; }
20395 s/.*/./; q'`
20396 { if $as_mkdir_p; then
20397 mkdir -p "$ac_dir"
20398 else
20399 as_dir="$ac_dir"
20400 as_dirs=
20401 while test ! -d "$as_dir"; do
20402 as_dirs="$as_dir $as_dirs"
20403 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20404 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20405 X"$as_dir" : 'X\(//\)[^/]' \| \
20406 X"$as_dir" : 'X\(//\)$' \| \
20407 X"$as_dir" : 'X\(/\)' \| \
20408 . : '\(.\)' 2>/dev/null ||
20409 echo X"$as_dir" |
20410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20411 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20412 /^X\(\/\/\)$/{ s//\1/; q; }
20413 /^X\(\/\).*/{ s//\1/; q; }
20414 s/.*/./; q'`
20415 done
20416 test ! -n "$as_dirs" || mkdir $as_dirs
20417 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20418 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20419 { (exit 1); exit 1; }; }; }
20421 ac_builddir=.
20423 if test "$ac_dir" != .; then
20424 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20425 # A "../" for each directory in $ac_dir_suffix.
20426 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20427 else
20428 ac_dir_suffix= ac_top_builddir=
20431 case $srcdir in
20432 .) # No --srcdir option. We are building in place.
20433 ac_srcdir=.
20434 if test -z "$ac_top_builddir"; then
20435 ac_top_srcdir=.
20436 else
20437 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20438 fi ;;
20439 [\\/]* | ?:[\\/]* ) # Absolute path.
20440 ac_srcdir=$srcdir$ac_dir_suffix;
20441 ac_top_srcdir=$srcdir ;;
20442 *) # Relative path.
20443 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20444 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20445 esac
20447 # Do not use `cd foo && pwd` to compute absolute paths, because
20448 # the directories may not exist.
20449 case `pwd` in
20450 .) ac_abs_builddir="$ac_dir";;
20452 case "$ac_dir" in
20453 .) ac_abs_builddir=`pwd`;;
20454 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20455 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20456 esac;;
20457 esac
20458 case $ac_abs_builddir in
20459 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20461 case ${ac_top_builddir}. in
20462 .) ac_abs_top_builddir=$ac_abs_builddir;;
20463 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20464 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20465 esac;;
20466 esac
20467 case $ac_abs_builddir in
20468 .) ac_abs_srcdir=$ac_srcdir;;
20470 case $ac_srcdir in
20471 .) ac_abs_srcdir=$ac_abs_builddir;;
20472 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20473 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20474 esac;;
20475 esac
20476 case $ac_abs_builddir in
20477 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20479 case $ac_top_srcdir in
20480 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20481 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20482 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20483 esac;;
20484 esac
20487 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20488 echo "$as_me: executing $ac_dest commands" >&6;}
20489 case $ac_dest in
20490 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20491 # Strip MF so we end up with the name of the file.
20492 mf=`echo "$mf" | sed -e 's/:.*$//'`
20493 # Check whether this is an Automake generated Makefile or not.
20494 # We used to match only the files named `Makefile.in', but
20495 # some people rename them; so instead we look at the file content.
20496 # Grep'ing the first line is not enough: some people post-process
20497 # each Makefile.in and add a new line on top of each file to say so.
20498 # So let's grep whole file.
20499 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20500 dirpart=`(dirname "$mf") 2>/dev/null ||
20501 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20502 X"$mf" : 'X\(//\)[^/]' \| \
20503 X"$mf" : 'X\(//\)$' \| \
20504 X"$mf" : 'X\(/\)' \| \
20505 . : '\(.\)' 2>/dev/null ||
20506 echo X"$mf" |
20507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20508 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20509 /^X\(\/\/\)$/{ s//\1/; q; }
20510 /^X\(\/\).*/{ s//\1/; q; }
20511 s/.*/./; q'`
20512 else
20513 continue
20515 # Extract the definition of DEPDIR, am__include, and am__quote
20516 # from the Makefile without running `make'.
20517 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20518 test -z "$DEPDIR" && continue
20519 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20520 test -z "am__include" && continue
20521 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20522 # When using ansi2knr, U may be empty or an underscore; expand it
20523 U=`sed -n 's/^U = //p' < "$mf"`
20524 # Find all dependency output files, they are included files with
20525 # $(DEPDIR) in their names. We invoke sed twice because it is the
20526 # simplest approach to changing $(DEPDIR) to its actual value in the
20527 # expansion.
20528 for file in `sed -n "
20529 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20530 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20531 # Make sure the directory exists.
20532 test -f "$dirpart/$file" && continue
20533 fdir=`(dirname "$file") 2>/dev/null ||
20534 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20535 X"$file" : 'X\(//\)[^/]' \| \
20536 X"$file" : 'X\(//\)$' \| \
20537 X"$file" : 'X\(/\)' \| \
20538 . : '\(.\)' 2>/dev/null ||
20539 echo X"$file" |
20540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20541 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20542 /^X\(\/\/\)$/{ s//\1/; q; }
20543 /^X\(\/\).*/{ s//\1/; q; }
20544 s/.*/./; q'`
20545 { if $as_mkdir_p; then
20546 mkdir -p $dirpart/$fdir
20547 else
20548 as_dir=$dirpart/$fdir
20549 as_dirs=
20550 while test ! -d "$as_dir"; do
20551 as_dirs="$as_dir $as_dirs"
20552 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20553 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20554 X"$as_dir" : 'X\(//\)[^/]' \| \
20555 X"$as_dir" : 'X\(//\)$' \| \
20556 X"$as_dir" : 'X\(/\)' \| \
20557 . : '\(.\)' 2>/dev/null ||
20558 echo X"$as_dir" |
20559 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20560 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20561 /^X\(\/\/\)$/{ s//\1/; q; }
20562 /^X\(\/\).*/{ s//\1/; q; }
20563 s/.*/./; q'`
20564 done
20565 test ! -n "$as_dirs" || mkdir $as_dirs
20566 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20567 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20568 { (exit 1); exit 1; }; }; }
20570 # echo "creating $dirpart/$file"
20571 echo '# dummy' > "$dirpart/$file"
20572 done
20573 done
20575 default-1 )
20576 for ac_file in $CONFIG_FILES; do
20577 # Support "outfile[:infile[:infile...]]"
20578 case "$ac_file" in
20579 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20580 esac
20581 # PO directories have a Makefile.in generated from Makefile.in.in.
20582 case "$ac_file" in */Makefile.in)
20583 # Adjust a relative srcdir.
20584 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
20585 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
20586 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
20587 # In autoconf-2.13 it is called $ac_given_srcdir.
20588 # In autoconf-2.50 it is called $srcdir.
20589 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
20590 case "$ac_given_srcdir" in
20591 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
20592 /*) top_srcdir="$ac_given_srcdir" ;;
20593 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
20594 esac
20595 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
20596 rm -f "$ac_dir/POTFILES"
20597 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
20598 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
20599 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
20600 # on $ac_dir but don't depend on user-specified configuration
20601 # parameters.
20602 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
20603 # The LINGUAS file contains the set of available languages.
20604 if test -n "$ALL_LINGUAS"; then
20605 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
20607 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
20608 # Hide the ALL_LINGUAS assigment from automake.
20609 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
20611 case "$ac_given_srcdir" in
20612 .) srcdirpre= ;;
20613 *) srcdirpre='$(srcdir)/' ;;
20614 esac
20615 POFILES=
20616 GMOFILES=
20617 UPDATEPOFILES=
20618 DUMMYPOFILES=
20619 for lang in $ALL_LINGUAS; do
20620 POFILES="$POFILES $srcdirpre$lang.po"
20621 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
20622 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
20623 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
20624 done
20625 # CATALOGS depends on both $ac_dir and the user's LINGUAS
20626 # environment variable.
20627 INST_LINGUAS=
20628 if test -n "$ALL_LINGUAS"; then
20629 for presentlang in $ALL_LINGUAS; do
20630 useit=no
20631 if test "%UNSET%" != "$LINGUAS"; then
20632 desiredlanguages="$LINGUAS"
20633 else
20634 desiredlanguages="$ALL_LINGUAS"
20636 for desiredlang in $desiredlanguages; do
20637 # Use the presentlang catalog if desiredlang is
20638 # a. equal to presentlang, or
20639 # b. a variant of presentlang (because in this case,
20640 # presentlang can be used as a fallback for messages
20641 # which are not translated in the desiredlang catalog).
20642 case "$desiredlang" in
20643 "$presentlang"*) useit=yes;;
20644 esac
20645 done
20646 if test $useit = yes; then
20647 INST_LINGUAS="$INST_LINGUAS $presentlang"
20649 done
20651 CATALOGS=
20652 if test -n "$INST_LINGUAS"; then
20653 for lang in $INST_LINGUAS; do
20654 CATALOGS="$CATALOGS $lang.gmo"
20655 done
20657 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
20658 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"
20659 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
20660 if test -f "$f"; then
20661 case "$f" in
20662 *.orig | *.bak | *~) ;;
20663 *) cat "$f" >> "$ac_dir/Makefile" ;;
20664 esac
20666 done
20669 esac
20670 done ;;
20671 denoiser ) if test $denoiserlevel -gt 0; then
20672 if test ! -d src/utils/scripts; then mkdir -p src/utils/scripts; fi
20673 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" \
20674 $srcdir/src/utils/scripts/denoiser.rules > src/utils/scripts/denoiser.sed
20675 for i in `find . -name 'Makefile' -print`; do
20676 if test -n "`head -n 1 $i | grep '^#'`"; then
20677 sed -f src/utils/scripts/denoiser.sed $i > $i.tmp && mv $i.tmp $i
20679 done
20680 fi ;;
20681 esac
20682 done
20683 _ACEOF
20685 cat >>$CONFIG_STATUS <<\_ACEOF
20687 { (exit 0); exit 0; }
20688 _ACEOF
20689 chmod +x $CONFIG_STATUS
20690 ac_clean_files=$ac_clean_files_save
20693 # configure is writing to config.log, and then calls config.status.
20694 # config.status does its own redirection, appending to config.log.
20695 # Unfortunately, on DOS this fails, as config.log is still kept open
20696 # by configure, so config.status won't be able to write to it; its
20697 # output is simply discarded. So we exec the FD to /dev/null,
20698 # effectively closing config.log, so it can be properly (re)opened and
20699 # appended to by config.status. When coming back to configure, we
20700 # need to make the FD available again.
20701 if test "$no_create" != yes; then
20702 ac_cs_success=:
20703 ac_config_status_args=
20704 test "$silent" = yes &&
20705 ac_config_status_args="$ac_config_status_args --quiet"
20706 exec 5>/dev/null
20707 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20708 exec 5>>config.log
20709 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20710 # would make configure fail if this is the last instruction.
20711 $ac_cs_success || { (exit 1); exit 1; }
20715 echo
20716 echo
20717 echo " Configure script has finished system check."
20718 echo
20719 echo " Configured aMule ${PACKAGE_VERSION} for '${host}'."
20720 echo
20721 echo " aMule enabled options:"
20722 echo
20723 echo " **** aMule Core ****"
20724 echo " Prefix where aMule should be installed? ${prefix:-none}"
20725 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
20726 echo " Should aMule be compiled in debug mode? ${USE_DEBUG:-no}"
20727 echo " Should aMule be compiled with profiling? ${USE_PROFILE:-no}"
20728 echo " Should aMule be compiled with optimizations? ${USE_OPTIMIZE:-no}"
20729 echo " Should aMule be compiled with UPnP support? ${ENABLE_UPNP:-yes}"
20730 echo " Should aMule be compiled with IP2country support? ${ENABLE_IP2COUNTRY:-yes}"
20731 echo " Should aMule monolithic application be built? ${MONOLITHIC:-yes}"
20732 echo " Should aMule daemon version be built? ${AMULE_DAEMON:-no}"
20733 echo " Should aMule remote gui be built? (EXPERIMENTAL) ${AMULE_GUI:-no}"
20734 echo " Crypto++ library/headers style? ${CRYPTOPP_STYLE:-not found}"
20736 echo
20737 echo " **** aMule TextClient ****"
20738 echo " Should aMule Command Line Client be built? ${AMULECMD:-no}"
20739 echo
20740 echo " **** aMule WebServer ****"
20741 echo " Should aMule WebServer be built? ${WEB:-no}"
20742 echo
20743 echo " **** aMule ED2K Links Handler ****"
20744 echo " Should aMule ED2K Links Handler be built? ${ED2K:-yes}"
20745 echo
20746 echo " **** aMuleLinkCreator ****"
20747 echo " Should aMuleLinkCreator GUI version (alc) be built? ${ALC:-no}"
20748 echo " Should aMuleLinkCreator for console (alcc) be built? ${ALCC:-no}"
20749 echo
20750 echo " **** aMule Statistics ****"
20751 echo " Should C aMule Statistics (CAS) be built? ${CAS:-no}"
20752 echo " Should aMule GUI Statistics (wxCas) be built? ${WXCAS:-no}"
20754 echo
20755 echo " **** General Libraries and Tools ****"
20756 echo " Should ccache support be enabled? ${ccache:-no}"
20757 echo " Libraries aMule will use to build:"
20758 wxinfo="$WX_PORT"
20759 if test $WX_DEBUG -eq 1; then
20760 wxinfo="$wxinfo,debug"
20763 if test $WX_SHARED -eq 1; then
20764 wxinfo="$wxinfo,shared"
20765 else
20766 wxinfo="$wxinfo,static"
20769 echo " wxWidgets ${WX_VERSION_FULL} ($wxinfo)"
20770 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (${CRYPTOPP_STYLE}, in ${CRYPTOPP_PREFIX})"
20771 if test x${WEB:-no} != xno; then
20772 if test $regex_found = no; then
20773 regex_found="Not detected"
20774 else
20775 if test -z "$REGEX_LIB"; then
20776 regex_found=system
20777 else
20778 regex_found="standalone (in $REGEX_LIB)"
20783 echo " regex $regex_found"
20785 if test ${enable_nls:-yes} = yes; then
20786 if test x$USE_NLS = xno; then
20787 libintl_found="Not detected"
20788 else
20789 if test x$USE_INCLUDED_LIBINTL = xyes; then
20790 libintl_found="included"
20791 else
20792 libintl_found="system"
20797 echo " libintl $libintl_found"
20799 if test x$LIBPNG_VERSION != xnot_needed; then
20800 echo " libpng ${LIBPNG_VERSION:-Not detected}"
20802 if test x$GDLIB_VERSION != xnot_needed; then
20803 echo " libgd ${GDLIB_VERSION:-Not detected}"
20805 echo " zlib ${ZLIB_VERSION:-Not detected}"
20806 if test x$WEB = xdisabled; then
20807 echo ""
20808 echo ""
20809 echo "WARNING! amuleweb has been disabled because configure could not find"
20810 echo "a POSIX compliant regex library."
20811 echo ""
20813 if test -z "$LIBPNG_VERSION"; then
20814 echo ""
20815 echo ""
20816 echo " WARNING! libpng >= 1.2.0 not found."
20817 echo " amuleweb will be compiled but file download progress bar images will NOT be generated."
20818 echo ""