Upstream tarball 20080529
[amule.git] / configure
blob7e1b1d95c5b50924264964481d9d0d4ba6a83a23
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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 RESOLV_LIB X11LIBS 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 GDLIB_CONFIG_PATH GDLIB_CFLAGS GDLIB_LDFLAGS GDLIB_LIBS CAS_DEFS REGEX_LIB LIBPNG_CONFIG_PATH LIBPNG_CFLAGS LIBPNG_CXXFLAGS LIBPNG_LDFLAGS LIBPNG_LIBS AMULEWEB_DEFS GEOIP_INCLUDE GEOIP_LIB 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 RC ac_ct_RC RCFLAGS CRYPTO_PP_PREFIX CRYPTO_PP_VERSION_STRING CRYPTO_PP_VERSION_NUMBER CRYPTO_PP_STYLE CRYPTO_PP_LIB_NAME CRYPTO_PP_INCLUDE_PREFIX CRYPTO_PP_CXXFLAGS CRYPTO_PP_LDFLAGS CRYPTOLIBS BFD_FLAGS BFD_LIB HAVE_FLEX_EXTENDED 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 INCINTL WXBASE_LIBS WXBASE_CFLAGS WXBASE_CXXFLAGS docdir SVNDATE AMULE_DAEMON_MANPAGES AMULECMD_MANPAGES WEB_MANPAGES AMULE_GUI_MANPAGES CAS_MANPAGES WXCAS_MANPAGES ED2K_MANPAGES ALC_MANPAGES ALCC_MANPAGES MONOLITHIC_MANPAGES 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 ccache CCACHE ccache_prefix 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
793 # Report the --help message.
795 if test "$ac_init_help" = "long"; then
796 # Omit some internal or obsolete options to make the list less imposing.
797 # This message is too long to be a string in the A/UX 3.1 sh.
798 cat <<_ACEOF
799 \`configure' configures aMule SVN to adapt to many kinds of systems.
801 Usage: $0 [OPTION]... [VAR=VALUE]...
803 To assign environment variables (e.g., CC, CFLAGS...), specify them as
804 VAR=VALUE. See below for descriptions of some of the useful variables.
806 Defaults for the options are specified in brackets.
808 Configuration:
809 -h, --help display this help and exit
810 --help=short display options specific to this package
811 --help=recursive display the short help of all the included packages
812 -V, --version display version information and exit
813 -q, --quiet, --silent do not print \`checking...' messages
814 --cache-file=FILE cache test results in FILE [disabled]
815 -C, --config-cache alias for \`--cache-file=config.cache'
816 -n, --no-create do not create output files
817 --srcdir=DIR find the sources in DIR [configure dir or \`..']
819 _ACEOF
821 cat <<_ACEOF
822 Installation directories:
823 --prefix=PREFIX install architecture-independent files in PREFIX
824 [$ac_default_prefix]
825 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
826 [PREFIX]
828 By default, \`make install' will install all the files in
829 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
830 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
831 for instance \`--prefix=\$HOME'.
833 For better control, use the options below.
835 Fine tuning of the installation directories:
836 --bindir=DIR user executables [EPREFIX/bin]
837 --sbindir=DIR system admin executables [EPREFIX/sbin]
838 --libexecdir=DIR program executables [EPREFIX/libexec]
839 --datadir=DIR read-only architecture-independent data [PREFIX/share]
840 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
841 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
842 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
843 --libdir=DIR object code libraries [EPREFIX/lib]
844 --includedir=DIR C header files [PREFIX/include]
845 --oldincludedir=DIR C header files for non-gcc [/usr/include]
846 --infodir=DIR info documentation [PREFIX/info]
847 --mandir=DIR man documentation [PREFIX/man]
848 _ACEOF
850 cat <<\_ACEOF
852 Program names:
853 --program-prefix=PREFIX prepend PREFIX to installed program names
854 --program-suffix=SUFFIX append SUFFIX to installed program names
855 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
857 X features:
858 --x-includes=DIR X include files are in DIR
859 --x-libraries=DIR X library files are in DIR
861 System types:
862 --build=BUILD configure for building on BUILD [guessed]
863 --host=HOST cross-compile to build programs to run on HOST [BUILD]
864 _ACEOF
867 if test -n "$ac_init_help"; then
868 case $ac_init_help in
869 short | recursive ) echo "Configuration of aMule SVN:";;
870 esac
871 cat <<\_ACEOF
873 Optional Features:
874 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
875 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
876 --enable-maintainer-mode enable make rules and dependencies not useful
877 (and sometimes confusing) to the casual installer
878 --disable-dependency-tracking speeds up one-time build
879 --enable-dependency-tracking do not reject slow dependency extractors
880 --enable-ccache enable ccache support for fast recompilation
881 --disable-debug disable additional debugging output
882 --enable-optimize enable code optimizing
883 --enable-profile enable code profiling
884 --enable-static produce a statically linked executable
885 --disable-monolithic disable building of the monolithic aMule app
886 --enable-amule-daemon compile aMule daemon version
887 --enable-amulecmd compile aMule command line client
888 --enable-webserver compile aMule WebServer
889 --enable-amule-gui compile aMule remote GUI (EXPERIMENTAL)
890 --enable-cas compile C aMule Statistics
891 --enable-wxcas compile aMule GUI Statistics
892 --disable-ed2k don't compile aMule ed2k links handler
893 --enable-alc compile aMuleLinkCreator GUI version
894 --enable-alcc compile aMuleLinkCreator for console
895 --disable-upnp do not compile UPnP code
896 --enable-geoip compile with GeoIP IP2Country library
897 --disable-rpath do not hardcode runtime library paths
898 --disable-nls do not use Native Language Support
900 Optional Packages:
901 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
902 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
903 --with-geoip-headers=DIR
904 GeoIP include files location
905 --with-geoip-lib=DIR GeoIP library location
906 --with-geoip-static Explicitly link GeoIP statically (default=no)
907 --with-denoise-level=<level>
908 Specifies denoising level (0-4):
909 0 - Do nothing
910 4 - Suppress all normal output
911 (for more information see
912 src/utils/scripts/denoiser.rules)
914 --without-gnu-malloc Don't assume that we use GNU libc compatible
915 malloc/realloc when cross-compiling
916 --with-language=<langs> Specify a comma-separated list of languages you want
917 to have installed. See po/LINGUAS for available
918 languages
919 --with-zlib=PREFIX use zlib in PREFIX
920 --with-gdlib-prefix=PREFIX
921 prefix where gdlib is installed (optional)
922 --with-gdlib-config=CONFIG
923 gdlib-config script to use (optional)
924 --with-libpng-prefix=PREFIX
925 prefix where libpng is installed (optional)
926 --with-libpng-config=CONFIG
927 libpng-config script to use (optional)
928 --with-wxdir=PATH Use uninstalled version of wxWidgets in PATH
929 --with-wx-config=CONFIG wx-config script to use (optional)
930 --with-wx-prefix=PREFIX Prefix where wxWidgets is installed (optional)
931 --with-wx-exec-prefix=PREFIX
932 Exec prefix where wxWidgets is installed (optional)
933 --with-toolkit Build against a specific wxWidgets toolkit (default
934 is auto)
935 --with-wxshared Force building against a shared build of wxWidgets,
936 even if --disable-shared is given (default is auto)
937 --with-wxdebug Force building against a debug build of wxWidgets,
938 even if --disable-debug is given (default is auto)
939 --with-wxversion Build against a specific version of wxWidgets
940 (default is auto)
941 --with-crypto-prefix=PREFIX
942 prefix where crypto++ is installed
943 --with-x use the X Window System
944 --with-gnu-ld assume the C compiler uses GNU ld default=no
945 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
946 --without-libiconv-prefix don't search for libiconv in includedir and libdir
947 --with-included-gettext use the GNU gettext library included here
948 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
949 --without-libintl-prefix don't search for libintl in includedir and libdir
950 --with-ccache-prefix=PREFIX
951 prefix where ccache is installed
953 Some influential environment variables:
954 CXX C++ compiler command
955 CXXFLAGS C++ compiler flags
956 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
957 nonstandard directory <lib dir>
958 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
959 headers in a nonstandard directory <include dir>
960 CXXCPP C++ preprocessor
961 CC C compiler command
962 CFLAGS C compiler flags
963 CPP C preprocessor
964 RC Win32 Resource Compiler
966 Use these variables to override the choices made by `configure' or to help
967 it to find libraries and programs with nonstandard names/locations.
969 Report bugs to <admin@amule.org>.
970 _ACEOF
973 if test "$ac_init_help" = "recursive"; then
974 # If there are subdirs, report their specific --help.
975 ac_popdir=`pwd`
976 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
977 test -d $ac_dir || continue
978 ac_builddir=.
980 if test "$ac_dir" != .; then
981 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
982 # A "../" for each directory in $ac_dir_suffix.
983 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
984 else
985 ac_dir_suffix= ac_top_builddir=
988 case $srcdir in
989 .) # No --srcdir option. We are building in place.
990 ac_srcdir=.
991 if test -z "$ac_top_builddir"; then
992 ac_top_srcdir=.
993 else
994 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
995 fi ;;
996 [\\/]* | ?:[\\/]* ) # Absolute path.
997 ac_srcdir=$srcdir$ac_dir_suffix;
998 ac_top_srcdir=$srcdir ;;
999 *) # Relative path.
1000 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1001 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1002 esac
1004 # Do not use `cd foo && pwd` to compute absolute paths, because
1005 # the directories may not exist.
1006 case `pwd` in
1007 .) ac_abs_builddir="$ac_dir";;
1009 case "$ac_dir" in
1010 .) ac_abs_builddir=`pwd`;;
1011 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1012 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1013 esac;;
1014 esac
1015 case $ac_abs_builddir in
1016 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1018 case ${ac_top_builddir}. in
1019 .) ac_abs_top_builddir=$ac_abs_builddir;;
1020 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1021 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1022 esac;;
1023 esac
1024 case $ac_abs_builddir in
1025 .) ac_abs_srcdir=$ac_srcdir;;
1027 case $ac_srcdir in
1028 .) ac_abs_srcdir=$ac_abs_builddir;;
1029 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1030 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1031 esac;;
1032 esac
1033 case $ac_abs_builddir in
1034 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1036 case $ac_top_srcdir in
1037 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1038 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1039 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1040 esac;;
1041 esac
1043 cd $ac_dir
1044 # Check for guested configure; otherwise get Cygnus style configure.
1045 if test -f $ac_srcdir/configure.gnu; then
1046 echo
1047 $SHELL $ac_srcdir/configure.gnu --help=recursive
1048 elif test -f $ac_srcdir/configure; then
1049 echo
1050 $SHELL $ac_srcdir/configure --help=recursive
1051 elif test -f $ac_srcdir/configure.ac ||
1052 test -f $ac_srcdir/configure.in; then
1053 echo
1054 $ac_configure --help
1055 else
1056 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1058 cd $ac_popdir
1059 done
1062 test -n "$ac_init_help" && exit 0
1063 if $ac_init_version; then
1064 cat <<\_ACEOF
1065 aMule configure SVN
1066 generated by GNU Autoconf 2.59
1068 Copyright (C) 2003 Free Software Foundation, Inc.
1069 This configure script is free software; the Free Software Foundation
1070 gives unlimited permission to copy, distribute and modify it.
1071 _ACEOF
1072 exit 0
1074 exec 5>config.log
1075 cat >&5 <<_ACEOF
1076 This file contains any messages produced by compilers while
1077 running configure, to aid debugging if configure makes a mistake.
1079 It was created by aMule $as_me SVN, which was
1080 generated by GNU Autoconf 2.59. Invocation command line was
1082 $ $0 $@
1084 _ACEOF
1086 cat <<_ASUNAME
1087 ## --------- ##
1088 ## Platform. ##
1089 ## --------- ##
1091 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1092 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1093 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1094 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1095 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1097 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1098 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1100 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1101 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1102 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1103 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1104 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1105 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1106 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1108 _ASUNAME
1110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1111 for as_dir in $PATH
1113 IFS=$as_save_IFS
1114 test -z "$as_dir" && as_dir=.
1115 echo "PATH: $as_dir"
1116 done
1118 } >&5
1120 cat >&5 <<_ACEOF
1123 ## ----------- ##
1124 ## Core tests. ##
1125 ## ----------- ##
1127 _ACEOF
1130 # Keep a trace of the command line.
1131 # Strip out --no-create and --no-recursion so they do not pile up.
1132 # Strip out --silent because we don't want to record it for future runs.
1133 # Also quote any args containing shell meta-characters.
1134 # Make two passes to allow for proper duplicate-argument suppression.
1135 ac_configure_args=
1136 ac_configure_args0=
1137 ac_configure_args1=
1138 ac_sep=
1139 ac_must_keep_next=false
1140 for ac_pass in 1 2
1142 for ac_arg
1144 case $ac_arg in
1145 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1147 | -silent | --silent | --silen | --sile | --sil)
1148 continue ;;
1149 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1150 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1151 esac
1152 case $ac_pass in
1153 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1155 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1156 if test $ac_must_keep_next = true; then
1157 ac_must_keep_next=false # Got value, back to normal.
1158 else
1159 case $ac_arg in
1160 *=* | --config-cache | -C | -disable-* | --disable-* \
1161 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1162 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1163 | -with-* | --with-* | -without-* | --without-* | --x)
1164 case "$ac_configure_args0 " in
1165 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1166 esac
1168 -* ) ac_must_keep_next=true ;;
1169 esac
1171 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1172 # Get rid of the leading space.
1173 ac_sep=" "
1175 esac
1176 done
1177 done
1178 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1179 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1181 # When interrupted or exit'd, cleanup temporary files, and complete
1182 # config.log. We remove comments because anyway the quotes in there
1183 # would cause problems or look ugly.
1184 # WARNING: Be sure not to use single quotes in there, as some shells,
1185 # such as our DU 5.0 friend, will then `close' the trap.
1186 trap 'exit_status=$?
1187 # Save into config.log some information that might help in debugging.
1189 echo
1191 cat <<\_ASBOX
1192 ## ---------------- ##
1193 ## Cache variables. ##
1194 ## ---------------- ##
1195 _ASBOX
1196 echo
1197 # The following way of writing the cache mishandles newlines in values,
1199 (set) 2>&1 |
1200 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1201 *ac_space=\ *)
1202 sed -n \
1203 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1204 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1207 sed -n \
1208 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1210 esac;
1212 echo
1214 cat <<\_ASBOX
1215 ## ----------------- ##
1216 ## Output variables. ##
1217 ## ----------------- ##
1218 _ASBOX
1219 echo
1220 for ac_var in $ac_subst_vars
1222 eval ac_val=$`echo $ac_var`
1223 echo "$ac_var='"'"'$ac_val'"'"'"
1224 done | sort
1225 echo
1227 if test -n "$ac_subst_files"; then
1228 cat <<\_ASBOX
1229 ## ------------- ##
1230 ## Output files. ##
1231 ## ------------- ##
1232 _ASBOX
1233 echo
1234 for ac_var in $ac_subst_files
1236 eval ac_val=$`echo $ac_var`
1237 echo "$ac_var='"'"'$ac_val'"'"'"
1238 done | sort
1239 echo
1242 if test -s confdefs.h; then
1243 cat <<\_ASBOX
1244 ## ----------- ##
1245 ## confdefs.h. ##
1246 ## ----------- ##
1247 _ASBOX
1248 echo
1249 sed "/^$/d" confdefs.h | sort
1250 echo
1252 test "$ac_signal" != 0 &&
1253 echo "$as_me: caught signal $ac_signal"
1254 echo "$as_me: exit $exit_status"
1255 } >&5
1256 rm -f core *.core &&
1257 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1258 exit $exit_status
1260 for ac_signal in 1 2 13 15; do
1261 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1262 done
1263 ac_signal=0
1265 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1266 rm -rf conftest* confdefs.h
1267 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1268 echo >confdefs.h
1270 # Predefined preprocessor variables.
1272 cat >>confdefs.h <<_ACEOF
1273 #define PACKAGE_NAME "$PACKAGE_NAME"
1274 _ACEOF
1277 cat >>confdefs.h <<_ACEOF
1278 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1279 _ACEOF
1282 cat >>confdefs.h <<_ACEOF
1283 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1284 _ACEOF
1287 cat >>confdefs.h <<_ACEOF
1288 #define PACKAGE_STRING "$PACKAGE_STRING"
1289 _ACEOF
1292 cat >>confdefs.h <<_ACEOF
1293 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1294 _ACEOF
1297 # Let the site file select an alternate cache file if it wants to.
1298 # Prefer explicitly selected file to automatically selected ones.
1299 if test -z "$CONFIG_SITE"; then
1300 if test "x$prefix" != xNONE; then
1301 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1302 else
1303 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1306 for ac_site_file in $CONFIG_SITE; do
1307 if test -r "$ac_site_file"; then
1308 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1309 echo "$as_me: loading site script $ac_site_file" >&6;}
1310 sed 's/^/| /' "$ac_site_file" >&5
1311 . "$ac_site_file"
1313 done
1315 if test -r "$cache_file"; then
1316 # Some versions of bash will fail to source /dev/null (special
1317 # files actually), so we avoid doing that.
1318 if test -f "$cache_file"; then
1319 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1320 echo "$as_me: loading cache $cache_file" >&6;}
1321 case $cache_file in
1322 [\\/]* | ?:[\\/]* ) . $cache_file;;
1323 *) . ./$cache_file;;
1324 esac
1326 else
1327 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1328 echo "$as_me: creating cache $cache_file" >&6;}
1329 >$cache_file
1332 # Check that the precious variables saved in the cache have kept the same
1333 # value.
1334 ac_cache_corrupted=false
1335 for ac_var in `(set) 2>&1 |
1336 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1337 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1338 eval ac_new_set=\$ac_env_${ac_var}_set
1339 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1340 eval ac_new_val="\$ac_env_${ac_var}_value"
1341 case $ac_old_set,$ac_new_set in
1342 set,)
1343 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1344 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1345 ac_cache_corrupted=: ;;
1346 ,set)
1347 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1348 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1349 ac_cache_corrupted=: ;;
1350 ,);;
1352 if test "x$ac_old_val" != "x$ac_new_val"; then
1353 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1354 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1355 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1356 echo "$as_me: former value: $ac_old_val" >&2;}
1357 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1358 echo "$as_me: current value: $ac_new_val" >&2;}
1359 ac_cache_corrupted=:
1360 fi;;
1361 esac
1362 # Pass precious variables to config.status.
1363 if test "$ac_new_set" = set; then
1364 case $ac_new_val in
1365 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1366 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1367 *) ac_arg=$ac_var=$ac_new_val ;;
1368 esac
1369 case " $ac_configure_args " in
1370 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1371 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1372 esac
1374 done
1375 if $ac_cache_corrupted; then
1376 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1377 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1378 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1379 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1380 { (exit 1); exit 1; }; }
1383 ac_ext=c
1384 ac_cpp='$CPP $CPPFLAGS'
1385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1415 ac_aux_dir=
1416 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1417 if test -f $ac_dir/install-sh; then
1418 ac_aux_dir=$ac_dir
1419 ac_install_sh="$ac_aux_dir/install-sh -c"
1420 break
1421 elif test -f $ac_dir/install.sh; then
1422 ac_aux_dir=$ac_dir
1423 ac_install_sh="$ac_aux_dir/install.sh -c"
1424 break
1425 elif test -f $ac_dir/shtool; then
1426 ac_aux_dir=$ac_dir
1427 ac_install_sh="$ac_aux_dir/shtool install -c"
1428 break
1430 done
1431 if test -z "$ac_aux_dir"; then
1432 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1433 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1434 { (exit 1); exit 1; }; }
1436 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1437 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1438 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1440 # Make sure we can run config.sub.
1441 $ac_config_sub sun4 >/dev/null 2>&1 ||
1442 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1443 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1444 { (exit 1); exit 1; }; }
1446 echo "$as_me:$LINENO: checking build system type" >&5
1447 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1448 if test "${ac_cv_build+set}" = set; then
1449 echo $ECHO_N "(cached) $ECHO_C" >&6
1450 else
1451 ac_cv_build_alias=$build_alias
1452 test -z "$ac_cv_build_alias" &&
1453 ac_cv_build_alias=`$ac_config_guess`
1454 test -z "$ac_cv_build_alias" &&
1455 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1456 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1457 { (exit 1); exit 1; }; }
1458 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1459 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1460 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1461 { (exit 1); exit 1; }; }
1464 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1465 echo "${ECHO_T}$ac_cv_build" >&6
1466 build=$ac_cv_build
1467 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1468 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1469 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1472 echo "$as_me:$LINENO: checking host system type" >&5
1473 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1474 if test "${ac_cv_host+set}" = set; then
1475 echo $ECHO_N "(cached) $ECHO_C" >&6
1476 else
1477 ac_cv_host_alias=$host_alias
1478 test -z "$ac_cv_host_alias" &&
1479 ac_cv_host_alias=$ac_cv_build_alias
1480 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1481 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1482 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1483 { (exit 1); exit 1; }; }
1486 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1487 echo "${ECHO_T}$ac_cv_host" >&6
1488 host=$ac_cv_host
1489 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1490 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1491 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1494 am__api_version="1.9"
1495 # Find a good install program. We prefer a C program (faster),
1496 # so one script is as good as another. But avoid the broken or
1497 # incompatible versions:
1498 # SysV /etc/install, /usr/sbin/install
1499 # SunOS /usr/etc/install
1500 # IRIX /sbin/install
1501 # AIX /bin/install
1502 # AmigaOS /C/install, which installs bootblocks on floppy discs
1503 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1504 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1505 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1506 # OS/2's system install, which has a completely different semantic
1507 # ./install, which can be erroneously created by make from ./install.sh.
1508 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1509 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1510 if test -z "$INSTALL"; then
1511 if test "${ac_cv_path_install+set}" = set; then
1512 echo $ECHO_N "(cached) $ECHO_C" >&6
1513 else
1514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1515 for as_dir in $PATH
1517 IFS=$as_save_IFS
1518 test -z "$as_dir" && as_dir=.
1519 # Account for people who put trailing slashes in PATH elements.
1520 case $as_dir/ in
1521 ./ | .// | /cC/* | \
1522 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1523 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1524 /usr/ucb/* ) ;;
1526 # OSF1 and SCO ODT 3.0 have their own names for install.
1527 # Don't use installbsd from OSF since it installs stuff as root
1528 # by default.
1529 for ac_prog in ginstall scoinst install; do
1530 for ac_exec_ext in '' $ac_executable_extensions; do
1531 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1532 if test $ac_prog = install &&
1533 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1534 # AIX install. It has an incompatible calling convention.
1536 elif test $ac_prog = install &&
1537 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1538 # program-specific install script used by HP pwplus--don't use.
1540 else
1541 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1542 break 3
1545 done
1546 done
1548 esac
1549 done
1553 if test "${ac_cv_path_install+set}" = set; then
1554 INSTALL=$ac_cv_path_install
1555 else
1556 # As a last resort, use the slow shell script. We don't cache a
1557 # path for INSTALL within a source directory, because that will
1558 # break other packages using the cache if that directory is
1559 # removed, or if the path is relative.
1560 INSTALL=$ac_install_sh
1563 echo "$as_me:$LINENO: result: $INSTALL" >&5
1564 echo "${ECHO_T}$INSTALL" >&6
1566 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1567 # It thinks the first close brace ends the variable substitution.
1568 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1570 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1572 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1574 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1575 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1576 # Just in case
1577 sleep 1
1578 echo timestamp > conftest.file
1579 # Do `set' in a subshell so we don't clobber the current shell's
1580 # arguments. Must try -L first in case configure is actually a
1581 # symlink; some systems play weird games with the mod time of symlinks
1582 # (eg FreeBSD returns the mod time of the symlink's containing
1583 # directory).
1584 if (
1585 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1586 if test "$*" = "X"; then
1587 # -L didn't work.
1588 set X `ls -t $srcdir/configure conftest.file`
1590 rm -f conftest.file
1591 if test "$*" != "X $srcdir/configure conftest.file" \
1592 && test "$*" != "X conftest.file $srcdir/configure"; then
1594 # If neither matched, then we have a broken ls. This can happen
1595 # if, for instance, CONFIG_SHELL is bash and it inherits a
1596 # broken ls alias from the environment. This has actually
1597 # happened. Such a system could not be considered "sane".
1598 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1599 alias in your environment" >&5
1600 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1601 alias in your environment" >&2;}
1602 { (exit 1); exit 1; }; }
1605 test "$2" = conftest.file
1607 then
1608 # Ok.
1610 else
1611 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1612 Check your system clock" >&5
1613 echo "$as_me: error: newly created file is older than distributed files!
1614 Check your system clock" >&2;}
1615 { (exit 1); exit 1; }; }
1617 echo "$as_me:$LINENO: result: yes" >&5
1618 echo "${ECHO_T}yes" >&6
1619 test "$program_prefix" != NONE &&
1620 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1621 # Use a double $ so make ignores it.
1622 test "$program_suffix" != NONE &&
1623 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1624 # Double any \ or $. echo might interpret backslashes.
1625 # By default was `s,x,x', remove it if useless.
1626 cat <<\_ACEOF >conftest.sed
1627 s/[\\$]/&&/g;s/;s,x,x,$//
1628 _ACEOF
1629 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1630 rm conftest.sed
1632 # expand $ac_aux_dir to an absolute path
1633 am_aux_dir=`cd $ac_aux_dir && pwd`
1635 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1636 # Use eval to expand $SHELL
1637 if eval "$MISSING --run true"; then
1638 am_missing_run="$MISSING --run "
1639 else
1640 am_missing_run=
1641 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1642 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1645 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1646 # We used to keeping the `.' as first argument, in order to
1647 # allow $(mkdir_p) to be used without argument. As in
1648 # $(mkdir_p) $(somedir)
1649 # where $(somedir) is conditionally defined. However this is wrong
1650 # for two reasons:
1651 # 1. if the package is installed by a user who cannot write `.'
1652 # make install will fail,
1653 # 2. the above comment should most certainly read
1654 # $(mkdir_p) $(DESTDIR)$(somedir)
1655 # so it does not work when $(somedir) is undefined and
1656 # $(DESTDIR) is not.
1657 # To support the latter case, we have to write
1658 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1659 # so the `.' trick is pointless.
1660 mkdir_p='mkdir -p --'
1661 else
1662 # On NextStep and OpenStep, the `mkdir' command does not
1663 # recognize any option. It will interpret all options as
1664 # directories to create, and then abort because `.' already
1665 # exists.
1666 for d in ./-p ./--version;
1668 test -d $d && rmdir $d
1669 done
1670 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1671 if test -f "$ac_aux_dir/mkinstalldirs"; then
1672 mkdir_p='$(mkinstalldirs)'
1673 else
1674 mkdir_p='$(install_sh) -d'
1678 for ac_prog in gawk mawk nawk awk
1680 # Extract the first word of "$ac_prog", so it can be a program name with args.
1681 set dummy $ac_prog; ac_word=$2
1682 echo "$as_me:$LINENO: checking for $ac_word" >&5
1683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1684 if test "${ac_cv_prog_AWK+set}" = set; then
1685 echo $ECHO_N "(cached) $ECHO_C" >&6
1686 else
1687 if test -n "$AWK"; then
1688 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1689 else
1690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1691 for as_dir in $PATH
1693 IFS=$as_save_IFS
1694 test -z "$as_dir" && as_dir=.
1695 for ac_exec_ext in '' $ac_executable_extensions; do
1696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1697 ac_cv_prog_AWK="$ac_prog"
1698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1699 break 2
1701 done
1702 done
1706 AWK=$ac_cv_prog_AWK
1707 if test -n "$AWK"; then
1708 echo "$as_me:$LINENO: result: $AWK" >&5
1709 echo "${ECHO_T}$AWK" >&6
1710 else
1711 echo "$as_me:$LINENO: result: no" >&5
1712 echo "${ECHO_T}no" >&6
1715 test -n "$AWK" && break
1716 done
1718 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1719 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1720 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1721 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1722 echo $ECHO_N "(cached) $ECHO_C" >&6
1723 else
1724 cat >conftest.make <<\_ACEOF
1725 all:
1726 @echo 'ac_maketemp="$(MAKE)"'
1727 _ACEOF
1728 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1729 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1730 if test -n "$ac_maketemp"; then
1731 eval ac_cv_prog_make_${ac_make}_set=yes
1732 else
1733 eval ac_cv_prog_make_${ac_make}_set=no
1735 rm -f conftest.make
1737 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1738 echo "$as_me:$LINENO: result: yes" >&5
1739 echo "${ECHO_T}yes" >&6
1740 SET_MAKE=
1741 else
1742 echo "$as_me:$LINENO: result: no" >&5
1743 echo "${ECHO_T}no" >&6
1744 SET_MAKE="MAKE=${MAKE-make}"
1747 rm -rf .tst 2>/dev/null
1748 mkdir .tst 2>/dev/null
1749 if test -d .tst; then
1750 am__leading_dot=.
1751 else
1752 am__leading_dot=_
1754 rmdir .tst 2>/dev/null
1756 # test to see if srcdir already configured
1757 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1758 test -f $srcdir/config.status; then
1759 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1760 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1761 { (exit 1); exit 1; }; }
1764 # test whether we have cygpath
1765 if test -z "$CYGPATH_W"; then
1766 if (cygpath --version) >/dev/null 2>/dev/null; then
1767 CYGPATH_W='cygpath -w'
1768 else
1769 CYGPATH_W=echo
1774 # Define the identity of the package.
1775 PACKAGE='amule'
1776 VERSION='SVN'
1779 cat >>confdefs.h <<_ACEOF
1780 #define PACKAGE "$PACKAGE"
1781 _ACEOF
1784 cat >>confdefs.h <<_ACEOF
1785 #define VERSION "$VERSION"
1786 _ACEOF
1788 # Some tools Automake needs.
1790 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1793 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1796 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1799 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1802 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1804 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1806 # Installed binaries are usually stripped using `strip' when the user
1807 # run `make install-strip'. However `strip' might not be the right
1808 # tool to use in cross-compilation environments, therefore Automake
1809 # will honor the `STRIP' environment variable to overrule this program.
1810 if test "$cross_compiling" != no; then
1811 if test -n "$ac_tool_prefix"; then
1812 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1813 set dummy ${ac_tool_prefix}strip; ac_word=$2
1814 echo "$as_me:$LINENO: checking for $ac_word" >&5
1815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1816 if test "${ac_cv_prog_STRIP+set}" = set; then
1817 echo $ECHO_N "(cached) $ECHO_C" >&6
1818 else
1819 if test -n "$STRIP"; then
1820 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1821 else
1822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1823 for as_dir in $PATH
1825 IFS=$as_save_IFS
1826 test -z "$as_dir" && as_dir=.
1827 for ac_exec_ext in '' $ac_executable_extensions; do
1828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1829 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1831 break 2
1833 done
1834 done
1838 STRIP=$ac_cv_prog_STRIP
1839 if test -n "$STRIP"; then
1840 echo "$as_me:$LINENO: result: $STRIP" >&5
1841 echo "${ECHO_T}$STRIP" >&6
1842 else
1843 echo "$as_me:$LINENO: result: no" >&5
1844 echo "${ECHO_T}no" >&6
1848 if test -z "$ac_cv_prog_STRIP"; then
1849 ac_ct_STRIP=$STRIP
1850 # Extract the first word of "strip", so it can be a program name with args.
1851 set dummy strip; ac_word=$2
1852 echo "$as_me:$LINENO: checking for $ac_word" >&5
1853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1854 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1855 echo $ECHO_N "(cached) $ECHO_C" >&6
1856 else
1857 if test -n "$ac_ct_STRIP"; then
1858 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1859 else
1860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1861 for as_dir in $PATH
1863 IFS=$as_save_IFS
1864 test -z "$as_dir" && as_dir=.
1865 for ac_exec_ext in '' $ac_executable_extensions; do
1866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1867 ac_cv_prog_ac_ct_STRIP="strip"
1868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1869 break 2
1871 done
1872 done
1874 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1877 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1878 if test -n "$ac_ct_STRIP"; then
1879 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1880 echo "${ECHO_T}$ac_ct_STRIP" >&6
1881 else
1882 echo "$as_me:$LINENO: result: no" >&5
1883 echo "${ECHO_T}no" >&6
1886 STRIP=$ac_ct_STRIP
1887 else
1888 STRIP="$ac_cv_prog_STRIP"
1892 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1894 # We need awk for the "check" target. The system "awk" is bad on
1895 # some platforms.
1896 # Always define AMTAR for backward compatibility.
1898 AMTAR=${AMTAR-"${am_missing_run}tar"}
1900 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1908 ac_config_headers="$ac_config_headers config.h"
1910 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1911 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1912 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1913 if test "${enable_maintainer_mode+set}" = set; then
1914 enableval="$enable_maintainer_mode"
1915 USE_MAINTAINER_MODE=$enableval
1916 else
1917 USE_MAINTAINER_MODE=no
1919 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1920 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1923 if test $USE_MAINTAINER_MODE = yes; then
1924 MAINTAINER_MODE_TRUE=
1925 MAINTAINER_MODE_FALSE='#'
1926 else
1927 MAINTAINER_MODE_TRUE='#'
1928 MAINTAINER_MODE_FALSE=
1931 MAINT=$MAINTAINER_MODE_TRUE
1935 # Removing -fomit since it causes problems with CryptoPP
1936 CFLAGS="`echo $CFLAGS | sed "s/-fomit-frame-pointer//g"`"
1937 CXXFLAGS="`echo $CXXFLAGS | sed "s/-fomit-frame-pointer//g"`"
1939 # System detection, need AC_CANONICAL_HOST
1940 case "${host_os}" in
1942 SYS=unknown
1944 darwin*)
1945 SYS=darwin
1946 CFLAGS="${CFLAGS} -no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH";
1947 LDFLAGS="$LDFLAGS -bind_at_load"
1948 touch src/Scanner.cpp
1950 openbsd*)
1951 SYS=openbsd
1952 LIBS="$LIBS -L/usr/local/lib"
1953 X11LIBS="-lX11 -L/usr/X11R6/lib"
1954 CXXFLAGS=" $CXXFLAGS -D__OPENBSD__"
1955 if test "$DEBUG_FLAGS" != ""; then
1956 DEBUG_FLAGS="-Wall -g -fno-inline -D__DEBUG__"
1959 *cygwin* | *mingw32*)
1960 SYS=win32
1961 CFLAGS="$CFLAGS -DNOMINMAX"
1962 CXXFLAGS="$CXXFLAGS -DNOMINMAX"
1964 solaris*)
1965 RESOLV_LIB="-lresolv -lnsl"
1966 X11LIBS="-lX11"
1967 LIBS="$LIBS -lrt"
1968 esac
1973 # Checks for programs.
1974 ac_ext=cc
1975 ac_cpp='$CXXCPP $CPPFLAGS'
1976 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1977 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1978 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1979 if test -n "$ac_tool_prefix"; then
1980 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1982 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1983 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1984 echo "$as_me:$LINENO: checking for $ac_word" >&5
1985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1986 if test "${ac_cv_prog_CXX+set}" = set; then
1987 echo $ECHO_N "(cached) $ECHO_C" >&6
1988 else
1989 if test -n "$CXX"; then
1990 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1991 else
1992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993 for as_dir in $PATH
1995 IFS=$as_save_IFS
1996 test -z "$as_dir" && as_dir=.
1997 for ac_exec_ext in '' $ac_executable_extensions; do
1998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1999 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2001 break 2
2003 done
2004 done
2008 CXX=$ac_cv_prog_CXX
2009 if test -n "$CXX"; then
2010 echo "$as_me:$LINENO: result: $CXX" >&5
2011 echo "${ECHO_T}$CXX" >&6
2012 else
2013 echo "$as_me:$LINENO: result: no" >&5
2014 echo "${ECHO_T}no" >&6
2017 test -n "$CXX" && break
2018 done
2020 if test -z "$CXX"; then
2021 ac_ct_CXX=$CXX
2022 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2024 # Extract the first word of "$ac_prog", so it can be a program name with args.
2025 set dummy $ac_prog; ac_word=$2
2026 echo "$as_me:$LINENO: checking for $ac_word" >&5
2027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2028 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2030 else
2031 if test -n "$ac_ct_CXX"; then
2032 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2033 else
2034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2035 for as_dir in $PATH
2037 IFS=$as_save_IFS
2038 test -z "$as_dir" && as_dir=.
2039 for ac_exec_ext in '' $ac_executable_extensions; do
2040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2041 ac_cv_prog_ac_ct_CXX="$ac_prog"
2042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2043 break 2
2045 done
2046 done
2050 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2051 if test -n "$ac_ct_CXX"; then
2052 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2053 echo "${ECHO_T}$ac_ct_CXX" >&6
2054 else
2055 echo "$as_me:$LINENO: result: no" >&5
2056 echo "${ECHO_T}no" >&6
2059 test -n "$ac_ct_CXX" && break
2060 done
2061 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2063 CXX=$ac_ct_CXX
2067 # Provide some information about the compiler.
2068 echo "$as_me:$LINENO:" \
2069 "checking for C++ compiler version" >&5
2070 ac_compiler=`set X $ac_compile; echo $2`
2071 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2072 (eval $ac_compiler --version </dev/null >&5) 2>&5
2073 ac_status=$?
2074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075 (exit $ac_status); }
2076 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2077 (eval $ac_compiler -v </dev/null >&5) 2>&5
2078 ac_status=$?
2079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2080 (exit $ac_status); }
2081 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2082 (eval $ac_compiler -V </dev/null >&5) 2>&5
2083 ac_status=$?
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 (exit $ac_status); }
2087 cat >conftest.$ac_ext <<_ACEOF
2088 /* confdefs.h. */
2089 _ACEOF
2090 cat confdefs.h >>conftest.$ac_ext
2091 cat >>conftest.$ac_ext <<_ACEOF
2092 /* end confdefs.h. */
2095 main ()
2099 return 0;
2101 _ACEOF
2102 ac_clean_files_save=$ac_clean_files
2103 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2104 # Try to create an executable without -o first, disregard a.out.
2105 # It will help us diagnose broken compilers, and finding out an intuition
2106 # of exeext.
2107 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2108 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2109 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2110 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2111 (eval $ac_link_default) 2>&5
2112 ac_status=$?
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }; then
2115 # Find the output, starting from the most likely. This scheme is
2116 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2117 # resort.
2119 # Be careful to initialize this variable, since it used to be cached.
2120 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2121 ac_cv_exeext=
2122 # b.out is created by i960 compilers.
2123 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2125 test -f "$ac_file" || continue
2126 case $ac_file in
2127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2129 conftest.$ac_ext )
2130 # This is the source file.
2132 [ab].out )
2133 # We found the default executable, but exeext='' is most
2134 # certainly right.
2135 break;;
2136 *.* )
2137 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2138 # FIXME: I believe we export ac_cv_exeext for Libtool,
2139 # but it would be cool to find out if it's true. Does anybody
2140 # maintain Libtool? --akim.
2141 export ac_cv_exeext
2142 break;;
2144 break;;
2145 esac
2146 done
2147 else
2148 echo "$as_me: failed program was:" >&5
2149 sed 's/^/| /' conftest.$ac_ext >&5
2151 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2152 See \`config.log' for more details." >&5
2153 echo "$as_me: error: C++ compiler cannot create executables
2154 See \`config.log' for more details." >&2;}
2155 { (exit 77); exit 77; }; }
2158 ac_exeext=$ac_cv_exeext
2159 echo "$as_me:$LINENO: result: $ac_file" >&5
2160 echo "${ECHO_T}$ac_file" >&6
2162 # Check the compiler produces executables we can run. If not, either
2163 # the compiler is broken, or we cross compile.
2164 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2165 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2166 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2167 # If not cross compiling, check that we can run a simple program.
2168 if test "$cross_compiling" != yes; then
2169 if { ac_try='./$ac_file'
2170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2171 (eval $ac_try) 2>&5
2172 ac_status=$?
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; }; then
2175 cross_compiling=no
2176 else
2177 if test "$cross_compiling" = maybe; then
2178 cross_compiling=yes
2179 else
2180 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2181 If you meant to cross compile, use \`--host'.
2182 See \`config.log' for more details." >&5
2183 echo "$as_me: error: cannot run C++ compiled programs.
2184 If you meant to cross compile, use \`--host'.
2185 See \`config.log' for more details." >&2;}
2186 { (exit 1); exit 1; }; }
2190 echo "$as_me:$LINENO: result: yes" >&5
2191 echo "${ECHO_T}yes" >&6
2193 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2194 ac_clean_files=$ac_clean_files_save
2195 # Check the compiler produces executables we can run. If not, either
2196 # the compiler is broken, or we cross compile.
2197 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2198 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2199 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2200 echo "${ECHO_T}$cross_compiling" >&6
2202 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2203 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2205 (eval $ac_link) 2>&5
2206 ac_status=$?
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }; then
2209 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2210 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2211 # work properly (i.e., refer to `conftest.exe'), while it won't with
2212 # `rm'.
2213 for ac_file in conftest.exe conftest conftest.*; do
2214 test -f "$ac_file" || continue
2215 case $ac_file in
2216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2217 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2218 export ac_cv_exeext
2219 break;;
2220 * ) break;;
2221 esac
2222 done
2223 else
2224 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2225 See \`config.log' for more details." >&5
2226 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2227 See \`config.log' for more details." >&2;}
2228 { (exit 1); exit 1; }; }
2231 rm -f conftest$ac_cv_exeext
2232 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2233 echo "${ECHO_T}$ac_cv_exeext" >&6
2235 rm -f conftest.$ac_ext
2236 EXEEXT=$ac_cv_exeext
2237 ac_exeext=$EXEEXT
2238 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2239 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2240 if test "${ac_cv_objext+set}" = set; then
2241 echo $ECHO_N "(cached) $ECHO_C" >&6
2242 else
2243 cat >conftest.$ac_ext <<_ACEOF
2244 /* confdefs.h. */
2245 _ACEOF
2246 cat confdefs.h >>conftest.$ac_ext
2247 cat >>conftest.$ac_ext <<_ACEOF
2248 /* end confdefs.h. */
2251 main ()
2255 return 0;
2257 _ACEOF
2258 rm -f conftest.o conftest.obj
2259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2260 (eval $ac_compile) 2>&5
2261 ac_status=$?
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; then
2264 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2265 case $ac_file in
2266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2267 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2268 break;;
2269 esac
2270 done
2271 else
2272 echo "$as_me: failed program was:" >&5
2273 sed 's/^/| /' conftest.$ac_ext >&5
2275 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2276 See \`config.log' for more details." >&5
2277 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2278 See \`config.log' for more details." >&2;}
2279 { (exit 1); exit 1; }; }
2282 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2284 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2285 echo "${ECHO_T}$ac_cv_objext" >&6
2286 OBJEXT=$ac_cv_objext
2287 ac_objext=$OBJEXT
2288 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2289 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2290 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2291 echo $ECHO_N "(cached) $ECHO_C" >&6
2292 else
2293 cat >conftest.$ac_ext <<_ACEOF
2294 /* confdefs.h. */
2295 _ACEOF
2296 cat confdefs.h >>conftest.$ac_ext
2297 cat >>conftest.$ac_ext <<_ACEOF
2298 /* end confdefs.h. */
2301 main ()
2303 #ifndef __GNUC__
2304 choke me
2305 #endif
2308 return 0;
2310 _ACEOF
2311 rm -f conftest.$ac_objext
2312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2313 (eval $ac_compile) 2>conftest.er1
2314 ac_status=$?
2315 grep -v '^ *+' conftest.er1 >conftest.err
2316 rm -f conftest.er1
2317 cat conftest.err >&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); } &&
2320 { ac_try='test -z "$ac_cxx_werror_flag"
2321 || test ! -s conftest.err'
2322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323 (eval $ac_try) 2>&5
2324 ac_status=$?
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }; } &&
2327 { ac_try='test -s conftest.$ac_objext'
2328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329 (eval $ac_try) 2>&5
2330 ac_status=$?
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; }; then
2333 ac_compiler_gnu=yes
2334 else
2335 echo "$as_me: failed program was:" >&5
2336 sed 's/^/| /' conftest.$ac_ext >&5
2338 ac_compiler_gnu=no
2340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2341 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2344 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2345 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2346 GXX=`test $ac_compiler_gnu = yes && echo yes`
2347 ac_test_CXXFLAGS=${CXXFLAGS+set}
2348 ac_save_CXXFLAGS=$CXXFLAGS
2349 CXXFLAGS="-g"
2350 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2351 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2352 if test "${ac_cv_prog_cxx_g+set}" = set; then
2353 echo $ECHO_N "(cached) $ECHO_C" >&6
2354 else
2355 cat >conftest.$ac_ext <<_ACEOF
2356 /* confdefs.h. */
2357 _ACEOF
2358 cat confdefs.h >>conftest.$ac_ext
2359 cat >>conftest.$ac_ext <<_ACEOF
2360 /* end confdefs.h. */
2363 main ()
2367 return 0;
2369 _ACEOF
2370 rm -f conftest.$ac_objext
2371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2372 (eval $ac_compile) 2>conftest.er1
2373 ac_status=$?
2374 grep -v '^ *+' conftest.er1 >conftest.err
2375 rm -f conftest.er1
2376 cat conftest.err >&5
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); } &&
2379 { ac_try='test -z "$ac_cxx_werror_flag"
2380 || test ! -s conftest.err'
2381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382 (eval $ac_try) 2>&5
2383 ac_status=$?
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }; } &&
2386 { ac_try='test -s conftest.$ac_objext'
2387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388 (eval $ac_try) 2>&5
2389 ac_status=$?
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); }; }; then
2392 ac_cv_prog_cxx_g=yes
2393 else
2394 echo "$as_me: failed program was:" >&5
2395 sed 's/^/| /' conftest.$ac_ext >&5
2397 ac_cv_prog_cxx_g=no
2399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2401 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2402 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2403 if test "$ac_test_CXXFLAGS" = set; then
2404 CXXFLAGS=$ac_save_CXXFLAGS
2405 elif test $ac_cv_prog_cxx_g = yes; then
2406 if test "$GXX" = yes; then
2407 CXXFLAGS="-g -O2"
2408 else
2409 CXXFLAGS="-g"
2411 else
2412 if test "$GXX" = yes; then
2413 CXXFLAGS="-O2"
2414 else
2415 CXXFLAGS=
2418 for ac_declaration in \
2419 '' \
2420 'extern "C" void std::exit (int) throw (); using std::exit;' \
2421 'extern "C" void std::exit (int); using std::exit;' \
2422 'extern "C" void exit (int) throw ();' \
2423 'extern "C" void exit (int);' \
2424 'void exit (int);'
2426 cat >conftest.$ac_ext <<_ACEOF
2427 /* confdefs.h. */
2428 _ACEOF
2429 cat confdefs.h >>conftest.$ac_ext
2430 cat >>conftest.$ac_ext <<_ACEOF
2431 /* end confdefs.h. */
2432 $ac_declaration
2433 #include <stdlib.h>
2435 main ()
2437 exit (42);
2439 return 0;
2441 _ACEOF
2442 rm -f conftest.$ac_objext
2443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2444 (eval $ac_compile) 2>conftest.er1
2445 ac_status=$?
2446 grep -v '^ *+' conftest.er1 >conftest.err
2447 rm -f conftest.er1
2448 cat conftest.err >&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); } &&
2451 { ac_try='test -z "$ac_cxx_werror_flag"
2452 || test ! -s conftest.err'
2453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454 (eval $ac_try) 2>&5
2455 ac_status=$?
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); }; } &&
2458 { ac_try='test -s conftest.$ac_objext'
2459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460 (eval $ac_try) 2>&5
2461 ac_status=$?
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); }; }; then
2465 else
2466 echo "$as_me: failed program was:" >&5
2467 sed 's/^/| /' conftest.$ac_ext >&5
2469 continue
2471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2472 cat >conftest.$ac_ext <<_ACEOF
2473 /* confdefs.h. */
2474 _ACEOF
2475 cat confdefs.h >>conftest.$ac_ext
2476 cat >>conftest.$ac_ext <<_ACEOF
2477 /* end confdefs.h. */
2478 $ac_declaration
2480 main ()
2482 exit (42);
2484 return 0;
2486 _ACEOF
2487 rm -f conftest.$ac_objext
2488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2489 (eval $ac_compile) 2>conftest.er1
2490 ac_status=$?
2491 grep -v '^ *+' conftest.er1 >conftest.err
2492 rm -f conftest.er1
2493 cat conftest.err >&5
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); } &&
2496 { ac_try='test -z "$ac_cxx_werror_flag"
2497 || test ! -s conftest.err'
2498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2499 (eval $ac_try) 2>&5
2500 ac_status=$?
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); }; } &&
2503 { ac_try='test -s conftest.$ac_objext'
2504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2505 (eval $ac_try) 2>&5
2506 ac_status=$?
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }; }; then
2509 break
2510 else
2511 echo "$as_me: failed program was:" >&5
2512 sed 's/^/| /' conftest.$ac_ext >&5
2515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2516 done
2517 rm -f conftest*
2518 if test -n "$ac_declaration"; then
2519 echo '#ifdef __cplusplus' >>confdefs.h
2520 echo $ac_declaration >>confdefs.h
2521 echo '#endif' >>confdefs.h
2524 ac_ext=c
2525 ac_cpp='$CPP $CPPFLAGS'
2526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2529 DEPDIR="${am__leading_dot}deps"
2531 ac_config_commands="$ac_config_commands depfiles"
2534 am_make=${MAKE-make}
2535 cat > confinc << 'END'
2536 am__doit:
2537 @echo done
2538 .PHONY: am__doit
2540 # If we don't find an include directive, just comment out the code.
2541 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2542 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2543 am__include="#"
2544 am__quote=
2545 _am_result=none
2546 # First try GNU make style include.
2547 echo "include confinc" > confmf
2548 # We grep out `Entering directory' and `Leaving directory'
2549 # messages which can occur if `w' ends up in MAKEFLAGS.
2550 # In particular we don't look at `^make:' because GNU make might
2551 # be invoked under some other name (usually "gmake"), in which
2552 # case it prints its new name instead of `make'.
2553 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2554 am__include=include
2555 am__quote=
2556 _am_result=GNU
2558 # Now try BSD make style include.
2559 if test "$am__include" = "#"; then
2560 echo '.include "confinc"' > confmf
2561 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2562 am__include=.include
2563 am__quote="\""
2564 _am_result=BSD
2569 echo "$as_me:$LINENO: result: $_am_result" >&5
2570 echo "${ECHO_T}$_am_result" >&6
2571 rm -f confinc confmf
2573 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2574 if test "${enable_dependency_tracking+set}" = set; then
2575 enableval="$enable_dependency_tracking"
2578 if test "x$enable_dependency_tracking" != xno; then
2579 am_depcomp="$ac_aux_dir/depcomp"
2580 AMDEPBACKSLASH='\'
2584 if test "x$enable_dependency_tracking" != xno; then
2585 AMDEP_TRUE=
2586 AMDEP_FALSE='#'
2587 else
2588 AMDEP_TRUE='#'
2589 AMDEP_FALSE=
2595 depcc="$CXX" am_compiler_list=
2597 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2598 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2599 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2600 echo $ECHO_N "(cached) $ECHO_C" >&6
2601 else
2602 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2603 # We make a subdir and do the tests there. Otherwise we can end up
2604 # making bogus files that we don't know about and never remove. For
2605 # instance it was reported that on HP-UX the gcc test will end up
2606 # making a dummy file named `D' -- because `-MD' means `put the output
2607 # in D'.
2608 mkdir conftest.dir
2609 # Copy depcomp to subdir because otherwise we won't find it if we're
2610 # using a relative directory.
2611 cp "$am_depcomp" conftest.dir
2612 cd conftest.dir
2613 # We will build objects and dependencies in a subdirectory because
2614 # it helps to detect inapplicable dependency modes. For instance
2615 # both Tru64's cc and ICC support -MD to output dependencies as a
2616 # side effect of compilation, but ICC will put the dependencies in
2617 # the current directory while Tru64 will put them in the object
2618 # directory.
2619 mkdir sub
2621 am_cv_CXX_dependencies_compiler_type=none
2622 if test "$am_compiler_list" = ""; then
2623 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2625 for depmode in $am_compiler_list; do
2626 # Setup a source with many dependencies, because some compilers
2627 # like to wrap large dependency lists on column 80 (with \), and
2628 # we should not choose a depcomp mode which is confused by this.
2630 # We need to recreate these files for each test, as the compiler may
2631 # overwrite some of them when testing with obscure command lines.
2632 # This happens at least with the AIX C compiler.
2633 : > sub/conftest.c
2634 for i in 1 2 3 4 5 6; do
2635 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2636 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2637 # Solaris 8's {/usr,}/bin/sh.
2638 touch sub/conftst$i.h
2639 done
2640 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2642 case $depmode in
2643 nosideeffect)
2644 # after this tag, mechanisms are not by side-effect, so they'll
2645 # only be used when explicitly requested
2646 if test "x$enable_dependency_tracking" = xyes; then
2647 continue
2648 else
2649 break
2652 none) break ;;
2653 esac
2654 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2655 # mode. It turns out that the SunPro C++ compiler does not properly
2656 # handle `-M -o', and we need to detect this.
2657 if depmode=$depmode \
2658 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2659 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2660 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2661 >/dev/null 2>conftest.err &&
2662 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2663 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2664 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2665 # icc doesn't choke on unknown options, it will just issue warnings
2666 # or remarks (even with -Werror). So we grep stderr for any message
2667 # that says an option was ignored or not supported.
2668 # When given -MP, icc 7.0 and 7.1 complain thusly:
2669 # icc: Command line warning: ignoring option '-M'; no argument required
2670 # The diagnosis changed in icc 8.0:
2671 # icc: Command line remark: option '-MP' not supported
2672 if (grep 'ignoring option' conftest.err ||
2673 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2674 am_cv_CXX_dependencies_compiler_type=$depmode
2675 break
2678 done
2680 cd ..
2681 rm -rf conftest.dir
2682 else
2683 am_cv_CXX_dependencies_compiler_type=none
2687 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2688 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2689 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2694 test "x$enable_dependency_tracking" != xno \
2695 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2696 am__fastdepCXX_TRUE=
2697 am__fastdepCXX_FALSE='#'
2698 else
2699 am__fastdepCXX_TRUE='#'
2700 am__fastdepCXX_FALSE=
2704 ac_ext=cc
2705 ac_cpp='$CXXCPP $CPPFLAGS'
2706 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2707 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2708 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2709 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2710 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2711 if test -z "$CXXCPP"; then
2712 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2713 echo $ECHO_N "(cached) $ECHO_C" >&6
2714 else
2715 # Double quotes because CXXCPP needs to be expanded
2716 for CXXCPP in "$CXX -E" "/lib/cpp"
2718 ac_preproc_ok=false
2719 for ac_cxx_preproc_warn_flag in '' yes
2721 # Use a header file that comes with gcc, so configuring glibc
2722 # with a fresh cross-compiler works.
2723 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2724 # <limits.h> exists even on freestanding compilers.
2725 # On the NeXT, cc -E runs the code through the compiler's parser,
2726 # not just through cpp. "Syntax error" is here to catch this case.
2727 cat >conftest.$ac_ext <<_ACEOF
2728 /* confdefs.h. */
2729 _ACEOF
2730 cat confdefs.h >>conftest.$ac_ext
2731 cat >>conftest.$ac_ext <<_ACEOF
2732 /* end confdefs.h. */
2733 #ifdef __STDC__
2734 # include <limits.h>
2735 #else
2736 # include <assert.h>
2737 #endif
2738 Syntax error
2739 _ACEOF
2740 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2741 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2742 ac_status=$?
2743 grep -v '^ *+' conftest.er1 >conftest.err
2744 rm -f conftest.er1
2745 cat conftest.err >&5
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); } >/dev/null; then
2748 if test -s conftest.err; then
2749 ac_cpp_err=$ac_cxx_preproc_warn_flag
2750 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2751 else
2752 ac_cpp_err=
2754 else
2755 ac_cpp_err=yes
2757 if test -z "$ac_cpp_err"; then
2759 else
2760 echo "$as_me: failed program was:" >&5
2761 sed 's/^/| /' conftest.$ac_ext >&5
2763 # Broken: fails on valid input.
2764 continue
2766 rm -f conftest.err conftest.$ac_ext
2768 # OK, works on sane cases. Now check whether non-existent headers
2769 # can be detected and how.
2770 cat >conftest.$ac_ext <<_ACEOF
2771 /* confdefs.h. */
2772 _ACEOF
2773 cat confdefs.h >>conftest.$ac_ext
2774 cat >>conftest.$ac_ext <<_ACEOF
2775 /* end confdefs.h. */
2776 #include <ac_nonexistent.h>
2777 _ACEOF
2778 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2779 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2780 ac_status=$?
2781 grep -v '^ *+' conftest.er1 >conftest.err
2782 rm -f conftest.er1
2783 cat conftest.err >&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); } >/dev/null; then
2786 if test -s conftest.err; then
2787 ac_cpp_err=$ac_cxx_preproc_warn_flag
2788 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2789 else
2790 ac_cpp_err=
2792 else
2793 ac_cpp_err=yes
2795 if test -z "$ac_cpp_err"; then
2796 # Broken: success on invalid input.
2797 continue
2798 else
2799 echo "$as_me: failed program was:" >&5
2800 sed 's/^/| /' conftest.$ac_ext >&5
2802 # Passes both tests.
2803 ac_preproc_ok=:
2804 break
2806 rm -f conftest.err conftest.$ac_ext
2808 done
2809 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2810 rm -f conftest.err conftest.$ac_ext
2811 if $ac_preproc_ok; then
2812 break
2815 done
2816 ac_cv_prog_CXXCPP=$CXXCPP
2819 CXXCPP=$ac_cv_prog_CXXCPP
2820 else
2821 ac_cv_prog_CXXCPP=$CXXCPP
2823 echo "$as_me:$LINENO: result: $CXXCPP" >&5
2824 echo "${ECHO_T}$CXXCPP" >&6
2825 ac_preproc_ok=false
2826 for ac_cxx_preproc_warn_flag in '' yes
2828 # Use a header file that comes with gcc, so configuring glibc
2829 # with a fresh cross-compiler works.
2830 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2831 # <limits.h> exists even on freestanding compilers.
2832 # On the NeXT, cc -E runs the code through the compiler's parser,
2833 # not just through cpp. "Syntax error" is here to catch this case.
2834 cat >conftest.$ac_ext <<_ACEOF
2835 /* confdefs.h. */
2836 _ACEOF
2837 cat confdefs.h >>conftest.$ac_ext
2838 cat >>conftest.$ac_ext <<_ACEOF
2839 /* end confdefs.h. */
2840 #ifdef __STDC__
2841 # include <limits.h>
2842 #else
2843 # include <assert.h>
2844 #endif
2845 Syntax error
2846 _ACEOF
2847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2848 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2849 ac_status=$?
2850 grep -v '^ *+' conftest.er1 >conftest.err
2851 rm -f conftest.er1
2852 cat conftest.err >&5
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); } >/dev/null; then
2855 if test -s conftest.err; then
2856 ac_cpp_err=$ac_cxx_preproc_warn_flag
2857 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2858 else
2859 ac_cpp_err=
2861 else
2862 ac_cpp_err=yes
2864 if test -z "$ac_cpp_err"; then
2866 else
2867 echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.$ac_ext >&5
2870 # Broken: fails on valid input.
2871 continue
2873 rm -f conftest.err conftest.$ac_ext
2875 # OK, works on sane cases. Now check whether non-existent headers
2876 # can be detected and how.
2877 cat >conftest.$ac_ext <<_ACEOF
2878 /* confdefs.h. */
2879 _ACEOF
2880 cat confdefs.h >>conftest.$ac_ext
2881 cat >>conftest.$ac_ext <<_ACEOF
2882 /* end confdefs.h. */
2883 #include <ac_nonexistent.h>
2884 _ACEOF
2885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2887 ac_status=$?
2888 grep -v '^ *+' conftest.er1 >conftest.err
2889 rm -f conftest.er1
2890 cat conftest.err >&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); } >/dev/null; then
2893 if test -s conftest.err; then
2894 ac_cpp_err=$ac_cxx_preproc_warn_flag
2895 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2896 else
2897 ac_cpp_err=
2899 else
2900 ac_cpp_err=yes
2902 if test -z "$ac_cpp_err"; then
2903 # Broken: success on invalid input.
2904 continue
2905 else
2906 echo "$as_me: failed program was:" >&5
2907 sed 's/^/| /' conftest.$ac_ext >&5
2909 # Passes both tests.
2910 ac_preproc_ok=:
2911 break
2913 rm -f conftest.err conftest.$ac_ext
2915 done
2916 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2917 rm -f conftest.err conftest.$ac_ext
2918 if $ac_preproc_ok; then
2920 else
2921 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2922 See \`config.log' for more details." >&5
2923 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2924 See \`config.log' for more details." >&2;}
2925 { (exit 1); exit 1; }; }
2928 ac_ext=c
2929 ac_cpp='$CPP $CPPFLAGS'
2930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2934 ac_ext=c
2935 ac_cpp='$CPP $CPPFLAGS'
2936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2939 if test -n "$ac_tool_prefix"; then
2940 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2941 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2942 echo "$as_me:$LINENO: checking for $ac_word" >&5
2943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2944 if test "${ac_cv_prog_CC+set}" = set; then
2945 echo $ECHO_N "(cached) $ECHO_C" >&6
2946 else
2947 if test -n "$CC"; then
2948 ac_cv_prog_CC="$CC" # Let the user override the test.
2949 else
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951 for as_dir in $PATH
2953 IFS=$as_save_IFS
2954 test -z "$as_dir" && as_dir=.
2955 for ac_exec_ext in '' $ac_executable_extensions; do
2956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2957 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2959 break 2
2961 done
2962 done
2966 CC=$ac_cv_prog_CC
2967 if test -n "$CC"; then
2968 echo "$as_me:$LINENO: result: $CC" >&5
2969 echo "${ECHO_T}$CC" >&6
2970 else
2971 echo "$as_me:$LINENO: result: no" >&5
2972 echo "${ECHO_T}no" >&6
2976 if test -z "$ac_cv_prog_CC"; then
2977 ac_ct_CC=$CC
2978 # Extract the first word of "gcc", so it can be a program name with args.
2979 set dummy gcc; ac_word=$2
2980 echo "$as_me:$LINENO: checking for $ac_word" >&5
2981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2982 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2983 echo $ECHO_N "(cached) $ECHO_C" >&6
2984 else
2985 if test -n "$ac_ct_CC"; then
2986 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2987 else
2988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 for as_dir in $PATH
2991 IFS=$as_save_IFS
2992 test -z "$as_dir" && as_dir=.
2993 for ac_exec_ext in '' $ac_executable_extensions; do
2994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2995 ac_cv_prog_ac_ct_CC="gcc"
2996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2997 break 2
2999 done
3000 done
3004 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3005 if test -n "$ac_ct_CC"; then
3006 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3007 echo "${ECHO_T}$ac_ct_CC" >&6
3008 else
3009 echo "$as_me:$LINENO: result: no" >&5
3010 echo "${ECHO_T}no" >&6
3013 CC=$ac_ct_CC
3014 else
3015 CC="$ac_cv_prog_CC"
3018 if test -z "$CC"; then
3019 if test -n "$ac_tool_prefix"; then
3020 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3021 set dummy ${ac_tool_prefix}cc; ac_word=$2
3022 echo "$as_me:$LINENO: checking for $ac_word" >&5
3023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3024 if test "${ac_cv_prog_CC+set}" = set; then
3025 echo $ECHO_N "(cached) $ECHO_C" >&6
3026 else
3027 if test -n "$CC"; then
3028 ac_cv_prog_CC="$CC" # Let the user override the test.
3029 else
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031 for as_dir in $PATH
3033 IFS=$as_save_IFS
3034 test -z "$as_dir" && as_dir=.
3035 for ac_exec_ext in '' $ac_executable_extensions; do
3036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3037 ac_cv_prog_CC="${ac_tool_prefix}cc"
3038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3039 break 2
3041 done
3042 done
3046 CC=$ac_cv_prog_CC
3047 if test -n "$CC"; then
3048 echo "$as_me:$LINENO: result: $CC" >&5
3049 echo "${ECHO_T}$CC" >&6
3050 else
3051 echo "$as_me:$LINENO: result: no" >&5
3052 echo "${ECHO_T}no" >&6
3056 if test -z "$ac_cv_prog_CC"; then
3057 ac_ct_CC=$CC
3058 # Extract the first word of "cc", so it can be a program name with args.
3059 set dummy cc; ac_word=$2
3060 echo "$as_me:$LINENO: checking for $ac_word" >&5
3061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3062 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3063 echo $ECHO_N "(cached) $ECHO_C" >&6
3064 else
3065 if test -n "$ac_ct_CC"; then
3066 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3067 else
3068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069 for as_dir in $PATH
3071 IFS=$as_save_IFS
3072 test -z "$as_dir" && as_dir=.
3073 for ac_exec_ext in '' $ac_executable_extensions; do
3074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3075 ac_cv_prog_ac_ct_CC="cc"
3076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3077 break 2
3079 done
3080 done
3084 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3085 if test -n "$ac_ct_CC"; then
3086 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3087 echo "${ECHO_T}$ac_ct_CC" >&6
3088 else
3089 echo "$as_me:$LINENO: result: no" >&5
3090 echo "${ECHO_T}no" >&6
3093 CC=$ac_ct_CC
3094 else
3095 CC="$ac_cv_prog_CC"
3099 if test -z "$CC"; then
3100 # Extract the first word of "cc", so it can be a program name with args.
3101 set dummy cc; ac_word=$2
3102 echo "$as_me:$LINENO: checking for $ac_word" >&5
3103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3104 if test "${ac_cv_prog_CC+set}" = set; then
3105 echo $ECHO_N "(cached) $ECHO_C" >&6
3106 else
3107 if test -n "$CC"; then
3108 ac_cv_prog_CC="$CC" # Let the user override the test.
3109 else
3110 ac_prog_rejected=no
3111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112 for as_dir in $PATH
3114 IFS=$as_save_IFS
3115 test -z "$as_dir" && as_dir=.
3116 for ac_exec_ext in '' $ac_executable_extensions; do
3117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3118 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3119 ac_prog_rejected=yes
3120 continue
3122 ac_cv_prog_CC="cc"
3123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3124 break 2
3126 done
3127 done
3129 if test $ac_prog_rejected = yes; then
3130 # We found a bogon in the path, so make sure we never use it.
3131 set dummy $ac_cv_prog_CC
3132 shift
3133 if test $# != 0; then
3134 # We chose a different compiler from the bogus one.
3135 # However, it has the same basename, so the bogon will be chosen
3136 # first if we set CC to just the basename; use the full file name.
3137 shift
3138 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3143 CC=$ac_cv_prog_CC
3144 if test -n "$CC"; then
3145 echo "$as_me:$LINENO: result: $CC" >&5
3146 echo "${ECHO_T}$CC" >&6
3147 else
3148 echo "$as_me:$LINENO: result: no" >&5
3149 echo "${ECHO_T}no" >&6
3153 if test -z "$CC"; then
3154 if test -n "$ac_tool_prefix"; then
3155 for ac_prog in cl
3157 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3158 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3159 echo "$as_me:$LINENO: checking for $ac_word" >&5
3160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3161 if test "${ac_cv_prog_CC+set}" = set; then
3162 echo $ECHO_N "(cached) $ECHO_C" >&6
3163 else
3164 if test -n "$CC"; then
3165 ac_cv_prog_CC="$CC" # Let the user override the test.
3166 else
3167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168 for as_dir in $PATH
3170 IFS=$as_save_IFS
3171 test -z "$as_dir" && as_dir=.
3172 for ac_exec_ext in '' $ac_executable_extensions; do
3173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3174 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3176 break 2
3178 done
3179 done
3183 CC=$ac_cv_prog_CC
3184 if test -n "$CC"; then
3185 echo "$as_me:$LINENO: result: $CC" >&5
3186 echo "${ECHO_T}$CC" >&6
3187 else
3188 echo "$as_me:$LINENO: result: no" >&5
3189 echo "${ECHO_T}no" >&6
3192 test -n "$CC" && break
3193 done
3195 if test -z "$CC"; then
3196 ac_ct_CC=$CC
3197 for ac_prog in cl
3199 # Extract the first word of "$ac_prog", so it can be a program name with args.
3200 set dummy $ac_prog; ac_word=$2
3201 echo "$as_me:$LINENO: checking for $ac_word" >&5
3202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3203 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 else
3206 if test -n "$ac_ct_CC"; then
3207 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3208 else
3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210 for as_dir in $PATH
3212 IFS=$as_save_IFS
3213 test -z "$as_dir" && as_dir=.
3214 for ac_exec_ext in '' $ac_executable_extensions; do
3215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3216 ac_cv_prog_ac_ct_CC="$ac_prog"
3217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3218 break 2
3220 done
3221 done
3225 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3226 if test -n "$ac_ct_CC"; then
3227 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3228 echo "${ECHO_T}$ac_ct_CC" >&6
3229 else
3230 echo "$as_me:$LINENO: result: no" >&5
3231 echo "${ECHO_T}no" >&6
3234 test -n "$ac_ct_CC" && break
3235 done
3237 CC=$ac_ct_CC
3243 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3244 See \`config.log' for more details." >&5
3245 echo "$as_me: error: no acceptable C compiler found in \$PATH
3246 See \`config.log' for more details." >&2;}
3247 { (exit 1); exit 1; }; }
3249 # Provide some information about the compiler.
3250 echo "$as_me:$LINENO:" \
3251 "checking for C compiler version" >&5
3252 ac_compiler=`set X $ac_compile; echo $2`
3253 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3254 (eval $ac_compiler --version </dev/null >&5) 2>&5
3255 ac_status=$?
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); }
3258 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3259 (eval $ac_compiler -v </dev/null >&5) 2>&5
3260 ac_status=$?
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }
3263 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3264 (eval $ac_compiler -V </dev/null >&5) 2>&5
3265 ac_status=$?
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); }
3269 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3270 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3271 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3272 echo $ECHO_N "(cached) $ECHO_C" >&6
3273 else
3274 cat >conftest.$ac_ext <<_ACEOF
3275 /* confdefs.h. */
3276 _ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h. */
3282 main ()
3284 #ifndef __GNUC__
3285 choke me
3286 #endif
3289 return 0;
3291 _ACEOF
3292 rm -f conftest.$ac_objext
3293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3294 (eval $ac_compile) 2>conftest.er1
3295 ac_status=$?
3296 grep -v '^ *+' conftest.er1 >conftest.err
3297 rm -f conftest.er1
3298 cat conftest.err >&5
3299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300 (exit $ac_status); } &&
3301 { ac_try='test -z "$ac_c_werror_flag"
3302 || test ! -s conftest.err'
3303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3304 (eval $ac_try) 2>&5
3305 ac_status=$?
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); }; } &&
3308 { ac_try='test -s conftest.$ac_objext'
3309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3310 (eval $ac_try) 2>&5
3311 ac_status=$?
3312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); }; }; then
3314 ac_compiler_gnu=yes
3315 else
3316 echo "$as_me: failed program was:" >&5
3317 sed 's/^/| /' conftest.$ac_ext >&5
3319 ac_compiler_gnu=no
3321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3322 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3325 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3326 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3327 GCC=`test $ac_compiler_gnu = yes && echo yes`
3328 ac_test_CFLAGS=${CFLAGS+set}
3329 ac_save_CFLAGS=$CFLAGS
3330 CFLAGS="-g"
3331 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3332 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3333 if test "${ac_cv_prog_cc_g+set}" = set; then
3334 echo $ECHO_N "(cached) $ECHO_C" >&6
3335 else
3336 cat >conftest.$ac_ext <<_ACEOF
3337 /* confdefs.h. */
3338 _ACEOF
3339 cat confdefs.h >>conftest.$ac_ext
3340 cat >>conftest.$ac_ext <<_ACEOF
3341 /* end confdefs.h. */
3344 main ()
3348 return 0;
3350 _ACEOF
3351 rm -f conftest.$ac_objext
3352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3353 (eval $ac_compile) 2>conftest.er1
3354 ac_status=$?
3355 grep -v '^ *+' conftest.er1 >conftest.err
3356 rm -f conftest.er1
3357 cat conftest.err >&5
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); } &&
3360 { ac_try='test -z "$ac_c_werror_flag"
3361 || test ! -s conftest.err'
3362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3363 (eval $ac_try) 2>&5
3364 ac_status=$?
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); }; } &&
3367 { ac_try='test -s conftest.$ac_objext'
3368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3369 (eval $ac_try) 2>&5
3370 ac_status=$?
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); }; }; then
3373 ac_cv_prog_cc_g=yes
3374 else
3375 echo "$as_me: failed program was:" >&5
3376 sed 's/^/| /' conftest.$ac_ext >&5
3378 ac_cv_prog_cc_g=no
3380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3382 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3383 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3384 if test "$ac_test_CFLAGS" = set; then
3385 CFLAGS=$ac_save_CFLAGS
3386 elif test $ac_cv_prog_cc_g = yes; then
3387 if test "$GCC" = yes; then
3388 CFLAGS="-g -O2"
3389 else
3390 CFLAGS="-g"
3392 else
3393 if test "$GCC" = yes; then
3394 CFLAGS="-O2"
3395 else
3396 CFLAGS=
3399 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3400 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3401 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3402 echo $ECHO_N "(cached) $ECHO_C" >&6
3403 else
3404 ac_cv_prog_cc_stdc=no
3405 ac_save_CC=$CC
3406 cat >conftest.$ac_ext <<_ACEOF
3407 /* confdefs.h. */
3408 _ACEOF
3409 cat confdefs.h >>conftest.$ac_ext
3410 cat >>conftest.$ac_ext <<_ACEOF
3411 /* end confdefs.h. */
3412 #include <stdarg.h>
3413 #include <stdio.h>
3414 #include <sys/types.h>
3415 #include <sys/stat.h>
3416 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3417 struct buf { int x; };
3418 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3419 static char *e (p, i)
3420 char **p;
3421 int i;
3423 return p[i];
3425 static char *f (char * (*g) (char **, int), char **p, ...)
3427 char *s;
3428 va_list v;
3429 va_start (v,p);
3430 s = g (p, va_arg (v,int));
3431 va_end (v);
3432 return s;
3435 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3436 function prototypes and stuff, but not '\xHH' hex character constants.
3437 These don't provoke an error unfortunately, instead are silently treated
3438 as 'x'. The following induces an error, until -std1 is added to get
3439 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3440 array size at least. It's necessary to write '\x00'==0 to get something
3441 that's true only with -std1. */
3442 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3444 int test (int i, double x);
3445 struct s1 {int (*f) (int a);};
3446 struct s2 {int (*f) (double a);};
3447 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3448 int argc;
3449 char **argv;
3451 main ()
3453 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3455 return 0;
3457 _ACEOF
3458 # Don't try gcc -ansi; that turns off useful extensions and
3459 # breaks some systems' header files.
3460 # AIX -qlanglvl=ansi
3461 # Ultrix and OSF/1 -std1
3462 # HP-UX 10.20 and later -Ae
3463 # HP-UX older versions -Aa -D_HPUX_SOURCE
3464 # SVR4 -Xc -D__EXTENSIONS__
3465 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3467 CC="$ac_save_CC $ac_arg"
3468 rm -f conftest.$ac_objext
3469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3470 (eval $ac_compile) 2>conftest.er1
3471 ac_status=$?
3472 grep -v '^ *+' conftest.er1 >conftest.err
3473 rm -f conftest.er1
3474 cat conftest.err >&5
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); } &&
3477 { ac_try='test -z "$ac_c_werror_flag"
3478 || test ! -s conftest.err'
3479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3480 (eval $ac_try) 2>&5
3481 ac_status=$?
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); }; } &&
3484 { ac_try='test -s conftest.$ac_objext'
3485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3486 (eval $ac_try) 2>&5
3487 ac_status=$?
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); }; }; then
3490 ac_cv_prog_cc_stdc=$ac_arg
3491 break
3492 else
3493 echo "$as_me: failed program was:" >&5
3494 sed 's/^/| /' conftest.$ac_ext >&5
3497 rm -f conftest.err conftest.$ac_objext
3498 done
3499 rm -f conftest.$ac_ext conftest.$ac_objext
3500 CC=$ac_save_CC
3504 case "x$ac_cv_prog_cc_stdc" in
3505 x|xno)
3506 echo "$as_me:$LINENO: result: none needed" >&5
3507 echo "${ECHO_T}none needed" >&6 ;;
3509 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3510 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3511 CC="$CC $ac_cv_prog_cc_stdc" ;;
3512 esac
3514 # Some people use a C++ compiler to compile C. Since we use `exit',
3515 # in C++ we need to declare it. In case someone uses the same compiler
3516 # for both compiling C and C++ we need to have the C++ compiler decide
3517 # the declaration of exit, since it's the most demanding environment.
3518 cat >conftest.$ac_ext <<_ACEOF
3519 #ifndef __cplusplus
3520 choke me
3521 #endif
3522 _ACEOF
3523 rm -f conftest.$ac_objext
3524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3525 (eval $ac_compile) 2>conftest.er1
3526 ac_status=$?
3527 grep -v '^ *+' conftest.er1 >conftest.err
3528 rm -f conftest.er1
3529 cat conftest.err >&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } &&
3532 { ac_try='test -z "$ac_c_werror_flag"
3533 || test ! -s conftest.err'
3534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535 (eval $ac_try) 2>&5
3536 ac_status=$?
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); }; } &&
3539 { ac_try='test -s conftest.$ac_objext'
3540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3541 (eval $ac_try) 2>&5
3542 ac_status=$?
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); }; }; then
3545 for ac_declaration in \
3546 '' \
3547 'extern "C" void std::exit (int) throw (); using std::exit;' \
3548 'extern "C" void std::exit (int); using std::exit;' \
3549 'extern "C" void exit (int) throw ();' \
3550 'extern "C" void exit (int);' \
3551 'void exit (int);'
3553 cat >conftest.$ac_ext <<_ACEOF
3554 /* confdefs.h. */
3555 _ACEOF
3556 cat confdefs.h >>conftest.$ac_ext
3557 cat >>conftest.$ac_ext <<_ACEOF
3558 /* end confdefs.h. */
3559 $ac_declaration
3560 #include <stdlib.h>
3562 main ()
3564 exit (42);
3566 return 0;
3568 _ACEOF
3569 rm -f conftest.$ac_objext
3570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3571 (eval $ac_compile) 2>conftest.er1
3572 ac_status=$?
3573 grep -v '^ *+' conftest.er1 >conftest.err
3574 rm -f conftest.er1
3575 cat conftest.err >&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); } &&
3578 { ac_try='test -z "$ac_c_werror_flag"
3579 || test ! -s conftest.err'
3580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3581 (eval $ac_try) 2>&5
3582 ac_status=$?
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); }; } &&
3585 { ac_try='test -s conftest.$ac_objext'
3586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3587 (eval $ac_try) 2>&5
3588 ac_status=$?
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }; }; then
3592 else
3593 echo "$as_me: failed program was:" >&5
3594 sed 's/^/| /' conftest.$ac_ext >&5
3596 continue
3598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3599 cat >conftest.$ac_ext <<_ACEOF
3600 /* confdefs.h. */
3601 _ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h. */
3605 $ac_declaration
3607 main ()
3609 exit (42);
3611 return 0;
3613 _ACEOF
3614 rm -f conftest.$ac_objext
3615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3616 (eval $ac_compile) 2>conftest.er1
3617 ac_status=$?
3618 grep -v '^ *+' conftest.er1 >conftest.err
3619 rm -f conftest.er1
3620 cat conftest.err >&5
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); } &&
3623 { ac_try='test -z "$ac_c_werror_flag"
3624 || test ! -s conftest.err'
3625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626 (eval $ac_try) 2>&5
3627 ac_status=$?
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); }; } &&
3630 { ac_try='test -s conftest.$ac_objext'
3631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3632 (eval $ac_try) 2>&5
3633 ac_status=$?
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); }; }; then
3636 break
3637 else
3638 echo "$as_me: failed program was:" >&5
3639 sed 's/^/| /' conftest.$ac_ext >&5
3642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3643 done
3644 rm -f conftest*
3645 if test -n "$ac_declaration"; then
3646 echo '#ifdef __cplusplus' >>confdefs.h
3647 echo $ac_declaration >>confdefs.h
3648 echo '#endif' >>confdefs.h
3651 else
3652 echo "$as_me: failed program was:" >&5
3653 sed 's/^/| /' conftest.$ac_ext >&5
3656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3657 ac_ext=c
3658 ac_cpp='$CPP $CPPFLAGS'
3659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3663 depcc="$CC" am_compiler_list=
3665 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3666 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3667 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3669 else
3670 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3671 # We make a subdir and do the tests there. Otherwise we can end up
3672 # making bogus files that we don't know about and never remove. For
3673 # instance it was reported that on HP-UX the gcc test will end up
3674 # making a dummy file named `D' -- because `-MD' means `put the output
3675 # in D'.
3676 mkdir conftest.dir
3677 # Copy depcomp to subdir because otherwise we won't find it if we're
3678 # using a relative directory.
3679 cp "$am_depcomp" conftest.dir
3680 cd conftest.dir
3681 # We will build objects and dependencies in a subdirectory because
3682 # it helps to detect inapplicable dependency modes. For instance
3683 # both Tru64's cc and ICC support -MD to output dependencies as a
3684 # side effect of compilation, but ICC will put the dependencies in
3685 # the current directory while Tru64 will put them in the object
3686 # directory.
3687 mkdir sub
3689 am_cv_CC_dependencies_compiler_type=none
3690 if test "$am_compiler_list" = ""; then
3691 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3693 for depmode in $am_compiler_list; do
3694 # Setup a source with many dependencies, because some compilers
3695 # like to wrap large dependency lists on column 80 (with \), and
3696 # we should not choose a depcomp mode which is confused by this.
3698 # We need to recreate these files for each test, as the compiler may
3699 # overwrite some of them when testing with obscure command lines.
3700 # This happens at least with the AIX C compiler.
3701 : > sub/conftest.c
3702 for i in 1 2 3 4 5 6; do
3703 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3704 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3705 # Solaris 8's {/usr,}/bin/sh.
3706 touch sub/conftst$i.h
3707 done
3708 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3710 case $depmode in
3711 nosideeffect)
3712 # after this tag, mechanisms are not by side-effect, so they'll
3713 # only be used when explicitly requested
3714 if test "x$enable_dependency_tracking" = xyes; then
3715 continue
3716 else
3717 break
3720 none) break ;;
3721 esac
3722 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3723 # mode. It turns out that the SunPro C++ compiler does not properly
3724 # handle `-M -o', and we need to detect this.
3725 if depmode=$depmode \
3726 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3727 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3728 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3729 >/dev/null 2>conftest.err &&
3730 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3731 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3732 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3733 # icc doesn't choke on unknown options, it will just issue warnings
3734 # or remarks (even with -Werror). So we grep stderr for any message
3735 # that says an option was ignored or not supported.
3736 # When given -MP, icc 7.0 and 7.1 complain thusly:
3737 # icc: Command line warning: ignoring option '-M'; no argument required
3738 # The diagnosis changed in icc 8.0:
3739 # icc: Command line remark: option '-MP' not supported
3740 if (grep 'ignoring option' conftest.err ||
3741 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3742 am_cv_CC_dependencies_compiler_type=$depmode
3743 break
3746 done
3748 cd ..
3749 rm -rf conftest.dir
3750 else
3751 am_cv_CC_dependencies_compiler_type=none
3755 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3756 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3757 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3762 test "x$enable_dependency_tracking" != xno \
3763 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3764 am__fastdepCC_TRUE=
3765 am__fastdepCC_FALSE='#'
3766 else
3767 am__fastdepCC_TRUE='#'
3768 am__fastdepCC_FALSE=
3772 ac_ext=c
3773 ac_cpp='$CPP $CPPFLAGS'
3774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3777 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3778 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3779 # On Suns, sometimes $CPP names a directory.
3780 if test -n "$CPP" && test -d "$CPP"; then
3781 CPP=
3783 if test -z "$CPP"; then
3784 if test "${ac_cv_prog_CPP+set}" = set; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3786 else
3787 # Double quotes because CPP needs to be expanded
3788 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3790 ac_preproc_ok=false
3791 for ac_c_preproc_warn_flag in '' yes
3793 # Use a header file that comes with gcc, so configuring glibc
3794 # with a fresh cross-compiler works.
3795 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3796 # <limits.h> exists even on freestanding compilers.
3797 # On the NeXT, cc -E runs the code through the compiler's parser,
3798 # not just through cpp. "Syntax error" is here to catch this case.
3799 cat >conftest.$ac_ext <<_ACEOF
3800 /* confdefs.h. */
3801 _ACEOF
3802 cat confdefs.h >>conftest.$ac_ext
3803 cat >>conftest.$ac_ext <<_ACEOF
3804 /* end confdefs.h. */
3805 #ifdef __STDC__
3806 # include <limits.h>
3807 #else
3808 # include <assert.h>
3809 #endif
3810 Syntax error
3811 _ACEOF
3812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3814 ac_status=$?
3815 grep -v '^ *+' conftest.er1 >conftest.err
3816 rm -f conftest.er1
3817 cat conftest.err >&5
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); } >/dev/null; then
3820 if test -s conftest.err; then
3821 ac_cpp_err=$ac_c_preproc_warn_flag
3822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3823 else
3824 ac_cpp_err=
3826 else
3827 ac_cpp_err=yes
3829 if test -z "$ac_cpp_err"; then
3831 else
3832 echo "$as_me: failed program was:" >&5
3833 sed 's/^/| /' conftest.$ac_ext >&5
3835 # Broken: fails on valid input.
3836 continue
3838 rm -f conftest.err conftest.$ac_ext
3840 # OK, works on sane cases. Now check whether non-existent headers
3841 # can be detected and how.
3842 cat >conftest.$ac_ext <<_ACEOF
3843 /* confdefs.h. */
3844 _ACEOF
3845 cat confdefs.h >>conftest.$ac_ext
3846 cat >>conftest.$ac_ext <<_ACEOF
3847 /* end confdefs.h. */
3848 #include <ac_nonexistent.h>
3849 _ACEOF
3850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3851 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3852 ac_status=$?
3853 grep -v '^ *+' conftest.er1 >conftest.err
3854 rm -f conftest.er1
3855 cat conftest.err >&5
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); } >/dev/null; then
3858 if test -s conftest.err; then
3859 ac_cpp_err=$ac_c_preproc_warn_flag
3860 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3861 else
3862 ac_cpp_err=
3864 else
3865 ac_cpp_err=yes
3867 if test -z "$ac_cpp_err"; then
3868 # Broken: success on invalid input.
3869 continue
3870 else
3871 echo "$as_me: failed program was:" >&5
3872 sed 's/^/| /' conftest.$ac_ext >&5
3874 # Passes both tests.
3875 ac_preproc_ok=:
3876 break
3878 rm -f conftest.err conftest.$ac_ext
3880 done
3881 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3882 rm -f conftest.err conftest.$ac_ext
3883 if $ac_preproc_ok; then
3884 break
3887 done
3888 ac_cv_prog_CPP=$CPP
3891 CPP=$ac_cv_prog_CPP
3892 else
3893 ac_cv_prog_CPP=$CPP
3895 echo "$as_me:$LINENO: result: $CPP" >&5
3896 echo "${ECHO_T}$CPP" >&6
3897 ac_preproc_ok=false
3898 for ac_c_preproc_warn_flag in '' yes
3900 # Use a header file that comes with gcc, so configuring glibc
3901 # with a fresh cross-compiler works.
3902 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3903 # <limits.h> exists even on freestanding compilers.
3904 # On the NeXT, cc -E runs the code through the compiler's parser,
3905 # not just through cpp. "Syntax error" is here to catch this case.
3906 cat >conftest.$ac_ext <<_ACEOF
3907 /* confdefs.h. */
3908 _ACEOF
3909 cat confdefs.h >>conftest.$ac_ext
3910 cat >>conftest.$ac_ext <<_ACEOF
3911 /* end confdefs.h. */
3912 #ifdef __STDC__
3913 # include <limits.h>
3914 #else
3915 # include <assert.h>
3916 #endif
3917 Syntax error
3918 _ACEOF
3919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3920 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3921 ac_status=$?
3922 grep -v '^ *+' conftest.er1 >conftest.err
3923 rm -f conftest.er1
3924 cat conftest.err >&5
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); } >/dev/null; then
3927 if test -s conftest.err; then
3928 ac_cpp_err=$ac_c_preproc_warn_flag
3929 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3930 else
3931 ac_cpp_err=
3933 else
3934 ac_cpp_err=yes
3936 if test -z "$ac_cpp_err"; then
3938 else
3939 echo "$as_me: failed program was:" >&5
3940 sed 's/^/| /' conftest.$ac_ext >&5
3942 # Broken: fails on valid input.
3943 continue
3945 rm -f conftest.err conftest.$ac_ext
3947 # OK, works on sane cases. Now check whether non-existent headers
3948 # can be detected and how.
3949 cat >conftest.$ac_ext <<_ACEOF
3950 /* confdefs.h. */
3951 _ACEOF
3952 cat confdefs.h >>conftest.$ac_ext
3953 cat >>conftest.$ac_ext <<_ACEOF
3954 /* end confdefs.h. */
3955 #include <ac_nonexistent.h>
3956 _ACEOF
3957 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3958 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3959 ac_status=$?
3960 grep -v '^ *+' conftest.er1 >conftest.err
3961 rm -f conftest.er1
3962 cat conftest.err >&5
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); } >/dev/null; then
3965 if test -s conftest.err; then
3966 ac_cpp_err=$ac_c_preproc_warn_flag
3967 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3968 else
3969 ac_cpp_err=
3971 else
3972 ac_cpp_err=yes
3974 if test -z "$ac_cpp_err"; then
3975 # Broken: success on invalid input.
3976 continue
3977 else
3978 echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3981 # Passes both tests.
3982 ac_preproc_ok=:
3983 break
3985 rm -f conftest.err conftest.$ac_ext
3987 done
3988 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3989 rm -f conftest.err conftest.$ac_ext
3990 if $ac_preproc_ok; then
3992 else
3993 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3994 See \`config.log' for more details." >&5
3995 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3996 See \`config.log' for more details." >&2;}
3997 { (exit 1); exit 1; }; }
4000 ac_ext=c
4001 ac_cpp='$CPP $CPPFLAGS'
4002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4006 for ac_prog in gawk mawk nawk awk
4008 # Extract the first word of "$ac_prog", so it can be a program name with args.
4009 set dummy $ac_prog; ac_word=$2
4010 echo "$as_me:$LINENO: checking for $ac_word" >&5
4011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4012 if test "${ac_cv_prog_AWK+set}" = set; then
4013 echo $ECHO_N "(cached) $ECHO_C" >&6
4014 else
4015 if test -n "$AWK"; then
4016 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4017 else
4018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019 for as_dir in $PATH
4021 IFS=$as_save_IFS
4022 test -z "$as_dir" && as_dir=.
4023 for ac_exec_ext in '' $ac_executable_extensions; do
4024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4025 ac_cv_prog_AWK="$ac_prog"
4026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4027 break 2
4029 done
4030 done
4034 AWK=$ac_cv_prog_AWK
4035 if test -n "$AWK"; then
4036 echo "$as_me:$LINENO: result: $AWK" >&5
4037 echo "${ECHO_T}$AWK" >&6
4038 else
4039 echo "$as_me:$LINENO: result: no" >&5
4040 echo "${ECHO_T}no" >&6
4043 test -n "$AWK" && break
4044 done
4046 if test "$cross_compiling" = yes; then
4047 ac_build_prefix=
4048 test -n "$build_alias" && ac_build_prefix=$build_alias-
4051 # Even if we're cross-compiling, we want a compiler here
4052 # that is not a cross-compiler.
4053 saved_cross=$cross_compiling
4054 cross_compiling=no
4056 ac_ext=c
4057 ac_cpp='$CPP $BUILD_CPPFLAGS'
4058 ac_compile='$BUILD_CC -c $BUILD_CFLAGS $BUILD_CPPFLAGS conftest.$ac_ext >&5'
4059 ac_link='$BUILD_CC -o conftest$ac_build_exeext $BUILD_CFLAGS $BUILD_CPPFLAGS $BUILD_LDFLAGS conftest.$ac_ext $BUILD_LIBS >&5'
4060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4061 if test -n "$ac_build_prefix"; then
4062 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4063 set dummy ${ac_build_prefix}gcc; ac_word=$2
4064 echo "$as_me:$LINENO: checking for $ac_word" >&5
4065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4066 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4067 echo $ECHO_N "(cached) $ECHO_C" >&6
4068 else
4069 if test -n "$BUILD_CC"; then
4070 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4071 else
4072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073 for as_dir in $PATH
4075 IFS=$as_save_IFS
4076 test -z "$as_dir" && as_dir=.
4077 for ac_exec_ext in '' $ac_executable_extensions; do
4078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4079 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4081 break 2
4083 done
4084 done
4088 BUILD_CC=$ac_cv_prog_BUILD_CC
4089 if test -n "$BUILD_CC"; then
4090 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4091 echo "${ECHO_T}$BUILD_CC" >&6
4092 else
4093 echo "$as_me:$LINENO: result: no" >&5
4094 echo "${ECHO_T}no" >&6
4098 if test -z "$ac_cv_prog_BUILD_CC"; then
4099 ac_ct_BUILD_CC=$BUILD_CC
4100 # Extract the first word of "gcc", so it can be a program name with args.
4101 set dummy gcc; ac_word=$2
4102 echo "$as_me:$LINENO: checking for $ac_word" >&5
4103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4104 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4105 echo $ECHO_N "(cached) $ECHO_C" >&6
4106 else
4107 if test -n "$ac_ct_BUILD_CC"; then
4108 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
4109 else
4110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111 for as_dir in $PATH
4113 IFS=$as_save_IFS
4114 test -z "$as_dir" && as_dir=.
4115 for ac_exec_ext in '' $ac_executable_extensions; do
4116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4117 ac_cv_prog_ac_ct_BUILD_CC="gcc"
4118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4119 break 2
4121 done
4122 done
4126 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
4127 if test -n "$ac_ct_BUILD_CC"; then
4128 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4129 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4130 else
4131 echo "$as_me:$LINENO: result: no" >&5
4132 echo "${ECHO_T}no" >&6
4135 BUILD_CC=$ac_ct_BUILD_CC
4136 else
4137 BUILD_CC="$ac_cv_prog_BUILD_CC"
4140 if test -z "$BUILD_CC"; then
4141 if test -n "$ac_build_prefix"; then
4142 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4143 set dummy ${ac_build_prefix}cc; ac_word=$2
4144 echo "$as_me:$LINENO: checking for $ac_word" >&5
4145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4146 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4148 else
4149 if test -n "$BUILD_CC"; then
4150 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4151 else
4152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153 for as_dir in $PATH
4155 IFS=$as_save_IFS
4156 test -z "$as_dir" && as_dir=.
4157 for ac_exec_ext in '' $ac_executable_extensions; do
4158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4159 ac_cv_prog_BUILD_CC="${ac_build_prefix}cc"
4160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4161 break 2
4163 done
4164 done
4168 BUILD_CC=$ac_cv_prog_BUILD_CC
4169 if test -n "$BUILD_CC"; then
4170 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4171 echo "${ECHO_T}$BUILD_CC" >&6
4172 else
4173 echo "$as_me:$LINENO: result: no" >&5
4174 echo "${ECHO_T}no" >&6
4178 if test -z "$ac_cv_prog_BUILD_CC"; then
4179 ac_ct_BUILD_CC=$BUILD_CC
4180 # Extract the first word of "cc", so it can be a program name with args.
4181 set dummy cc; ac_word=$2
4182 echo "$as_me:$LINENO: checking for $ac_word" >&5
4183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4184 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4185 echo $ECHO_N "(cached) $ECHO_C" >&6
4186 else
4187 if test -n "$ac_ct_BUILD_CC"; then
4188 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
4189 else
4190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191 for as_dir in $PATH
4193 IFS=$as_save_IFS
4194 test -z "$as_dir" && as_dir=.
4195 for ac_exec_ext in '' $ac_executable_extensions; do
4196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4197 ac_cv_prog_ac_ct_BUILD_CC="cc"
4198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4199 break 2
4201 done
4202 done
4206 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
4207 if test -n "$ac_ct_BUILD_CC"; then
4208 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4209 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4210 else
4211 echo "$as_me:$LINENO: result: no" >&5
4212 echo "${ECHO_T}no" >&6
4215 BUILD_CC=$ac_ct_BUILD_CC
4216 else
4217 BUILD_CC="$ac_cv_prog_BUILD_CC"
4221 if test -z "$BUILD_CC"; then
4222 # Extract the first word of "cc", so it can be a program name with args.
4223 set dummy cc; ac_word=$2
4224 echo "$as_me:$LINENO: checking for $ac_word" >&5
4225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4226 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4227 echo $ECHO_N "(cached) $ECHO_C" >&6
4228 else
4229 if test -n "$BUILD_CC"; then
4230 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4231 else
4232 ac_prog_rejected=no
4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234 for as_dir in $PATH
4236 IFS=$as_save_IFS
4237 test -z "$as_dir" && as_dir=.
4238 for ac_exec_ext in '' $ac_executable_extensions; do
4239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4240 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4241 ac_prog_rejected=yes
4242 continue
4244 ac_cv_prog_BUILD_CC="cc"
4245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4246 break 2
4248 done
4249 done
4251 if test $ac_prog_rejected = yes; then
4252 # We found a bogon in the path, so make sure we never use it.
4253 set dummy $ac_cv_prog_BUILD_CC
4254 shift
4255 if test $# != 0; then
4256 # We chose a different compiler from the bogus one.
4257 # However, it has the same basename, so the bogon will be chosen
4258 # first if we set BUILD_CC to just the basename; use the full file name.
4259 shift
4260 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4265 BUILD_CC=$ac_cv_prog_BUILD_CC
4266 if test -n "$BUILD_CC"; then
4267 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4268 echo "${ECHO_T}$BUILD_CC" >&6
4269 else
4270 echo "$as_me:$LINENO: result: no" >&5
4271 echo "${ECHO_T}no" >&6
4275 if test -z "$BUILD_CC"; then
4276 if test -n "$ac_build_prefix"; then
4277 for ac_prog in cl
4279 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4280 set dummy $ac_build_prefix$ac_prog; ac_word=$2
4281 echo "$as_me:$LINENO: checking for $ac_word" >&5
4282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4283 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4285 else
4286 if test -n "$BUILD_CC"; then
4287 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4288 else
4289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4290 for as_dir in $PATH
4292 IFS=$as_save_IFS
4293 test -z "$as_dir" && as_dir=.
4294 for ac_exec_ext in '' $ac_executable_extensions; do
4295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4296 ac_cv_prog_BUILD_CC="$ac_build_prefix$ac_prog"
4297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4298 break 2
4300 done
4301 done
4305 BUILD_CC=$ac_cv_prog_BUILD_CC
4306 if test -n "$BUILD_CC"; then
4307 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4308 echo "${ECHO_T}$BUILD_CC" >&6
4309 else
4310 echo "$as_me:$LINENO: result: no" >&5
4311 echo "${ECHO_T}no" >&6
4314 test -n "$BUILD_CC" && break
4315 done
4317 if test -z "$BUILD_CC"; then
4318 ac_ct_BUILD_CC=$BUILD_CC
4319 for ac_prog in cl
4321 # Extract the first word of "$ac_prog", so it can be a program name with args.
4322 set dummy $ac_prog; ac_word=$2
4323 echo "$as_me:$LINENO: checking for $ac_word" >&5
4324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4325 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4326 echo $ECHO_N "(cached) $ECHO_C" >&6
4327 else
4328 if test -n "$ac_ct_BUILD_CC"; then
4329 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
4330 else
4331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332 for as_dir in $PATH
4334 IFS=$as_save_IFS
4335 test -z "$as_dir" && as_dir=.
4336 for ac_exec_ext in '' $ac_executable_extensions; do
4337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4338 ac_cv_prog_ac_ct_BUILD_CC="$ac_prog"
4339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4340 break 2
4342 done
4343 done
4347 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
4348 if test -n "$ac_ct_BUILD_CC"; then
4349 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4350 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4351 else
4352 echo "$as_me:$LINENO: result: no" >&5
4353 echo "${ECHO_T}no" >&6
4356 test -n "$ac_ct_BUILD_CC" && break
4357 done
4359 BUILD_CC=$ac_ct_BUILD_CC
4365 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4366 See \`config.log' for more details." >&5
4367 echo "$as_me: error: no acceptable C compiler found in \$PATH
4368 See \`config.log' for more details." >&2;}
4369 { (exit 1); exit 1; }; }
4371 # Provide some information about the compiler.
4372 echo "$as_me:$LINENO:" \
4373 "checking for C compiler version" >&5
4374 ac_compiler=`set X $ac_compile; echo $2`
4375 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4376 (eval $ac_compiler --version </dev/null >&5) 2>&5
4377 ac_status=$?
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); }
4380 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4381 (eval $ac_compiler -v </dev/null >&5) 2>&5
4382 ac_status=$?
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); }
4385 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4386 (eval $ac_compiler -V </dev/null >&5) 2>&5
4387 ac_status=$?
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); }
4391 cat >conftest.$ac_ext <<_ACEOF
4392 /* confdefs.h. */
4393 _ACEOF
4394 cat confdefs.h >>conftest.$ac_ext
4395 cat >>conftest.$ac_ext <<_ACEOF
4396 /* end confdefs.h. */
4399 main ()
4403 return 0;
4405 _ACEOF
4406 ac_clean_files_save=$ac_clean_files
4407 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4408 # Try to create an executable without -o first, disregard a.out.
4409 # It will help us diagnose broken compilers, and finding out an intuition
4410 # of exeext.
4411 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4412 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4413 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4414 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4415 (eval $ac_link_default) 2>&5
4416 ac_status=$?
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); }; then
4419 # Find the output, starting from the most likely. This scheme is
4420 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4421 # resort.
4423 # Be careful to initialize this variable, since it used to be cached.
4424 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4425 ac_cv_build_exeext=
4426 # b.out is created by i960 compilers.
4427 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4429 test -f "$ac_file" || continue
4430 case $ac_file in
4431 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4433 conftest.$ac_ext )
4434 # This is the source file.
4436 [ab].out )
4437 # We found the default executable, but exeext='' is most
4438 # certainly right.
4439 break;;
4440 *.* )
4441 ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4442 # FIXME: I believe we export ac_cv_exeext for Libtool,
4443 # but it would be cool to find out if it's true. Does anybody
4444 # maintain Libtool? --akim.
4445 export ac_cv_build_exeext
4446 break;;
4448 break;;
4449 esac
4450 done
4451 else
4452 echo "$as_me: failed program was:" >&5
4453 sed 's/^/| /' conftest.$ac_ext >&5
4455 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4456 See \`config.log' for more details." >&5
4457 echo "$as_me: error: C compiler cannot create executables
4458 See \`config.log' for more details." >&2;}
4459 { (exit 77); exit 77; }; }
4462 ac_build_exeext=$ac_cv_build_exeext
4463 echo "$as_me:$LINENO: result: $ac_file" >&5
4464 echo "${ECHO_T}$ac_file" >&6
4466 # Check the compiler produces executables we can run. If not, either
4467 # the compiler is broken, or we cross compile.
4468 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4469 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4470 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4471 # If not cross compiling, check that we can run a simple program.
4472 if test "$cross_compiling" != yes; then
4473 if { ac_try='./$ac_file'
4474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4475 (eval $ac_try) 2>&5
4476 ac_status=$?
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); }; }; then
4479 cross_compiling=no
4480 else
4481 if test "$cross_compiling" = maybe; then
4482 cross_compiling=yes
4483 else
4484 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4485 If you meant to cross compile, use \`--host'.
4486 See \`config.log' for more details." >&5
4487 echo "$as_me: error: cannot run C compiled programs.
4488 If you meant to cross compile, use \`--host'.
4489 See \`config.log' for more details." >&2;}
4490 { (exit 1); exit 1; }; }
4494 echo "$as_me:$LINENO: result: yes" >&5
4495 echo "${ECHO_T}yes" >&6
4497 rm -f a.out a.exe conftest$ac_cv_build_exeext b.out
4498 ac_clean_files=$ac_clean_files_save
4499 # Check the compiler produces executables we can run. If not, either
4500 # the compiler is broken, or we cross compile.
4501 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4502 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4503 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4504 echo "${ECHO_T}$cross_compiling" >&6
4506 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4507 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4509 (eval $ac_link) 2>&5
4510 ac_status=$?
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); }; then
4513 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4514 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4515 # work properly (i.e., refer to `conftest.exe'), while it won't with
4516 # `rm'.
4517 for ac_file in conftest.exe conftest conftest.*; do
4518 test -f "$ac_file" || continue
4519 case $ac_file in
4520 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4521 *.* ) ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4522 export ac_cv_build_exeext
4523 break;;
4524 * ) break;;
4525 esac
4526 done
4527 else
4528 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4529 See \`config.log' for more details." >&5
4530 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4531 See \`config.log' for more details." >&2;}
4532 { (exit 1); exit 1; }; }
4535 rm -f conftest$ac_cv_build_exeext
4536 echo "$as_me:$LINENO: result: $ac_cv_build_exeext" >&5
4537 echo "${ECHO_T}$ac_cv_build_exeext" >&6
4539 rm -f conftest.$ac_ext
4540 BUILD_EXEEXT=$ac_cv_build_exeext
4541 ac_build_exeext=$BUILD_EXEEXT
4544 # Restore configuration environment
4545 cross_compiling=$saved_cross
4547 ac_ext=c
4548 ac_cpp='$CPP $CPPFLAGS'
4549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4553 else
4554 BUILD_CC="$CC" ; BUILD_EXEEXT=$EXEEXT
4557 echo "$as_me:$LINENO: checking for egrep" >&5
4558 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4559 if test "${ac_cv_prog_egrep+set}" = set; then
4560 echo $ECHO_N "(cached) $ECHO_C" >&6
4561 else
4562 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4563 then ac_cv_prog_egrep='grep -E'
4564 else ac_cv_prog_egrep='egrep'
4567 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4568 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4569 EGREP=$ac_cv_prog_egrep
4572 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4573 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4574 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4575 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4577 else
4578 cat >conftest.make <<\_ACEOF
4579 all:
4580 @echo 'ac_maketemp="$(MAKE)"'
4581 _ACEOF
4582 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4583 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4584 if test -n "$ac_maketemp"; then
4585 eval ac_cv_prog_make_${ac_make}_set=yes
4586 else
4587 eval ac_cv_prog_make_${ac_make}_set=no
4589 rm -f conftest.make
4591 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4592 echo "$as_me:$LINENO: result: yes" >&5
4593 echo "${ECHO_T}yes" >&6
4594 SET_MAKE=
4595 else
4596 echo "$as_me:$LINENO: result: no" >&5
4597 echo "${ECHO_T}no" >&6
4598 SET_MAKE="MAKE=${MAKE-make}"
4602 for ac_prog in flex lex
4604 # Extract the first word of "$ac_prog", so it can be a program name with args.
4605 set dummy $ac_prog; ac_word=$2
4606 echo "$as_me:$LINENO: checking for $ac_word" >&5
4607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4608 if test "${ac_cv_prog_LEX+set}" = set; then
4609 echo $ECHO_N "(cached) $ECHO_C" >&6
4610 else
4611 if test -n "$LEX"; then
4612 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4613 else
4614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 for as_dir in $PATH
4617 IFS=$as_save_IFS
4618 test -z "$as_dir" && as_dir=.
4619 for ac_exec_ext in '' $ac_executable_extensions; do
4620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4621 ac_cv_prog_LEX="$ac_prog"
4622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4623 break 2
4625 done
4626 done
4630 LEX=$ac_cv_prog_LEX
4631 if test -n "$LEX"; then
4632 echo "$as_me:$LINENO: result: $LEX" >&5
4633 echo "${ECHO_T}$LEX" >&6
4634 else
4635 echo "$as_me:$LINENO: result: no" >&5
4636 echo "${ECHO_T}no" >&6
4639 test -n "$LEX" && break
4640 done
4641 test -n "$LEX" || LEX=":"
4643 if test -z "$LEXLIB"
4644 then
4645 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4646 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4647 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4648 echo $ECHO_N "(cached) $ECHO_C" >&6
4649 else
4650 ac_check_lib_save_LIBS=$LIBS
4651 LIBS="-lfl $LIBS"
4652 cat >conftest.$ac_ext <<_ACEOF
4653 /* confdefs.h. */
4654 _ACEOF
4655 cat confdefs.h >>conftest.$ac_ext
4656 cat >>conftest.$ac_ext <<_ACEOF
4657 /* end confdefs.h. */
4659 /* Override any gcc2 internal prototype to avoid an error. */
4660 #ifdef __cplusplus
4661 extern "C"
4662 #endif
4663 /* We use char because int might match the return type of a gcc2
4664 builtin and then its argument prototype would still apply. */
4665 char yywrap ();
4667 main ()
4669 yywrap ();
4671 return 0;
4673 _ACEOF
4674 rm -f conftest.$ac_objext conftest$ac_exeext
4675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4676 (eval $ac_link) 2>conftest.er1
4677 ac_status=$?
4678 grep -v '^ *+' conftest.er1 >conftest.err
4679 rm -f conftest.er1
4680 cat conftest.err >&5
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); } &&
4683 { ac_try='test -z "$ac_c_werror_flag"
4684 || test ! -s conftest.err'
4685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4686 (eval $ac_try) 2>&5
4687 ac_status=$?
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); }; } &&
4690 { ac_try='test -s conftest$ac_exeext'
4691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4692 (eval $ac_try) 2>&5
4693 ac_status=$?
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); }; }; then
4696 ac_cv_lib_fl_yywrap=yes
4697 else
4698 echo "$as_me: failed program was:" >&5
4699 sed 's/^/| /' conftest.$ac_ext >&5
4701 ac_cv_lib_fl_yywrap=no
4703 rm -f conftest.err conftest.$ac_objext \
4704 conftest$ac_exeext conftest.$ac_ext
4705 LIBS=$ac_check_lib_save_LIBS
4707 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4708 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4709 if test $ac_cv_lib_fl_yywrap = yes; then
4710 LEXLIB="-lfl"
4711 else
4712 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4713 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4714 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4715 echo $ECHO_N "(cached) $ECHO_C" >&6
4716 else
4717 ac_check_lib_save_LIBS=$LIBS
4718 LIBS="-ll $LIBS"
4719 cat >conftest.$ac_ext <<_ACEOF
4720 /* confdefs.h. */
4721 _ACEOF
4722 cat confdefs.h >>conftest.$ac_ext
4723 cat >>conftest.$ac_ext <<_ACEOF
4724 /* end confdefs.h. */
4726 /* Override any gcc2 internal prototype to avoid an error. */
4727 #ifdef __cplusplus
4728 extern "C"
4729 #endif
4730 /* We use char because int might match the return type of a gcc2
4731 builtin and then its argument prototype would still apply. */
4732 char yywrap ();
4734 main ()
4736 yywrap ();
4738 return 0;
4740 _ACEOF
4741 rm -f conftest.$ac_objext conftest$ac_exeext
4742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4743 (eval $ac_link) 2>conftest.er1
4744 ac_status=$?
4745 grep -v '^ *+' conftest.er1 >conftest.err
4746 rm -f conftest.er1
4747 cat conftest.err >&5
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); } &&
4750 { ac_try='test -z "$ac_c_werror_flag"
4751 || test ! -s conftest.err'
4752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4753 (eval $ac_try) 2>&5
4754 ac_status=$?
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); }; } &&
4757 { ac_try='test -s conftest$ac_exeext'
4758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4759 (eval $ac_try) 2>&5
4760 ac_status=$?
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); }; }; then
4763 ac_cv_lib_l_yywrap=yes
4764 else
4765 echo "$as_me: failed program was:" >&5
4766 sed 's/^/| /' conftest.$ac_ext >&5
4768 ac_cv_lib_l_yywrap=no
4770 rm -f conftest.err conftest.$ac_objext \
4771 conftest$ac_exeext conftest.$ac_ext
4772 LIBS=$ac_check_lib_save_LIBS
4774 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4775 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4776 if test $ac_cv_lib_l_yywrap = yes; then
4777 LEXLIB="-ll"
4784 if test "x$LEX" != "x:"; then
4785 echo "$as_me:$LINENO: checking lex output file root" >&5
4786 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4787 if test "${ac_cv_prog_lex_root+set}" = set; then
4788 echo $ECHO_N "(cached) $ECHO_C" >&6
4789 else
4790 # The minimal lex program is just a single line: %%. But some broken lexes
4791 # (Solaris, I think it was) want two %% lines, so accommodate them.
4792 cat >conftest.l <<_ACEOF
4795 _ACEOF
4796 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4797 (eval $LEX conftest.l) 2>&5
4798 ac_status=$?
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); }
4801 if test -f lex.yy.c; then
4802 ac_cv_prog_lex_root=lex.yy
4803 elif test -f lexyy.c; then
4804 ac_cv_prog_lex_root=lexyy
4805 else
4806 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4807 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4808 { (exit 1); exit 1; }; }
4811 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4812 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4813 rm -f conftest.l
4814 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4816 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4817 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4818 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4819 echo $ECHO_N "(cached) $ECHO_C" >&6
4820 else
4821 # POSIX says lex can declare yytext either as a pointer or an array; the
4822 # default is implementation-dependent. Figure out which it is, since
4823 # not all implementations provide the %pointer and %array declarations.
4824 ac_cv_prog_lex_yytext_pointer=no
4825 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4826 ac_save_LIBS=$LIBS
4827 LIBS="$LIBS $LEXLIB"
4828 cat >conftest.$ac_ext <<_ACEOF
4829 `cat $LEX_OUTPUT_ROOT.c`
4830 _ACEOF
4831 rm -f conftest.$ac_objext conftest$ac_exeext
4832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4833 (eval $ac_link) 2>conftest.er1
4834 ac_status=$?
4835 grep -v '^ *+' conftest.er1 >conftest.err
4836 rm -f conftest.er1
4837 cat conftest.err >&5
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); } &&
4840 { ac_try='test -z "$ac_c_werror_flag"
4841 || test ! -s conftest.err'
4842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4843 (eval $ac_try) 2>&5
4844 ac_status=$?
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); }; } &&
4847 { ac_try='test -s conftest$ac_exeext'
4848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4849 (eval $ac_try) 2>&5
4850 ac_status=$?
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); }; }; then
4853 ac_cv_prog_lex_yytext_pointer=yes
4854 else
4855 echo "$as_me: failed program was:" >&5
4856 sed 's/^/| /' conftest.$ac_ext >&5
4859 rm -f conftest.err conftest.$ac_objext \
4860 conftest$ac_exeext conftest.$ac_ext
4861 LIBS=$ac_save_LIBS
4862 rm -f "${LEX_OUTPUT_ROOT}.c"
4865 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4866 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4867 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4869 cat >>confdefs.h <<\_ACEOF
4870 #define YYTEXT_POINTER 1
4871 _ACEOF
4876 # Find a good install program. We prefer a C program (faster),
4877 # so one script is as good as another. But avoid the broken or
4878 # incompatible versions:
4879 # SysV /etc/install, /usr/sbin/install
4880 # SunOS /usr/etc/install
4881 # IRIX /sbin/install
4882 # AIX /bin/install
4883 # AmigaOS /C/install, which installs bootblocks on floppy discs
4884 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4885 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4886 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4887 # OS/2's system install, which has a completely different semantic
4888 # ./install, which can be erroneously created by make from ./install.sh.
4889 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4890 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4891 if test -z "$INSTALL"; then
4892 if test "${ac_cv_path_install+set}" = set; then
4893 echo $ECHO_N "(cached) $ECHO_C" >&6
4894 else
4895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896 for as_dir in $PATH
4898 IFS=$as_save_IFS
4899 test -z "$as_dir" && as_dir=.
4900 # Account for people who put trailing slashes in PATH elements.
4901 case $as_dir/ in
4902 ./ | .// | /cC/* | \
4903 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4904 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4905 /usr/ucb/* ) ;;
4907 # OSF1 and SCO ODT 3.0 have their own names for install.
4908 # Don't use installbsd from OSF since it installs stuff as root
4909 # by default.
4910 for ac_prog in ginstall scoinst install; do
4911 for ac_exec_ext in '' $ac_executable_extensions; do
4912 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4913 if test $ac_prog = install &&
4914 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4915 # AIX install. It has an incompatible calling convention.
4917 elif test $ac_prog = install &&
4918 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4919 # program-specific install script used by HP pwplus--don't use.
4921 else
4922 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4923 break 3
4926 done
4927 done
4929 esac
4930 done
4934 if test "${ac_cv_path_install+set}" = set; then
4935 INSTALL=$ac_cv_path_install
4936 else
4937 # As a last resort, use the slow shell script. We don't cache a
4938 # path for INSTALL within a source directory, because that will
4939 # break other packages using the cache if that directory is
4940 # removed, or if the path is relative.
4941 INSTALL=$ac_install_sh
4944 echo "$as_me:$LINENO: result: $INSTALL" >&5
4945 echo "${ECHO_T}$INSTALL" >&6
4947 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4948 # It thinks the first close brace ends the variable substitution.
4949 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4951 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4953 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4955 if test -n "$ac_tool_prefix"; then
4956 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4957 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4958 echo "$as_me:$LINENO: checking for $ac_word" >&5
4959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4960 if test "${ac_cv_prog_RANLIB+set}" = set; then
4961 echo $ECHO_N "(cached) $ECHO_C" >&6
4962 else
4963 if test -n "$RANLIB"; then
4964 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4965 else
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 for as_dir in $PATH
4969 IFS=$as_save_IFS
4970 test -z "$as_dir" && as_dir=.
4971 for ac_exec_ext in '' $ac_executable_extensions; do
4972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4973 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4975 break 2
4977 done
4978 done
4982 RANLIB=$ac_cv_prog_RANLIB
4983 if test -n "$RANLIB"; then
4984 echo "$as_me:$LINENO: result: $RANLIB" >&5
4985 echo "${ECHO_T}$RANLIB" >&6
4986 else
4987 echo "$as_me:$LINENO: result: no" >&5
4988 echo "${ECHO_T}no" >&6
4992 if test -z "$ac_cv_prog_RANLIB"; then
4993 ac_ct_RANLIB=$RANLIB
4994 # Extract the first word of "ranlib", so it can be a program name with args.
4995 set dummy ranlib; ac_word=$2
4996 echo "$as_me:$LINENO: checking for $ac_word" >&5
4997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4998 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4999 echo $ECHO_N "(cached) $ECHO_C" >&6
5000 else
5001 if test -n "$ac_ct_RANLIB"; then
5002 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5003 else
5004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005 for as_dir in $PATH
5007 IFS=$as_save_IFS
5008 test -z "$as_dir" && as_dir=.
5009 for ac_exec_ext in '' $ac_executable_extensions; do
5010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5011 ac_cv_prog_ac_ct_RANLIB="ranlib"
5012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5013 break 2
5015 done
5016 done
5018 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5021 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5022 if test -n "$ac_ct_RANLIB"; then
5023 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5024 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5025 else
5026 echo "$as_me:$LINENO: result: no" >&5
5027 echo "${ECHO_T}no" >&6
5030 RANLIB=$ac_ct_RANLIB
5031 else
5032 RANLIB="$ac_cv_prog_RANLIB"
5035 for ac_prog in 'bison -y' byacc
5037 # Extract the first word of "$ac_prog", so it can be a program name with args.
5038 set dummy $ac_prog; ac_word=$2
5039 echo "$as_me:$LINENO: checking for $ac_word" >&5
5040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5041 if test "${ac_cv_prog_YACC+set}" = set; then
5042 echo $ECHO_N "(cached) $ECHO_C" >&6
5043 else
5044 if test -n "$YACC"; then
5045 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5046 else
5047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5048 for as_dir in $PATH
5050 IFS=$as_save_IFS
5051 test -z "$as_dir" && as_dir=.
5052 for ac_exec_ext in '' $ac_executable_extensions; do
5053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5054 ac_cv_prog_YACC="$ac_prog"
5055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5056 break 2
5058 done
5059 done
5063 YACC=$ac_cv_prog_YACC
5064 if test -n "$YACC"; then
5065 echo "$as_me:$LINENO: result: $YACC" >&5
5066 echo "${ECHO_T}$YACC" >&6
5067 else
5068 echo "$as_me:$LINENO: result: no" >&5
5069 echo "${ECHO_T}no" >&6
5072 test -n "$YACC" && break
5073 done
5074 test -n "$YACC" || YACC="yacc"
5077 # Find the right ranlib, even when cross-compiling
5078 # And for some other tools for cross compilation
5079 if test -n "$ac_tool_prefix"; then
5080 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5081 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5082 echo "$as_me:$LINENO: checking for $ac_word" >&5
5083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5084 if test "${ac_cv_prog_RANLIB+set}" = set; then
5085 echo $ECHO_N "(cached) $ECHO_C" >&6
5086 else
5087 if test -n "$RANLIB"; then
5088 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5089 else
5090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091 for as_dir in $PATH
5093 IFS=$as_save_IFS
5094 test -z "$as_dir" && as_dir=.
5095 for ac_exec_ext in '' $ac_executable_extensions; do
5096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5097 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5099 break 2
5101 done
5102 done
5106 RANLIB=$ac_cv_prog_RANLIB
5107 if test -n "$RANLIB"; then
5108 echo "$as_me:$LINENO: result: $RANLIB" >&5
5109 echo "${ECHO_T}$RANLIB" >&6
5110 else
5111 echo "$as_me:$LINENO: result: no" >&5
5112 echo "${ECHO_T}no" >&6
5116 if test -z "$ac_cv_prog_RANLIB"; then
5117 ac_ct_RANLIB=$RANLIB
5118 # Extract the first word of "ranlib", so it can be a program name with args.
5119 set dummy ranlib; ac_word=$2
5120 echo "$as_me:$LINENO: checking for $ac_word" >&5
5121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5122 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5123 echo $ECHO_N "(cached) $ECHO_C" >&6
5124 else
5125 if test -n "$ac_ct_RANLIB"; then
5126 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5127 else
5128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129 for as_dir in $PATH
5131 IFS=$as_save_IFS
5132 test -z "$as_dir" && as_dir=.
5133 for ac_exec_ext in '' $ac_executable_extensions; do
5134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5135 ac_cv_prog_ac_ct_RANLIB="ranlib"
5136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5137 break 2
5139 done
5140 done
5144 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5145 if test -n "$ac_ct_RANLIB"; then
5146 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5147 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5148 else
5149 echo "$as_me:$LINENO: result: no" >&5
5150 echo "${ECHO_T}no" >&6
5153 RANLIB=$ac_ct_RANLIB
5154 else
5155 RANLIB="$ac_cv_prog_RANLIB"
5158 if test -n "$ac_tool_prefix"; then
5159 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5160 set dummy ${ac_tool_prefix}strip; ac_word=$2
5161 echo "$as_me:$LINENO: checking for $ac_word" >&5
5162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5163 if test "${ac_cv_prog_STRIP+set}" = set; then
5164 echo $ECHO_N "(cached) $ECHO_C" >&6
5165 else
5166 if test -n "$STRIP"; then
5167 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5168 else
5169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170 for as_dir in $PATH
5172 IFS=$as_save_IFS
5173 test -z "$as_dir" && as_dir=.
5174 for ac_exec_ext in '' $ac_executable_extensions; do
5175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5176 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5178 break 2
5180 done
5181 done
5185 STRIP=$ac_cv_prog_STRIP
5186 if test -n "$STRIP"; then
5187 echo "$as_me:$LINENO: result: $STRIP" >&5
5188 echo "${ECHO_T}$STRIP" >&6
5189 else
5190 echo "$as_me:$LINENO: result: no" >&5
5191 echo "${ECHO_T}no" >&6
5195 if test -z "$ac_cv_prog_STRIP"; then
5196 ac_ct_STRIP=$STRIP
5197 # Extract the first word of "strip", so it can be a program name with args.
5198 set dummy strip; ac_word=$2
5199 echo "$as_me:$LINENO: checking for $ac_word" >&5
5200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5201 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5202 echo $ECHO_N "(cached) $ECHO_C" >&6
5203 else
5204 if test -n "$ac_ct_STRIP"; then
5205 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5206 else
5207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5208 for as_dir in $PATH
5210 IFS=$as_save_IFS
5211 test -z "$as_dir" && as_dir=.
5212 for ac_exec_ext in '' $ac_executable_extensions; do
5213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5214 ac_cv_prog_ac_ct_STRIP="strip"
5215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5216 break 2
5218 done
5219 done
5223 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5224 if test -n "$ac_ct_STRIP"; then
5225 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5226 echo "${ECHO_T}$ac_ct_STRIP" >&6
5227 else
5228 echo "$as_me:$LINENO: result: no" >&5
5229 echo "${ECHO_T}no" >&6
5232 STRIP=$ac_ct_STRIP
5233 else
5234 STRIP="$ac_cv_prog_STRIP"
5237 if test -n "$ac_tool_prefix"; then
5238 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5239 set dummy ${ac_tool_prefix}ar; ac_word=$2
5240 echo "$as_me:$LINENO: checking for $ac_word" >&5
5241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5242 if test "${ac_cv_prog_AR+set}" = set; then
5243 echo $ECHO_N "(cached) $ECHO_C" >&6
5244 else
5245 if test -n "$AR"; then
5246 ac_cv_prog_AR="$AR" # Let the user override the test.
5247 else
5248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249 for as_dir in $PATH
5251 IFS=$as_save_IFS
5252 test -z "$as_dir" && as_dir=.
5253 for ac_exec_ext in '' $ac_executable_extensions; do
5254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5255 ac_cv_prog_AR="${ac_tool_prefix}ar"
5256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5257 break 2
5259 done
5260 done
5264 AR=$ac_cv_prog_AR
5265 if test -n "$AR"; then
5266 echo "$as_me:$LINENO: result: $AR" >&5
5267 echo "${ECHO_T}$AR" >&6
5268 else
5269 echo "$as_me:$LINENO: result: no" >&5
5270 echo "${ECHO_T}no" >&6
5274 if test -z "$ac_cv_prog_AR"; then
5275 ac_ct_AR=$AR
5276 # Extract the first word of "ar", so it can be a program name with args.
5277 set dummy ar; ac_word=$2
5278 echo "$as_me:$LINENO: checking for $ac_word" >&5
5279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5280 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5281 echo $ECHO_N "(cached) $ECHO_C" >&6
5282 else
5283 if test -n "$ac_ct_AR"; then
5284 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5285 else
5286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287 for as_dir in $PATH
5289 IFS=$as_save_IFS
5290 test -z "$as_dir" && as_dir=.
5291 for ac_exec_ext in '' $ac_executable_extensions; do
5292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5293 ac_cv_prog_ac_ct_AR="ar"
5294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5295 break 2
5297 done
5298 done
5302 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5303 if test -n "$ac_ct_AR"; then
5304 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5305 echo "${ECHO_T}$ac_ct_AR" >&6
5306 else
5307 echo "$as_me:$LINENO: result: no" >&5
5308 echo "${ECHO_T}no" >&6
5311 AR=$ac_ct_AR
5312 else
5313 AR="$ac_cv_prog_AR"
5316 if test -n "$ac_tool_prefix"; then
5317 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5318 set dummy ${ac_tool_prefix}ld; ac_word=$2
5319 echo "$as_me:$LINENO: checking for $ac_word" >&5
5320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5321 if test "${ac_cv_prog_LD+set}" = set; then
5322 echo $ECHO_N "(cached) $ECHO_C" >&6
5323 else
5324 if test -n "$LD"; then
5325 ac_cv_prog_LD="$LD" # Let the user override the test.
5326 else
5327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5328 for as_dir in $PATH
5330 IFS=$as_save_IFS
5331 test -z "$as_dir" && as_dir=.
5332 for ac_exec_ext in '' $ac_executable_extensions; do
5333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5334 ac_cv_prog_LD="${ac_tool_prefix}ld"
5335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5336 break 2
5338 done
5339 done
5343 LD=$ac_cv_prog_LD
5344 if test -n "$LD"; then
5345 echo "$as_me:$LINENO: result: $LD" >&5
5346 echo "${ECHO_T}$LD" >&6
5347 else
5348 echo "$as_me:$LINENO: result: no" >&5
5349 echo "${ECHO_T}no" >&6
5353 if test -z "$ac_cv_prog_LD"; then
5354 ac_ct_LD=$LD
5355 # Extract the first word of "ld", so it can be a program name with args.
5356 set dummy ld; ac_word=$2
5357 echo "$as_me:$LINENO: checking for $ac_word" >&5
5358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5359 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5360 echo $ECHO_N "(cached) $ECHO_C" >&6
5361 else
5362 if test -n "$ac_ct_LD"; then
5363 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5364 else
5365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366 for as_dir in $PATH
5368 IFS=$as_save_IFS
5369 test -z "$as_dir" && as_dir=.
5370 for ac_exec_ext in '' $ac_executable_extensions; do
5371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5372 ac_cv_prog_ac_ct_LD="ld"
5373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5374 break 2
5376 done
5377 done
5381 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5382 if test -n "$ac_ct_LD"; then
5383 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5384 echo "${ECHO_T}$ac_ct_LD" >&6
5385 else
5386 echo "$as_me:$LINENO: result: no" >&5
5387 echo "${ECHO_T}no" >&6
5390 LD=$ac_ct_LD
5391 else
5392 LD="$ac_cv_prog_LD"
5397 # Add args to configure
5399 # Check whether --enable-ccache or --disable-ccache was given.
5400 if test "${enable_ccache+set}" = set; then
5401 enableval="$enable_ccache"
5402 ccache=$enableval
5403 else
5404 ccache=no
5407 # Check whether --enable-debug or --disable-debug was given.
5408 if test "${enable_debug+set}" = set; then
5409 enableval="$enable_debug"
5410 USE_DEBUG=$enableval
5411 else
5412 USE_DEBUG=yes
5415 # Check whether --enable-optimize or --disable-optimize was given.
5416 if test "${enable_optimize+set}" = set; then
5417 enableval="$enable_optimize"
5418 USE_OPTIMIZE=$enableval
5419 else
5420 USE_OPTIMIZE=no
5423 # Check whether --enable-profile or --disable-profile was given.
5424 if test "${enable_profile+set}" = set; then
5425 enableval="$enable_profile"
5426 USE_PROFILE=$enableval
5427 else
5428 USE_PROFILE=no
5431 # Check whether --enable-static or --disable-static was given.
5432 if test "${enable_static+set}" = set; then
5433 enableval="$enable_static"
5434 USE_DEBUG_STATIC=$enableval
5435 else
5436 USE_DEBUG_STATIC=no
5439 # Check whether --enable-monolithic or --disable-monolithic was given.
5440 if test "${enable_monolithic+set}" = set; then
5441 enableval="$enable_monolithic"
5442 MONOLITHIC=$enableval
5443 else
5444 MONOLITHIC=yes
5447 # Check whether --enable-amule-daemon or --disable-amule-daemon was given.
5448 if test "${enable_amule_daemon+set}" = set; then
5449 enableval="$enable_amule_daemon"
5450 AMULE_DAEMON=$enableval
5451 else
5452 AMULE_DAEMON=no
5455 # Check whether --enable-amulecmd or --disable-amulecmd was given.
5456 if test "${enable_amulecmd+set}" = set; then
5457 enableval="$enable_amulecmd"
5458 AMULECMD=$enableval
5459 else
5460 AMULECMD=no
5463 # Check whether --enable-webserver or --disable-webserver was given.
5464 if test "${enable_webserver+set}" = set; then
5465 enableval="$enable_webserver"
5466 WEB=$enableval
5467 else
5468 WEB=no
5471 # Check whether --enable-amule-gui or --disable-amule-gui was given.
5472 if test "${enable_amule_gui+set}" = set; then
5473 enableval="$enable_amule_gui"
5474 AMULE_GUI=$enableval
5475 else
5476 AMULE_GUI=no
5479 # Check whether --enable-cas or --disable-cas was given.
5480 if test "${enable_cas+set}" = set; then
5481 enableval="$enable_cas"
5482 CAS=$enableval
5483 else
5484 CAS=no
5487 # Check whether --enable-wxcas or --disable-wxcas was given.
5488 if test "${enable_wxcas+set}" = set; then
5489 enableval="$enable_wxcas"
5490 WXCAS=$enableval
5491 else
5492 WXCAS=no
5495 # Check whether --enable-ed2k or --disable-ed2k was given.
5496 if test "${enable_ed2k+set}" = set; then
5497 enableval="$enable_ed2k"
5498 ED2K=$enableval
5499 else
5500 ED2K=yes
5503 # Check whether --enable-alc or --disable-alc was given.
5504 if test "${enable_alc+set}" = set; then
5505 enableval="$enable_alc"
5506 ALC=$enableval
5507 else
5508 ALC=no
5511 # Check whether --enable-alcc or --disable-alcc was given.
5512 if test "${enable_alcc+set}" = set; then
5513 enableval="$enable_alcc"
5514 ALCC=$enableval
5515 else
5516 ALCC=no
5519 # Check whether --enable-monolithic or --disable-monolithic was given.
5520 if test "${enable_monolithic+set}" = set; then
5521 enableval="$enable_monolithic"
5522 MONOLITHIC=$enableval
5523 else
5524 MONOLITHIC=yes
5527 # Check whether --enable-upnp or --disable-upnp was given.
5528 if test "${enable_upnp+set}" = set; then
5529 enableval="$enable_upnp"
5530 ENABLE_UPNP=$enableval
5531 else
5532 ENABLE_UPNP=yes
5535 # Check whether --enable-geoip or --disable-geoip was given.
5536 if test "${enable_geoip+set}" = set; then
5537 enableval="$enable_geoip"
5538 ENABLE_IP2COUNTRY=$enableval
5539 else
5540 ENABLE_IP2COUNTRY=no
5544 # Check whether --with-geoip-headers or --without-geoip-headers was given.
5545 if test "${with_geoip_headers+set}" = set; then
5546 withval="$with_geoip_headers"
5547 GEOIP_INCLUDE="-I$withval"
5551 # Check whether --with-geoip-lib or --without-geoip-lib was given.
5552 if test "${with_geoip_lib+set}" = set; then
5553 withval="$with_geoip_lib"
5554 GEOIP_LIB="-L$withval $GEOIP_LIB"
5558 # Check whether --with-geoip-static or --without-geoip-static was given.
5559 if test "${with_geoip_static+set}" = set; then
5560 withval="$with_geoip_static"
5561 if test "$withval" != "no"; then
5562 GEOIP_LIB="-Wl,-Bstatic $GEOIP_LIB -Wl,-Bdynamic"
5567 # Check whether --with-denoise-level or --without-denoise-level was given.
5568 if test "${with_denoise_level+set}" = set; then
5569 withval="$with_denoise_level"
5570 denoiselevel="$withval"
5571 else
5572 denoiselevel=yes
5576 # Check whether --with-gnu-malloc or --without-gnu-malloc was given.
5577 if test "${with_gnu_malloc+set}" = set; then
5578 withval="$with_gnu_malloc"
5579 gnumalloc=$withval
5580 else
5581 gnumalloc=yes
5585 # Check whether --with-language or --without-language was given.
5586 if test "${with_language+set}" = set; then
5587 withval="$with_language"
5588 if test "$withval" = "all"; then
5589 LINGUAS='%UNSET%'
5590 else
5591 LINGUAS="`echo $withval | sed -e 's/,/ /g'`"
5596 # Checking for libs before all other stuff to break
5597 # configure as soon as possible in case of a missing one
5598 # to avoid losing too much time
5600 # Sets gettext version.
5603 # Check for zlib
5606 # Check whether --with-zlib or --without-zlib was given.
5607 if test "${with_zlib+set}" = set; then
5608 withval="$with_zlib"
5609 ac_zlib="$withval"
5610 else
5611 ac_zlib=yes
5615 case "$ac_zlib" in
5617 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5618 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5619 { (exit 1); exit 1; }; }
5621 yes | sys)
5624 ac_zlib_prefix="$ac_zlib"
5625 esac
5627 if test -n "$ac_zlib_prefix"; then
5628 ac_tmp_CPPFLAGS="$CPPFLAGS"
5629 ac_tmp_LDFLAGS="$LDFLAGS"
5630 CPPFLAGS="$CPPFLAGS -I$ac_zlib_prefix/include"
5631 LDFLAGS="-L$ac_zlib_prefix/lib"
5633 ac_tmp_LIBS="$LIBS"
5634 LIBS="-lz $LIBS"
5635 echo "$as_me:$LINENO: checking for zlib >= 1.1.4" >&5
5636 echo $ECHO_N "checking for zlib >= 1.1.4... $ECHO_C" >&6
5637 if test "$cross_compiling" = yes; then
5639 result=no
5640 z_version=''
5641 cat >conftest.$ac_ext <<_ACEOF
5643 /* confdefs.h. */
5644 _ACEOF
5645 cat confdefs.h >>conftest.$ac_ext
5646 cat >>conftest.$ac_ext <<_ACEOF
5647 /* end confdefs.h. */
5649 #include <zlib.h>
5650 #include <stdio.h>
5653 main ()
5656 printf("\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n\n");
5657 zlibVersion();
5660 return 0;
5663 _ACEOF
5664 rm -f conftest.$ac_objext conftest$ac_exeext
5665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5666 (eval $ac_link) 2>conftest.er1
5667 ac_status=$?
5668 grep -v '^ *+' conftest.er1 >conftest.err
5669 rm -f conftest.er1
5670 cat conftest.err >&5
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); } &&
5673 { ac_try='test -z "$ac_c_werror_flag"
5674 || test ! -s conftest.err'
5675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5676 (eval $ac_try) 2>&5
5677 ac_status=$?
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); }; } &&
5680 { ac_try='test -s conftest$ac_exeext'
5681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682 (eval $ac_try) 2>&5
5683 ac_status=$?
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); }; }; then
5687 ZLIB_VERSION=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest$ac_exeext | sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'`
5688 ac_cross_zver_max="`echo $ZLIB_VERSION | cut -d. -f1`"
5689 ac_cross_zver_mid="`echo $ZLIB_VERSION | cut -d. -f2`"
5690 ac_cross_zver_min="`echo $ZLIB_VERSION | cut -d. -f3`"
5691 if test "$ac_cross_zver_max" -gt "1"; then
5692 result=yes
5693 elif test "$ac_cross_zver_max" -eq "1"; then
5694 if test "$ac_cross_zver_mid" -gt "1"; then
5695 result=yes
5696 elif "$ac_cross_zver_mid" -eq "1"; then
5697 if test "$ac_cross_zver_min" -ge "4"; then
5698 result=yes
5702 if test x$result = xyes; then
5703 z_version=" (version $ZLIB_VERSION)"
5706 else
5707 echo "$as_me: failed program was:" >&5
5708 sed 's/^/| /' conftest.$ac_ext >&5
5711 rm -f conftest.err conftest.$ac_objext \
5712 conftest$ac_exeext conftest.$ac_ext
5713 echo "$as_me:$LINENO: result: $result$z_version" >&5
5714 echo "${ECHO_T}$result$z_version" >&6
5716 else
5717 cat >conftest.$ac_ext <<_ACEOF
5719 /* confdefs.h. */
5720 _ACEOF
5721 cat confdefs.h >>conftest.$ac_ext
5722 cat >>conftest.$ac_ext <<_ACEOF
5723 /* end confdefs.h. */
5725 #include <zlib.h>
5726 #include <stdio.h>
5729 main ()
5731 char *zver = zlibVersion();
5732 FILE *f=fopen("conftestval", "w");
5733 if (!f) return 1;
5734 fprintf(f, "%s",
5735 zver[0] > '1' ||
5736 (zver[0] == '1' &&
5737 (zver[2] > '1' ||
5738 (zver[2] == '1' &&
5739 zver[4] >= '4'))) ? "yes" : "no");
5740 fclose(f);
5741 f=fopen("conftestver", "w");
5742 if (f) {
5743 fprintf(f, "%s", ZLIB_VERSION);
5744 fclose(f);
5748 return 0;
5751 _ACEOF
5752 rm -f conftest$ac_exeext
5753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5754 (eval $ac_link) 2>&5
5755 ac_status=$?
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5759 (eval $ac_try) 2>&5
5760 ac_status=$?
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); }; }; then
5764 if test -f conftestval; then
5765 result=`cat conftestval`
5766 else
5767 result=no
5769 if test x$result = xyes; then
5770 if test -f conftestver; then
5771 ZLIB_VERSION=`cat conftestver`
5772 z_version=" (version $ZLIB_VERSION)"
5773 else
5774 z_version=""
5777 echo "$as_me:$LINENO: result: $result$z_version" >&5
5778 echo "${ECHO_T}$result$z_version" >&6
5780 else
5781 echo "$as_me: program exited with status $ac_status" >&5
5782 echo "$as_me: failed program was:" >&5
5783 sed 's/^/| /' conftest.$ac_ext >&5
5785 ( exit $ac_status )
5787 result=no
5788 echo "$as_me:$LINENO: result: $result" >&5
5789 echo "${ECHO_T}$result" >&6
5792 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5794 if test x$result = xno; then
5796 if test "${ac_tmp_CPPFLAGS+set}" = set; then
5797 CPPFLAGS="$ac_tmp_CPPFLAGS"
5799 if test "${ac_tmp_LDFLAGS+set}" = set; then
5800 LDFLAGS="$ac_tmp_LDFLAGS"
5802 LIBS="$ac_tmp_LIBS"
5803 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5804 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5805 { (exit 1); exit 1; }; }
5812 if test x$CAS = xyes -o x$WEB = xyes; then
5813 # Check for gd
5816 # Check whether --with-gdlib-prefix or --without-gdlib-prefix was given.
5817 if test "${with_gdlib_prefix+set}" = set; then
5818 withval="$with_gdlib_prefix"
5819 gdlib_config_prefix="$withval"
5820 else
5821 gdlib_config_prefix=""
5824 # Check whether --with-gdlib-config or --without-gdlib-config was given.
5825 if test "${with_gdlib_config+set}" = set; then
5826 withval="$with_gdlib_config"
5827 gdlib_config_name="$withval"
5828 else
5829 gdlib_config_name=""
5833 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5834 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5835 if test "${ac_cv_header_stdc+set}" = set; then
5836 echo $ECHO_N "(cached) $ECHO_C" >&6
5837 else
5838 cat >conftest.$ac_ext <<_ACEOF
5839 /* confdefs.h. */
5840 _ACEOF
5841 cat confdefs.h >>conftest.$ac_ext
5842 cat >>conftest.$ac_ext <<_ACEOF
5843 /* end confdefs.h. */
5844 #include <stdlib.h>
5845 #include <stdarg.h>
5846 #include <string.h>
5847 #include <float.h>
5850 main ()
5854 return 0;
5856 _ACEOF
5857 rm -f conftest.$ac_objext
5858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5859 (eval $ac_compile) 2>conftest.er1
5860 ac_status=$?
5861 grep -v '^ *+' conftest.er1 >conftest.err
5862 rm -f conftest.er1
5863 cat conftest.err >&5
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); } &&
5866 { ac_try='test -z "$ac_c_werror_flag"
5867 || test ! -s conftest.err'
5868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5869 (eval $ac_try) 2>&5
5870 ac_status=$?
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); }; } &&
5873 { ac_try='test -s conftest.$ac_objext'
5874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5875 (eval $ac_try) 2>&5
5876 ac_status=$?
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }; }; then
5879 ac_cv_header_stdc=yes
5880 else
5881 echo "$as_me: failed program was:" >&5
5882 sed 's/^/| /' conftest.$ac_ext >&5
5884 ac_cv_header_stdc=no
5886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5888 if test $ac_cv_header_stdc = yes; then
5889 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5890 cat >conftest.$ac_ext <<_ACEOF
5891 /* confdefs.h. */
5892 _ACEOF
5893 cat confdefs.h >>conftest.$ac_ext
5894 cat >>conftest.$ac_ext <<_ACEOF
5895 /* end confdefs.h. */
5896 #include <string.h>
5898 _ACEOF
5899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5900 $EGREP "memchr" >/dev/null 2>&1; then
5902 else
5903 ac_cv_header_stdc=no
5905 rm -f conftest*
5909 if test $ac_cv_header_stdc = yes; then
5910 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5911 cat >conftest.$ac_ext <<_ACEOF
5912 /* confdefs.h. */
5913 _ACEOF
5914 cat confdefs.h >>conftest.$ac_ext
5915 cat >>conftest.$ac_ext <<_ACEOF
5916 /* end confdefs.h. */
5917 #include <stdlib.h>
5919 _ACEOF
5920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5921 $EGREP "free" >/dev/null 2>&1; then
5923 else
5924 ac_cv_header_stdc=no
5926 rm -f conftest*
5930 if test $ac_cv_header_stdc = yes; then
5931 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5932 if test "$cross_compiling" = yes; then
5934 else
5935 cat >conftest.$ac_ext <<_ACEOF
5936 /* confdefs.h. */
5937 _ACEOF
5938 cat confdefs.h >>conftest.$ac_ext
5939 cat >>conftest.$ac_ext <<_ACEOF
5940 /* end confdefs.h. */
5941 #include <ctype.h>
5942 #if ((' ' & 0x0FF) == 0x020)
5943 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5944 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5945 #else
5946 # define ISLOWER(c) \
5947 (('a' <= (c) && (c) <= 'i') \
5948 || ('j' <= (c) && (c) <= 'r') \
5949 || ('s' <= (c) && (c) <= 'z'))
5950 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5951 #endif
5953 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5955 main ()
5957 int i;
5958 for (i = 0; i < 256; i++)
5959 if (XOR (islower (i), ISLOWER (i))
5960 || toupper (i) != TOUPPER (i))
5961 exit(2);
5962 exit (0);
5964 _ACEOF
5965 rm -f conftest$ac_exeext
5966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5967 (eval $ac_link) 2>&5
5968 ac_status=$?
5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5972 (eval $ac_try) 2>&5
5973 ac_status=$?
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); }; }; then
5977 else
5978 echo "$as_me: program exited with status $ac_status" >&5
5979 echo "$as_me: failed program was:" >&5
5980 sed 's/^/| /' conftest.$ac_ext >&5
5982 ( exit $ac_status )
5983 ac_cv_header_stdc=no
5985 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5989 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5990 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5991 if test $ac_cv_header_stdc = yes; then
5993 cat >>confdefs.h <<\_ACEOF
5994 #define STDC_HEADERS 1
5995 _ACEOF
5999 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6009 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6010 inttypes.h stdint.h unistd.h
6012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6013 echo "$as_me:$LINENO: checking for $ac_header" >&5
6014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6017 else
6018 cat >conftest.$ac_ext <<_ACEOF
6019 /* confdefs.h. */
6020 _ACEOF
6021 cat confdefs.h >>conftest.$ac_ext
6022 cat >>conftest.$ac_ext <<_ACEOF
6023 /* end confdefs.h. */
6024 $ac_includes_default
6026 #include <$ac_header>
6027 _ACEOF
6028 rm -f conftest.$ac_objext
6029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6030 (eval $ac_compile) 2>conftest.er1
6031 ac_status=$?
6032 grep -v '^ *+' conftest.er1 >conftest.err
6033 rm -f conftest.er1
6034 cat conftest.err >&5
6035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036 (exit $ac_status); } &&
6037 { ac_try='test -z "$ac_c_werror_flag"
6038 || test ! -s conftest.err'
6039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6040 (eval $ac_try) 2>&5
6041 ac_status=$?
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); }; } &&
6044 { ac_try='test -s conftest.$ac_objext'
6045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6046 (eval $ac_try) 2>&5
6047 ac_status=$?
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); }; }; then
6050 eval "$as_ac_Header=yes"
6051 else
6052 echo "$as_me: failed program was:" >&5
6053 sed 's/^/| /' conftest.$ac_ext >&5
6055 eval "$as_ac_Header=no"
6057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6062 cat >>confdefs.h <<_ACEOF
6063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6064 _ACEOF
6068 done
6072 if test x${GDLIB_CONFIG_NAME+set} != xset ; then
6073 GDLIB_CONFIG_NAME=gdlib-config
6075 if test "x$gdlib_config_name" != x ; then
6076 GDLIB_CONFIG_NAME="$gdlib_config_name"
6079 if test x$gdlib_config_prefix != x ; then
6080 GDLIB_LOOKUP_PATH="$gdlib_config_prefix/bin"
6083 if test -x "$GDLIB_CONFIG_NAME" ; then
6084 echo "$as_me:$LINENO: checking for gdlib-config" >&5
6085 echo $ECHO_N "checking for gdlib-config... $ECHO_C" >&6
6086 GDLIB_CONFIG_PATH="$GDLIB_CONFIG_NAME"
6087 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6088 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6089 else
6090 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args.
6091 set dummy $GDLIB_CONFIG_NAME; ac_word=$2
6092 echo "$as_me:$LINENO: checking for $ac_word" >&5
6093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6094 if test "${ac_cv_path_GDLIB_CONFIG_PATH+set}" = set; then
6095 echo $ECHO_N "(cached) $ECHO_C" >&6
6096 else
6097 case $GDLIB_CONFIG_PATH in
6098 [\\/]* | ?:[\\/]*)
6099 ac_cv_path_GDLIB_CONFIG_PATH="$GDLIB_CONFIG_PATH" # Let the user override the test with a path.
6102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103 as_dummy=""$GDLIB_LOOKUP_PATH:$PATH""
6104 for as_dir in $as_dummy
6106 IFS=$as_save_IFS
6107 test -z "$as_dir" && as_dir=.
6108 for ac_exec_ext in '' $ac_executable_extensions; do
6109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6110 ac_cv_path_GDLIB_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
6111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6112 break 2
6114 done
6115 done
6117 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH="no"
6119 esac
6121 GDLIB_CONFIG_PATH=$ac_cv_path_GDLIB_CONFIG_PATH
6123 if test -n "$GDLIB_CONFIG_PATH"; then
6124 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6125 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6126 else
6127 echo "$as_me:$LINENO: result: no" >&5
6128 echo "${ECHO_T}no" >&6
6133 if test "$GDLIB_CONFIG_PATH" != "no" ; then
6134 GDLIB_VERSION=""
6136 echo "$as_me:$LINENO: checking for gdlib version >= 2.0.0" >&5
6137 echo $ECHO_N "checking for gdlib version >= 2.0.0... $ECHO_C" >&6
6139 GDLIB_CONFIG_WITH_ARGS="$GDLIB_CONFIG_PATH $gdlib_config_args"
6141 GDLIB_VERSION=`$GDLIB_CONFIG_WITH_ARGS --version`
6142 gdlib_config_major_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6143 gdlib_config_minor_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6144 gdlib_config_micro_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6146 gdlib_ver_ok=""
6147 if test $gdlib_config_major_version -gt 2; then
6148 gdlib_ver_ok=yes
6149 else
6150 if test $gdlib_config_major_version -eq 2; then
6151 if test $gdlib_config_minor_version -gt 0; then
6152 gdlib_ver_ok=yes
6153 else
6154 if test $gdlib_config_minor_version -eq 0; then
6155 if test $gdlib_config_micro_version -ge 0; then
6156 gdlib_ver_ok=yes
6163 if test x$gdlib_ver_ok = x ; then
6164 if test x$GDLIB_VERSION = x; then
6165 echo "$as_me:$LINENO: result: no" >&5
6166 echo "${ECHO_T}no" >&6
6167 else
6168 echo "$as_me:$LINENO: result: no (version $GDLIB_VERSION is not new enough)" >&5
6169 echo "${ECHO_T}no (version $GDLIB_VERSION is not new enough)" >&6
6170 GDLIB_VERSION=
6173 { echo "$as_me:$LINENO:
6174 WARNING: gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6175 Please check that gdlib-config is in your default path, check out
6176 LD_LIBRARY_PATH or equivalent variable.
6177 Or this might also be that your gdlib-config has other name.
6178 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6179 (replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
6180 If you use compiled packages check if you have devel pack installed.
6181 To download the latest version check http://www.boutell.com/gd
6182 for sources.
6183 " >&5
6184 echo "$as_me:
6185 WARNING: gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6186 Please check that gdlib-config is in your default path, check out
6187 LD_LIBRARY_PATH or equivalent variable.
6188 Or this might also be that your gdlib-config has other name.
6189 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6190 (replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
6191 If you use compiled packages check if you have devel pack installed.
6192 To download the latest version check http://www.boutell.com/gd
6193 for sources.
6194 " >&6;}
6195 CAS_DEFS=""
6197 else
6198 echo "$as_me:$LINENO: result: yes (version $GDLIB_VERSION)" >&5
6199 echo "${ECHO_T}yes (version $GDLIB_VERSION)" >&6
6200 if test "${ac_cv_header_gd_h+set}" = set; then
6201 echo "$as_me:$LINENO: checking for gd.h" >&5
6202 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6203 if test "${ac_cv_header_gd_h+set}" = set; then
6204 echo $ECHO_N "(cached) $ECHO_C" >&6
6206 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6207 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6208 else
6209 # Is the header compilable?
6210 echo "$as_me:$LINENO: checking gd.h usability" >&5
6211 echo $ECHO_N "checking gd.h usability... $ECHO_C" >&6
6212 cat >conftest.$ac_ext <<_ACEOF
6213 /* confdefs.h. */
6214 _ACEOF
6215 cat confdefs.h >>conftest.$ac_ext
6216 cat >>conftest.$ac_ext <<_ACEOF
6217 /* end confdefs.h. */
6218 $ac_includes_default
6219 #include <gd.h>
6220 _ACEOF
6221 rm -f conftest.$ac_objext
6222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6223 (eval $ac_compile) 2>conftest.er1
6224 ac_status=$?
6225 grep -v '^ *+' conftest.er1 >conftest.err
6226 rm -f conftest.er1
6227 cat conftest.err >&5
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); } &&
6230 { ac_try='test -z "$ac_c_werror_flag"
6231 || test ! -s conftest.err'
6232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6233 (eval $ac_try) 2>&5
6234 ac_status=$?
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); }; } &&
6237 { ac_try='test -s conftest.$ac_objext'
6238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6239 (eval $ac_try) 2>&5
6240 ac_status=$?
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); }; }; then
6243 ac_header_compiler=yes
6244 else
6245 echo "$as_me: failed program was:" >&5
6246 sed 's/^/| /' conftest.$ac_ext >&5
6248 ac_header_compiler=no
6250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6251 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6252 echo "${ECHO_T}$ac_header_compiler" >&6
6254 # Is the header present?
6255 echo "$as_me:$LINENO: checking gd.h presence" >&5
6256 echo $ECHO_N "checking gd.h presence... $ECHO_C" >&6
6257 cat >conftest.$ac_ext <<_ACEOF
6258 /* confdefs.h. */
6259 _ACEOF
6260 cat confdefs.h >>conftest.$ac_ext
6261 cat >>conftest.$ac_ext <<_ACEOF
6262 /* end confdefs.h. */
6263 #include <gd.h>
6264 _ACEOF
6265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6267 ac_status=$?
6268 grep -v '^ *+' conftest.er1 >conftest.err
6269 rm -f conftest.er1
6270 cat conftest.err >&5
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); } >/dev/null; then
6273 if test -s conftest.err; then
6274 ac_cpp_err=$ac_c_preproc_warn_flag
6275 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6276 else
6277 ac_cpp_err=
6279 else
6280 ac_cpp_err=yes
6282 if test -z "$ac_cpp_err"; then
6283 ac_header_preproc=yes
6284 else
6285 echo "$as_me: failed program was:" >&5
6286 sed 's/^/| /' conftest.$ac_ext >&5
6288 ac_header_preproc=no
6290 rm -f conftest.err conftest.$ac_ext
6291 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6292 echo "${ECHO_T}$ac_header_preproc" >&6
6294 # So? What about this header?
6295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6296 yes:no: )
6297 { echo "$as_me:$LINENO: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&5
6298 echo "$as_me: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6299 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the compiler's result" >&5
6300 echo "$as_me: WARNING: gd.h: proceeding with the compiler's result" >&2;}
6301 ac_header_preproc=yes
6303 no:yes:* )
6304 { echo "$as_me:$LINENO: WARNING: gd.h: present but cannot be compiled" >&5
6305 echo "$as_me: WARNING: gd.h: present but cannot be compiled" >&2;}
6306 { echo "$as_me:$LINENO: WARNING: gd.h: check for missing prerequisite headers?" >&5
6307 echo "$as_me: WARNING: gd.h: check for missing prerequisite headers?" >&2;}
6308 { echo "$as_me:$LINENO: WARNING: gd.h: see the Autoconf documentation" >&5
6309 echo "$as_me: WARNING: gd.h: see the Autoconf documentation" >&2;}
6310 { echo "$as_me:$LINENO: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&5
6311 echo "$as_me: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&2;}
6312 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the preprocessor's result" >&5
6313 echo "$as_me: WARNING: gd.h: proceeding with the preprocessor's result" >&2;}
6314 { echo "$as_me:$LINENO: WARNING: gd.h: in the future, the compiler will take precedence" >&5
6315 echo "$as_me: WARNING: gd.h: in the future, the compiler will take precedence" >&2;}
6317 cat <<\_ASBOX
6318 ## ------------------------------ ##
6319 ## Report this to admin@amule.org ##
6320 ## ------------------------------ ##
6321 _ASBOX
6323 sed "s/^/$as_me: WARNING: /" >&2
6325 esac
6326 echo "$as_me:$LINENO: checking for gd.h" >&5
6327 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6328 if test "${ac_cv_header_gd_h+set}" = set; then
6329 echo $ECHO_N "(cached) $ECHO_C" >&6
6330 else
6331 ac_cv_header_gd_h=$ac_header_preproc
6333 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6334 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6339 if test $ac_cv_header_gd_h = yes; then
6340 GDLIB_CFLAGS="`$GDLIB_CONFIG_WITH_ARGS --cflags`"
6341 GDLIB_LDFLAGS="`$GDLIB_CONFIG_WITH_ARGS --ldflags`"
6342 GDLIB_LIBS="`$GDLIB_CONFIG_WITH_ARGS --libs`"
6344 CAS_DEFS="-D__GD__"
6345 GDLIB_LIBS="-lgd $GDLIB_LIBS"
6347 else
6348 GDLIB_VERSION=
6350 { echo "$as_me:$LINENO:
6351 WARNING: gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6352 Please check that gdlib-config is in your default path, check out
6353 LD_LIBRARY_PATH or equivalent variable.
6354 Or this might also be that your gdlib-config has other name.
6355 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6356 (replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
6357 If you use compiled packages check if you have devel pack installed.
6358 To download the latest version check http://www.boutell.com/gd
6359 for sources.
6360 " >&5
6361 echo "$as_me:
6362 WARNING: gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6363 Please check that gdlib-config is in your default path, check out
6364 LD_LIBRARY_PATH or equivalent variable.
6365 Or this might also be that your gdlib-config has other name.
6366 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6367 (replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
6368 If you use compiled packages check if you have devel pack installed.
6369 To download the latest version check http://www.boutell.com/gd
6370 for sources.
6371 " >&6;}
6372 CAS_DEFS=""
6376 else
6378 { echo "$as_me:$LINENO:
6379 WARNING: gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6380 Please check that gdlib-config is in your default path, check out
6381 LD_LIBRARY_PATH or equivalent variable.
6382 Or this might also be that your gdlib-config has other name.
6383 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6384 (replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
6385 If you use compiled packages check if you have devel pack installed.
6386 To download the latest version check http://www.boutell.com/gd
6387 for sources.
6388 " >&5
6389 echo "$as_me:
6390 WARNING: gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6391 Please check that gdlib-config is in your default path, check out
6392 LD_LIBRARY_PATH or equivalent variable.
6393 Or this might also be that your gdlib-config has other name.
6394 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6395 (replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
6396 If you use compiled packages check if you have devel pack installed.
6397 To download the latest version check http://www.boutell.com/gd
6398 for sources.
6399 " >&6;}
6400 CAS_DEFS=""
6407 else
6408 CAS_DEFS=""
6409 GDLIB_LIBS=""
6410 GDLIB_CFLAGS=""
6411 GDLIB_LDFLAGS=""
6412 GDLIB_VERSION="not_needed"
6417 if test x$WEB = xyes; then
6419 echo "$as_me:$LINENO: checking for a POSIX compliant regex library" >&5
6420 echo $ECHO_N "checking for a POSIX compliant regex library... $ECHO_C" >&6
6421 regex_found=no
6422 for lib in '' -lgnurx -lregex; do
6423 saved_LIBS="$LIBS"
6424 LIBS="$lib $LIBS"
6425 cat >conftest.$ac_ext <<_ACEOF
6427 /* confdefs.h. */
6428 _ACEOF
6429 cat confdefs.h >>conftest.$ac_ext
6430 cat >>conftest.$ac_ext <<_ACEOF
6431 /* end confdefs.h. */
6433 #include <regex.h>
6436 main ()
6439 regex_t preg;
6440 regcomp(&preg, "", REG_EXTENDED);
6441 regmatch_t *pmatch;
6442 regexec(&preg, "", 0, pmatch, 0);
6443 regfree(&preg);
6446 return 0;
6449 _ACEOF
6450 rm -f conftest.$ac_objext conftest$ac_exeext
6451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6452 (eval $ac_link) 2>conftest.er1
6453 ac_status=$?
6454 grep -v '^ *+' conftest.er1 >conftest.err
6455 rm -f conftest.er1
6456 cat conftest.err >&5
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); } &&
6459 { ac_try='test -z "$ac_c_werror_flag"
6460 || test ! -s conftest.err'
6461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6462 (eval $ac_try) 2>&5
6463 ac_status=$?
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); }; } &&
6466 { ac_try='test -s conftest$ac_exeext'
6467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6468 (eval $ac_try) 2>&5
6469 ac_status=$?
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); }; }; then
6473 LIBS="$saved_LIBS"
6474 regex_found=yes
6475 break;
6477 else
6478 echo "$as_me: failed program was:" >&5
6479 sed 's/^/| /' conftest.$ac_ext >&5
6482 LIBS="$saved_LIBS"
6485 rm -f conftest.err conftest.$ac_objext \
6486 conftest$ac_exeext conftest.$ac_ext
6487 done
6488 echo "$as_me:$LINENO: result: $regex_found" >&5
6489 echo "${ECHO_T}$regex_found" >&6
6490 if test $regex_found = yes; then
6492 REGEX_LIB=$lib
6495 else
6496 WEB=disabled
6503 if test x$WEB = xyes; then
6504 # Check for libpng
6507 # Check whether --with-libpng-prefix or --without-libpng-prefix was given.
6508 if test "${with_libpng_prefix+set}" = set; then
6509 withval="$with_libpng_prefix"
6510 libpng_config_prefix="$withval"
6511 else
6512 libpng_config_prefix=""
6515 # Check whether --with-libpng-config or --without-libpng-config was given.
6516 if test "${with_libpng_config+set}" = set; then
6517 withval="$with_libpng_config"
6518 libpng_config_name="$withval"
6519 else
6520 libpng_config_name=""
6524 if test x${LIBPNG_CONFIG_NAME+set} != xset ; then
6525 LIBPNG_CONFIG_NAME=libpng-config
6527 if test "x$libpng_config_name" != x ; then
6528 LIBPNG_CONFIG_NAME="$libpng_config_name"
6531 if test x$libpng_config_prefix != x ; then
6532 LIBPNG_LOOKUP_PATH="$libpng_config_prefix/bin"
6535 if test -x "$LIBPNG_CONFIG_NAME" ; then
6536 echo "$as_me:$LINENO: checking for libpng-config" >&5
6537 echo $ECHO_N "checking for libpng-config... $ECHO_C" >&6
6538 LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_NAME"
6539 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6540 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6541 else
6542 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
6543 set dummy $LIBPNG_CONFIG_NAME; ac_word=$2
6544 echo "$as_me:$LINENO: checking for $ac_word" >&5
6545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6546 if test "${ac_cv_path_LIBPNG_CONFIG_PATH+set}" = set; then
6547 echo $ECHO_N "(cached) $ECHO_C" >&6
6548 else
6549 case $LIBPNG_CONFIG_PATH in
6550 [\\/]* | ?:[\\/]*)
6551 ac_cv_path_LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
6554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555 as_dummy=""$LIBPNG_LOOKUP_PATH:$PATH""
6556 for as_dir in $as_dummy
6558 IFS=$as_save_IFS
6559 test -z "$as_dir" && as_dir=.
6560 for ac_exec_ext in '' $ac_executable_extensions; do
6561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6562 ac_cv_path_LIBPNG_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
6563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6564 break 2
6566 done
6567 done
6569 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH="no"
6571 esac
6573 LIBPNG_CONFIG_PATH=$ac_cv_path_LIBPNG_CONFIG_PATH
6575 if test -n "$LIBPNG_CONFIG_PATH"; then
6576 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6577 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6578 else
6579 echo "$as_me:$LINENO: result: no" >&5
6580 echo "${ECHO_T}no" >&6
6585 if test "$LIBPNG_CONFIG_PATH" != "no" ; then
6586 LIBPNG_VERSION=""
6588 echo "$as_me:$LINENO: checking for libpng version >= 1.2.0" >&5
6589 echo $ECHO_N "checking for libpng version >= 1.2.0... $ECHO_C" >&6
6591 LIBPNG_CONFIG_WITH_ARGS="$LIBPNG_CONFIG_PATH $libpng_config_args"
6593 LIBPNG_VERSION=`$LIBPNG_CONFIG_WITH_ARGS --version`
6594 libpng_config_major_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6595 libpng_config_minor_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6596 libpng_config_micro_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6598 libpng_ver_ok=""
6599 if test $libpng_config_major_version -gt 1; then
6600 libpng_ver_ok=yes
6601 else
6602 if test $libpng_config_major_version -eq 1; then
6603 if test $libpng_config_minor_version -gt 2; then
6604 libpng_ver_ok=yes
6605 else
6606 if test $libpng_config_minor_version -eq 2; then
6607 if test $libpng_config_micro_version -ge 0; then
6608 libpng_ver_ok=yes
6615 if test x$libpng_ver_ok = x ; then
6616 if test x$LIBPNG_VERSION = x; then
6617 echo "$as_me:$LINENO: result: no" >&5
6618 echo "${ECHO_T}no" >&6
6619 else
6620 echo "$as_me:$LINENO: result: no (version $LIBPNG_VERSION is not new enough)" >&5
6621 echo "${ECHO_T}no (version $LIBPNG_VERSION is not new enough)" >&6
6623 LIBPNG_CFLAGS=""
6624 LIBPNG_CXXFLAGS=""
6625 LIBPNG_LDFLAGS=""
6626 LIBPNG_LIBS=""
6627 LIBPNG_VERSION=""
6629 { echo "$as_me:$LINENO:
6630 WARNING: libpng-devel >= 1.2.0 is needed for amuleweb
6631 " >&5
6632 echo "$as_me:
6633 WARNING: libpng-devel >= 1.2.0 is needed for amuleweb
6634 " >&6;}
6635 AMULEWEB_DEFS=""
6637 else
6638 LIBPNG_LIBS=`$LIBPNG_CONFIG_WITH_ARGS --libs`
6639 LIBPNG_LDFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --ldflags | sed -e "s/ *${LIBPNG_LIBS}$//"`
6640 LIBPNG_CFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
6641 LIBPNG_CXXFLAGS=$LIBPNG_CFLAGS
6642 echo "$as_me:$LINENO: result: yes (version $LIBPNG_VERSION)" >&5
6643 echo "${ECHO_T}yes (version $LIBPNG_VERSION)" >&6
6644 AMULEWEB_DEFS="-DWITH_LIBPNG"
6647 else
6648 echo "$as_me:$LINENO: checking for libpng >= 1.2.0" >&5
6649 echo $ECHO_N "checking for libpng >= 1.2.0... $ECHO_C" >&6
6650 saved_LIBS="$LIBS"
6651 LIBS="$LIBS -lpng -lz -lm"
6652 LIBPNG_CFLAGS=""
6653 LIBPNG_CXXFLAGS=""
6654 LIBPNG_LDFLAGS=""
6655 LIBPNG_LIBS=""
6656 if test "$cross_compiling" = yes; then
6658 echo "$as_me:$LINENO: result: cross-compilation detected, checking only the header" >&5
6659 echo "${ECHO_T}cross-compilation detected, checking only the header" >&6
6660 if test "${ac_cv_header_png_h+set}" = set; then
6661 echo "$as_me:$LINENO: checking for png.h" >&5
6662 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
6663 if test "${ac_cv_header_png_h+set}" = set; then
6664 echo $ECHO_N "(cached) $ECHO_C" >&6
6666 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
6667 echo "${ECHO_T}$ac_cv_header_png_h" >&6
6668 else
6669 # Is the header compilable?
6670 echo "$as_me:$LINENO: checking png.h usability" >&5
6671 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
6672 cat >conftest.$ac_ext <<_ACEOF
6673 /* confdefs.h. */
6674 _ACEOF
6675 cat confdefs.h >>conftest.$ac_ext
6676 cat >>conftest.$ac_ext <<_ACEOF
6677 /* end confdefs.h. */
6678 $ac_includes_default
6679 #include <png.h>
6680 _ACEOF
6681 rm -f conftest.$ac_objext
6682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6683 (eval $ac_compile) 2>conftest.er1
6684 ac_status=$?
6685 grep -v '^ *+' conftest.er1 >conftest.err
6686 rm -f conftest.er1
6687 cat conftest.err >&5
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); } &&
6690 { ac_try='test -z "$ac_c_werror_flag"
6691 || test ! -s conftest.err'
6692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6693 (eval $ac_try) 2>&5
6694 ac_status=$?
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); }; } &&
6697 { ac_try='test -s conftest.$ac_objext'
6698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6699 (eval $ac_try) 2>&5
6700 ac_status=$?
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); }; }; then
6703 ac_header_compiler=yes
6704 else
6705 echo "$as_me: failed program was:" >&5
6706 sed 's/^/| /' conftest.$ac_ext >&5
6708 ac_header_compiler=no
6710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6711 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6712 echo "${ECHO_T}$ac_header_compiler" >&6
6714 # Is the header present?
6715 echo "$as_me:$LINENO: checking png.h presence" >&5
6716 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
6717 cat >conftest.$ac_ext <<_ACEOF
6718 /* confdefs.h. */
6719 _ACEOF
6720 cat confdefs.h >>conftest.$ac_ext
6721 cat >>conftest.$ac_ext <<_ACEOF
6722 /* end confdefs.h. */
6723 #include <png.h>
6724 _ACEOF
6725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6727 ac_status=$?
6728 grep -v '^ *+' conftest.er1 >conftest.err
6729 rm -f conftest.er1
6730 cat conftest.err >&5
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); } >/dev/null; then
6733 if test -s conftest.err; then
6734 ac_cpp_err=$ac_c_preproc_warn_flag
6735 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6736 else
6737 ac_cpp_err=
6739 else
6740 ac_cpp_err=yes
6742 if test -z "$ac_cpp_err"; then
6743 ac_header_preproc=yes
6744 else
6745 echo "$as_me: failed program was:" >&5
6746 sed 's/^/| /' conftest.$ac_ext >&5
6748 ac_header_preproc=no
6750 rm -f conftest.err conftest.$ac_ext
6751 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6752 echo "${ECHO_T}$ac_header_preproc" >&6
6754 # So? What about this header?
6755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6756 yes:no: )
6757 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
6758 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6759 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
6760 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
6761 ac_header_preproc=yes
6763 no:yes:* )
6764 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
6765 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
6766 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
6767 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
6768 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
6769 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
6770 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
6771 echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
6772 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
6773 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
6774 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
6775 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
6777 cat <<\_ASBOX
6778 ## ------------------------------ ##
6779 ## Report this to admin@amule.org ##
6780 ## ------------------------------ ##
6781 _ASBOX
6783 sed "s/^/$as_me: WARNING: /" >&2
6785 esac
6786 echo "$as_me:$LINENO: checking for png.h" >&5
6787 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
6788 if test "${ac_cv_header_png_h+set}" = set; then
6789 echo $ECHO_N "(cached) $ECHO_C" >&6
6790 else
6791 ac_cv_header_png_h=$ac_header_preproc
6793 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
6794 echo "${ECHO_T}$ac_cv_header_png_h" >&6
6797 if test $ac_cv_header_png_h = yes; then
6798 result=yes
6799 else
6800 result=no
6804 if test x$result = xyes; then
6805 LIBPNG_VERSION="detected"
6806 LIBPNG_LIBS="-lpng -lz -lm"
6809 else
6810 cat >conftest.$ac_ext <<_ACEOF
6812 /* confdefs.h. */
6813 _ACEOF
6814 cat confdefs.h >>conftest.$ac_ext
6815 cat >>conftest.$ac_ext <<_ACEOF
6816 /* end confdefs.h. */
6818 #include <png.h>
6819 #include <stdio.h>
6821 /* Check linking to png library */
6822 void dummy() {
6823 png_check_sig(NULL, 0);
6827 main ()
6829 /* png.h defines PNG_LIBPNG_VER=xyyzz */
6830 FILE *f=fopen("conftestval", "w");
6831 if (!f) exit(1);
6832 fprintf(f, "%s", (PNG_LIBPNG_VER >= 1 * 10000 + 2 * 100 + 0) ? "yes" : "no");
6833 fclose(f);
6834 f=fopen("conftestver", "w");
6835 if (!f) exit(0);
6836 fprintf(f, "%s", PNG_LIBPNG_VER_STRING);
6837 fclose(f);
6838 exit(0);
6841 return 0;
6844 _ACEOF
6845 rm -f conftest$ac_exeext
6846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6847 (eval $ac_link) 2>&5
6848 ac_status=$?
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6852 (eval $ac_try) 2>&5
6853 ac_status=$?
6854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855 (exit $ac_status); }; }; then
6857 if test -f conftestval; then
6858 result=`cat conftestval`
6859 else
6860 result=no
6863 if test x$result = xyes; then
6864 if test -f conftestver; then
6865 LIBPNG_VERSION=`cat conftestver`
6866 lib_version=" (version $LIBPNG_VERSION)"
6867 else
6868 lib_version=""
6871 echo "$as_me:$LINENO: result: $result$lib_version" >&5
6872 echo "${ECHO_T}$result$lib_version" >&6
6873 LIBPNG_LIBS="-lpng -lz -lm"
6875 else
6876 echo "$as_me: program exited with status $ac_status" >&5
6877 echo "$as_me: failed program was:" >&5
6878 sed 's/^/| /' conftest.$ac_ext >&5
6880 ( exit $ac_status )
6882 result=no
6883 echo "$as_me:$LINENO: result: $result" >&5
6884 echo "${ECHO_T}$result" >&6
6887 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6889 if test x$result = xyes; then
6890 AMULEWEB_DEFS="-DWITH_LIBPNG"
6891 else
6893 { echo "$as_me:$LINENO:
6894 WARNING: libpng-devel >= 1.2.0 is needed for amuleweb
6895 " >&5
6896 echo "$as_me:
6897 WARNING: libpng-devel >= 1.2.0 is needed for amuleweb
6898 " >&6;}
6899 AMULEWEB_DEFS=""
6903 LIBS="$saved_LIBS"
6909 else
6910 AMULEWEB_DEFS=""
6911 LIBPNG_LIBS=""
6912 LIBPNG_CFLAGS=""
6913 LIBPNG_CXXFLAGS=""
6914 LIBPNG_LDFLAGS=""
6915 LIBPNG_VERSION="not_needed"
6921 # Check for perl File::Copy
6922 echo "$as_me:$LINENO: checking for File::Copy" >&5
6923 echo $ECHO_N "checking for File::Copy... $ECHO_C" >&6
6924 if perl -e "require File::Copy" 2>/dev/null; then
6925 echo "$as_me:$LINENO: result: ok" >&5
6926 echo "${ECHO_T}ok" >&6
6927 else
6928 { { echo "$as_me:$LINENO: error: File::Copy perl module is required" >&5
6929 echo "$as_me: error: File::Copy perl module is required" >&2;}
6930 { (exit 1); exit 1; }; }
6934 # Check if we need the GUI
6935 echo "$as_me:$LINENO: checking whether we need the GUI" >&5
6936 echo $ECHO_N "checking whether we need the GUI... $ECHO_C" >&6
6937 if test x$MONOLITHIC = xyes; then
6938 need_gui=yes
6941 if test x$WXCAS = xyes; then
6942 need_gui=yes
6945 if test x$ALC = xyes; then
6946 need_gui=yes
6949 if test x$AMULE_GUI = xyes; then
6950 need_gui=yes
6953 if test x${need_gui:+set} != xset; then
6954 need_gui=no
6957 echo "$as_me:$LINENO: result: $need_gui" >&5
6958 echo "${ECHO_T}$need_gui" >&6
6961 # Check for GeoIP (required for IP2Country capability)
6962 if test x"$ENABLE_IP2COUNTRY" = x"yes" ; then
6963 GEOIP_LIB="-lGeoIP"
6964 CXXFLAGS="$CXXFLAGS $GEOIP_INCLUDE"
6965 LIBS="$LIBS"
6966 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6967 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
6968 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
6969 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6970 echo $ECHO_N "(cached) $ECHO_C" >&6
6972 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
6973 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
6974 else
6975 # Is the header compilable?
6976 echo "$as_me:$LINENO: checking GeoIP.h usability" >&5
6977 echo $ECHO_N "checking GeoIP.h usability... $ECHO_C" >&6
6978 cat >conftest.$ac_ext <<_ACEOF
6979 /* confdefs.h. */
6980 _ACEOF
6981 cat confdefs.h >>conftest.$ac_ext
6982 cat >>conftest.$ac_ext <<_ACEOF
6983 /* end confdefs.h. */
6984 $ac_includes_default
6985 #include <GeoIP.h>
6986 _ACEOF
6987 rm -f conftest.$ac_objext
6988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6989 (eval $ac_compile) 2>conftest.er1
6990 ac_status=$?
6991 grep -v '^ *+' conftest.er1 >conftest.err
6992 rm -f conftest.er1
6993 cat conftest.err >&5
6994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995 (exit $ac_status); } &&
6996 { ac_try='test -z "$ac_c_werror_flag"
6997 || test ! -s conftest.err'
6998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6999 (eval $ac_try) 2>&5
7000 ac_status=$?
7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); }; } &&
7003 { ac_try='test -s conftest.$ac_objext'
7004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7005 (eval $ac_try) 2>&5
7006 ac_status=$?
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); }; }; then
7009 ac_header_compiler=yes
7010 else
7011 echo "$as_me: failed program was:" >&5
7012 sed 's/^/| /' conftest.$ac_ext >&5
7014 ac_header_compiler=no
7016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7017 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7018 echo "${ECHO_T}$ac_header_compiler" >&6
7020 # Is the header present?
7021 echo "$as_me:$LINENO: checking GeoIP.h presence" >&5
7022 echo $ECHO_N "checking GeoIP.h presence... $ECHO_C" >&6
7023 cat >conftest.$ac_ext <<_ACEOF
7024 /* confdefs.h. */
7025 _ACEOF
7026 cat confdefs.h >>conftest.$ac_ext
7027 cat >>conftest.$ac_ext <<_ACEOF
7028 /* end confdefs.h. */
7029 #include <GeoIP.h>
7030 _ACEOF
7031 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7032 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7033 ac_status=$?
7034 grep -v '^ *+' conftest.er1 >conftest.err
7035 rm -f conftest.er1
7036 cat conftest.err >&5
7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); } >/dev/null; then
7039 if test -s conftest.err; then
7040 ac_cpp_err=$ac_c_preproc_warn_flag
7041 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7042 else
7043 ac_cpp_err=
7045 else
7046 ac_cpp_err=yes
7048 if test -z "$ac_cpp_err"; then
7049 ac_header_preproc=yes
7050 else
7051 echo "$as_me: failed program was:" >&5
7052 sed 's/^/| /' conftest.$ac_ext >&5
7054 ac_header_preproc=no
7056 rm -f conftest.err conftest.$ac_ext
7057 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7058 echo "${ECHO_T}$ac_header_preproc" >&6
7060 # So? What about this header?
7061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7062 yes:no: )
7063 { echo "$as_me:$LINENO: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&5
7064 echo "$as_me: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7065 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the compiler's result" >&5
7066 echo "$as_me: WARNING: GeoIP.h: proceeding with the compiler's result" >&2;}
7067 ac_header_preproc=yes
7069 no:yes:* )
7070 { echo "$as_me:$LINENO: WARNING: GeoIP.h: present but cannot be compiled" >&5
7071 echo "$as_me: WARNING: GeoIP.h: present but cannot be compiled" >&2;}
7072 { echo "$as_me:$LINENO: WARNING: GeoIP.h: check for missing prerequisite headers?" >&5
7073 echo "$as_me: WARNING: GeoIP.h: check for missing prerequisite headers?" >&2;}
7074 { echo "$as_me:$LINENO: WARNING: GeoIP.h: see the Autoconf documentation" >&5
7075 echo "$as_me: WARNING: GeoIP.h: see the Autoconf documentation" >&2;}
7076 { echo "$as_me:$LINENO: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&5
7077 echo "$as_me: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&2;}
7078 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&5
7079 echo "$as_me: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&2;}
7080 { echo "$as_me:$LINENO: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&5
7081 echo "$as_me: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&2;}
7083 cat <<\_ASBOX
7084 ## ------------------------------ ##
7085 ## Report this to admin@amule.org ##
7086 ## ------------------------------ ##
7087 _ASBOX
7089 sed "s/^/$as_me: WARNING: /" >&2
7091 esac
7092 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
7093 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
7094 if test "${ac_cv_header_GeoIP_h+set}" = set; then
7095 echo $ECHO_N "(cached) $ECHO_C" >&6
7096 else
7097 ac_cv_header_GeoIP_h=$ac_header_preproc
7099 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
7100 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
7103 if test $ac_cv_header_GeoIP_h = yes; then
7105 else
7106 { { echo "$as_me:$LINENO: error: --enable-geoip passed to configure, but the GeoIP header files were not found" >&5
7107 echo "$as_me: error: --enable-geoip passed to configure, but the GeoIP header files were not found" >&2;}
7108 { (exit 1); exit 1; }; }
7112 echo "$as_me:$LINENO: checking for GeoIP_open in -lGeoIP" >&5
7113 echo $ECHO_N "checking for GeoIP_open in -lGeoIP... $ECHO_C" >&6
7114 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then
7115 echo $ECHO_N "(cached) $ECHO_C" >&6
7116 else
7117 ac_check_lib_save_LIBS=$LIBS
7118 LIBS="-lGeoIP $LIBS"
7119 cat >conftest.$ac_ext <<_ACEOF
7120 /* confdefs.h. */
7121 _ACEOF
7122 cat confdefs.h >>conftest.$ac_ext
7123 cat >>conftest.$ac_ext <<_ACEOF
7124 /* end confdefs.h. */
7126 /* Override any gcc2 internal prototype to avoid an error. */
7127 #ifdef __cplusplus
7128 extern "C"
7129 #endif
7130 /* We use char because int might match the return type of a gcc2
7131 builtin and then its argument prototype would still apply. */
7132 char GeoIP_open ();
7134 main ()
7136 GeoIP_open ();
7138 return 0;
7140 _ACEOF
7141 rm -f conftest.$ac_objext conftest$ac_exeext
7142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7143 (eval $ac_link) 2>conftest.er1
7144 ac_status=$?
7145 grep -v '^ *+' conftest.er1 >conftest.err
7146 rm -f conftest.er1
7147 cat conftest.err >&5
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); } &&
7150 { ac_try='test -z "$ac_c_werror_flag"
7151 || test ! -s conftest.err'
7152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7153 (eval $ac_try) 2>&5
7154 ac_status=$?
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); }; } &&
7157 { ac_try='test -s conftest$ac_exeext'
7158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7159 (eval $ac_try) 2>&5
7160 ac_status=$?
7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 (exit $ac_status); }; }; then
7163 ac_cv_lib_GeoIP_GeoIP_open=yes
7164 else
7165 echo "$as_me: failed program was:" >&5
7166 sed 's/^/| /' conftest.$ac_ext >&5
7168 ac_cv_lib_GeoIP_GeoIP_open=no
7170 rm -f conftest.err conftest.$ac_objext \
7171 conftest$ac_exeext conftest.$ac_ext
7172 LIBS=$ac_check_lib_save_LIBS
7174 echo "$as_me:$LINENO: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
7175 echo "${ECHO_T}$ac_cv_lib_GeoIP_GeoIP_open" >&6
7176 if test $ac_cv_lib_GeoIP_GeoIP_open = yes; then
7178 cat >>confdefs.h <<\_ACEOF
7179 #define SUPPORT_GEOIP 1
7180 _ACEOF
7182 LIBS="$GEOIP_LIB $LIBS"
7183 else
7184 { { echo "$as_me:$LINENO: error: --enable-geoip passed to configure, but the GeoIP libraries were not found" >&5
7185 echo "$as_me: error: --enable-geoip passed to configure, but the GeoIP libraries were not found" >&2;}
7186 { (exit 1); exit 1; }; }
7194 # Check if the compiler is broken, wrt. exceptions.
7197 echo "$as_me:$LINENO: checking for exception-handling" >&5
7198 echo $ECHO_N "checking for exception-handling... $ECHO_C" >&6
7200 ac_ext=cc
7201 ac_cpp='$CXXCPP $CPPFLAGS'
7202 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7203 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7204 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7206 if test "$cross_compiling" = yes; then
7208 echo "$as_me:$LINENO: result: undeterminable" >&5
7209 echo "${ECHO_T}undeterminable" >&6
7210 { echo "$as_me:$LINENO: WARNING:
7211 Cross-compilation detected, so exception handling cannot be tested.
7212 Note that broken exception handling in your compiler may lead to
7213 unexpected crashes." >&5
7214 echo "$as_me: WARNING:
7215 Cross-compilation detected, so exception handling cannot be tested.
7216 Note that broken exception handling in your compiler may lead to
7217 unexpected crashes." >&2;}
7219 else
7220 cat >conftest.$ac_ext <<_ACEOF
7222 /* confdefs.h. */
7223 _ACEOF
7224 cat confdefs.h >>conftest.$ac_ext
7225 cat >>conftest.$ac_ext <<_ACEOF
7226 /* end confdefs.h. */
7229 main ()
7232 try {
7233 throw 1;
7234 } catch (int) {
7235 return 0;
7237 return 1;
7240 return 0;
7243 _ACEOF
7244 rm -f conftest$ac_exeext
7245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7246 (eval $ac_link) 2>&5
7247 ac_status=$?
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7251 (eval $ac_try) 2>&5
7252 ac_status=$?
7253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254 (exit $ac_status); }; }; then
7256 echo "$as_me:$LINENO: result: yes" >&5
7257 echo "${ECHO_T}yes" >&6
7259 else
7260 echo "$as_me: program exited with status $ac_status" >&5
7261 echo "$as_me: failed program was:" >&5
7262 sed 's/^/| /' conftest.$ac_ext >&5
7264 ( exit $ac_status )
7266 echo "$as_me:$LINENO: result: no" >&5
7267 echo "${ECHO_T}no" >&6
7268 { { echo "$as_me:$LINENO: error: Exception handling does not work. Broken compiler?" >&5
7269 echo "$as_me: error: Exception handling does not work. Broken compiler?" >&2;}
7270 { (exit 1); exit 1; }; }
7273 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7275 ac_ext=c
7276 ac_cpp='$CPP $CPPFLAGS'
7277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7283 # Check for wx
7286 # Check whether --with-wxdir or --without-wxdir was given.
7287 if test "${with_wxdir+set}" = set; then
7288 withval="$with_wxdir"
7289 wx_config_name="$withval/wx-config"
7290 wx_config_args="--inplace"
7293 # Check whether --with-wx-config or --without-wx-config was given.
7294 if test "${with_wx_config+set}" = set; then
7295 withval="$with_wx_config"
7296 wx_config_name="$withval"
7299 # Check whether --with-wx-prefix or --without-wx-prefix was given.
7300 if test "${with_wx_prefix+set}" = set; then
7301 withval="$with_wx_prefix"
7302 wx_config_prefix="$withval"
7303 else
7304 wx_config_prefix=""
7307 # Check whether --with-wx-exec-prefix or --without-wx-exec-prefix was given.
7308 if test "${with_wx_exec_prefix+set}" = set; then
7309 withval="$with_wx_exec_prefix"
7310 wx_config_exec_prefix="$withval"
7311 else
7312 wx_config_exec_prefix=""
7326 # Check whether --with-toolkit or --without-toolkit was given.
7327 if test "${with_toolkit+set}" = set; then
7328 withval="$with_toolkit"
7330 else
7331 withval="auto"
7334 echo "$as_me:$LINENO: checking for the --with-toolkit option" >&5
7335 echo $ECHO_N "checking for the --with-toolkit option... $ECHO_C" >&6
7336 if test "$withval" = "auto" ; then
7337 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7338 echo "${ECHO_T}will be automatically detected" >&6
7339 TOOLKIT="auto"
7340 else
7341 TOOLKIT="$withval"
7343 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a \
7344 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
7345 "$TOOLKIT" != "x11" -a "$TOOLKIT" != "mac" -a \
7346 "$TOOLKIT" != "mgl" -a "$TOOLKIT" != "dfb" -a \
7347 "$TOOLKIT" != "base" ; then
7348 { { echo "$as_me:$LINENO: error:
7349 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base)
7350 " >&5
7351 echo "$as_me: error:
7352 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base)
7353 " >&2;}
7354 { (exit 1); exit 1; }; }
7357 echo "$as_me:$LINENO: result: $TOOLKIT" >&5
7358 echo "${ECHO_T}$TOOLKIT" >&6
7365 # Check whether --with-wxshared or --without-wxshared was given.
7366 if test "${with_wxshared+set}" = set; then
7367 withval="$with_wxshared"
7369 else
7370 withval="auto"
7373 echo "$as_me:$LINENO: checking for the --with-wxshared option" >&5
7374 echo $ECHO_N "checking for the --with-wxshared option... $ECHO_C" >&6
7375 if test "$withval" = "yes" ; then
7376 echo "$as_me:$LINENO: result: yes" >&5
7377 echo "${ECHO_T}yes" >&6
7378 WX_SHARED=1
7380 elif test "1" = "1" -a "$withval" = "no" ; then
7381 echo "$as_me:$LINENO: result: no" >&5
7382 echo "${ECHO_T}no" >&6
7383 WX_SHARED=0
7384 elif test "$withval" = "auto" ; then
7385 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7386 echo "${ECHO_T}will be automatically detected" >&6
7387 WX_SHARED="auto"
7388 else
7389 { { echo "$as_me:$LINENO: error:
7390 Unrecognized option value (allowed values: yes, auto)
7391 " >&5
7392 echo "$as_me: error:
7393 Unrecognized option value (allowed values: yes, auto)
7394 " >&2;}
7395 { (exit 1); exit 1; }; }
7402 # Check whether --with-wxdebug or --without-wxdebug was given.
7403 if test "${with_wxdebug+set}" = set; then
7404 withval="$with_wxdebug"
7406 else
7407 withval="auto"
7410 echo "$as_me:$LINENO: checking for the --with-wxdebug option" >&5
7411 echo $ECHO_N "checking for the --with-wxdebug option... $ECHO_C" >&6
7412 if test "$withval" = "yes" ; then
7413 echo "$as_me:$LINENO: result: yes" >&5
7414 echo "${ECHO_T}yes" >&6
7415 WX_DEBUG=1
7417 elif test "1" = "1" -a "$withval" = "no" ; then
7418 echo "$as_me:$LINENO: result: no" >&5
7419 echo "${ECHO_T}no" >&6
7420 WX_DEBUG=0
7421 elif test "$withval" = "auto" ; then
7422 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7423 echo "${ECHO_T}will be automatically detected" >&6
7424 WX_DEBUG="auto"
7425 else
7426 { { echo "$as_me:$LINENO: error:
7427 Unrecognized option value (allowed values: yes, auto)
7428 " >&5
7429 echo "$as_me: error:
7430 Unrecognized option value (allowed values: yes, auto)
7431 " >&2;}
7432 { (exit 1); exit 1; }; }
7439 # Check whether --with-wxversion or --without-wxversion was given.
7440 if test "${with_wxversion+set}" = set; then
7441 withval="$with_wxversion"
7443 else
7444 withval="auto"
7447 echo "$as_me:$LINENO: checking for the --with-wxversion option" >&5
7448 echo $ECHO_N "checking for the --with-wxversion option... $ECHO_C" >&6
7449 if test "$withval" = "auto" ; then
7450 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7451 echo "${ECHO_T}will be automatically detected" >&6
7452 WX_VERSION="auto"
7453 else
7455 wx_requested_major_version=`echo $withval | \
7456 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
7457 wx_requested_minor_version=`echo $withval | \
7458 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
7460 if test "${#wx_requested_major_version}" != "1" -o \
7461 "${#wx_requested_minor_version}" != "1" ; then
7462 { { echo "$as_me:$LINENO: error:
7463 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7464 " >&5
7465 echo "$as_me: error:
7466 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7467 " >&2;}
7468 { (exit 1); exit 1; }; }
7471 WX_VERSION="$wx_requested_major_version"".""$wx_requested_minor_version"
7472 echo "$as_me:$LINENO: result: $WX_VERSION" >&5
7473 echo "${ECHO_T}$WX_VERSION" >&6
7477 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7478 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
7479 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
7480 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
7481 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
7482 echo "[dbg] VERSION: $VERSION, WX_VERSION: $WX_VERSION"
7485 # Force using a static wxWidgets library if the executable is to be linked statically.
7486 if test "$USE_DEBUG_STATIC" = "yes"; then
7487 WX_SHARED=0
7490 # Force using a unicode build of the library
7491 WX_UNICODE=1
7492 DEBUG=$WX_DEBUG
7494 if test "$WX_SHARED" = "1" ; then
7495 WXCONFIG_FLAGS="--static=no "
7496 elif test "$WX_SHARED" = "0" ; then
7497 WXCONFIG_FLAGS="--static=yes "
7500 if test "$WX_DEBUG" = "1" ; then
7501 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=yes "
7502 elif test "$WX_DEBUG" = "0" ; then
7503 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=no "
7506 if test "$WX_UNICODE" = "1" ; then
7507 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=yes "
7508 elif test "$WX_UNICODE" = "0" ; then
7509 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=no "
7512 if test "$TOOLKIT" != "auto" ; then
7513 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
7516 if test "$WX_VERSION" != "auto" ; then
7517 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--version=$WX_VERSION "
7520 WXCONFIG_FLAGS=${WXCONFIG_FLAGS% }
7522 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7523 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
7527 if test x${WX_CONFIG_NAME+set} != xset ; then
7528 WX_CONFIG_NAME=wx-config
7531 if test "x$wx_config_name" != x ; then
7532 WX_CONFIG_NAME="$wx_config_name"
7535 if test x$wx_config_exec_prefix != x ; then
7536 wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
7537 WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
7539 if test x$wx_config_prefix != x ; then
7540 wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
7541 WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
7543 if test "$cross_compiling" = "yes"; then
7544 wx_config_args="$wx_config_args --host=$host_alias"
7547 if test -x "$WX_CONFIG_NAME" ; then
7548 echo "$as_me:$LINENO: checking for wx-config" >&5
7549 echo $ECHO_N "checking for wx-config... $ECHO_C" >&6
7550 WX_CONFIG_PATH="$WX_CONFIG_NAME"
7551 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7552 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7553 else
7554 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
7555 set dummy $WX_CONFIG_NAME; ac_word=$2
7556 echo "$as_me:$LINENO: checking for $ac_word" >&5
7557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7558 if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then
7559 echo $ECHO_N "(cached) $ECHO_C" >&6
7560 else
7561 case $WX_CONFIG_PATH in
7562 [\\/]* | ?:[\\/]*)
7563 ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path.
7566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7567 as_dummy=""$WX_LOOKUP_PATH:$PATH""
7568 for as_dir in $as_dummy
7570 IFS=$as_save_IFS
7571 test -z "$as_dir" && as_dir=.
7572 for ac_exec_ext in '' $ac_executable_extensions; do
7573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7574 ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7576 break 2
7578 done
7579 done
7581 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no"
7583 esac
7585 WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH
7587 if test -n "$WX_CONFIG_PATH"; then
7588 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7589 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7590 else
7591 echo "$as_me:$LINENO: result: no" >&5
7592 echo "${ECHO_T}no" >&6
7597 if test "$WX_CONFIG_PATH" != "no" ; then
7598 WX_VERSION_FULL=""
7600 min_wx_version=2.8.0
7601 if test -z "$WXCONFIG_FLAGS" ; then
7602 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version" >&5
7603 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version... $ECHO_C" >&6
7604 else
7605 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
7606 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... $ECHO_C" >&6
7609 WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS "
7611 WX_VERSION_FULL=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
7612 wx_config_major_version=`echo $WX_VERSION_FULL | \
7613 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7614 wx_config_minor_version=`echo $WX_VERSION_FULL | \
7615 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7616 wx_config_micro_version=`echo $WX_VERSION_FULL | \
7617 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7619 wx_requested_major_version=`echo $min_wx_version | \
7620 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7621 wx_requested_minor_version=`echo $min_wx_version | \
7622 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7623 wx_requested_micro_version=`echo $min_wx_version | \
7624 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7627 wx_ver_ok=""
7628 if test "x$WX_VERSION_FULL" != x ; then
7629 if test $wx_config_major_version -gt $wx_requested_major_version; then
7630 wx_ver_ok=yes
7631 else
7632 if test $wx_config_major_version -eq $wx_requested_major_version; then
7633 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
7634 wx_ver_ok=yes
7635 else
7636 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
7637 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
7638 wx_ver_ok=yes
7647 if test -n "$wx_ver_ok"; then
7649 echo "$as_me:$LINENO: result: yes (version $WX_VERSION_FULL)" >&5
7650 echo "${ECHO_T}yes (version $WX_VERSION_FULL)" >&6
7651 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs`
7653 echo "$as_me:$LINENO: checking for wxWidgets static library" >&5
7654 echo $ECHO_N "checking for wxWidgets static library... $ECHO_C" >&6
7655 WX_LIBS_STATIC=`$WX_CONFIG_WITH_ARGS --static --libs 2>/dev/null`
7656 if test "x$WX_LIBS_STATIC" = "x"; then
7657 echo "$as_me:$LINENO: result: no" >&5
7658 echo "${ECHO_T}no" >&6
7659 else
7660 echo "$as_me:$LINENO: result: yes" >&5
7661 echo "${ECHO_T}yes" >&6
7664 wx_has_cppflags=""
7665 if test $wx_config_major_version -gt 2; then
7666 wx_has_cppflags=yes
7667 else
7668 if test $wx_config_major_version -eq 2; then
7669 if test $wx_config_minor_version -gt 2; then
7670 wx_has_cppflags=yes
7671 else
7672 if test $wx_config_minor_version -eq 2; then
7673 if test $wx_config_micro_version -ge 6; then
7674 wx_has_cppflags=yes
7681 wx_has_rescomp=""
7682 if test $wx_config_major_version -gt 2; then
7683 wx_has_rescomp=yes
7684 else
7685 if test $wx_config_major_version -eq 2; then
7686 if test $wx_config_minor_version -ge 7; then
7687 wx_has_rescomp=yes
7691 if test "x$wx_has_rescomp" = x ; then
7692 WX_RESCOMP=
7693 else
7694 WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
7697 if test "x$wx_has_cppflags" = x ; then
7698 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
7699 WX_CPPFLAGS=$WX_CFLAGS
7700 WX_CXXFLAGS=$WX_CFLAGS
7702 WX_CFLAGS_ONLY=$WX_CFLAGS
7703 WX_CXXFLAGS_ONLY=$WX_CFLAGS
7704 else
7705 WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags`
7706 WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags`
7707 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
7709 WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
7710 WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
7713 wxWin=1
7715 else
7717 if test "x$WX_VERSION_FULL" = x; then
7718 echo "$as_me:$LINENO: result: no" >&5
7719 echo "${ECHO_T}no" >&6
7720 else
7721 echo "$as_me:$LINENO: result: no (version $WX_VERSION_FULL is not new enough)" >&5
7722 echo "${ECHO_T}no (version $WX_VERSION_FULL is not new enough)" >&6
7725 WX_CFLAGS=""
7726 WX_CPPFLAGS=""
7727 WX_CXXFLAGS=""
7728 WX_LIBS=""
7729 WX_LIBS_STATIC=""
7730 WX_RESCOMP=""
7732 if test ! -z "$WXCONFIG_FLAGS"; then
7734 wx_error_message="
7735 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
7736 build with the following settings:
7737 $WXCONFIG_FLAGS
7738 but such build is not available.
7740 To see the wxWidgets builds available on this system, please use
7741 'wx-config --list' command. To use the default build, returned by
7742 'wx-config --selected-config', use the options with their 'auto'
7743 default values."
7747 wx_error_message="
7748 The requested wxWidgets build couldn't be found.
7749 $wx_error_message
7751 If you still get this error, then check that 'wx-config' is
7752 in path, the directory where wxWidgets libraries are installed
7753 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
7754 or equivalent variable and wxWidgets version is 2.8.0 or above."
7756 { { echo "$as_me:$LINENO: error: $wx_error_message" >&5
7757 echo "$as_me: error: $wx_error_message" >&2;}
7758 { (exit 1); exit 1; }; }
7761 else
7763 WX_CFLAGS=""
7764 WX_CPPFLAGS=""
7765 WX_CXXFLAGS=""
7766 WX_LIBS=""
7767 WX_LIBS_STATIC=""
7768 WX_RESCOMP=""
7784 WX_VERSION_MAJOR="$wx_config_major_version"
7785 WX_VERSION_MINOR="$wx_config_minor_version"
7789 if test "$wxWin" != 1; then
7790 { { echo "$as_me:$LINENO: error:
7791 wxWidgets must be installed on your system but wx-config
7792 script couldn't be found. Please check that wx-config is
7793 in path or specified by --with-wx-config=path flag, the
7794 directory where wxWidgets libraries are installed (returned
7795 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7796 equivalent variable and wxWidgets version is 2.8.0 or above.
7797 " >&5
7798 echo "$as_me: error:
7799 wxWidgets must be installed on your system but wx-config
7800 script couldn't be found. Please check that wx-config is
7801 in path or specified by --with-wx-config=path flag, the
7802 directory where wxWidgets libraries are installed (returned
7803 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7804 equivalent variable and wxWidgets version is 2.8.0 or above.
7805 " >&2;}
7806 { (exit 1); exit 1; }; }
7809 WX_VERSION="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
7810 if test $WX_VERSION -lt 26 ; then
7812 { { echo "$as_me:$LINENO: error:
7813 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7814 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7815 version of wxWidgets.
7816 " >&5
7817 echo "$as_me: error:
7818 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7819 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7820 version of wxWidgets.
7821 " >&2;}
7822 { (exit 1); exit 1; }; }
7825 WX_SELECTEDCONFIG=$($WX_CONFIG_WITH_ARGS --selected_config)
7827 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7828 echo "[dbg] Using wx-config --selected-config"
7829 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
7833 if test $WX_SHARED = "1"; then
7834 STATIC=0
7835 elif test $WX_SHARED = "0"; then
7836 STATIC=1
7837 elif test $WX_SHARED = "auto"; then
7838 STATIC="auto"
7842 if test "$UNICODE" = "auto" ; then
7844 echo "$as_me:$LINENO: checking if wxWidgets was built with UNICODE enabled" >&5
7845 echo $ECHO_N "checking if wxWidgets was built with UNICODE enabled... $ECHO_C" >&6
7847 WX_UNICODE=$(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
7849 if test "$WX_UNICODE" != "0"; then
7850 WX_UNICODE=1
7851 echo "$as_me:$LINENO: result: yes" >&5
7852 echo "${ECHO_T}yes" >&6
7854 else
7855 WX_UNICODE=0
7856 echo "$as_me:$LINENO: result: no" >&5
7857 echo "${ECHO_T}no" >&6
7860 else
7862 WX_UNICODE=$UNICODE
7866 if test "$DEBUG" = "auto" ; then
7868 echo "$as_me:$LINENO: checking if wxWidgets was built in DEBUG mode" >&5
7869 echo $ECHO_N "checking if wxWidgets was built in DEBUG mode... $ECHO_C" >&6
7871 WX_DEBUG=$(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
7873 if test "$WX_DEBUG" != "0"; then
7874 WX_DEBUG=1
7875 echo "$as_me:$LINENO: result: yes" >&5
7876 echo "${ECHO_T}yes" >&6
7878 else
7879 WX_DEBUG=0
7880 echo "$as_me:$LINENO: result: no" >&5
7881 echo "${ECHO_T}no" >&6
7884 else
7886 WX_DEBUG=$DEBUG
7890 if test "$STATIC" = "auto" ; then
7892 echo "$as_me:$LINENO: checking if wxWidgets was built in STATIC mode" >&5
7893 echo $ECHO_N "checking if wxWidgets was built in STATIC mode... $ECHO_C" >&6
7895 WX_STATIC=$(expr "$WX_SELECTEDCONFIG" : ".*static.*")
7897 if test "$WX_STATIC" != "0"; then
7898 WX_STATIC=1
7899 echo "$as_me:$LINENO: result: yes" >&5
7900 echo "${ECHO_T}yes" >&6
7902 else
7903 WX_STATIC=0
7904 echo "$as_me:$LINENO: result: no" >&5
7905 echo "${ECHO_T}no" >&6
7908 else
7910 WX_STATIC=$STATIC
7914 if test "$WX_STATIC" != "0"; then
7915 WX_SHARED=0
7916 else
7917 WX_SHARED=1
7924 if test "$TOOLKIT" = "auto" ; then
7926 echo "$as_me:$LINENO: checking which wxWidgets toolkit was selected" >&5
7927 echo $ECHO_N "checking which wxWidgets toolkit was selected... $ECHO_C" >&6
7929 WX_GTKPORT1=$(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
7930 WX_GTKPORT2=$(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
7931 WX_MSWPORT=$(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
7932 WX_MOTIFPORT=$(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
7933 WX_MACPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
7934 WX_X11PORT=$(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
7935 WX_MGLPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mgl.*")
7936 WX_DFBPORT=$(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
7937 WX_BASEPORT=$(expr "$WX_SELECTEDCONFIG" : ".*base.*")
7939 WX_PORT="unknown"
7940 if test "$WX_GTKPORT1" != "0"; then WX_PORT="gtk1"; fi
7941 if test "$WX_GTKPORT2" != "0"; then WX_PORT="gtk2"; fi
7942 if test "$WX_MSWPORT" != "0"; then WX_PORT="msw"; fi
7943 if test "$WX_MOTIFPORT" != "0"; then WX_PORT="motif"; fi
7944 if test "$WX_MACPORT" != "0"; then WX_PORT="mac"; fi
7945 if test "$WX_X11PORT" != "0"; then WX_PORT="x11"; fi
7946 if test "$WX_MGLPORT" != "0"; then WX_PORT="mgl"; fi
7947 if test "$WX_DFBPORT" != "0"; then WX_PORT="dfb"; fi
7948 if test "$WX_BASEPORT" != "0"; then WX_PORT="base"; fi
7951 if test "$WX_PORT" = "unknown" ; then
7952 { { echo "$as_me:$LINENO: error:
7953 Cannot detect the currently installed wxWidgets port !
7954 Please check your 'wx-config --cxxflags'...
7955 " >&5
7956 echo "$as_me: error:
7957 Cannot detect the currently installed wxWidgets port !
7958 Please check your 'wx-config --cxxflags'...
7959 " >&2;}
7960 { (exit 1); exit 1; }; }
7963 echo "$as_me:$LINENO: result: $WX_PORT" >&5
7964 echo "${ECHO_T}$WX_PORT" >&6
7965 else
7967 if test -z "$TOOLKIT" ; then
7968 WX_PORT=$TOOLKIT
7969 else
7970 WX_PORT=$PORT
7976 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7977 echo "[dbg] Values of all WX_* options after final detection:"
7978 echo "[dbg] WX_DEBUG: $WX_DEBUG"
7979 echo "[dbg] WX_UNICODE: $WX_UNICODE"
7980 echo "[dbg] WX_SHARED: $WX_SHARED"
7981 echo "[dbg] WX_VERSION: $WX_VERSION"
7982 echo "[dbg] WX_PORT: $WX_PORT"
7985 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
7986 { { echo "$as_me:$LINENO: error:
7987 Cannot build shared library against a static build of wxWidgets !
7988 This error happens because the wxWidgets build which was selected
7989 has been detected as static while you asked to build $PACKAGE_NAME
7990 as shared library and this is not possible.
7991 Use the '--disable-shared' option to build $PACKAGE_NAME
7992 as static library or '--with-wxshared' to use wxWidgets as shared library.
7993 " >&5
7994 echo "$as_me: error:
7995 Cannot build shared library against a static build of wxWidgets !
7996 This error happens because the wxWidgets build which was selected
7997 has been detected as static while you asked to build $PACKAGE_NAME
7998 as shared library and this is not possible.
7999 Use the '--disable-shared' option to build $PACKAGE_NAME
8000 as static library or '--with-wxshared' to use wxWidgets as shared library.
8001 " >&2;}
8002 { (exit 1); exit 1; }; }
8005 if test "$DEBUG" = "auto"; then
8006 DEBUG=$WX_DEBUG
8008 if test "$DEBUG" = "1"; then
8009 BUILD="debug"
8010 elif test "$DEBUG" = ""; then
8011 BUILD="release"
8014 if test "$UNICODE" = "auto"; then
8015 UNICODE=$WX_UNICODE
8017 if test "$SHARED" = "auto"; then
8018 SHARED=$WX_SHARED
8020 if test "$TOOLKIT" = "auto"; then
8021 TOOLKIT=$WX_PORT
8027 ac_ext=cc
8028 ac_cpp='$CXXCPP $CPPFLAGS'
8029 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8030 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8031 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8034 __CPPFLAGS=${CPPFLAGS}
8035 CPPFLAGS=${WX_CPPFLAGS}
8037 echo "$as_me:$LINENO: checking that wxWidgets has support for large files" >&5
8038 echo $ECHO_N "checking that wxWidgets has support for large files... $ECHO_C" >&6
8039 cat >conftest.$ac_ext <<_ACEOF
8041 #include <wx/wx.h>
8043 int main() {
8044 #if !HAVE_LARGEFILE_SUPPORT && !defined(_LARGE_FILES) && !defined(__WXMSW__)
8045 #error No LargeFile support!;
8046 #endif
8047 exit(0);
8050 _ACEOF
8051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8052 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8053 ac_status=$?
8054 grep -v '^ *+' conftest.er1 >conftest.err
8055 rm -f conftest.er1
8056 cat conftest.err >&5
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); } >/dev/null; then
8059 if test -s conftest.err; then
8060 ac_cpp_err=$ac_cxx_preproc_warn_flag
8061 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8062 else
8063 ac_cpp_err=
8065 else
8066 ac_cpp_err=yes
8068 if test -z "$ac_cpp_err"; then
8070 else
8071 echo "$as_me: failed program was:" >&5
8072 sed 's/^/| /' conftest.$ac_ext >&5
8074 NO_LF="true"
8076 rm -f conftest.err conftest.$ac_ext
8078 if test "x${NO_LF}" != "x";
8079 then
8080 echo "$as_me:$LINENO: result: no" >&5
8081 echo "${ECHO_T}no" >&6
8082 { { echo "$as_me:$LINENO: error:
8083 Support for large files in wxWidgets is required by aMule.
8084 To continue you must recompile wxWidgets with support for
8085 large files enabled.
8086 " >&5
8087 echo "$as_me: error:
8088 Support for large files in wxWidgets is required by aMule.
8089 To continue you must recompile wxWidgets with support for
8090 large files enabled.
8091 " >&2;}
8092 { (exit 1); exit 1; }; }
8093 else
8094 echo "$as_me:$LINENO: result: yes" >&5
8095 echo "${ECHO_T}yes" >&6
8098 CPPFLAGS=${__CPPFLAGS}
8100 ac_ext=c
8101 ac_cpp='$CPP $CPPFLAGS'
8102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8108 if test x$SYS = xwin32; then
8109 if test -n "$ac_tool_prefix"; then
8110 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8111 set dummy ${ac_tool_prefix}windres; ac_word=$2
8112 echo "$as_me:$LINENO: checking for $ac_word" >&5
8113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8114 if test "${ac_cv_prog_RC+set}" = set; then
8115 echo $ECHO_N "(cached) $ECHO_C" >&6
8116 else
8117 if test -n "$RC"; then
8118 ac_cv_prog_RC="$RC" # Let the user override the test.
8119 else
8120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8121 for as_dir in $PATH
8123 IFS=$as_save_IFS
8124 test -z "$as_dir" && as_dir=.
8125 for ac_exec_ext in '' $ac_executable_extensions; do
8126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8127 ac_cv_prog_RC="${ac_tool_prefix}windres"
8128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8129 break 2
8131 done
8132 done
8136 RC=$ac_cv_prog_RC
8137 if test -n "$RC"; then
8138 echo "$as_me:$LINENO: result: $RC" >&5
8139 echo "${ECHO_T}$RC" >&6
8140 else
8141 echo "$as_me:$LINENO: result: no" >&5
8142 echo "${ECHO_T}no" >&6
8146 if test -z "$ac_cv_prog_RC"; then
8147 ac_ct_RC=$RC
8148 # Extract the first word of "windres", so it can be a program name with args.
8149 set dummy windres; ac_word=$2
8150 echo "$as_me:$LINENO: checking for $ac_word" >&5
8151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8152 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then
8153 echo $ECHO_N "(cached) $ECHO_C" >&6
8154 else
8155 if test -n "$ac_ct_RC"; then
8156 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
8157 else
8158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8159 for as_dir in $PATH
8161 IFS=$as_save_IFS
8162 test -z "$as_dir" && as_dir=.
8163 for ac_exec_ext in '' $ac_executable_extensions; do
8164 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8165 ac_cv_prog_ac_ct_RC="windres"
8166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8167 break 2
8169 done
8170 done
8172 test -z "$ac_cv_prog_ac_ct_RC" && ac_cv_prog_ac_ct_RC=":"
8175 ac_ct_RC=$ac_cv_prog_ac_ct_RC
8176 if test -n "$ac_ct_RC"; then
8177 echo "$as_me:$LINENO: result: $ac_ct_RC" >&5
8178 echo "${ECHO_T}$ac_ct_RC" >&6
8179 else
8180 echo "$as_me:$LINENO: result: no" >&5
8181 echo "${ECHO_T}no" >&6
8184 RC=$ac_ct_RC
8185 else
8186 RC="$ac_cv_prog_RC"
8190 RCFLAGS=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
8191 else
8192 RCFLAGS=""
8196 # Check for Crypto++
8199 # Check whether --with-crypto-prefix or --without-crypto-prefix was given.
8200 if test "${with_crypto_prefix+set}" = set; then
8201 withval="$with_crypto_prefix"
8202 CRYPTO_PP_PREFIX="$withval"
8203 else
8204 CRYPTO_PP_PREFIX=""
8210 min_crypto_version=5.1
8211 echo "$as_me:$LINENO: checking for crypto++ version >= $min_crypto_version" >&5
8212 echo $ECHO_N "checking for crypto++ version >= $min_crypto_version... $ECHO_C" >&6
8214 crypto_pp_file_with_version="cryptlib.h"
8216 CRYPTO_PP_STYLE="unknown"
8217 CRYPTO_PP_LIB_NAME="unknown"
8218 crypto_pp_include_i="unknown"
8219 CRYPTO_PP_INCLUDE_PREFIX="unknown"
8220 CRYPTO_PP_DEFINE="unknown"
8221 CRYPTO_PP_LIB="unknown"
8224 # Set CRYPTO_PP_PREFIX if the user has not set it in the configure command line
8225 # We don't use AC_CHECK_FILE to avoid caching.
8227 if test x$CRYPTO_PP_PREFIX = x ; then
8228 CRYPTO_PP_PREFIX="/usr"
8232 # Find the Cryptopp header
8234 if test -f $CRYPTO_PP_PREFIX/$crypto_pp_file_with_version; then
8235 CRYPTO_PP_STYLE="sources"
8236 CRYPTO_PP_LIB_NAME="cryptopp"
8237 crypto_pp_include_i="$CRYPTO_PP_PREFIX"
8238 CRYPTO_PP_INCLUDE_PREFIX="."
8239 CRYPTO_PP_DEFINE="__CRYPTO_SOURCE__"
8240 CRYPTO_PP_LIB="$CRYPTO_PP_PREFIX"
8241 { { echo "$as_me:$LINENO: error:
8242 Specifying the cryptopp source files directory for \"--with-crypto-prefix=\"
8243 will not work because cryptopp uses headers with the same name of system
8244 headers (e.g. zlib.h) and you must be able to distinguish the system
8245 headers from cryptopp headers in an #include directive.
8246 Please run \"PREFIX=/home/YourUserName/usr/cryptopp make install\" on
8247 the cryptopp directory to properly install cryptopp in your system." >&5
8248 echo "$as_me: error:
8249 Specifying the cryptopp source files directory for \"--with-crypto-prefix=\"
8250 will not work because cryptopp uses headers with the same name of system
8251 headers (e.g. zlib.h) and you must be able to distinguish the system
8252 headers from cryptopp headers in an #include directive.
8253 Please run \"PREFIX=/home/YourUserName/usr/cryptopp make install\" on
8254 the cryptopp directory to properly install cryptopp in your system." >&2;}
8255 { (exit 1); exit 1; }; }
8256 elif test -f $CRYPTO_PP_PREFIX/include/cryptopp/$crypto_pp_file_with_version; then
8257 CRYPTO_PP_STYLE="installed"
8258 CRYPTO_PP_LIB_NAME="cryptopp"
8259 crypto_pp_include_i="$CRYPTO_PP_PREFIX/include"
8260 CRYPTO_PP_INCLUDE_PREFIX="$CRYPTO_PP_LIB_NAME"
8261 CRYPTO_PP_DEFINE="__CRYPTO_INSTALLED__"
8262 CRYPTO_PP_LIB="$CRYPTO_PP_PREFIX/lib"
8263 elif test -f $CRYPTO_PP_PREFIX/include/crypto++/$crypto_pp_file_with_version; then
8264 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8265 CRYPTO_PP_STYLE="gentoo_debian"
8266 CRYPTO_PP_LIB_NAME="crypto++"
8267 crypto_pp_include_i="$CRYPTO_PP_PREFIX/include"
8268 CRYPTO_PP_INCLUDE_PREFIX="$CRYPTO_PP_LIB_NAME"
8269 CRYPTO_PP_DEFINE="__CRYPTO_SOURCE__"
8270 CRYPTO_PP_LIB="$CRYPTO_PP_PREFIX/lib"
8274 # Check for success in finding cryptopp
8276 if test $CRYPTO_PP_STYLE = "unknown"; then
8278 # If the execution reaches here, we have failed.
8280 { { echo "$as_me:$LINENO: error:
8281 Could not find cryptopp header file \"$crypto_pp_file_with_version\".
8282 Please check if the path \"$CRYPTO_PP_PREFIX\" is valid." >&5
8283 echo "$as_me: error:
8284 Could not find cryptopp header file \"$crypto_pp_file_with_version\".
8285 Please check if the path \"$CRYPTO_PP_PREFIX\" is valid." >&2;}
8286 { (exit 1); exit 1; }; }
8290 # Find out the cryptopp version and check against the minimum required
8292 crypto_pp_include_dir="$crypto_pp_include_i/$CRYPTO_PP_INCLUDE_PREFIX"
8293 crypto_pp_header_path="$crypto_pp_include_dir/$crypto_pp_file_with_version"
8295 CRYPTO_PP_VERSION_STRING=`grep "Reference Manual" $crypto_pp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
8297 CRYPTO_PP_VERSION_NUMBER=`echo $CRYPTO_PP_VERSION_STRING | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8299 minvers=`echo $min_crypto_version | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8301 if test -n "$CRYPTO_PP_VERSION_NUMBER" && test "$CRYPTO_PP_VERSION_NUMBER" -ge $minvers; then
8302 result="yes (version $CRYPTO_PP_VERSION_STRING, $CRYPTO_PP_STYLE)"
8303 else
8304 result="no"
8306 echo "$as_me:$LINENO: result: $result" >&5
8307 echo "${ECHO_T}$result" >&6
8310 # FLAGS
8312 CRYPTO_PP_CXXFLAGS="-I$crypto_pp_include_i -D$CRYPTO_PP_DEFINE"
8313 CRYPTO_PP_LDFLAGS="-L$CRYPTO_PP_LIB"
8316 cat >>confdefs.h <<_ACEOF
8317 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTO_PP_INCLUDE_PREFIX
8318 _ACEOF
8322 # Exported symbols
8335 CXXFLAGS="$CXXFLAGS $CRYPTO_PP_CXXFLAGS"
8336 LDFLAGS="$LDFLAGS $CRYPTO_PP_LDFLAGS"
8337 CRYPTOLIBS="-l$CRYPTO_PP_LIB_NAME"
8339 case "$CRYPTO_PP_STYLE" in
8340 gentoo_debian | installed | sources)
8342 *) { { echo "$as_me:$LINENO: error:
8343 WARNING: crypto++ >= $min_crypto_version is not found.
8344 Please check that cryptopp-headers are in your default include path,
8345 check out LD_LIBRARY_PATH or equivalent variable.
8346 Or this might also be that your cryptopp is installed on other path.
8347 Please try again with --with-crypto-prefix=/my_crypto_prefix
8348 (replace /my_crypto_prefix with a valid path to your crypto directory).
8349 To download the latest version check http://www.cryptopp.com for sources.
8350 " >&5
8351 echo "$as_me: error:
8352 WARNING: crypto++ >= $min_crypto_version is not found.
8353 Please check that cryptopp-headers are in your default include path,
8354 check out LD_LIBRARY_PATH or equivalent variable.
8355 Or this might also be that your cryptopp is installed on other path.
8356 Please try again with --with-crypto-prefix=/my_crypto_prefix
8357 (replace /my_crypto_prefix with a valid path to your crypto directory).
8358 To download the latest version check http://www.cryptopp.com for sources.
8359 " >&2;}
8360 { (exit 1); exit 1; }; }
8362 esac
8364 # Check for CryptoPP >= 5.5
8365 if test $CRYPTO_PP_VERSION_NUMBER -ge "5005000"; then
8366 CXXFLAGS="$CXXFLAGS -D__WEAK_CRYPTO__"
8372 # Check for bfd.h (to have proper backtraces without using wxExecute)
8374 echo "$as_me:$LINENO: checking for bfd" >&5
8375 echo $ECHO_N "checking for bfd... $ECHO_C" >&6
8376 __LIBS=$LIBS
8377 LIBS="-lbfd -liberty $LIBS"
8378 cat >conftest.$ac_ext <<_ACEOF
8380 /* confdefs.h. */
8381 _ACEOF
8382 cat confdefs.h >>conftest.$ac_ext
8383 cat >>conftest.$ac_ext <<_ACEOF
8384 /* end confdefs.h. */
8386 #include <ansidecl.h>
8387 #include <bfd.h>
8390 main ()
8393 char *dummy = bfd_errmsg(bfd_get_error());
8396 return 0;
8399 _ACEOF
8400 rm -f conftest.$ac_objext conftest$ac_exeext
8401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8402 (eval $ac_link) 2>conftest.er1
8403 ac_status=$?
8404 grep -v '^ *+' conftest.er1 >conftest.err
8405 rm -f conftest.er1
8406 cat conftest.err >&5
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); } &&
8409 { ac_try='test -z "$ac_c_werror_flag"
8410 || test ! -s conftest.err'
8411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8412 (eval $ac_try) 2>&5
8413 ac_status=$?
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); }; } &&
8416 { ac_try='test -s conftest$ac_exeext'
8417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8418 (eval $ac_try) 2>&5
8419 ac_status=$?
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); }; }; then
8423 echo "$as_me:$LINENO: result: yes" >&5
8424 echo "${ECHO_T}yes" >&6
8425 BFD_FLAGS="-DHAVE_BFD"
8426 BFD_LIB="-lbfd -liberty"
8428 else
8429 echo "$as_me: failed program was:" >&5
8430 sed 's/^/| /' conftest.$ac_ext >&5
8433 echo "$as_me:$LINENO: result: no" >&5
8434 echo "${ECHO_T}no" >&6
8435 { echo "$as_me:$LINENO: 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" >&5
8438 echo "$as_me: WARNING:
8439 bfd.h not found or unusable, please install binutils development
8440 package if you are a developer or want to help testing aMule" >&2;}
8443 rm -f conftest.err conftest.$ac_objext \
8444 conftest$ac_exeext conftest.$ac_ext
8445 LIBS=${__LIBS}
8450 echo "$as_me:$LINENO: checking for <execinfo.h> and backtrace()" >&5
8451 echo $ECHO_N "checking for <execinfo.h> and backtrace()... $ECHO_C" >&6
8452 cat >conftest.$ac_ext <<_ACEOF
8454 /* confdefs.h. */
8455 _ACEOF
8456 cat confdefs.h >>conftest.$ac_ext
8457 cat >>conftest.$ac_ext <<_ACEOF
8458 /* end confdefs.h. */
8460 #include <execinfo.h>
8463 main ()
8466 void *bt[1];
8467 int n = backtrace(&bt, 1);
8468 const char **bt_syms = backtrace_symbols(bt, n);
8471 return 0;
8474 _ACEOF
8475 rm -f conftest.$ac_objext conftest$ac_exeext
8476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8477 (eval $ac_link) 2>conftest.er1
8478 ac_status=$?
8479 grep -v '^ *+' conftest.er1 >conftest.err
8480 rm -f conftest.er1
8481 cat conftest.err >&5
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); } &&
8484 { ac_try='test -z "$ac_c_werror_flag"
8485 || test ! -s conftest.err'
8486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8487 (eval $ac_try) 2>&5
8488 ac_status=$?
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); }; } &&
8491 { ac_try='test -s conftest$ac_exeext'
8492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8493 (eval $ac_try) 2>&5
8494 ac_status=$?
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); }; }; then
8500 cat >>confdefs.h <<\_ACEOF
8501 #define HAVE_EXECINFO 1
8502 _ACEOF
8504 echo "$as_me:$LINENO: result: yes" >&5
8505 echo "${ECHO_T}yes" >&6
8507 else
8508 echo "$as_me: failed program was:" >&5
8509 sed 's/^/| /' conftest.$ac_ext >&5
8512 echo "$as_me:$LINENO: result: no" >&5
8513 echo "${ECHO_T}no" >&6
8516 rm -f conftest.err conftest.$ac_objext \
8517 conftest$ac_exeext conftest.$ac_ext
8520 ac_ext=cc
8521 ac_cpp='$CXXCPP $CPPFLAGS'
8522 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8523 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8524 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8526 echo "$as_me:$LINENO: checking for <cxxabi.h> and __cxa_demangle()" >&5
8527 echo $ECHO_N "checking for <cxxabi.h> and __cxa_demangle()... $ECHO_C" >&6
8528 cat >conftest.$ac_ext <<_ACEOF
8530 /* confdefs.h. */
8531 _ACEOF
8532 cat confdefs.h >>conftest.$ac_ext
8533 cat >>conftest.$ac_ext <<_ACEOF
8534 /* end confdefs.h. */
8536 #include <cxxabi.h>
8539 main ()
8542 int status;
8543 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
8544 std::type_info *ti = abi::__cxa_current_exception_type();
8547 return 0;
8550 _ACEOF
8551 rm -f conftest.$ac_objext conftest$ac_exeext
8552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8553 (eval $ac_link) 2>conftest.er1
8554 ac_status=$?
8555 grep -v '^ *+' conftest.er1 >conftest.err
8556 rm -f conftest.er1
8557 cat conftest.err >&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); } &&
8560 { ac_try='test -z "$ac_cxx_werror_flag"
8561 || test ! -s conftest.err'
8562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8563 (eval $ac_try) 2>&5
8564 ac_status=$?
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); }; } &&
8567 { ac_try='test -s conftest$ac_exeext'
8568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8569 (eval $ac_try) 2>&5
8570 ac_status=$?
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); }; }; then
8576 cat >>confdefs.h <<\_ACEOF
8577 #define HAVE_CXXABI 1
8578 _ACEOF
8580 echo "$as_me:$LINENO: result: yes" >&5
8581 echo "${ECHO_T}yes" >&6
8583 else
8584 echo "$as_me: failed program was:" >&5
8585 sed 's/^/| /' conftest.$ac_ext >&5
8588 echo "$as_me:$LINENO: result: no" >&5
8589 echo "${ECHO_T}no" >&6
8592 rm -f conftest.err conftest.$ac_objext \
8593 conftest$ac_exeext conftest.$ac_ext
8594 ac_ext=c
8595 ac_cpp='$CPP $CPPFLAGS'
8596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8602 # Ok, we have all needed libs, now checking for other stuff
8603 if test "$LEX" = "flex"; then
8606 echo "$as_me:$LINENO: checking for extended flex capabilities" >&5
8607 echo $ECHO_N "checking for extended flex capabilities... $ECHO_C" >&6
8609 extended_flex=`flex --help | grep header-file`
8610 if test x"$extended_flex" != x""; then
8611 result="yes"
8612 else
8613 result="no"
8616 HAVE_FLEX_EXTENDED=$result
8618 echo "$as_me:$LINENO: result: $result" >&5
8619 echo "${ECHO_T}$result" >&6
8621 if test x$result = xno; then
8622 { echo "$as_me:$LINENO: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended " >&5
8623 echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended " >&6;}
8629 else
8630 HAVE_FLEX_EXTENDED=no
8633 # Flush standard test results for speeding cache
8634 cat >confcache <<\_ACEOF
8635 # This file is a shell script that caches the results of configure
8636 # tests run on this system so they can be shared between configure
8637 # scripts and configure runs, see configure's option --config-cache.
8638 # It is not useful on other systems. If it contains results you don't
8639 # want to keep, you may remove or edit it.
8641 # config.status only pays attention to the cache file if you give it
8642 # the --recheck option to rerun configure.
8644 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8645 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8646 # following values.
8648 _ACEOF
8650 # The following way of writing the cache mishandles newlines in values,
8651 # but we know of no workaround that is simple, portable, and efficient.
8652 # So, don't put newlines in cache variables' values.
8653 # Ultrix sh set writes to stderr and can't be redirected directly,
8654 # and sets the high bit in the cache file unless we assign to the vars.
8656 (set) 2>&1 |
8657 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8658 *ac_space=\ *)
8659 # `set' does not quote correctly, so add quotes (double-quote
8660 # substitution turns \\\\ into \\, and sed turns \\ into \).
8661 sed -n \
8662 "s/'/'\\\\''/g;
8663 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8666 # `set' quotes correctly as required by POSIX, so do not add quotes.
8667 sed -n \
8668 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8670 esac;
8672 sed '
8673 t clear
8674 : clear
8675 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8676 t end
8677 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8678 : end' >>confcache
8679 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8680 if test -w $cache_file; then
8681 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8682 cat confcache >$cache_file
8683 else
8684 echo "not updating unwritable cache $cache_file"
8687 rm -f confcache
8689 # Checks for header files.
8690 echo "$as_me:$LINENO: checking for X" >&5
8691 echo $ECHO_N "checking for X... $ECHO_C" >&6
8694 # Check whether --with-x or --without-x was given.
8695 if test "${with_x+set}" = set; then
8696 withval="$with_x"
8699 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8700 if test "x$with_x" = xno; then
8701 # The user explicitly disabled X.
8702 have_x=disabled
8703 else
8704 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8705 # Both variables are already set.
8706 have_x=yes
8707 else
8708 if test "${ac_cv_have_x+set}" = set; then
8709 echo $ECHO_N "(cached) $ECHO_C" >&6
8710 else
8711 # One or both of the vars are not set, and there is no cached value.
8712 ac_x_includes=no ac_x_libraries=no
8713 rm -fr conftest.dir
8714 if mkdir conftest.dir; then
8715 cd conftest.dir
8716 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8717 cat >Imakefile <<'_ACEOF'
8718 acfindx:
8719 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8720 _ACEOF
8721 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8722 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8723 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8724 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8725 for ac_extension in a so sl; do
8726 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8727 test -f $ac_im_libdir/libX11.$ac_extension; then
8728 ac_im_usrlibdir=$ac_im_libdir; break
8730 done
8731 # Screen out bogus values from the imake configuration. They are
8732 # bogus both because they are the default anyway, and because
8733 # using them would break gcc on systems where it needs fixed includes.
8734 case $ac_im_incroot in
8735 /usr/include) ;;
8736 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8737 esac
8738 case $ac_im_usrlibdir in
8739 /usr/lib | /lib) ;;
8740 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8741 esac
8743 cd ..
8744 rm -fr conftest.dir
8747 # Standard set of common directories for X headers.
8748 # Check X11 before X11Rn because it is often a symlink to the current release.
8749 ac_x_header_dirs='
8750 /usr/X11/include
8751 /usr/X11R6/include
8752 /usr/X11R5/include
8753 /usr/X11R4/include
8755 /usr/include/X11
8756 /usr/include/X11R6
8757 /usr/include/X11R5
8758 /usr/include/X11R4
8760 /usr/local/X11/include
8761 /usr/local/X11R6/include
8762 /usr/local/X11R5/include
8763 /usr/local/X11R4/include
8765 /usr/local/include/X11
8766 /usr/local/include/X11R6
8767 /usr/local/include/X11R5
8768 /usr/local/include/X11R4
8770 /usr/X386/include
8771 /usr/x386/include
8772 /usr/XFree86/include/X11
8774 /usr/include
8775 /usr/local/include
8776 /usr/unsupported/include
8777 /usr/athena/include
8778 /usr/local/x11r5/include
8779 /usr/lpp/Xamples/include
8781 /usr/openwin/include
8782 /usr/openwin/share/include'
8784 if test "$ac_x_includes" = no; then
8785 # Guess where to find include files, by looking for Intrinsic.h.
8786 # First, try using that file with no special directory specified.
8787 cat >conftest.$ac_ext <<_ACEOF
8788 /* confdefs.h. */
8789 _ACEOF
8790 cat confdefs.h >>conftest.$ac_ext
8791 cat >>conftest.$ac_ext <<_ACEOF
8792 /* end confdefs.h. */
8793 #include <X11/Intrinsic.h>
8794 _ACEOF
8795 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8796 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8797 ac_status=$?
8798 grep -v '^ *+' conftest.er1 >conftest.err
8799 rm -f conftest.er1
8800 cat conftest.err >&5
8801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802 (exit $ac_status); } >/dev/null; then
8803 if test -s conftest.err; then
8804 ac_cpp_err=$ac_c_preproc_warn_flag
8805 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8806 else
8807 ac_cpp_err=
8809 else
8810 ac_cpp_err=yes
8812 if test -z "$ac_cpp_err"; then
8813 # We can compile using X headers with no special include directory.
8814 ac_x_includes=
8815 else
8816 echo "$as_me: failed program was:" >&5
8817 sed 's/^/| /' conftest.$ac_ext >&5
8819 for ac_dir in $ac_x_header_dirs; do
8820 if test -r "$ac_dir/X11/Intrinsic.h"; then
8821 ac_x_includes=$ac_dir
8822 break
8824 done
8826 rm -f conftest.err conftest.$ac_ext
8827 fi # $ac_x_includes = no
8829 if test "$ac_x_libraries" = no; then
8830 # Check for the libraries.
8831 # See if we find them without any special options.
8832 # Don't add to $LIBS permanently.
8833 ac_save_LIBS=$LIBS
8834 LIBS="-lXt $LIBS"
8835 cat >conftest.$ac_ext <<_ACEOF
8836 /* confdefs.h. */
8837 _ACEOF
8838 cat confdefs.h >>conftest.$ac_ext
8839 cat >>conftest.$ac_ext <<_ACEOF
8840 /* end confdefs.h. */
8841 #include <X11/Intrinsic.h>
8843 main ()
8845 XtMalloc (0)
8847 return 0;
8849 _ACEOF
8850 rm -f conftest.$ac_objext conftest$ac_exeext
8851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8852 (eval $ac_link) 2>conftest.er1
8853 ac_status=$?
8854 grep -v '^ *+' conftest.er1 >conftest.err
8855 rm -f conftest.er1
8856 cat conftest.err >&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); } &&
8859 { ac_try='test -z "$ac_c_werror_flag"
8860 || test ! -s conftest.err'
8861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8862 (eval $ac_try) 2>&5
8863 ac_status=$?
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); }; } &&
8866 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
8872 LIBS=$ac_save_LIBS
8873 # We can link X programs with no special library path.
8874 ac_x_libraries=
8875 else
8876 echo "$as_me: failed program was:" >&5
8877 sed 's/^/| /' conftest.$ac_ext >&5
8879 LIBS=$ac_save_LIBS
8880 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8882 # Don't even attempt the hair of trying to link an X program!
8883 for ac_extension in a so sl; do
8884 if test -r $ac_dir/libXt.$ac_extension; then
8885 ac_x_libraries=$ac_dir
8886 break 2
8888 done
8889 done
8891 rm -f conftest.err conftest.$ac_objext \
8892 conftest$ac_exeext conftest.$ac_ext
8893 fi # $ac_x_libraries = no
8895 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8896 # Didn't find X anywhere. Cache the known absence of X.
8897 ac_cv_have_x="have_x=no"
8898 else
8899 # Record where we found X for the cache.
8900 ac_cv_have_x="have_x=yes \
8901 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8906 eval "$ac_cv_have_x"
8907 fi # $with_x != no
8909 if test "$have_x" != yes; then
8910 echo "$as_me:$LINENO: result: $have_x" >&5
8911 echo "${ECHO_T}$have_x" >&6
8912 no_x=yes
8913 else
8914 # If each of the values was on the command line, it overrides each guess.
8915 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8916 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8917 # Update the cache value to reflect the command line values.
8918 ac_cv_have_x="have_x=yes \
8919 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8920 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8921 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8924 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8925 # for constant arguments. Useless!
8926 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8927 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8928 if test "${ac_cv_working_alloca_h+set}" = set; then
8929 echo $ECHO_N "(cached) $ECHO_C" >&6
8930 else
8931 cat >conftest.$ac_ext <<_ACEOF
8932 /* confdefs.h. */
8933 _ACEOF
8934 cat confdefs.h >>conftest.$ac_ext
8935 cat >>conftest.$ac_ext <<_ACEOF
8936 /* end confdefs.h. */
8937 #include <alloca.h>
8939 main ()
8941 char *p = (char *) alloca (2 * sizeof (int));
8943 return 0;
8945 _ACEOF
8946 rm -f conftest.$ac_objext conftest$ac_exeext
8947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8948 (eval $ac_link) 2>conftest.er1
8949 ac_status=$?
8950 grep -v '^ *+' conftest.er1 >conftest.err
8951 rm -f conftest.er1
8952 cat conftest.err >&5
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); } &&
8955 { ac_try='test -z "$ac_c_werror_flag"
8956 || test ! -s conftest.err'
8957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8958 (eval $ac_try) 2>&5
8959 ac_status=$?
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); }; } &&
8962 { ac_try='test -s conftest$ac_exeext'
8963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8964 (eval $ac_try) 2>&5
8965 ac_status=$?
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); }; }; then
8968 ac_cv_working_alloca_h=yes
8969 else
8970 echo "$as_me: failed program was:" >&5
8971 sed 's/^/| /' conftest.$ac_ext >&5
8973 ac_cv_working_alloca_h=no
8975 rm -f conftest.err conftest.$ac_objext \
8976 conftest$ac_exeext conftest.$ac_ext
8978 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8979 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8980 if test $ac_cv_working_alloca_h = yes; then
8982 cat >>confdefs.h <<\_ACEOF
8983 #define HAVE_ALLOCA_H 1
8984 _ACEOF
8988 echo "$as_me:$LINENO: checking for alloca" >&5
8989 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8990 if test "${ac_cv_func_alloca_works+set}" = set; then
8991 echo $ECHO_N "(cached) $ECHO_C" >&6
8992 else
8993 cat >conftest.$ac_ext <<_ACEOF
8994 /* confdefs.h. */
8995 _ACEOF
8996 cat confdefs.h >>conftest.$ac_ext
8997 cat >>conftest.$ac_ext <<_ACEOF
8998 /* end confdefs.h. */
8999 #ifdef __GNUC__
9000 # define alloca __builtin_alloca
9001 #else
9002 # ifdef _MSC_VER
9003 # include <malloc.h>
9004 # define alloca _alloca
9005 # else
9006 # if HAVE_ALLOCA_H
9007 # include <alloca.h>
9008 # else
9009 # ifdef _AIX
9010 #pragma alloca
9011 # else
9012 # ifndef alloca /* predefined by HP cc +Olibcalls */
9013 char *alloca ();
9014 # endif
9015 # endif
9016 # endif
9017 # endif
9018 #endif
9021 main ()
9023 char *p = (char *) alloca (1);
9025 return 0;
9027 _ACEOF
9028 rm -f conftest.$ac_objext conftest$ac_exeext
9029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9030 (eval $ac_link) 2>conftest.er1
9031 ac_status=$?
9032 grep -v '^ *+' conftest.er1 >conftest.err
9033 rm -f conftest.er1
9034 cat conftest.err >&5
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 (exit $ac_status); } &&
9037 { ac_try='test -z "$ac_c_werror_flag"
9038 || test ! -s conftest.err'
9039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9040 (eval $ac_try) 2>&5
9041 ac_status=$?
9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 (exit $ac_status); }; } &&
9044 { ac_try='test -s conftest$ac_exeext'
9045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9046 (eval $ac_try) 2>&5
9047 ac_status=$?
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); }; }; then
9050 ac_cv_func_alloca_works=yes
9051 else
9052 echo "$as_me: failed program was:" >&5
9053 sed 's/^/| /' conftest.$ac_ext >&5
9055 ac_cv_func_alloca_works=no
9057 rm -f conftest.err conftest.$ac_objext \
9058 conftest$ac_exeext conftest.$ac_ext
9060 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9061 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9063 if test $ac_cv_func_alloca_works = yes; then
9065 cat >>confdefs.h <<\_ACEOF
9066 #define HAVE_ALLOCA 1
9067 _ACEOF
9069 else
9070 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9071 # that cause trouble. Some versions do not even contain alloca or
9072 # contain a buggy version. If you still want to use their alloca,
9073 # use ar to extract alloca.o from them instead of compiling alloca.c.
9075 ALLOCA=alloca.$ac_objext
9077 cat >>confdefs.h <<\_ACEOF
9078 #define C_ALLOCA 1
9079 _ACEOF
9082 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9083 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9084 if test "${ac_cv_os_cray+set}" = set; then
9085 echo $ECHO_N "(cached) $ECHO_C" >&6
9086 else
9087 cat >conftest.$ac_ext <<_ACEOF
9088 /* confdefs.h. */
9089 _ACEOF
9090 cat confdefs.h >>conftest.$ac_ext
9091 cat >>conftest.$ac_ext <<_ACEOF
9092 /* end confdefs.h. */
9093 #if defined(CRAY) && ! defined(CRAY2)
9094 webecray
9095 #else
9096 wenotbecray
9097 #endif
9099 _ACEOF
9100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9101 $EGREP "webecray" >/dev/null 2>&1; then
9102 ac_cv_os_cray=yes
9103 else
9104 ac_cv_os_cray=no
9106 rm -f conftest*
9109 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9110 echo "${ECHO_T}$ac_cv_os_cray" >&6
9111 if test $ac_cv_os_cray = yes; then
9112 for ac_func in _getb67 GETB67 getb67; do
9113 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9114 echo "$as_me:$LINENO: checking for $ac_func" >&5
9115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9116 if eval "test \"\${$as_ac_var+set}\" = set"; then
9117 echo $ECHO_N "(cached) $ECHO_C" >&6
9118 else
9119 cat >conftest.$ac_ext <<_ACEOF
9120 /* confdefs.h. */
9121 _ACEOF
9122 cat confdefs.h >>conftest.$ac_ext
9123 cat >>conftest.$ac_ext <<_ACEOF
9124 /* end confdefs.h. */
9125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9127 #define $ac_func innocuous_$ac_func
9129 /* System header to define __stub macros and hopefully few prototypes,
9130 which can conflict with char $ac_func (); below.
9131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9132 <limits.h> exists even on freestanding compilers. */
9134 #ifdef __STDC__
9135 # include <limits.h>
9136 #else
9137 # include <assert.h>
9138 #endif
9140 #undef $ac_func
9142 /* Override any gcc2 internal prototype to avoid an error. */
9143 #ifdef __cplusplus
9144 extern "C"
9146 #endif
9147 /* We use char because int might match the return type of a gcc2
9148 builtin and then its argument prototype would still apply. */
9149 char $ac_func ();
9150 /* The GNU C library defines this for functions which it implements
9151 to always fail with ENOSYS. Some functions are actually named
9152 something starting with __ and the normal name is an alias. */
9153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9154 choke me
9155 #else
9156 char (*f) () = $ac_func;
9157 #endif
9158 #ifdef __cplusplus
9160 #endif
9163 main ()
9165 return f != $ac_func;
9167 return 0;
9169 _ACEOF
9170 rm -f conftest.$ac_objext conftest$ac_exeext
9171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9172 (eval $ac_link) 2>conftest.er1
9173 ac_status=$?
9174 grep -v '^ *+' conftest.er1 >conftest.err
9175 rm -f conftest.er1
9176 cat conftest.err >&5
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); } &&
9179 { ac_try='test -z "$ac_c_werror_flag"
9180 || test ! -s conftest.err'
9181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9182 (eval $ac_try) 2>&5
9183 ac_status=$?
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); }; } &&
9186 { ac_try='test -s conftest$ac_exeext'
9187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9188 (eval $ac_try) 2>&5
9189 ac_status=$?
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); }; }; then
9192 eval "$as_ac_var=yes"
9193 else
9194 echo "$as_me: failed program was:" >&5
9195 sed 's/^/| /' conftest.$ac_ext >&5
9197 eval "$as_ac_var=no"
9199 rm -f conftest.err conftest.$ac_objext \
9200 conftest$ac_exeext conftest.$ac_ext
9202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9203 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9204 if test `eval echo '${'$as_ac_var'}'` = yes; then
9206 cat >>confdefs.h <<_ACEOF
9207 #define CRAY_STACKSEG_END $ac_func
9208 _ACEOF
9210 break
9213 done
9216 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9217 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9218 if test "${ac_cv_c_stack_direction+set}" = set; then
9219 echo $ECHO_N "(cached) $ECHO_C" >&6
9220 else
9221 if test "$cross_compiling" = yes; then
9222 ac_cv_c_stack_direction=0
9223 else
9224 cat >conftest.$ac_ext <<_ACEOF
9225 /* confdefs.h. */
9226 _ACEOF
9227 cat confdefs.h >>conftest.$ac_ext
9228 cat >>conftest.$ac_ext <<_ACEOF
9229 /* end confdefs.h. */
9231 find_stack_direction ()
9233 static char *addr = 0;
9234 auto char dummy;
9235 if (addr == 0)
9237 addr = &dummy;
9238 return find_stack_direction ();
9240 else
9241 return (&dummy > addr) ? 1 : -1;
9245 main ()
9247 exit (find_stack_direction () < 0);
9249 _ACEOF
9250 rm -f conftest$ac_exeext
9251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9252 (eval $ac_link) 2>&5
9253 ac_status=$?
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9257 (eval $ac_try) 2>&5
9258 ac_status=$?
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); }; }; then
9261 ac_cv_c_stack_direction=1
9262 else
9263 echo "$as_me: program exited with status $ac_status" >&5
9264 echo "$as_me: failed program was:" >&5
9265 sed 's/^/| /' conftest.$ac_ext >&5
9267 ( exit $ac_status )
9268 ac_cv_c_stack_direction=-1
9270 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9273 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9274 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9276 cat >>confdefs.h <<_ACEOF
9277 #define STACK_DIRECTION $ac_cv_c_stack_direction
9278 _ACEOF
9288 ac_header_dirent=no
9289 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9290 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9291 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9292 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9294 echo $ECHO_N "(cached) $ECHO_C" >&6
9295 else
9296 cat >conftest.$ac_ext <<_ACEOF
9297 /* confdefs.h. */
9298 _ACEOF
9299 cat confdefs.h >>conftest.$ac_ext
9300 cat >>conftest.$ac_ext <<_ACEOF
9301 /* end confdefs.h. */
9302 #include <sys/types.h>
9303 #include <$ac_hdr>
9306 main ()
9308 if ((DIR *) 0)
9309 return 0;
9311 return 0;
9313 _ACEOF
9314 rm -f conftest.$ac_objext
9315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9316 (eval $ac_compile) 2>conftest.er1
9317 ac_status=$?
9318 grep -v '^ *+' conftest.er1 >conftest.err
9319 rm -f conftest.er1
9320 cat conftest.err >&5
9321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322 (exit $ac_status); } &&
9323 { ac_try='test -z "$ac_c_werror_flag"
9324 || test ! -s conftest.err'
9325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9326 (eval $ac_try) 2>&5
9327 ac_status=$?
9328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329 (exit $ac_status); }; } &&
9330 { ac_try='test -s conftest.$ac_objext'
9331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9332 (eval $ac_try) 2>&5
9333 ac_status=$?
9334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335 (exit $ac_status); }; }; then
9336 eval "$as_ac_Header=yes"
9337 else
9338 echo "$as_me: failed program was:" >&5
9339 sed 's/^/| /' conftest.$ac_ext >&5
9341 eval "$as_ac_Header=no"
9343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9346 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9347 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9348 cat >>confdefs.h <<_ACEOF
9349 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9350 _ACEOF
9352 ac_header_dirent=$ac_hdr; break
9355 done
9356 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9357 if test $ac_header_dirent = dirent.h; then
9358 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9359 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9360 if test "${ac_cv_search_opendir+set}" = set; then
9361 echo $ECHO_N "(cached) $ECHO_C" >&6
9362 else
9363 ac_func_search_save_LIBS=$LIBS
9364 ac_cv_search_opendir=no
9365 cat >conftest.$ac_ext <<_ACEOF
9366 /* confdefs.h. */
9367 _ACEOF
9368 cat confdefs.h >>conftest.$ac_ext
9369 cat >>conftest.$ac_ext <<_ACEOF
9370 /* end confdefs.h. */
9372 /* Override any gcc2 internal prototype to avoid an error. */
9373 #ifdef __cplusplus
9374 extern "C"
9375 #endif
9376 /* We use char because int might match the return type of a gcc2
9377 builtin and then its argument prototype would still apply. */
9378 char opendir ();
9380 main ()
9382 opendir ();
9384 return 0;
9386 _ACEOF
9387 rm -f conftest.$ac_objext conftest$ac_exeext
9388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9389 (eval $ac_link) 2>conftest.er1
9390 ac_status=$?
9391 grep -v '^ *+' conftest.er1 >conftest.err
9392 rm -f conftest.er1
9393 cat conftest.err >&5
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 (exit $ac_status); } &&
9396 { ac_try='test -z "$ac_c_werror_flag"
9397 || test ! -s conftest.err'
9398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9399 (eval $ac_try) 2>&5
9400 ac_status=$?
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); }; } &&
9403 { ac_try='test -s conftest$ac_exeext'
9404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9405 (eval $ac_try) 2>&5
9406 ac_status=$?
9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408 (exit $ac_status); }; }; then
9409 ac_cv_search_opendir="none required"
9410 else
9411 echo "$as_me: failed program was:" >&5
9412 sed 's/^/| /' conftest.$ac_ext >&5
9415 rm -f conftest.err conftest.$ac_objext \
9416 conftest$ac_exeext conftest.$ac_ext
9417 if test "$ac_cv_search_opendir" = no; then
9418 for ac_lib in dir; do
9419 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9420 cat >conftest.$ac_ext <<_ACEOF
9421 /* confdefs.h. */
9422 _ACEOF
9423 cat confdefs.h >>conftest.$ac_ext
9424 cat >>conftest.$ac_ext <<_ACEOF
9425 /* end confdefs.h. */
9427 /* Override any gcc2 internal prototype to avoid an error. */
9428 #ifdef __cplusplus
9429 extern "C"
9430 #endif
9431 /* We use char because int might match the return type of a gcc2
9432 builtin and then its argument prototype would still apply. */
9433 char opendir ();
9435 main ()
9437 opendir ();
9439 return 0;
9441 _ACEOF
9442 rm -f conftest.$ac_objext conftest$ac_exeext
9443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9444 (eval $ac_link) 2>conftest.er1
9445 ac_status=$?
9446 grep -v '^ *+' conftest.er1 >conftest.err
9447 rm -f conftest.er1
9448 cat conftest.err >&5
9449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450 (exit $ac_status); } &&
9451 { ac_try='test -z "$ac_c_werror_flag"
9452 || test ! -s conftest.err'
9453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9454 (eval $ac_try) 2>&5
9455 ac_status=$?
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); }; } &&
9458 { ac_try='test -s conftest$ac_exeext'
9459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9460 (eval $ac_try) 2>&5
9461 ac_status=$?
9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463 (exit $ac_status); }; }; then
9464 ac_cv_search_opendir="-l$ac_lib"
9465 break
9466 else
9467 echo "$as_me: failed program was:" >&5
9468 sed 's/^/| /' conftest.$ac_ext >&5
9471 rm -f conftest.err conftest.$ac_objext \
9472 conftest$ac_exeext conftest.$ac_ext
9473 done
9475 LIBS=$ac_func_search_save_LIBS
9477 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9478 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9479 if test "$ac_cv_search_opendir" != no; then
9480 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9484 else
9485 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9486 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9487 if test "${ac_cv_search_opendir+set}" = set; then
9488 echo $ECHO_N "(cached) $ECHO_C" >&6
9489 else
9490 ac_func_search_save_LIBS=$LIBS
9491 ac_cv_search_opendir=no
9492 cat >conftest.$ac_ext <<_ACEOF
9493 /* confdefs.h. */
9494 _ACEOF
9495 cat confdefs.h >>conftest.$ac_ext
9496 cat >>conftest.$ac_ext <<_ACEOF
9497 /* end confdefs.h. */
9499 /* Override any gcc2 internal prototype to avoid an error. */
9500 #ifdef __cplusplus
9501 extern "C"
9502 #endif
9503 /* We use char because int might match the return type of a gcc2
9504 builtin and then its argument prototype would still apply. */
9505 char opendir ();
9507 main ()
9509 opendir ();
9511 return 0;
9513 _ACEOF
9514 rm -f conftest.$ac_objext conftest$ac_exeext
9515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9516 (eval $ac_link) 2>conftest.er1
9517 ac_status=$?
9518 grep -v '^ *+' conftest.er1 >conftest.err
9519 rm -f conftest.er1
9520 cat conftest.err >&5
9521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522 (exit $ac_status); } &&
9523 { ac_try='test -z "$ac_c_werror_flag"
9524 || test ! -s conftest.err'
9525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9526 (eval $ac_try) 2>&5
9527 ac_status=$?
9528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529 (exit $ac_status); }; } &&
9530 { ac_try='test -s conftest$ac_exeext'
9531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9532 (eval $ac_try) 2>&5
9533 ac_status=$?
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); }; }; then
9536 ac_cv_search_opendir="none required"
9537 else
9538 echo "$as_me: failed program was:" >&5
9539 sed 's/^/| /' conftest.$ac_ext >&5
9542 rm -f conftest.err conftest.$ac_objext \
9543 conftest$ac_exeext conftest.$ac_ext
9544 if test "$ac_cv_search_opendir" = no; then
9545 for ac_lib in x; do
9546 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9547 cat >conftest.$ac_ext <<_ACEOF
9548 /* confdefs.h. */
9549 _ACEOF
9550 cat confdefs.h >>conftest.$ac_ext
9551 cat >>conftest.$ac_ext <<_ACEOF
9552 /* end confdefs.h. */
9554 /* Override any gcc2 internal prototype to avoid an error. */
9555 #ifdef __cplusplus
9556 extern "C"
9557 #endif
9558 /* We use char because int might match the return type of a gcc2
9559 builtin and then its argument prototype would still apply. */
9560 char opendir ();
9562 main ()
9564 opendir ();
9566 return 0;
9568 _ACEOF
9569 rm -f conftest.$ac_objext conftest$ac_exeext
9570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9571 (eval $ac_link) 2>conftest.er1
9572 ac_status=$?
9573 grep -v '^ *+' conftest.er1 >conftest.err
9574 rm -f conftest.er1
9575 cat conftest.err >&5
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); } &&
9578 { ac_try='test -z "$ac_c_werror_flag"
9579 || test ! -s conftest.err'
9580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9581 (eval $ac_try) 2>&5
9582 ac_status=$?
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); }; } &&
9585 { ac_try='test -s conftest$ac_exeext'
9586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9587 (eval $ac_try) 2>&5
9588 ac_status=$?
9589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); }; }; then
9591 ac_cv_search_opendir="-l$ac_lib"
9592 break
9593 else
9594 echo "$as_me: failed program was:" >&5
9595 sed 's/^/| /' conftest.$ac_ext >&5
9598 rm -f conftest.err conftest.$ac_objext \
9599 conftest$ac_exeext conftest.$ac_ext
9600 done
9602 LIBS=$ac_func_search_save_LIBS
9604 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9605 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9606 if test "$ac_cv_search_opendir" != no; then
9607 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9613 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9614 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9615 if test "${ac_cv_header_stdc+set}" = set; then
9616 echo $ECHO_N "(cached) $ECHO_C" >&6
9617 else
9618 cat >conftest.$ac_ext <<_ACEOF
9619 /* confdefs.h. */
9620 _ACEOF
9621 cat confdefs.h >>conftest.$ac_ext
9622 cat >>conftest.$ac_ext <<_ACEOF
9623 /* end confdefs.h. */
9624 #include <stdlib.h>
9625 #include <stdarg.h>
9626 #include <string.h>
9627 #include <float.h>
9630 main ()
9634 return 0;
9636 _ACEOF
9637 rm -f conftest.$ac_objext
9638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9639 (eval $ac_compile) 2>conftest.er1
9640 ac_status=$?
9641 grep -v '^ *+' conftest.er1 >conftest.err
9642 rm -f conftest.er1
9643 cat conftest.err >&5
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); } &&
9646 { ac_try='test -z "$ac_c_werror_flag"
9647 || test ! -s conftest.err'
9648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9649 (eval $ac_try) 2>&5
9650 ac_status=$?
9651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652 (exit $ac_status); }; } &&
9653 { ac_try='test -s conftest.$ac_objext'
9654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9655 (eval $ac_try) 2>&5
9656 ac_status=$?
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 (exit $ac_status); }; }; then
9659 ac_cv_header_stdc=yes
9660 else
9661 echo "$as_me: failed program was:" >&5
9662 sed 's/^/| /' conftest.$ac_ext >&5
9664 ac_cv_header_stdc=no
9666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9668 if test $ac_cv_header_stdc = yes; then
9669 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9670 cat >conftest.$ac_ext <<_ACEOF
9671 /* confdefs.h. */
9672 _ACEOF
9673 cat confdefs.h >>conftest.$ac_ext
9674 cat >>conftest.$ac_ext <<_ACEOF
9675 /* end confdefs.h. */
9676 #include <string.h>
9678 _ACEOF
9679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9680 $EGREP "memchr" >/dev/null 2>&1; then
9682 else
9683 ac_cv_header_stdc=no
9685 rm -f conftest*
9689 if test $ac_cv_header_stdc = yes; then
9690 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9691 cat >conftest.$ac_ext <<_ACEOF
9692 /* confdefs.h. */
9693 _ACEOF
9694 cat confdefs.h >>conftest.$ac_ext
9695 cat >>conftest.$ac_ext <<_ACEOF
9696 /* end confdefs.h. */
9697 #include <stdlib.h>
9699 _ACEOF
9700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9701 $EGREP "free" >/dev/null 2>&1; then
9703 else
9704 ac_cv_header_stdc=no
9706 rm -f conftest*
9710 if test $ac_cv_header_stdc = yes; then
9711 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9712 if test "$cross_compiling" = yes; then
9714 else
9715 cat >conftest.$ac_ext <<_ACEOF
9716 /* confdefs.h. */
9717 _ACEOF
9718 cat confdefs.h >>conftest.$ac_ext
9719 cat >>conftest.$ac_ext <<_ACEOF
9720 /* end confdefs.h. */
9721 #include <ctype.h>
9722 #if ((' ' & 0x0FF) == 0x020)
9723 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9724 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9725 #else
9726 # define ISLOWER(c) \
9727 (('a' <= (c) && (c) <= 'i') \
9728 || ('j' <= (c) && (c) <= 'r') \
9729 || ('s' <= (c) && (c) <= 'z'))
9730 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9731 #endif
9733 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9735 main ()
9737 int i;
9738 for (i = 0; i < 256; i++)
9739 if (XOR (islower (i), ISLOWER (i))
9740 || toupper (i) != TOUPPER (i))
9741 exit(2);
9742 exit (0);
9744 _ACEOF
9745 rm -f conftest$ac_exeext
9746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9747 (eval $ac_link) 2>&5
9748 ac_status=$?
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9752 (eval $ac_try) 2>&5
9753 ac_status=$?
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); }; }; then
9757 else
9758 echo "$as_me: program exited with status $ac_status" >&5
9759 echo "$as_me: failed program was:" >&5
9760 sed 's/^/| /' conftest.$ac_ext >&5
9762 ( exit $ac_status )
9763 ac_cv_header_stdc=no
9765 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9769 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9770 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9771 if test $ac_cv_header_stdc = yes; then
9773 cat >>confdefs.h <<\_ACEOF
9774 #define STDC_HEADERS 1
9775 _ACEOF
9809 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
9811 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9813 echo "$as_me:$LINENO: checking for $ac_header" >&5
9814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9816 echo $ECHO_N "(cached) $ECHO_C" >&6
9818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9820 else
9821 # Is the header compilable?
9822 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9823 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9824 cat >conftest.$ac_ext <<_ACEOF
9825 /* confdefs.h. */
9826 _ACEOF
9827 cat confdefs.h >>conftest.$ac_ext
9828 cat >>conftest.$ac_ext <<_ACEOF
9829 /* end confdefs.h. */
9830 $ac_includes_default
9831 #include <$ac_header>
9832 _ACEOF
9833 rm -f conftest.$ac_objext
9834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9835 (eval $ac_compile) 2>conftest.er1
9836 ac_status=$?
9837 grep -v '^ *+' conftest.er1 >conftest.err
9838 rm -f conftest.er1
9839 cat conftest.err >&5
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); } &&
9842 { ac_try='test -z "$ac_c_werror_flag"
9843 || test ! -s conftest.err'
9844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9845 (eval $ac_try) 2>&5
9846 ac_status=$?
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); }; } &&
9849 { ac_try='test -s conftest.$ac_objext'
9850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9851 (eval $ac_try) 2>&5
9852 ac_status=$?
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); }; }; then
9855 ac_header_compiler=yes
9856 else
9857 echo "$as_me: failed program was:" >&5
9858 sed 's/^/| /' conftest.$ac_ext >&5
9860 ac_header_compiler=no
9862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9863 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9864 echo "${ECHO_T}$ac_header_compiler" >&6
9866 # Is the header present?
9867 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9868 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9869 cat >conftest.$ac_ext <<_ACEOF
9870 /* confdefs.h. */
9871 _ACEOF
9872 cat confdefs.h >>conftest.$ac_ext
9873 cat >>conftest.$ac_ext <<_ACEOF
9874 /* end confdefs.h. */
9875 #include <$ac_header>
9876 _ACEOF
9877 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9878 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9879 ac_status=$?
9880 grep -v '^ *+' conftest.er1 >conftest.err
9881 rm -f conftest.er1
9882 cat conftest.err >&5
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); } >/dev/null; then
9885 if test -s conftest.err; then
9886 ac_cpp_err=$ac_c_preproc_warn_flag
9887 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9888 else
9889 ac_cpp_err=
9891 else
9892 ac_cpp_err=yes
9894 if test -z "$ac_cpp_err"; then
9895 ac_header_preproc=yes
9896 else
9897 echo "$as_me: failed program was:" >&5
9898 sed 's/^/| /' conftest.$ac_ext >&5
9900 ac_header_preproc=no
9902 rm -f conftest.err conftest.$ac_ext
9903 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9904 echo "${ECHO_T}$ac_header_preproc" >&6
9906 # So? What about this header?
9907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9908 yes:no: )
9909 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9912 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9913 ac_header_preproc=yes
9915 no:yes:* )
9916 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9917 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9918 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9919 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9920 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9921 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9922 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9923 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9926 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9927 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9929 cat <<\_ASBOX
9930 ## ------------------------------ ##
9931 ## Report this to admin@amule.org ##
9932 ## ------------------------------ ##
9933 _ASBOX
9935 sed "s/^/$as_me: WARNING: /" >&2
9937 esac
9938 echo "$as_me:$LINENO: checking for $ac_header" >&5
9939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9941 echo $ECHO_N "(cached) $ECHO_C" >&6
9942 else
9943 eval "$as_ac_Header=\$ac_header_preproc"
9945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9946 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9949 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9950 cat >>confdefs.h <<_ACEOF
9951 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9952 _ACEOF
9956 done
9958 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9959 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9960 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9961 echo $ECHO_N "(cached) $ECHO_C" >&6
9962 else
9963 cat >conftest.$ac_ext <<_ACEOF
9964 /* confdefs.h. */
9965 _ACEOF
9966 cat confdefs.h >>conftest.$ac_ext
9967 cat >>conftest.$ac_ext <<_ACEOF
9968 /* end confdefs.h. */
9969 #include <sys/types.h>
9970 #include <sys/wait.h>
9971 #ifndef WEXITSTATUS
9972 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9973 #endif
9974 #ifndef WIFEXITED
9975 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9976 #endif
9979 main ()
9981 int s;
9982 wait (&s);
9983 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9985 return 0;
9987 _ACEOF
9988 rm -f conftest.$ac_objext
9989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9990 (eval $ac_compile) 2>conftest.er1
9991 ac_status=$?
9992 grep -v '^ *+' conftest.er1 >conftest.err
9993 rm -f conftest.er1
9994 cat conftest.err >&5
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); } &&
9997 { ac_try='test -z "$ac_c_werror_flag"
9998 || test ! -s conftest.err'
9999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10000 (eval $ac_try) 2>&5
10001 ac_status=$?
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); }; } &&
10004 { ac_try='test -s conftest.$ac_objext'
10005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10006 (eval $ac_try) 2>&5
10007 ac_status=$?
10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); }; }; then
10010 ac_cv_header_sys_wait_h=yes
10011 else
10012 echo "$as_me: failed program was:" >&5
10013 sed 's/^/| /' conftest.$ac_ext >&5
10015 ac_cv_header_sys_wait_h=no
10017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10019 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10020 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10021 if test $ac_cv_header_sys_wait_h = yes; then
10023 cat >>confdefs.h <<\_ACEOF
10024 #define HAVE_SYS_WAIT_H 1
10025 _ACEOF
10030 # Checks for typedefs, structures, and compiler characteristics.
10031 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
10032 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
10033 if test "${ac_cv_header_stdbool_h+set}" = set; then
10034 echo $ECHO_N "(cached) $ECHO_C" >&6
10035 else
10036 cat >conftest.$ac_ext <<_ACEOF
10037 /* confdefs.h. */
10038 _ACEOF
10039 cat confdefs.h >>conftest.$ac_ext
10040 cat >>conftest.$ac_ext <<_ACEOF
10041 /* end confdefs.h. */
10043 #include <stdbool.h>
10044 #ifndef bool
10045 # error bool is not defined
10046 #endif
10047 #ifndef false
10048 # error false is not defined
10049 #endif
10050 #if false
10051 # error false is not 0
10052 #endif
10053 #ifndef true
10054 # error true is not defined
10055 #endif
10056 #if true != 1
10057 # error true is not 1
10058 #endif
10059 #ifndef __bool_true_false_are_defined
10060 # error __bool_true_false_are_defined is not defined
10061 #endif
10063 struct s { _Bool s: 1; _Bool t; } s;
10065 char a[true == 1 ? 1 : -1];
10066 char b[false == 0 ? 1 : -1];
10067 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10068 char d[(bool) -0.5 == true ? 1 : -1];
10069 bool e = &s;
10070 char f[(_Bool) -0.0 == false ? 1 : -1];
10071 char g[true];
10072 char h[sizeof (_Bool)];
10073 char i[sizeof s.t];
10076 main ()
10078 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
10080 return 0;
10082 _ACEOF
10083 rm -f conftest.$ac_objext
10084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10085 (eval $ac_compile) 2>conftest.er1
10086 ac_status=$?
10087 grep -v '^ *+' conftest.er1 >conftest.err
10088 rm -f conftest.er1
10089 cat conftest.err >&5
10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 (exit $ac_status); } &&
10092 { ac_try='test -z "$ac_c_werror_flag"
10093 || test ! -s conftest.err'
10094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10095 (eval $ac_try) 2>&5
10096 ac_status=$?
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); }; } &&
10099 { ac_try='test -s conftest.$ac_objext'
10100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10101 (eval $ac_try) 2>&5
10102 ac_status=$?
10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104 (exit $ac_status); }; }; then
10105 ac_cv_header_stdbool_h=yes
10106 else
10107 echo "$as_me: failed program was:" >&5
10108 sed 's/^/| /' conftest.$ac_ext >&5
10110 ac_cv_header_stdbool_h=no
10112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10114 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
10115 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
10116 echo "$as_me:$LINENO: checking for _Bool" >&5
10117 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
10118 if test "${ac_cv_type__Bool+set}" = set; then
10119 echo $ECHO_N "(cached) $ECHO_C" >&6
10120 else
10121 cat >conftest.$ac_ext <<_ACEOF
10122 /* confdefs.h. */
10123 _ACEOF
10124 cat confdefs.h >>conftest.$ac_ext
10125 cat >>conftest.$ac_ext <<_ACEOF
10126 /* end confdefs.h. */
10127 $ac_includes_default
10129 main ()
10131 if ((_Bool *) 0)
10132 return 0;
10133 if (sizeof (_Bool))
10134 return 0;
10136 return 0;
10138 _ACEOF
10139 rm -f conftest.$ac_objext
10140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10141 (eval $ac_compile) 2>conftest.er1
10142 ac_status=$?
10143 grep -v '^ *+' conftest.er1 >conftest.err
10144 rm -f conftest.er1
10145 cat conftest.err >&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); } &&
10148 { ac_try='test -z "$ac_c_werror_flag"
10149 || test ! -s conftest.err'
10150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10151 (eval $ac_try) 2>&5
10152 ac_status=$?
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); }; } &&
10155 { ac_try='test -s conftest.$ac_objext'
10156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10157 (eval $ac_try) 2>&5
10158 ac_status=$?
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); }; }; then
10161 ac_cv_type__Bool=yes
10162 else
10163 echo "$as_me: failed program was:" >&5
10164 sed 's/^/| /' conftest.$ac_ext >&5
10166 ac_cv_type__Bool=no
10168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10170 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10171 echo "${ECHO_T}$ac_cv_type__Bool" >&6
10172 if test $ac_cv_type__Bool = yes; then
10174 cat >>confdefs.h <<_ACEOF
10175 #define HAVE__BOOL 1
10176 _ACEOF
10181 if test $ac_cv_header_stdbool_h = yes; then
10183 cat >>confdefs.h <<\_ACEOF
10184 #define HAVE_STDBOOL_H 1
10185 _ACEOF
10189 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10190 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10191 if test "${ac_cv_c_const+set}" = set; then
10192 echo $ECHO_N "(cached) $ECHO_C" >&6
10193 else
10194 cat >conftest.$ac_ext <<_ACEOF
10195 /* confdefs.h. */
10196 _ACEOF
10197 cat confdefs.h >>conftest.$ac_ext
10198 cat >>conftest.$ac_ext <<_ACEOF
10199 /* end confdefs.h. */
10202 main ()
10204 /* FIXME: Include the comments suggested by Paul. */
10205 #ifndef __cplusplus
10206 /* Ultrix mips cc rejects this. */
10207 typedef int charset[2];
10208 const charset x;
10209 /* SunOS 4.1.1 cc rejects this. */
10210 char const *const *ccp;
10211 char **p;
10212 /* NEC SVR4.0.2 mips cc rejects this. */
10213 struct point {int x, y;};
10214 static struct point const zero = {0,0};
10215 /* AIX XL C 1.02.0.0 rejects this.
10216 It does not let you subtract one const X* pointer from another in
10217 an arm of an if-expression whose if-part is not a constant
10218 expression */
10219 const char *g = "string";
10220 ccp = &g + (g ? g-g : 0);
10221 /* HPUX 7.0 cc rejects these. */
10222 ++ccp;
10223 p = (char**) ccp;
10224 ccp = (char const *const *) p;
10225 { /* SCO 3.2v4 cc rejects this. */
10226 char *t;
10227 char const *s = 0 ? (char *) 0 : (char const *) 0;
10229 *t++ = 0;
10231 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10232 int x[] = {25, 17};
10233 const int *foo = &x[0];
10234 ++foo;
10236 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10237 typedef const int *iptr;
10238 iptr p = 0;
10239 ++p;
10241 { /* AIX XL C 1.02.0.0 rejects this saying
10242 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10243 struct s { int j; const int *ap[3]; };
10244 struct s *b; b->j = 5;
10246 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10247 const int foo = 10;
10249 #endif
10252 return 0;
10254 _ACEOF
10255 rm -f conftest.$ac_objext
10256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10257 (eval $ac_compile) 2>conftest.er1
10258 ac_status=$?
10259 grep -v '^ *+' conftest.er1 >conftest.err
10260 rm -f conftest.er1
10261 cat conftest.err >&5
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); } &&
10264 { ac_try='test -z "$ac_c_werror_flag"
10265 || test ! -s conftest.err'
10266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10267 (eval $ac_try) 2>&5
10268 ac_status=$?
10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270 (exit $ac_status); }; } &&
10271 { ac_try='test -s conftest.$ac_objext'
10272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10273 (eval $ac_try) 2>&5
10274 ac_status=$?
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); }; }; then
10277 ac_cv_c_const=yes
10278 else
10279 echo "$as_me: failed program was:" >&5
10280 sed 's/^/| /' conftest.$ac_ext >&5
10282 ac_cv_c_const=no
10284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10286 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10287 echo "${ECHO_T}$ac_cv_c_const" >&6
10288 if test $ac_cv_c_const = no; then
10290 cat >>confdefs.h <<\_ACEOF
10291 #define const
10292 _ACEOF
10296 echo "$as_me:$LINENO: checking for inline" >&5
10297 echo $ECHO_N "checking for inline... $ECHO_C" >&6
10298 if test "${ac_cv_c_inline+set}" = set; then
10299 echo $ECHO_N "(cached) $ECHO_C" >&6
10300 else
10301 ac_cv_c_inline=no
10302 for ac_kw in inline __inline__ __inline; do
10303 cat >conftest.$ac_ext <<_ACEOF
10304 /* confdefs.h. */
10305 _ACEOF
10306 cat confdefs.h >>conftest.$ac_ext
10307 cat >>conftest.$ac_ext <<_ACEOF
10308 /* end confdefs.h. */
10309 #ifndef __cplusplus
10310 typedef int foo_t;
10311 static $ac_kw foo_t static_foo () {return 0; }
10312 $ac_kw foo_t foo () {return 0; }
10313 #endif
10315 _ACEOF
10316 rm -f conftest.$ac_objext
10317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10318 (eval $ac_compile) 2>conftest.er1
10319 ac_status=$?
10320 grep -v '^ *+' conftest.er1 >conftest.err
10321 rm -f conftest.er1
10322 cat conftest.err >&5
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); } &&
10325 { ac_try='test -z "$ac_c_werror_flag"
10326 || test ! -s conftest.err'
10327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10328 (eval $ac_try) 2>&5
10329 ac_status=$?
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); }; } &&
10332 { ac_try='test -s conftest.$ac_objext'
10333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10334 (eval $ac_try) 2>&5
10335 ac_status=$?
10336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); }; }; then
10338 ac_cv_c_inline=$ac_kw; break
10339 else
10340 echo "$as_me: failed program was:" >&5
10341 sed 's/^/| /' conftest.$ac_ext >&5
10344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10345 done
10348 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10349 echo "${ECHO_T}$ac_cv_c_inline" >&6
10352 case $ac_cv_c_inline in
10353 inline | yes) ;;
10355 case $ac_cv_c_inline in
10356 no) ac_val=;;
10357 *) ac_val=$ac_cv_c_inline;;
10358 esac
10359 cat >>confdefs.h <<_ACEOF
10360 #ifndef __cplusplus
10361 #define inline $ac_val
10362 #endif
10363 _ACEOF
10365 esac
10367 echo "$as_me:$LINENO: checking for mode_t" >&5
10368 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10369 if test "${ac_cv_type_mode_t+set}" = set; then
10370 echo $ECHO_N "(cached) $ECHO_C" >&6
10371 else
10372 cat >conftest.$ac_ext <<_ACEOF
10373 /* confdefs.h. */
10374 _ACEOF
10375 cat confdefs.h >>conftest.$ac_ext
10376 cat >>conftest.$ac_ext <<_ACEOF
10377 /* end confdefs.h. */
10378 $ac_includes_default
10380 main ()
10382 if ((mode_t *) 0)
10383 return 0;
10384 if (sizeof (mode_t))
10385 return 0;
10387 return 0;
10389 _ACEOF
10390 rm -f conftest.$ac_objext
10391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10392 (eval $ac_compile) 2>conftest.er1
10393 ac_status=$?
10394 grep -v '^ *+' conftest.er1 >conftest.err
10395 rm -f conftest.er1
10396 cat conftest.err >&5
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); } &&
10399 { ac_try='test -z "$ac_c_werror_flag"
10400 || test ! -s conftest.err'
10401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10402 (eval $ac_try) 2>&5
10403 ac_status=$?
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); }; } &&
10406 { ac_try='test -s conftest.$ac_objext'
10407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10408 (eval $ac_try) 2>&5
10409 ac_status=$?
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); }; }; then
10412 ac_cv_type_mode_t=yes
10413 else
10414 echo "$as_me: failed program was:" >&5
10415 sed 's/^/| /' conftest.$ac_ext >&5
10417 ac_cv_type_mode_t=no
10419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10421 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10422 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10423 if test $ac_cv_type_mode_t = yes; then
10425 else
10427 cat >>confdefs.h <<_ACEOF
10428 #define mode_t int
10429 _ACEOF
10433 echo "$as_me:$LINENO: checking for off_t" >&5
10434 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10435 if test "${ac_cv_type_off_t+set}" = set; then
10436 echo $ECHO_N "(cached) $ECHO_C" >&6
10437 else
10438 cat >conftest.$ac_ext <<_ACEOF
10439 /* confdefs.h. */
10440 _ACEOF
10441 cat confdefs.h >>conftest.$ac_ext
10442 cat >>conftest.$ac_ext <<_ACEOF
10443 /* end confdefs.h. */
10444 $ac_includes_default
10446 main ()
10448 if ((off_t *) 0)
10449 return 0;
10450 if (sizeof (off_t))
10451 return 0;
10453 return 0;
10455 _ACEOF
10456 rm -f conftest.$ac_objext
10457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10458 (eval $ac_compile) 2>conftest.er1
10459 ac_status=$?
10460 grep -v '^ *+' conftest.er1 >conftest.err
10461 rm -f conftest.er1
10462 cat conftest.err >&5
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); } &&
10465 { ac_try='test -z "$ac_c_werror_flag"
10466 || test ! -s conftest.err'
10467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10468 (eval $ac_try) 2>&5
10469 ac_status=$?
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); }; } &&
10472 { ac_try='test -s conftest.$ac_objext'
10473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10474 (eval $ac_try) 2>&5
10475 ac_status=$?
10476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); }; }; then
10478 ac_cv_type_off_t=yes
10479 else
10480 echo "$as_me: failed program was:" >&5
10481 sed 's/^/| /' conftest.$ac_ext >&5
10483 ac_cv_type_off_t=no
10485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10487 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10488 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10489 if test $ac_cv_type_off_t = yes; then
10491 else
10493 cat >>confdefs.h <<_ACEOF
10494 #define off_t long
10495 _ACEOF
10499 echo "$as_me:$LINENO: checking for size_t" >&5
10500 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10501 if test "${ac_cv_type_size_t+set}" = set; then
10502 echo $ECHO_N "(cached) $ECHO_C" >&6
10503 else
10504 cat >conftest.$ac_ext <<_ACEOF
10505 /* confdefs.h. */
10506 _ACEOF
10507 cat confdefs.h >>conftest.$ac_ext
10508 cat >>conftest.$ac_ext <<_ACEOF
10509 /* end confdefs.h. */
10510 $ac_includes_default
10512 main ()
10514 if ((size_t *) 0)
10515 return 0;
10516 if (sizeof (size_t))
10517 return 0;
10519 return 0;
10521 _ACEOF
10522 rm -f conftest.$ac_objext
10523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10524 (eval $ac_compile) 2>conftest.er1
10525 ac_status=$?
10526 grep -v '^ *+' conftest.er1 >conftest.err
10527 rm -f conftest.er1
10528 cat conftest.err >&5
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); } &&
10531 { ac_try='test -z "$ac_c_werror_flag"
10532 || test ! -s conftest.err'
10533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10534 (eval $ac_try) 2>&5
10535 ac_status=$?
10536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537 (exit $ac_status); }; } &&
10538 { ac_try='test -s conftest.$ac_objext'
10539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10540 (eval $ac_try) 2>&5
10541 ac_status=$?
10542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 (exit $ac_status); }; }; then
10544 ac_cv_type_size_t=yes
10545 else
10546 echo "$as_me: failed program was:" >&5
10547 sed 's/^/| /' conftest.$ac_ext >&5
10549 ac_cv_type_size_t=no
10551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10553 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10554 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10555 if test $ac_cv_type_size_t = yes; then
10557 else
10559 cat >>confdefs.h <<_ACEOF
10560 #define size_t unsigned
10561 _ACEOF
10565 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10566 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10567 if test "${ac_cv_header_time+set}" = set; then
10568 echo $ECHO_N "(cached) $ECHO_C" >&6
10569 else
10570 cat >conftest.$ac_ext <<_ACEOF
10571 /* confdefs.h. */
10572 _ACEOF
10573 cat confdefs.h >>conftest.$ac_ext
10574 cat >>conftest.$ac_ext <<_ACEOF
10575 /* end confdefs.h. */
10576 #include <sys/types.h>
10577 #include <sys/time.h>
10578 #include <time.h>
10581 main ()
10583 if ((struct tm *) 0)
10584 return 0;
10586 return 0;
10588 _ACEOF
10589 rm -f conftest.$ac_objext
10590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10591 (eval $ac_compile) 2>conftest.er1
10592 ac_status=$?
10593 grep -v '^ *+' conftest.er1 >conftest.err
10594 rm -f conftest.er1
10595 cat conftest.err >&5
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); } &&
10598 { ac_try='test -z "$ac_c_werror_flag"
10599 || test ! -s conftest.err'
10600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10601 (eval $ac_try) 2>&5
10602 ac_status=$?
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); }; } &&
10605 { ac_try='test -s conftest.$ac_objext'
10606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10607 (eval $ac_try) 2>&5
10608 ac_status=$?
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); }; }; then
10611 ac_cv_header_time=yes
10612 else
10613 echo "$as_me: failed program was:" >&5
10614 sed 's/^/| /' conftest.$ac_ext >&5
10616 ac_cv_header_time=no
10618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10620 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10621 echo "${ECHO_T}$ac_cv_header_time" >&6
10622 if test $ac_cv_header_time = yes; then
10624 cat >>confdefs.h <<\_ACEOF
10625 #define TIME_WITH_SYS_TIME 1
10626 _ACEOF
10630 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10631 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10632 if test "${ac_cv_struct_tm+set}" = set; then
10633 echo $ECHO_N "(cached) $ECHO_C" >&6
10634 else
10635 cat >conftest.$ac_ext <<_ACEOF
10636 /* confdefs.h. */
10637 _ACEOF
10638 cat confdefs.h >>conftest.$ac_ext
10639 cat >>conftest.$ac_ext <<_ACEOF
10640 /* end confdefs.h. */
10641 #include <sys/types.h>
10642 #include <time.h>
10645 main ()
10647 struct tm *tp; tp->tm_sec;
10649 return 0;
10651 _ACEOF
10652 rm -f conftest.$ac_objext
10653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10654 (eval $ac_compile) 2>conftest.er1
10655 ac_status=$?
10656 grep -v '^ *+' conftest.er1 >conftest.err
10657 rm -f conftest.er1
10658 cat conftest.err >&5
10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); } &&
10661 { ac_try='test -z "$ac_c_werror_flag"
10662 || test ! -s conftest.err'
10663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10664 (eval $ac_try) 2>&5
10665 ac_status=$?
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); }; } &&
10668 { ac_try='test -s conftest.$ac_objext'
10669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10670 (eval $ac_try) 2>&5
10671 ac_status=$?
10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); }; }; then
10674 ac_cv_struct_tm=time.h
10675 else
10676 echo "$as_me: failed program was:" >&5
10677 sed 's/^/| /' conftest.$ac_ext >&5
10679 ac_cv_struct_tm=sys/time.h
10681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10683 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10684 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10685 if test $ac_cv_struct_tm = sys/time.h; then
10687 cat >>confdefs.h <<\_ACEOF
10688 #define TM_IN_SYS_TIME 1
10689 _ACEOF
10693 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10694 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10695 if test "${ac_cv_type_uid_t+set}" = set; then
10696 echo $ECHO_N "(cached) $ECHO_C" >&6
10697 else
10698 cat >conftest.$ac_ext <<_ACEOF
10699 /* confdefs.h. */
10700 _ACEOF
10701 cat confdefs.h >>conftest.$ac_ext
10702 cat >>conftest.$ac_ext <<_ACEOF
10703 /* end confdefs.h. */
10704 #include <sys/types.h>
10706 _ACEOF
10707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10708 $EGREP "uid_t" >/dev/null 2>&1; then
10709 ac_cv_type_uid_t=yes
10710 else
10711 ac_cv_type_uid_t=no
10713 rm -f conftest*
10716 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10717 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10718 if test $ac_cv_type_uid_t = no; then
10720 cat >>confdefs.h <<\_ACEOF
10721 #define uid_t int
10722 _ACEOF
10725 cat >>confdefs.h <<\_ACEOF
10726 #define gid_t int
10727 _ACEOF
10731 echo "$as_me:$LINENO: checking for working volatile" >&5
10732 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
10733 if test "${ac_cv_c_volatile+set}" = set; then
10734 echo $ECHO_N "(cached) $ECHO_C" >&6
10735 else
10736 cat >conftest.$ac_ext <<_ACEOF
10737 /* confdefs.h. */
10738 _ACEOF
10739 cat confdefs.h >>conftest.$ac_ext
10740 cat >>conftest.$ac_ext <<_ACEOF
10741 /* end confdefs.h. */
10744 main ()
10747 volatile int x;
10748 int * volatile y;
10750 return 0;
10752 _ACEOF
10753 rm -f conftest.$ac_objext
10754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10755 (eval $ac_compile) 2>conftest.er1
10756 ac_status=$?
10757 grep -v '^ *+' conftest.er1 >conftest.err
10758 rm -f conftest.er1
10759 cat conftest.err >&5
10760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); } &&
10762 { ac_try='test -z "$ac_c_werror_flag"
10763 || test ! -s conftest.err'
10764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10765 (eval $ac_try) 2>&5
10766 ac_status=$?
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); }; } &&
10769 { ac_try='test -s conftest.$ac_objext'
10770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10771 (eval $ac_try) 2>&5
10772 ac_status=$?
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); }; }; then
10775 ac_cv_c_volatile=yes
10776 else
10777 echo "$as_me: failed program was:" >&5
10778 sed 's/^/| /' conftest.$ac_ext >&5
10780 ac_cv_c_volatile=no
10782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10784 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
10785 echo "${ECHO_T}$ac_cv_c_volatile" >&6
10786 if test $ac_cv_c_volatile = no; then
10788 cat >>confdefs.h <<\_ACEOF
10789 #define volatile
10790 _ACEOF
10794 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10795 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10796 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10797 echo $ECHO_N "(cached) $ECHO_C" >&6
10798 else
10799 cat >conftest.$ac_ext <<_ACEOF
10800 /* confdefs.h. */
10801 _ACEOF
10802 cat confdefs.h >>conftest.$ac_ext
10803 cat >>conftest.$ac_ext <<_ACEOF
10804 /* end confdefs.h. */
10805 $ac_includes_default
10807 main ()
10809 if ((ptrdiff_t *) 0)
10810 return 0;
10811 if (sizeof (ptrdiff_t))
10812 return 0;
10814 return 0;
10816 _ACEOF
10817 rm -f conftest.$ac_objext
10818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10819 (eval $ac_compile) 2>conftest.er1
10820 ac_status=$?
10821 grep -v '^ *+' conftest.er1 >conftest.err
10822 rm -f conftest.er1
10823 cat conftest.err >&5
10824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825 (exit $ac_status); } &&
10826 { ac_try='test -z "$ac_c_werror_flag"
10827 || test ! -s conftest.err'
10828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10829 (eval $ac_try) 2>&5
10830 ac_status=$?
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); }; } &&
10833 { ac_try='test -s conftest.$ac_objext'
10834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10835 (eval $ac_try) 2>&5
10836 ac_status=$?
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); }; }; then
10839 ac_cv_type_ptrdiff_t=yes
10840 else
10841 echo "$as_me: failed program was:" >&5
10842 sed 's/^/| /' conftest.$ac_ext >&5
10844 ac_cv_type_ptrdiff_t=no
10846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10848 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10849 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10850 if test $ac_cv_type_ptrdiff_t = yes; then
10852 cat >>confdefs.h <<_ACEOF
10853 #define HAVE_PTRDIFF_T 1
10854 _ACEOF
10860 # Checks for library functions.
10861 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
10862 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
10863 if test "${ac_cv_func_closedir_void+set}" = set; then
10864 echo $ECHO_N "(cached) $ECHO_C" >&6
10865 else
10866 if test "$cross_compiling" = yes; then
10867 ac_cv_func_closedir_void=yes
10868 else
10869 cat >conftest.$ac_ext <<_ACEOF
10870 /* confdefs.h. */
10871 _ACEOF
10872 cat confdefs.h >>conftest.$ac_ext
10873 cat >>conftest.$ac_ext <<_ACEOF
10874 /* end confdefs.h. */
10875 $ac_includes_default
10876 #include <$ac_header_dirent>
10877 #ifndef __cplusplus
10878 int closedir ();
10879 #endif
10882 main ()
10884 exit (closedir (opendir (".")) != 0);
10886 return 0;
10888 _ACEOF
10889 rm -f conftest$ac_exeext
10890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10891 (eval $ac_link) 2>&5
10892 ac_status=$?
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10896 (eval $ac_try) 2>&5
10897 ac_status=$?
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); }; }; then
10900 ac_cv_func_closedir_void=no
10901 else
10902 echo "$as_me: program exited with status $ac_status" >&5
10903 echo "$as_me: failed program was:" >&5
10904 sed 's/^/| /' conftest.$ac_ext >&5
10906 ( exit $ac_status )
10907 ac_cv_func_closedir_void=yes
10909 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10912 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
10913 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
10914 if test $ac_cv_func_closedir_void = yes; then
10916 cat >>confdefs.h <<\_ACEOF
10917 #define CLOSEDIR_VOID 1
10918 _ACEOF
10922 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
10923 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
10924 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
10925 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
10926 echo $ECHO_N "(cached) $ECHO_C" >&6
10927 else
10928 ac_check_lib_save_LIBS=$LIBS
10929 LIBS="-lsun $LIBS"
10930 cat >conftest.$ac_ext <<_ACEOF
10931 /* confdefs.h. */
10932 _ACEOF
10933 cat confdefs.h >>conftest.$ac_ext
10934 cat >>conftest.$ac_ext <<_ACEOF
10935 /* end confdefs.h. */
10937 /* Override any gcc2 internal prototype to avoid an error. */
10938 #ifdef __cplusplus
10939 extern "C"
10940 #endif
10941 /* We use char because int might match the return type of a gcc2
10942 builtin and then its argument prototype would still apply. */
10943 char getmntent ();
10945 main ()
10947 getmntent ();
10949 return 0;
10951 _ACEOF
10952 rm -f conftest.$ac_objext conftest$ac_exeext
10953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10954 (eval $ac_link) 2>conftest.er1
10955 ac_status=$?
10956 grep -v '^ *+' conftest.er1 >conftest.err
10957 rm -f conftest.er1
10958 cat conftest.err >&5
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); } &&
10961 { ac_try='test -z "$ac_c_werror_flag"
10962 || test ! -s conftest.err'
10963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10964 (eval $ac_try) 2>&5
10965 ac_status=$?
10966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); }; } &&
10968 { ac_try='test -s conftest$ac_exeext'
10969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10970 (eval $ac_try) 2>&5
10971 ac_status=$?
10972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973 (exit $ac_status); }; }; then
10974 ac_cv_lib_sun_getmntent=yes
10975 else
10976 echo "$as_me: failed program was:" >&5
10977 sed 's/^/| /' conftest.$ac_ext >&5
10979 ac_cv_lib_sun_getmntent=no
10981 rm -f conftest.err conftest.$ac_objext \
10982 conftest$ac_exeext conftest.$ac_ext
10983 LIBS=$ac_check_lib_save_LIBS
10985 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
10986 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
10987 if test $ac_cv_lib_sun_getmntent = yes; then
10988 LIBS="-lsun $LIBS"
10989 else
10990 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
10991 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
10992 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
10993 echo $ECHO_N "(cached) $ECHO_C" >&6
10994 else
10995 ac_check_lib_save_LIBS=$LIBS
10996 LIBS="-lseq $LIBS"
10997 cat >conftest.$ac_ext <<_ACEOF
10998 /* confdefs.h. */
10999 _ACEOF
11000 cat confdefs.h >>conftest.$ac_ext
11001 cat >>conftest.$ac_ext <<_ACEOF
11002 /* end confdefs.h. */
11004 /* Override any gcc2 internal prototype to avoid an error. */
11005 #ifdef __cplusplus
11006 extern "C"
11007 #endif
11008 /* We use char because int might match the return type of a gcc2
11009 builtin and then its argument prototype would still apply. */
11010 char getmntent ();
11012 main ()
11014 getmntent ();
11016 return 0;
11018 _ACEOF
11019 rm -f conftest.$ac_objext conftest$ac_exeext
11020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11021 (eval $ac_link) 2>conftest.er1
11022 ac_status=$?
11023 grep -v '^ *+' conftest.er1 >conftest.err
11024 rm -f conftest.er1
11025 cat conftest.err >&5
11026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); } &&
11028 { ac_try='test -z "$ac_c_werror_flag"
11029 || test ! -s conftest.err'
11030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11031 (eval $ac_try) 2>&5
11032 ac_status=$?
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); }; } &&
11035 { ac_try='test -s conftest$ac_exeext'
11036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11037 (eval $ac_try) 2>&5
11038 ac_status=$?
11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040 (exit $ac_status); }; }; then
11041 ac_cv_lib_seq_getmntent=yes
11042 else
11043 echo "$as_me: failed program was:" >&5
11044 sed 's/^/| /' conftest.$ac_ext >&5
11046 ac_cv_lib_seq_getmntent=no
11048 rm -f conftest.err conftest.$ac_objext \
11049 conftest$ac_exeext conftest.$ac_ext
11050 LIBS=$ac_check_lib_save_LIBS
11052 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
11053 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
11054 if test $ac_cv_lib_seq_getmntent = yes; then
11055 LIBS="-lseq $LIBS"
11056 else
11057 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
11058 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
11059 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
11060 echo $ECHO_N "(cached) $ECHO_C" >&6
11061 else
11062 ac_check_lib_save_LIBS=$LIBS
11063 LIBS="-lgen $LIBS"
11064 cat >conftest.$ac_ext <<_ACEOF
11065 /* confdefs.h. */
11066 _ACEOF
11067 cat confdefs.h >>conftest.$ac_ext
11068 cat >>conftest.$ac_ext <<_ACEOF
11069 /* end confdefs.h. */
11071 /* Override any gcc2 internal prototype to avoid an error. */
11072 #ifdef __cplusplus
11073 extern "C"
11074 #endif
11075 /* We use char because int might match the return type of a gcc2
11076 builtin and then its argument prototype would still apply. */
11077 char getmntent ();
11079 main ()
11081 getmntent ();
11083 return 0;
11085 _ACEOF
11086 rm -f conftest.$ac_objext conftest$ac_exeext
11087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11088 (eval $ac_link) 2>conftest.er1
11089 ac_status=$?
11090 grep -v '^ *+' conftest.er1 >conftest.err
11091 rm -f conftest.er1
11092 cat conftest.err >&5
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); } &&
11095 { ac_try='test -z "$ac_c_werror_flag"
11096 || test ! -s conftest.err'
11097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11098 (eval $ac_try) 2>&5
11099 ac_status=$?
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); }; } &&
11102 { ac_try='test -s conftest$ac_exeext'
11103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11104 (eval $ac_try) 2>&5
11105 ac_status=$?
11106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107 (exit $ac_status); }; }; then
11108 ac_cv_lib_gen_getmntent=yes
11109 else
11110 echo "$as_me: failed program was:" >&5
11111 sed 's/^/| /' conftest.$ac_ext >&5
11113 ac_cv_lib_gen_getmntent=no
11115 rm -f conftest.err conftest.$ac_objext \
11116 conftest$ac_exeext conftest.$ac_ext
11117 LIBS=$ac_check_lib_save_LIBS
11119 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
11120 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
11121 if test $ac_cv_lib_gen_getmntent = yes; then
11122 LIBS="-lgen $LIBS"
11130 for ac_func in getmntent
11132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11133 echo "$as_me:$LINENO: checking for $ac_func" >&5
11134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11135 if eval "test \"\${$as_ac_var+set}\" = set"; then
11136 echo $ECHO_N "(cached) $ECHO_C" >&6
11137 else
11138 cat >conftest.$ac_ext <<_ACEOF
11139 /* confdefs.h. */
11140 _ACEOF
11141 cat confdefs.h >>conftest.$ac_ext
11142 cat >>conftest.$ac_ext <<_ACEOF
11143 /* end confdefs.h. */
11144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11146 #define $ac_func innocuous_$ac_func
11148 /* System header to define __stub macros and hopefully few prototypes,
11149 which can conflict with char $ac_func (); below.
11150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11151 <limits.h> exists even on freestanding compilers. */
11153 #ifdef __STDC__
11154 # include <limits.h>
11155 #else
11156 # include <assert.h>
11157 #endif
11159 #undef $ac_func
11161 /* Override any gcc2 internal prototype to avoid an error. */
11162 #ifdef __cplusplus
11163 extern "C"
11165 #endif
11166 /* We use char because int might match the return type of a gcc2
11167 builtin and then its argument prototype would still apply. */
11168 char $ac_func ();
11169 /* The GNU C library defines this for functions which it implements
11170 to always fail with ENOSYS. Some functions are actually named
11171 something starting with __ and the normal name is an alias. */
11172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11173 choke me
11174 #else
11175 char (*f) () = $ac_func;
11176 #endif
11177 #ifdef __cplusplus
11179 #endif
11182 main ()
11184 return f != $ac_func;
11186 return 0;
11188 _ACEOF
11189 rm -f conftest.$ac_objext conftest$ac_exeext
11190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11191 (eval $ac_link) 2>conftest.er1
11192 ac_status=$?
11193 grep -v '^ *+' conftest.er1 >conftest.err
11194 rm -f conftest.er1
11195 cat conftest.err >&5
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); } &&
11198 { ac_try='test -z "$ac_c_werror_flag"
11199 || test ! -s conftest.err'
11200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11201 (eval $ac_try) 2>&5
11202 ac_status=$?
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); }; } &&
11205 { ac_try='test -s conftest$ac_exeext'
11206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11207 (eval $ac_try) 2>&5
11208 ac_status=$?
11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); }; }; then
11211 eval "$as_ac_var=yes"
11212 else
11213 echo "$as_me: failed program was:" >&5
11214 sed 's/^/| /' conftest.$ac_ext >&5
11216 eval "$as_ac_var=no"
11218 rm -f conftest.err conftest.$ac_objext \
11219 conftest$ac_exeext conftest.$ac_ext
11221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11222 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11223 if test `eval echo '${'$as_ac_var'}'` = yes; then
11224 cat >>confdefs.h <<_ACEOF
11225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11226 _ACEOF
11229 done
11232 if test $ac_cv_c_compiler_gnu = yes; then
11233 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11234 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11235 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11236 echo $ECHO_N "(cached) $ECHO_C" >&6
11237 else
11238 ac_pattern="Autoconf.*'x'"
11239 cat >conftest.$ac_ext <<_ACEOF
11240 /* confdefs.h. */
11241 _ACEOF
11242 cat confdefs.h >>conftest.$ac_ext
11243 cat >>conftest.$ac_ext <<_ACEOF
11244 /* end confdefs.h. */
11245 #include <sgtty.h>
11246 Autoconf TIOCGETP
11247 _ACEOF
11248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11249 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11250 ac_cv_prog_gcc_traditional=yes
11251 else
11252 ac_cv_prog_gcc_traditional=no
11254 rm -f conftest*
11257 if test $ac_cv_prog_gcc_traditional = no; then
11258 cat >conftest.$ac_ext <<_ACEOF
11259 /* confdefs.h. */
11260 _ACEOF
11261 cat confdefs.h >>conftest.$ac_ext
11262 cat >>conftest.$ac_ext <<_ACEOF
11263 /* end confdefs.h. */
11264 #include <termio.h>
11265 Autoconf TCGETA
11266 _ACEOF
11267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11268 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11269 ac_cv_prog_gcc_traditional=yes
11271 rm -f conftest*
11275 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11276 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11277 if test $ac_cv_prog_gcc_traditional = yes; then
11278 CC="$CC -traditional"
11282 echo "$as_me:$LINENO: checking for pid_t" >&5
11283 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11284 if test "${ac_cv_type_pid_t+set}" = set; then
11285 echo $ECHO_N "(cached) $ECHO_C" >&6
11286 else
11287 cat >conftest.$ac_ext <<_ACEOF
11288 /* confdefs.h. */
11289 _ACEOF
11290 cat confdefs.h >>conftest.$ac_ext
11291 cat >>conftest.$ac_ext <<_ACEOF
11292 /* end confdefs.h. */
11293 $ac_includes_default
11295 main ()
11297 if ((pid_t *) 0)
11298 return 0;
11299 if (sizeof (pid_t))
11300 return 0;
11302 return 0;
11304 _ACEOF
11305 rm -f conftest.$ac_objext
11306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11307 (eval $ac_compile) 2>conftest.er1
11308 ac_status=$?
11309 grep -v '^ *+' conftest.er1 >conftest.err
11310 rm -f conftest.er1
11311 cat conftest.err >&5
11312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313 (exit $ac_status); } &&
11314 { ac_try='test -z "$ac_c_werror_flag"
11315 || test ! -s conftest.err'
11316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11317 (eval $ac_try) 2>&5
11318 ac_status=$?
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); }; } &&
11321 { ac_try='test -s conftest.$ac_objext'
11322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11323 (eval $ac_try) 2>&5
11324 ac_status=$?
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); }; }; then
11327 ac_cv_type_pid_t=yes
11328 else
11329 echo "$as_me: failed program was:" >&5
11330 sed 's/^/| /' conftest.$ac_ext >&5
11332 ac_cv_type_pid_t=no
11334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11336 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11337 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11338 if test $ac_cv_type_pid_t = yes; then
11340 else
11342 cat >>confdefs.h <<_ACEOF
11343 #define pid_t int
11344 _ACEOF
11350 for ac_header in unistd.h vfork.h
11352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11354 echo "$as_me:$LINENO: checking for $ac_header" >&5
11355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11357 echo $ECHO_N "(cached) $ECHO_C" >&6
11359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11360 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11361 else
11362 # Is the header compilable?
11363 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11364 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11365 cat >conftest.$ac_ext <<_ACEOF
11366 /* confdefs.h. */
11367 _ACEOF
11368 cat confdefs.h >>conftest.$ac_ext
11369 cat >>conftest.$ac_ext <<_ACEOF
11370 /* end confdefs.h. */
11371 $ac_includes_default
11372 #include <$ac_header>
11373 _ACEOF
11374 rm -f conftest.$ac_objext
11375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11376 (eval $ac_compile) 2>conftest.er1
11377 ac_status=$?
11378 grep -v '^ *+' conftest.er1 >conftest.err
11379 rm -f conftest.er1
11380 cat conftest.err >&5
11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 (exit $ac_status); } &&
11383 { ac_try='test -z "$ac_c_werror_flag"
11384 || test ! -s conftest.err'
11385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11386 (eval $ac_try) 2>&5
11387 ac_status=$?
11388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389 (exit $ac_status); }; } &&
11390 { ac_try='test -s conftest.$ac_objext'
11391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11392 (eval $ac_try) 2>&5
11393 ac_status=$?
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); }; }; then
11396 ac_header_compiler=yes
11397 else
11398 echo "$as_me: failed program was:" >&5
11399 sed 's/^/| /' conftest.$ac_ext >&5
11401 ac_header_compiler=no
11403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11404 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11405 echo "${ECHO_T}$ac_header_compiler" >&6
11407 # Is the header present?
11408 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11409 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11410 cat >conftest.$ac_ext <<_ACEOF
11411 /* confdefs.h. */
11412 _ACEOF
11413 cat confdefs.h >>conftest.$ac_ext
11414 cat >>conftest.$ac_ext <<_ACEOF
11415 /* end confdefs.h. */
11416 #include <$ac_header>
11417 _ACEOF
11418 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11419 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11420 ac_status=$?
11421 grep -v '^ *+' conftest.er1 >conftest.err
11422 rm -f conftest.er1
11423 cat conftest.err >&5
11424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425 (exit $ac_status); } >/dev/null; then
11426 if test -s conftest.err; then
11427 ac_cpp_err=$ac_c_preproc_warn_flag
11428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11429 else
11430 ac_cpp_err=
11432 else
11433 ac_cpp_err=yes
11435 if test -z "$ac_cpp_err"; then
11436 ac_header_preproc=yes
11437 else
11438 echo "$as_me: failed program was:" >&5
11439 sed 's/^/| /' conftest.$ac_ext >&5
11441 ac_header_preproc=no
11443 rm -f conftest.err conftest.$ac_ext
11444 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11445 echo "${ECHO_T}$ac_header_preproc" >&6
11447 # So? What about this header?
11448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11449 yes:no: )
11450 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11451 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11453 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11454 ac_header_preproc=yes
11456 no:yes:* )
11457 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11458 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11459 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11460 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11461 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11462 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11463 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11464 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11466 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11467 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11468 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11470 cat <<\_ASBOX
11471 ## ------------------------------ ##
11472 ## Report this to admin@amule.org ##
11473 ## ------------------------------ ##
11474 _ASBOX
11476 sed "s/^/$as_me: WARNING: /" >&2
11478 esac
11479 echo "$as_me:$LINENO: checking for $ac_header" >&5
11480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11482 echo $ECHO_N "(cached) $ECHO_C" >&6
11483 else
11484 eval "$as_ac_Header=\$ac_header_preproc"
11486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11491 cat >>confdefs.h <<_ACEOF
11492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11493 _ACEOF
11497 done
11501 for ac_func in fork vfork
11503 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11504 echo "$as_me:$LINENO: checking for $ac_func" >&5
11505 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11506 if eval "test \"\${$as_ac_var+set}\" = set"; then
11507 echo $ECHO_N "(cached) $ECHO_C" >&6
11508 else
11509 cat >conftest.$ac_ext <<_ACEOF
11510 /* confdefs.h. */
11511 _ACEOF
11512 cat confdefs.h >>conftest.$ac_ext
11513 cat >>conftest.$ac_ext <<_ACEOF
11514 /* end confdefs.h. */
11515 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11517 #define $ac_func innocuous_$ac_func
11519 /* System header to define __stub macros and hopefully few prototypes,
11520 which can conflict with char $ac_func (); below.
11521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11522 <limits.h> exists even on freestanding compilers. */
11524 #ifdef __STDC__
11525 # include <limits.h>
11526 #else
11527 # include <assert.h>
11528 #endif
11530 #undef $ac_func
11532 /* Override any gcc2 internal prototype to avoid an error. */
11533 #ifdef __cplusplus
11534 extern "C"
11536 #endif
11537 /* We use char because int might match the return type of a gcc2
11538 builtin and then its argument prototype would still apply. */
11539 char $ac_func ();
11540 /* The GNU C library defines this for functions which it implements
11541 to always fail with ENOSYS. Some functions are actually named
11542 something starting with __ and the normal name is an alias. */
11543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11544 choke me
11545 #else
11546 char (*f) () = $ac_func;
11547 #endif
11548 #ifdef __cplusplus
11550 #endif
11553 main ()
11555 return f != $ac_func;
11557 return 0;
11559 _ACEOF
11560 rm -f conftest.$ac_objext conftest$ac_exeext
11561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11562 (eval $ac_link) 2>conftest.er1
11563 ac_status=$?
11564 grep -v '^ *+' conftest.er1 >conftest.err
11565 rm -f conftest.er1
11566 cat conftest.err >&5
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); } &&
11569 { ac_try='test -z "$ac_c_werror_flag"
11570 || test ! -s conftest.err'
11571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11572 (eval $ac_try) 2>&5
11573 ac_status=$?
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); }; } &&
11576 { ac_try='test -s conftest$ac_exeext'
11577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11578 (eval $ac_try) 2>&5
11579 ac_status=$?
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); }; }; then
11582 eval "$as_ac_var=yes"
11583 else
11584 echo "$as_me: failed program was:" >&5
11585 sed 's/^/| /' conftest.$ac_ext >&5
11587 eval "$as_ac_var=no"
11589 rm -f conftest.err conftest.$ac_objext \
11590 conftest$ac_exeext conftest.$ac_ext
11592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11593 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11594 if test `eval echo '${'$as_ac_var'}'` = yes; then
11595 cat >>confdefs.h <<_ACEOF
11596 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11597 _ACEOF
11600 done
11602 if test "x$ac_cv_func_fork" = xyes; then
11603 echo "$as_me:$LINENO: checking for working fork" >&5
11604 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
11605 if test "${ac_cv_func_fork_works+set}" = set; then
11606 echo $ECHO_N "(cached) $ECHO_C" >&6
11607 else
11608 if test "$cross_compiling" = yes; then
11609 ac_cv_func_fork_works=cross
11610 else
11611 cat >conftest.$ac_ext <<_ACEOF
11612 /* By Ruediger Kuhlmann. */
11613 #include <sys/types.h>
11614 #if HAVE_UNISTD_H
11615 # include <unistd.h>
11616 #endif
11617 /* Some systems only have a dummy stub for fork() */
11618 int main ()
11620 if (fork() < 0)
11621 exit (1);
11622 exit (0);
11624 _ACEOF
11625 rm -f conftest$ac_exeext
11626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11627 (eval $ac_link) 2>&5
11628 ac_status=$?
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11632 (eval $ac_try) 2>&5
11633 ac_status=$?
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); }; }; then
11636 ac_cv_func_fork_works=yes
11637 else
11638 echo "$as_me: program exited with status $ac_status" >&5
11639 echo "$as_me: failed program was:" >&5
11640 sed 's/^/| /' conftest.$ac_ext >&5
11642 ( exit $ac_status )
11643 ac_cv_func_fork_works=no
11645 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11648 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11649 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11651 else
11652 ac_cv_func_fork_works=$ac_cv_func_fork
11654 if test "x$ac_cv_func_fork_works" = xcross; then
11655 case $host in
11656 *-*-amigaos* | *-*-msdosdjgpp*)
11657 # Override, as these systems have only a dummy fork() stub
11658 ac_cv_func_fork_works=no
11661 ac_cv_func_fork_works=yes
11663 esac
11664 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11665 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11667 ac_cv_func_vfork_works=$ac_cv_func_vfork
11668 if test "x$ac_cv_func_vfork" = xyes; then
11669 echo "$as_me:$LINENO: checking for working vfork" >&5
11670 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11671 if test "${ac_cv_func_vfork_works+set}" = set; then
11672 echo $ECHO_N "(cached) $ECHO_C" >&6
11673 else
11674 if test "$cross_compiling" = yes; then
11675 ac_cv_func_vfork_works=cross
11676 else
11677 cat >conftest.$ac_ext <<_ACEOF
11678 /* confdefs.h. */
11679 _ACEOF
11680 cat confdefs.h >>conftest.$ac_ext
11681 cat >>conftest.$ac_ext <<_ACEOF
11682 /* end confdefs.h. */
11683 /* Thanks to Paul Eggert for this test. */
11684 #include <stdio.h>
11685 #include <stdlib.h>
11686 #include <sys/types.h>
11687 #include <sys/stat.h>
11688 #include <sys/wait.h>
11689 #if HAVE_UNISTD_H
11690 # include <unistd.h>
11691 #endif
11692 #if HAVE_VFORK_H
11693 # include <vfork.h>
11694 #endif
11695 /* On some sparc systems, changes by the child to local and incoming
11696 argument registers are propagated back to the parent. The compiler
11697 is told about this with #include <vfork.h>, but some compilers
11698 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11699 static variable whose address is put into a register that is
11700 clobbered by the vfork. */
11701 static void
11702 #ifdef __cplusplus
11703 sparc_address_test (int arg)
11704 # else
11705 sparc_address_test (arg) int arg;
11706 #endif
11708 static pid_t child;
11709 if (!child) {
11710 child = vfork ();
11711 if (child < 0) {
11712 perror ("vfork");
11713 _exit(2);
11715 if (!child) {
11716 arg = getpid();
11717 write(-1, "", 0);
11718 _exit (arg);
11724 main ()
11726 pid_t parent = getpid ();
11727 pid_t child;
11729 sparc_address_test (0);
11731 child = vfork ();
11733 if (child == 0) {
11734 /* Here is another test for sparc vfork register problems. This
11735 test uses lots of local variables, at least as many local
11736 variables as main has allocated so far including compiler
11737 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11738 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11739 reuse the register of parent for one of the local variables,
11740 since it will think that parent can't possibly be used any more
11741 in this routine. Assigning to the local variable will thus
11742 munge parent in the parent process. */
11743 pid_t
11744 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11745 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11746 /* Convince the compiler that p..p7 are live; otherwise, it might
11747 use the same hardware register for all 8 local variables. */
11748 if (p != p1 || p != p2 || p != p3 || p != p4
11749 || p != p5 || p != p6 || p != p7)
11750 _exit(1);
11752 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11753 from child file descriptors. If the child closes a descriptor
11754 before it execs or exits, this munges the parent's descriptor
11755 as well. Test for this by closing stdout in the child. */
11756 _exit(close(fileno(stdout)) != 0);
11757 } else {
11758 int status;
11759 struct stat st;
11761 while (wait(&status) != child)
11763 exit(
11764 /* Was there some problem with vforking? */
11765 child < 0
11767 /* Did the child fail? (This shouldn't happen.) */
11768 || status
11770 /* Did the vfork/compiler bug occur? */
11771 || parent != getpid()
11773 /* Did the file descriptor bug occur? */
11774 || fstat(fileno(stdout), &st) != 0
11778 _ACEOF
11779 rm -f conftest$ac_exeext
11780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11781 (eval $ac_link) 2>&5
11782 ac_status=$?
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11786 (eval $ac_try) 2>&5
11787 ac_status=$?
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); }; }; then
11790 ac_cv_func_vfork_works=yes
11791 else
11792 echo "$as_me: program exited with status $ac_status" >&5
11793 echo "$as_me: failed program was:" >&5
11794 sed 's/^/| /' conftest.$ac_ext >&5
11796 ( exit $ac_status )
11797 ac_cv_func_vfork_works=no
11799 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11802 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11803 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11806 if test "x$ac_cv_func_fork_works" = xcross; then
11807 ac_cv_func_vfork_works=$ac_cv_func_vfork
11808 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11809 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11812 if test "x$ac_cv_func_vfork_works" = xyes; then
11814 cat >>confdefs.h <<\_ACEOF
11815 #define HAVE_WORKING_VFORK 1
11816 _ACEOF
11818 else
11820 cat >>confdefs.h <<\_ACEOF
11821 #define vfork fork
11822 _ACEOF
11825 if test "x$ac_cv_func_fork_works" = xyes; then
11827 cat >>confdefs.h <<\_ACEOF
11828 #define HAVE_WORKING_FORK 1
11829 _ACEOF
11833 if test x$SYS != xwin32; then
11834 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
11835 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
11836 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
11837 echo $ECHO_N "(cached) $ECHO_C" >&6
11838 else
11839 rm -f conftest.sym conftest.file
11840 echo >conftest.file
11841 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
11842 if test "$cross_compiling" = yes; then
11843 ac_cv_func_lstat_dereferences_slashed_symlink=no
11844 else
11845 cat >conftest.$ac_ext <<_ACEOF
11846 /* confdefs.h. */
11847 _ACEOF
11848 cat confdefs.h >>conftest.$ac_ext
11849 cat >>conftest.$ac_ext <<_ACEOF
11850 /* end confdefs.h. */
11851 $ac_includes_default
11853 main ()
11855 struct stat sbuf;
11856 /* Linux will dereference the symlink and fail.
11857 That is better in the sense that it means we will not
11858 have to compile and use the lstat wrapper. */
11859 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
11861 return 0;
11863 _ACEOF
11864 rm -f conftest$ac_exeext
11865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11866 (eval $ac_link) 2>&5
11867 ac_status=$?
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11871 (eval $ac_try) 2>&5
11872 ac_status=$?
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); }; }; then
11875 ac_cv_func_lstat_dereferences_slashed_symlink=yes
11876 else
11877 echo "$as_me: program exited with status $ac_status" >&5
11878 echo "$as_me: failed program was:" >&5
11879 sed 's/^/| /' conftest.$ac_ext >&5
11881 ( exit $ac_status )
11882 ac_cv_func_lstat_dereferences_slashed_symlink=no
11884 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11886 else
11887 # If the `ln -s' command failed, then we probably don't even
11888 # have an lstat function.
11889 ac_cv_func_lstat_dereferences_slashed_symlink=no
11891 rm -f conftest.sym conftest.file
11894 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11895 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
11897 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11899 cat >>confdefs.h <<_ACEOF
11900 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11901 _ACEOF
11904 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
11905 case $LIBOBJS in
11906 "lstat.$ac_objext" | \
11907 *" lstat.$ac_objext" | \
11908 "lstat.$ac_objext "* | \
11909 *" lstat.$ac_objext "* ) ;;
11910 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
11911 esac
11915 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
11916 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
11917 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
11918 echo $ECHO_N "(cached) $ECHO_C" >&6
11919 else
11920 if test "$cross_compiling" = yes; then
11921 ac_cv_func_lstat_empty_string_bug=yes
11922 else
11923 cat >conftest.$ac_ext <<_ACEOF
11924 /* confdefs.h. */
11925 _ACEOF
11926 cat confdefs.h >>conftest.$ac_ext
11927 cat >>conftest.$ac_ext <<_ACEOF
11928 /* end confdefs.h. */
11929 $ac_includes_default
11931 main ()
11933 struct stat sbuf;
11934 exit (lstat ("", &sbuf) ? 1 : 0);
11936 return 0;
11938 _ACEOF
11939 rm -f conftest$ac_exeext
11940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11941 (eval $ac_link) 2>&5
11942 ac_status=$?
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11946 (eval $ac_try) 2>&5
11947 ac_status=$?
11948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); }; }; then
11950 ac_cv_func_lstat_empty_string_bug=yes
11951 else
11952 echo "$as_me: program exited with status $ac_status" >&5
11953 echo "$as_me: failed program was:" >&5
11954 sed 's/^/| /' conftest.$ac_ext >&5
11956 ( exit $ac_status )
11957 ac_cv_func_lstat_empty_string_bug=no
11959 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11962 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
11963 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
11964 if test $ac_cv_func_lstat_empty_string_bug = yes; then
11965 case $LIBOBJS in
11966 "lstat.$ac_objext" | \
11967 *" lstat.$ac_objext" | \
11968 "lstat.$ac_objext "* | \
11969 *" lstat.$ac_objext "* ) ;;
11970 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
11971 esac
11974 cat >>confdefs.h <<_ACEOF
11975 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
11976 _ACEOF
11980 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
11981 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
11982 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
11983 echo $ECHO_N "(cached) $ECHO_C" >&6
11984 else
11985 rm -f conftest.sym conftest.file
11986 echo >conftest.file
11987 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
11988 if test "$cross_compiling" = yes; then
11989 ac_cv_func_lstat_dereferences_slashed_symlink=no
11990 else
11991 cat >conftest.$ac_ext <<_ACEOF
11992 /* confdefs.h. */
11993 _ACEOF
11994 cat confdefs.h >>conftest.$ac_ext
11995 cat >>conftest.$ac_ext <<_ACEOF
11996 /* end confdefs.h. */
11997 $ac_includes_default
11999 main ()
12001 struct stat sbuf;
12002 /* Linux will dereference the symlink and fail.
12003 That is better in the sense that it means we will not
12004 have to compile and use the lstat wrapper. */
12005 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
12007 return 0;
12009 _ACEOF
12010 rm -f conftest$ac_exeext
12011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12012 (eval $ac_link) 2>&5
12013 ac_status=$?
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12017 (eval $ac_try) 2>&5
12018 ac_status=$?
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); }; }; then
12021 ac_cv_func_lstat_dereferences_slashed_symlink=yes
12022 else
12023 echo "$as_me: program exited with status $ac_status" >&5
12024 echo "$as_me: failed program was:" >&5
12025 sed 's/^/| /' conftest.$ac_ext >&5
12027 ( exit $ac_status )
12028 ac_cv_func_lstat_dereferences_slashed_symlink=no
12030 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12032 else
12033 # If the `ln -s' command failed, then we probably don't even
12034 # have an lstat function.
12035 ac_cv_func_lstat_dereferences_slashed_symlink=no
12037 rm -f conftest.sym conftest.file
12040 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
12041 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
12043 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
12045 cat >>confdefs.h <<_ACEOF
12046 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
12047 _ACEOF
12050 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
12051 case $LIBOBJS in
12052 "lstat.$ac_objext" | \
12053 *" lstat.$ac_objext" | \
12054 "lstat.$ac_objext "* | \
12055 *" lstat.$ac_objext "* ) ;;
12056 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
12057 esac
12062 echo "$as_me:$LINENO: checking for working memcmp" >&5
12063 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
12064 if test "${ac_cv_func_memcmp_working+set}" = set; then
12065 echo $ECHO_N "(cached) $ECHO_C" >&6
12066 else
12067 if test "$cross_compiling" = yes; then
12068 ac_cv_func_memcmp_working=no
12069 else
12070 cat >conftest.$ac_ext <<_ACEOF
12071 /* confdefs.h. */
12072 _ACEOF
12073 cat confdefs.h >>conftest.$ac_ext
12074 cat >>conftest.$ac_ext <<_ACEOF
12075 /* end confdefs.h. */
12076 $ac_includes_default
12078 main ()
12081 /* Some versions of memcmp are not 8-bit clean. */
12082 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
12083 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12084 exit (1);
12086 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12087 or more and with at least one buffer not starting on a 4-byte boundary.
12088 William Lewis provided this test program. */
12090 char foo[21];
12091 char bar[21];
12092 int i;
12093 for (i = 0; i < 4; i++)
12095 char *a = foo + i;
12096 char *b = bar + i;
12097 strcpy (a, "--------01111111");
12098 strcpy (b, "--------10000000");
12099 if (memcmp (a, b, 16) >= 0)
12100 exit (1);
12102 exit (0);
12106 return 0;
12108 _ACEOF
12109 rm -f conftest$ac_exeext
12110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12111 (eval $ac_link) 2>&5
12112 ac_status=$?
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12116 (eval $ac_try) 2>&5
12117 ac_status=$?
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 (exit $ac_status); }; }; then
12120 ac_cv_func_memcmp_working=yes
12121 else
12122 echo "$as_me: program exited with status $ac_status" >&5
12123 echo "$as_me: failed program was:" >&5
12124 sed 's/^/| /' conftest.$ac_ext >&5
12126 ( exit $ac_status )
12127 ac_cv_func_memcmp_working=no
12129 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12132 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
12133 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
12134 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
12135 "memcmp.$ac_objext" | \
12136 *" memcmp.$ac_objext" | \
12137 "memcmp.$ac_objext "* | \
12138 *" memcmp.$ac_objext "* ) ;;
12139 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
12140 esac
12145 for ac_header in stdlib.h unistd.h
12147 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12149 echo "$as_me:$LINENO: checking for $ac_header" >&5
12150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12152 echo $ECHO_N "(cached) $ECHO_C" >&6
12154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12155 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12156 else
12157 # Is the header compilable?
12158 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12159 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12160 cat >conftest.$ac_ext <<_ACEOF
12161 /* confdefs.h. */
12162 _ACEOF
12163 cat confdefs.h >>conftest.$ac_ext
12164 cat >>conftest.$ac_ext <<_ACEOF
12165 /* end confdefs.h. */
12166 $ac_includes_default
12167 #include <$ac_header>
12168 _ACEOF
12169 rm -f conftest.$ac_objext
12170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12171 (eval $ac_compile) 2>conftest.er1
12172 ac_status=$?
12173 grep -v '^ *+' conftest.er1 >conftest.err
12174 rm -f conftest.er1
12175 cat conftest.err >&5
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); } &&
12178 { ac_try='test -z "$ac_c_werror_flag"
12179 || test ! -s conftest.err'
12180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12181 (eval $ac_try) 2>&5
12182 ac_status=$?
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); }; } &&
12185 { ac_try='test -s conftest.$ac_objext'
12186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12187 (eval $ac_try) 2>&5
12188 ac_status=$?
12189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190 (exit $ac_status); }; }; then
12191 ac_header_compiler=yes
12192 else
12193 echo "$as_me: failed program was:" >&5
12194 sed 's/^/| /' conftest.$ac_ext >&5
12196 ac_header_compiler=no
12198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12199 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12200 echo "${ECHO_T}$ac_header_compiler" >&6
12202 # Is the header present?
12203 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12204 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12205 cat >conftest.$ac_ext <<_ACEOF
12206 /* confdefs.h. */
12207 _ACEOF
12208 cat confdefs.h >>conftest.$ac_ext
12209 cat >>conftest.$ac_ext <<_ACEOF
12210 /* end confdefs.h. */
12211 #include <$ac_header>
12212 _ACEOF
12213 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12214 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12215 ac_status=$?
12216 grep -v '^ *+' conftest.er1 >conftest.err
12217 rm -f conftest.er1
12218 cat conftest.err >&5
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); } >/dev/null; then
12221 if test -s conftest.err; then
12222 ac_cpp_err=$ac_c_preproc_warn_flag
12223 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12224 else
12225 ac_cpp_err=
12227 else
12228 ac_cpp_err=yes
12230 if test -z "$ac_cpp_err"; then
12231 ac_header_preproc=yes
12232 else
12233 echo "$as_me: failed program was:" >&5
12234 sed 's/^/| /' conftest.$ac_ext >&5
12236 ac_header_preproc=no
12238 rm -f conftest.err conftest.$ac_ext
12239 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12240 echo "${ECHO_T}$ac_header_preproc" >&6
12242 # So? What about this header?
12243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12244 yes:no: )
12245 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12246 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12248 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12249 ac_header_preproc=yes
12251 no:yes:* )
12252 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12253 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12254 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12255 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12256 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12257 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12258 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12259 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12262 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12263 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12265 cat <<\_ASBOX
12266 ## ------------------------------ ##
12267 ## Report this to admin@amule.org ##
12268 ## ------------------------------ ##
12269 _ASBOX
12271 sed "s/^/$as_me: WARNING: /" >&2
12273 esac
12274 echo "$as_me:$LINENO: checking for $ac_header" >&5
12275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12277 echo $ECHO_N "(cached) $ECHO_C" >&6
12278 else
12279 eval "$as_ac_Header=\$ac_header_preproc"
12281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12282 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12285 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12286 cat >>confdefs.h <<_ACEOF
12287 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12288 _ACEOF
12292 done
12295 for ac_func in getpagesize
12297 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12298 echo "$as_me:$LINENO: checking for $ac_func" >&5
12299 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12300 if eval "test \"\${$as_ac_var+set}\" = set"; then
12301 echo $ECHO_N "(cached) $ECHO_C" >&6
12302 else
12303 cat >conftest.$ac_ext <<_ACEOF
12304 /* confdefs.h. */
12305 _ACEOF
12306 cat confdefs.h >>conftest.$ac_ext
12307 cat >>conftest.$ac_ext <<_ACEOF
12308 /* end confdefs.h. */
12309 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12310 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12311 #define $ac_func innocuous_$ac_func
12313 /* System header to define __stub macros and hopefully few prototypes,
12314 which can conflict with char $ac_func (); below.
12315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12316 <limits.h> exists even on freestanding compilers. */
12318 #ifdef __STDC__
12319 # include <limits.h>
12320 #else
12321 # include <assert.h>
12322 #endif
12324 #undef $ac_func
12326 /* Override any gcc2 internal prototype to avoid an error. */
12327 #ifdef __cplusplus
12328 extern "C"
12330 #endif
12331 /* We use char because int might match the return type of a gcc2
12332 builtin and then its argument prototype would still apply. */
12333 char $ac_func ();
12334 /* The GNU C library defines this for functions which it implements
12335 to always fail with ENOSYS. Some functions are actually named
12336 something starting with __ and the normal name is an alias. */
12337 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12338 choke me
12339 #else
12340 char (*f) () = $ac_func;
12341 #endif
12342 #ifdef __cplusplus
12344 #endif
12347 main ()
12349 return f != $ac_func;
12351 return 0;
12353 _ACEOF
12354 rm -f conftest.$ac_objext conftest$ac_exeext
12355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12356 (eval $ac_link) 2>conftest.er1
12357 ac_status=$?
12358 grep -v '^ *+' conftest.er1 >conftest.err
12359 rm -f conftest.er1
12360 cat conftest.err >&5
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); } &&
12363 { ac_try='test -z "$ac_c_werror_flag"
12364 || test ! -s conftest.err'
12365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12366 (eval $ac_try) 2>&5
12367 ac_status=$?
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); }; } &&
12370 { ac_try='test -s conftest$ac_exeext'
12371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12372 (eval $ac_try) 2>&5
12373 ac_status=$?
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); }; }; then
12376 eval "$as_ac_var=yes"
12377 else
12378 echo "$as_me: failed program was:" >&5
12379 sed 's/^/| /' conftest.$ac_ext >&5
12381 eval "$as_ac_var=no"
12383 rm -f conftest.err conftest.$ac_objext \
12384 conftest$ac_exeext conftest.$ac_ext
12386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12387 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12388 if test `eval echo '${'$as_ac_var'}'` = yes; then
12389 cat >>confdefs.h <<_ACEOF
12390 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12391 _ACEOF
12394 done
12396 echo "$as_me:$LINENO: checking for working mmap" >&5
12397 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
12398 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12399 echo $ECHO_N "(cached) $ECHO_C" >&6
12400 else
12401 if test "$cross_compiling" = yes; then
12402 ac_cv_func_mmap_fixed_mapped=no
12403 else
12404 cat >conftest.$ac_ext <<_ACEOF
12405 /* confdefs.h. */
12406 _ACEOF
12407 cat confdefs.h >>conftest.$ac_ext
12408 cat >>conftest.$ac_ext <<_ACEOF
12409 /* end confdefs.h. */
12410 $ac_includes_default
12411 /* malloc might have been renamed as rpl_malloc. */
12412 #undef malloc
12414 /* Thanks to Mike Haertel and Jim Avera for this test.
12415 Here is a matrix of mmap possibilities:
12416 mmap private not fixed
12417 mmap private fixed at somewhere currently unmapped
12418 mmap private fixed at somewhere already mapped
12419 mmap shared not fixed
12420 mmap shared fixed at somewhere currently unmapped
12421 mmap shared fixed at somewhere already mapped
12422 For private mappings, we should verify that changes cannot be read()
12423 back from the file, nor mmap's back from the file at a different
12424 address. (There have been systems where private was not correctly
12425 implemented like the infamous i386 svr4.0, and systems where the
12426 VM page cache was not coherent with the file system buffer cache
12427 like early versions of FreeBSD and possibly contemporary NetBSD.)
12428 For shared mappings, we should conversely verify that changes get
12429 propagated back to all the places they're supposed to be.
12431 Grep wants private fixed already mapped.
12432 The main things grep needs to know about mmap are:
12433 * does it exist and is it safe to write into the mmap'd area
12434 * how to use it (BSD variants) */
12436 #include <fcntl.h>
12437 #include <sys/mman.h>
12439 #if !STDC_HEADERS && !HAVE_STDLIB_H
12440 char *malloc ();
12441 #endif
12443 /* This mess was copied from the GNU getpagesize.h. */
12444 #if !HAVE_GETPAGESIZE
12445 /* Assume that all systems that can run configure have sys/param.h. */
12446 # if !HAVE_SYS_PARAM_H
12447 # define HAVE_SYS_PARAM_H 1
12448 # endif
12450 # ifdef _SC_PAGESIZE
12451 # define getpagesize() sysconf(_SC_PAGESIZE)
12452 # else /* no _SC_PAGESIZE */
12453 # if HAVE_SYS_PARAM_H
12454 # include <sys/param.h>
12455 # ifdef EXEC_PAGESIZE
12456 # define getpagesize() EXEC_PAGESIZE
12457 # else /* no EXEC_PAGESIZE */
12458 # ifdef NBPG
12459 # define getpagesize() NBPG * CLSIZE
12460 # ifndef CLSIZE
12461 # define CLSIZE 1
12462 # endif /* no CLSIZE */
12463 # else /* no NBPG */
12464 # ifdef NBPC
12465 # define getpagesize() NBPC
12466 # else /* no NBPC */
12467 # ifdef PAGESIZE
12468 # define getpagesize() PAGESIZE
12469 # endif /* PAGESIZE */
12470 # endif /* no NBPC */
12471 # endif /* no NBPG */
12472 # endif /* no EXEC_PAGESIZE */
12473 # else /* no HAVE_SYS_PARAM_H */
12474 # define getpagesize() 8192 /* punt totally */
12475 # endif /* no HAVE_SYS_PARAM_H */
12476 # endif /* no _SC_PAGESIZE */
12478 #endif /* no HAVE_GETPAGESIZE */
12481 main ()
12483 char *data, *data2, *data3;
12484 int i, pagesize;
12485 int fd;
12487 pagesize = getpagesize ();
12489 /* First, make a file with some known garbage in it. */
12490 data = (char *) malloc (pagesize);
12491 if (!data)
12492 exit (1);
12493 for (i = 0; i < pagesize; ++i)
12494 *(data + i) = rand ();
12495 umask (0);
12496 fd = creat ("conftest.mmap", 0600);
12497 if (fd < 0)
12498 exit (1);
12499 if (write (fd, data, pagesize) != pagesize)
12500 exit (1);
12501 close (fd);
12503 /* Next, try to mmap the file at a fixed address which already has
12504 something else allocated at it. If we can, also make sure that
12505 we see the same garbage. */
12506 fd = open ("conftest.mmap", O_RDWR);
12507 if (fd < 0)
12508 exit (1);
12509 data2 = (char *) malloc (2 * pagesize);
12510 if (!data2)
12511 exit (1);
12512 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
12513 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12514 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12515 exit (1);
12516 for (i = 0; i < pagesize; ++i)
12517 if (*(data + i) != *(data2 + i))
12518 exit (1);
12520 /* Finally, make sure that changes to the mapped area do not
12521 percolate back to the file as seen by read(). (This is a bug on
12522 some variants of i386 svr4.0.) */
12523 for (i = 0; i < pagesize; ++i)
12524 *(data2 + i) = *(data2 + i) + 1;
12525 data3 = (char *) malloc (pagesize);
12526 if (!data3)
12527 exit (1);
12528 if (read (fd, data3, pagesize) != pagesize)
12529 exit (1);
12530 for (i = 0; i < pagesize; ++i)
12531 if (*(data + i) != *(data3 + i))
12532 exit (1);
12533 close (fd);
12534 exit (0);
12536 _ACEOF
12537 rm -f conftest$ac_exeext
12538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12539 (eval $ac_link) 2>&5
12540 ac_status=$?
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12544 (eval $ac_try) 2>&5
12545 ac_status=$?
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); }; }; then
12548 ac_cv_func_mmap_fixed_mapped=yes
12549 else
12550 echo "$as_me: program exited with status $ac_status" >&5
12551 echo "$as_me: failed program was:" >&5
12552 sed 's/^/| /' conftest.$ac_ext >&5
12554 ( exit $ac_status )
12555 ac_cv_func_mmap_fixed_mapped=no
12557 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12560 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12561 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12562 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12564 cat >>confdefs.h <<\_ACEOF
12565 #define HAVE_MMAP 1
12566 _ACEOF
12569 rm -f conftest.mmap
12573 for ac_header in sys/select.h sys/socket.h
12575 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12577 echo "$as_me:$LINENO: checking for $ac_header" >&5
12578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12580 echo $ECHO_N "(cached) $ECHO_C" >&6
12582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12583 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12584 else
12585 # Is the header compilable?
12586 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12587 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12588 cat >conftest.$ac_ext <<_ACEOF
12589 /* confdefs.h. */
12590 _ACEOF
12591 cat confdefs.h >>conftest.$ac_ext
12592 cat >>conftest.$ac_ext <<_ACEOF
12593 /* end confdefs.h. */
12594 $ac_includes_default
12595 #include <$ac_header>
12596 _ACEOF
12597 rm -f conftest.$ac_objext
12598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12599 (eval $ac_compile) 2>conftest.er1
12600 ac_status=$?
12601 grep -v '^ *+' conftest.er1 >conftest.err
12602 rm -f conftest.er1
12603 cat conftest.err >&5
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); } &&
12606 { ac_try='test -z "$ac_c_werror_flag"
12607 || test ! -s conftest.err'
12608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12609 (eval $ac_try) 2>&5
12610 ac_status=$?
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); }; } &&
12613 { ac_try='test -s conftest.$ac_objext'
12614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12615 (eval $ac_try) 2>&5
12616 ac_status=$?
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); }; }; then
12619 ac_header_compiler=yes
12620 else
12621 echo "$as_me: failed program was:" >&5
12622 sed 's/^/| /' conftest.$ac_ext >&5
12624 ac_header_compiler=no
12626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12627 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12628 echo "${ECHO_T}$ac_header_compiler" >&6
12630 # Is the header present?
12631 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12632 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12633 cat >conftest.$ac_ext <<_ACEOF
12634 /* confdefs.h. */
12635 _ACEOF
12636 cat confdefs.h >>conftest.$ac_ext
12637 cat >>conftest.$ac_ext <<_ACEOF
12638 /* end confdefs.h. */
12639 #include <$ac_header>
12640 _ACEOF
12641 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12642 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12643 ac_status=$?
12644 grep -v '^ *+' conftest.er1 >conftest.err
12645 rm -f conftest.er1
12646 cat conftest.err >&5
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); } >/dev/null; then
12649 if test -s conftest.err; then
12650 ac_cpp_err=$ac_c_preproc_warn_flag
12651 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12652 else
12653 ac_cpp_err=
12655 else
12656 ac_cpp_err=yes
12658 if test -z "$ac_cpp_err"; then
12659 ac_header_preproc=yes
12660 else
12661 echo "$as_me: failed program was:" >&5
12662 sed 's/^/| /' conftest.$ac_ext >&5
12664 ac_header_preproc=no
12666 rm -f conftest.err conftest.$ac_ext
12667 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12668 echo "${ECHO_T}$ac_header_preproc" >&6
12670 # So? What about this header?
12671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12672 yes:no: )
12673 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12674 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12676 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12677 ac_header_preproc=yes
12679 no:yes:* )
12680 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12681 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12682 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12683 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12684 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12685 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12686 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12687 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12689 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12690 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12691 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12693 cat <<\_ASBOX
12694 ## ------------------------------ ##
12695 ## Report this to admin@amule.org ##
12696 ## ------------------------------ ##
12697 _ASBOX
12699 sed "s/^/$as_me: WARNING: /" >&2
12701 esac
12702 echo "$as_me:$LINENO: checking for $ac_header" >&5
12703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12705 echo $ECHO_N "(cached) $ECHO_C" >&6
12706 else
12707 eval "$as_ac_Header=\$ac_header_preproc"
12709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12710 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12713 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12714 cat >>confdefs.h <<_ACEOF
12715 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12716 _ACEOF
12720 done
12722 echo "$as_me:$LINENO: checking types of arguments for select" >&5
12723 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
12724 if test "${ac_cv_func_select_args+set}" = set; then
12725 echo $ECHO_N "(cached) $ECHO_C" >&6
12726 else
12727 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
12728 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
12729 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
12730 cat >conftest.$ac_ext <<_ACEOF
12731 /* confdefs.h. */
12732 _ACEOF
12733 cat confdefs.h >>conftest.$ac_ext
12734 cat >>conftest.$ac_ext <<_ACEOF
12735 /* end confdefs.h. */
12736 $ac_includes_default
12737 #if HAVE_SYS_SELECT_H
12738 # include <sys/select.h>
12739 #endif
12740 #if HAVE_SYS_SOCKET_H
12741 # include <sys/socket.h>
12742 #endif
12745 main ()
12747 extern int select ($ac_arg1,
12748 $ac_arg234, $ac_arg234, $ac_arg234,
12749 $ac_arg5);
12751 return 0;
12753 _ACEOF
12754 rm -f conftest.$ac_objext
12755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12756 (eval $ac_compile) 2>conftest.er1
12757 ac_status=$?
12758 grep -v '^ *+' conftest.er1 >conftest.err
12759 rm -f conftest.er1
12760 cat conftest.err >&5
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); } &&
12763 { ac_try='test -z "$ac_c_werror_flag"
12764 || test ! -s conftest.err'
12765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12766 (eval $ac_try) 2>&5
12767 ac_status=$?
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); }; } &&
12770 { ac_try='test -s conftest.$ac_objext'
12771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12772 (eval $ac_try) 2>&5
12773 ac_status=$?
12774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775 (exit $ac_status); }; }; then
12776 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12777 else
12778 echo "$as_me: failed program was:" >&5
12779 sed 's/^/| /' conftest.$ac_ext >&5
12782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12783 done
12784 done
12785 done
12786 # Provide a safe default value.
12787 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
12790 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
12791 echo "${ECHO_T}$ac_cv_func_select_args" >&6
12792 ac_save_IFS=$IFS; IFS=','
12793 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12794 IFS=$ac_save_IFS
12795 shift
12797 cat >>confdefs.h <<_ACEOF
12798 #define SELECT_TYPE_ARG1 $1
12799 _ACEOF
12802 cat >>confdefs.h <<_ACEOF
12803 #define SELECT_TYPE_ARG234 ($2)
12804 _ACEOF
12807 cat >>confdefs.h <<_ACEOF
12808 #define SELECT_TYPE_ARG5 ($3)
12809 _ACEOF
12811 rm -f conftest*
12813 echo "$as_me:$LINENO: checking for function prototypes" >&5
12814 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
12815 if test "$ac_cv_prog_cc_stdc" != no; then
12816 echo "$as_me:$LINENO: result: yes" >&5
12817 echo "${ECHO_T}yes" >&6
12819 cat >>confdefs.h <<\_ACEOF
12820 #define PROTOTYPES 1
12821 _ACEOF
12824 cat >>confdefs.h <<\_ACEOF
12825 #define __PROTOTYPES 1
12826 _ACEOF
12828 else
12829 echo "$as_me:$LINENO: result: no" >&5
12830 echo "${ECHO_T}no" >&6
12833 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
12834 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
12835 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
12836 echo $ECHO_N "(cached) $ECHO_C" >&6
12837 else
12838 ac_cv_func_setvbuf_reversed=no
12839 cat >conftest.$ac_ext <<_ACEOF
12840 /* confdefs.h. */
12841 _ACEOF
12842 cat confdefs.h >>conftest.$ac_ext
12843 cat >>conftest.$ac_ext <<_ACEOF
12844 /* end confdefs.h. */
12845 #include <stdio.h>
12846 # if PROTOTYPES
12847 int (setvbuf) (FILE *, int, char *, size_t);
12848 # endif
12850 main ()
12852 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
12854 return 0;
12856 _ACEOF
12857 rm -f conftest.$ac_objext conftest$ac_exeext
12858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12859 (eval $ac_link) 2>conftest.er1
12860 ac_status=$?
12861 grep -v '^ *+' conftest.er1 >conftest.err
12862 rm -f conftest.er1
12863 cat conftest.err >&5
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); } &&
12866 { ac_try='test -z "$ac_c_werror_flag"
12867 || test ! -s conftest.err'
12868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12869 (eval $ac_try) 2>&5
12870 ac_status=$?
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); }; } &&
12873 { ac_try='test -s conftest$ac_exeext'
12874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12875 (eval $ac_try) 2>&5
12876 ac_status=$?
12877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878 (exit $ac_status); }; }; then
12879 cat >conftest.$ac_ext <<_ACEOF
12880 /* confdefs.h. */
12881 _ACEOF
12882 cat confdefs.h >>conftest.$ac_ext
12883 cat >>conftest.$ac_ext <<_ACEOF
12884 /* end confdefs.h. */
12885 #include <stdio.h>
12886 # if PROTOTYPES
12887 int (setvbuf) (FILE *, int, char *, size_t);
12888 # endif
12890 main ()
12892 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
12894 return 0;
12896 _ACEOF
12897 rm -f conftest.$ac_objext conftest$ac_exeext
12898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12899 (eval $ac_link) 2>conftest.er1
12900 ac_status=$?
12901 grep -v '^ *+' conftest.er1 >conftest.err
12902 rm -f conftest.er1
12903 cat conftest.err >&5
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); } &&
12906 { ac_try='test -z "$ac_c_werror_flag"
12907 || test ! -s conftest.err'
12908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12909 (eval $ac_try) 2>&5
12910 ac_status=$?
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); }; } &&
12913 { ac_try='test -s conftest$ac_exeext'
12914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12915 (eval $ac_try) 2>&5
12916 ac_status=$?
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); }; }; then
12919 # It compiles and links either way, so it must not be declared
12920 # with a prototype and most likely this is a K&R C compiler.
12921 # Try running it.
12922 if test "$cross_compiling" = yes; then
12923 : # Assume setvbuf is not reversed when cross-compiling.
12924 else
12925 cat >conftest.$ac_ext <<_ACEOF
12926 /* confdefs.h. */
12927 _ACEOF
12928 cat confdefs.h >>conftest.$ac_ext
12929 cat >>conftest.$ac_ext <<_ACEOF
12930 /* end confdefs.h. */
12931 #include <stdio.h>
12933 main ()
12935 /* This call has the arguments reversed.
12936 A reversed system may check and see that the address of buf
12937 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
12938 char buf;
12939 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
12940 exit (1);
12941 putchar ('\r');
12942 exit (0); /* Non-reversed systems SEGV here. */
12944 return 0;
12946 _ACEOF
12947 rm -f conftest$ac_exeext
12948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12949 (eval $ac_link) 2>&5
12950 ac_status=$?
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12954 (eval $ac_try) 2>&5
12955 ac_status=$?
12956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957 (exit $ac_status); }; }; then
12958 ac_cv_func_setvbuf_reversed=yes
12959 else
12960 echo "$as_me: program exited with status $ac_status" >&5
12961 echo "$as_me: failed program was:" >&5
12962 sed 's/^/| /' conftest.$ac_ext >&5
12964 ( exit $ac_status )
12965 rm -f core *.core
12967 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12969 ac_cv_func_setvbuf_reversed=yes
12970 else
12971 echo "$as_me: failed program was:" >&5
12972 sed 's/^/| /' conftest.$ac_ext >&5
12975 rm -f conftest.err conftest.$ac_objext \
12976 conftest$ac_exeext conftest.$ac_ext
12977 else
12978 echo "$as_me: failed program was:" >&5
12979 sed 's/^/| /' conftest.$ac_ext >&5
12982 rm -f conftest.err conftest.$ac_objext \
12983 conftest$ac_exeext conftest.$ac_ext
12985 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
12986 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
12987 if test $ac_cv_func_setvbuf_reversed = yes; then
12989 cat >>confdefs.h <<\_ACEOF
12990 #define SETVBUF_REVERSED 1
12991 _ACEOF
12995 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12996 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12997 if test "${ac_cv_type_signal+set}" = set; then
12998 echo $ECHO_N "(cached) $ECHO_C" >&6
12999 else
13000 cat >conftest.$ac_ext <<_ACEOF
13001 /* confdefs.h. */
13002 _ACEOF
13003 cat confdefs.h >>conftest.$ac_ext
13004 cat >>conftest.$ac_ext <<_ACEOF
13005 /* end confdefs.h. */
13006 #include <sys/types.h>
13007 #include <signal.h>
13008 #ifdef signal
13009 # undef signal
13010 #endif
13011 #ifdef __cplusplus
13012 extern "C" void (*signal (int, void (*)(int)))(int);
13013 #else
13014 void (*signal ()) ();
13015 #endif
13018 main ()
13020 int i;
13022 return 0;
13024 _ACEOF
13025 rm -f conftest.$ac_objext
13026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13027 (eval $ac_compile) 2>conftest.er1
13028 ac_status=$?
13029 grep -v '^ *+' conftest.er1 >conftest.err
13030 rm -f conftest.er1
13031 cat conftest.err >&5
13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033 (exit $ac_status); } &&
13034 { ac_try='test -z "$ac_c_werror_flag"
13035 || test ! -s conftest.err'
13036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13037 (eval $ac_try) 2>&5
13038 ac_status=$?
13039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); }; } &&
13041 { ac_try='test -s conftest.$ac_objext'
13042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13043 (eval $ac_try) 2>&5
13044 ac_status=$?
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); }; }; then
13047 ac_cv_type_signal=void
13048 else
13049 echo "$as_me: failed program was:" >&5
13050 sed 's/^/| /' conftest.$ac_ext >&5
13052 ac_cv_type_signal=int
13054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13056 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13057 echo "${ECHO_T}$ac_cv_type_signal" >&6
13059 cat >>confdefs.h <<_ACEOF
13060 #define RETSIGTYPE $ac_cv_type_signal
13061 _ACEOF
13064 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
13065 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
13066 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
13067 echo $ECHO_N "(cached) $ECHO_C" >&6
13068 else
13069 if test "$cross_compiling" = yes; then
13070 ac_cv_func_stat_empty_string_bug=yes
13071 else
13072 cat >conftest.$ac_ext <<_ACEOF
13073 /* confdefs.h. */
13074 _ACEOF
13075 cat confdefs.h >>conftest.$ac_ext
13076 cat >>conftest.$ac_ext <<_ACEOF
13077 /* end confdefs.h. */
13078 $ac_includes_default
13080 main ()
13082 struct stat sbuf;
13083 exit (stat ("", &sbuf) ? 1 : 0);
13085 return 0;
13087 _ACEOF
13088 rm -f conftest$ac_exeext
13089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13090 (eval $ac_link) 2>&5
13091 ac_status=$?
13092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13095 (eval $ac_try) 2>&5
13096 ac_status=$?
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); }; }; then
13099 ac_cv_func_stat_empty_string_bug=yes
13100 else
13101 echo "$as_me: program exited with status $ac_status" >&5
13102 echo "$as_me: failed program was:" >&5
13103 sed 's/^/| /' conftest.$ac_ext >&5
13105 ( exit $ac_status )
13106 ac_cv_func_stat_empty_string_bug=no
13108 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13111 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
13112 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
13113 if test $ac_cv_func_stat_empty_string_bug = yes; then
13114 case $LIBOBJS in
13115 "stat.$ac_objext" | \
13116 *" stat.$ac_objext" | \
13117 "stat.$ac_objext "* | \
13118 *" stat.$ac_objext "* ) ;;
13119 *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
13120 esac
13123 cat >>confdefs.h <<_ACEOF
13124 #define HAVE_STAT_EMPTY_STRING_BUG 1
13125 _ACEOF
13130 for ac_func in strftime
13132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13133 echo "$as_me:$LINENO: checking for $ac_func" >&5
13134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13135 if eval "test \"\${$as_ac_var+set}\" = set"; then
13136 echo $ECHO_N "(cached) $ECHO_C" >&6
13137 else
13138 cat >conftest.$ac_ext <<_ACEOF
13139 /* confdefs.h. */
13140 _ACEOF
13141 cat confdefs.h >>conftest.$ac_ext
13142 cat >>conftest.$ac_ext <<_ACEOF
13143 /* end confdefs.h. */
13144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13146 #define $ac_func innocuous_$ac_func
13148 /* System header to define __stub macros and hopefully few prototypes,
13149 which can conflict with char $ac_func (); below.
13150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13151 <limits.h> exists even on freestanding compilers. */
13153 #ifdef __STDC__
13154 # include <limits.h>
13155 #else
13156 # include <assert.h>
13157 #endif
13159 #undef $ac_func
13161 /* Override any gcc2 internal prototype to avoid an error. */
13162 #ifdef __cplusplus
13163 extern "C"
13165 #endif
13166 /* We use char because int might match the return type of a gcc2
13167 builtin and then its argument prototype would still apply. */
13168 char $ac_func ();
13169 /* The GNU C library defines this for functions which it implements
13170 to always fail with ENOSYS. Some functions are actually named
13171 something starting with __ and the normal name is an alias. */
13172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13173 choke me
13174 #else
13175 char (*f) () = $ac_func;
13176 #endif
13177 #ifdef __cplusplus
13179 #endif
13182 main ()
13184 return f != $ac_func;
13186 return 0;
13188 _ACEOF
13189 rm -f conftest.$ac_objext conftest$ac_exeext
13190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13191 (eval $ac_link) 2>conftest.er1
13192 ac_status=$?
13193 grep -v '^ *+' conftest.er1 >conftest.err
13194 rm -f conftest.er1
13195 cat conftest.err >&5
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); } &&
13198 { ac_try='test -z "$ac_c_werror_flag"
13199 || test ! -s conftest.err'
13200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13201 (eval $ac_try) 2>&5
13202 ac_status=$?
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); }; } &&
13205 { ac_try='test -s conftest$ac_exeext'
13206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13207 (eval $ac_try) 2>&5
13208 ac_status=$?
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); }; }; then
13211 eval "$as_ac_var=yes"
13212 else
13213 echo "$as_me: failed program was:" >&5
13214 sed 's/^/| /' conftest.$ac_ext >&5
13216 eval "$as_ac_var=no"
13218 rm -f conftest.err conftest.$ac_objext \
13219 conftest$ac_exeext conftest.$ac_ext
13221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13222 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13223 if test `eval echo '${'$as_ac_var'}'` = yes; then
13224 cat >>confdefs.h <<_ACEOF
13225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13226 _ACEOF
13228 else
13229 # strftime is in -lintl on SCO UNIX.
13230 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
13231 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
13232 if test "${ac_cv_lib_intl_strftime+set}" = set; then
13233 echo $ECHO_N "(cached) $ECHO_C" >&6
13234 else
13235 ac_check_lib_save_LIBS=$LIBS
13236 LIBS="-lintl $LIBS"
13237 cat >conftest.$ac_ext <<_ACEOF
13238 /* confdefs.h. */
13239 _ACEOF
13240 cat confdefs.h >>conftest.$ac_ext
13241 cat >>conftest.$ac_ext <<_ACEOF
13242 /* end confdefs.h. */
13244 /* Override any gcc2 internal prototype to avoid an error. */
13245 #ifdef __cplusplus
13246 extern "C"
13247 #endif
13248 /* We use char because int might match the return type of a gcc2
13249 builtin and then its argument prototype would still apply. */
13250 char strftime ();
13252 main ()
13254 strftime ();
13256 return 0;
13258 _ACEOF
13259 rm -f conftest.$ac_objext conftest$ac_exeext
13260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13261 (eval $ac_link) 2>conftest.er1
13262 ac_status=$?
13263 grep -v '^ *+' conftest.er1 >conftest.err
13264 rm -f conftest.er1
13265 cat conftest.err >&5
13266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 (exit $ac_status); } &&
13268 { ac_try='test -z "$ac_c_werror_flag"
13269 || test ! -s conftest.err'
13270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13271 (eval $ac_try) 2>&5
13272 ac_status=$?
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); }; } &&
13275 { ac_try='test -s conftest$ac_exeext'
13276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13277 (eval $ac_try) 2>&5
13278 ac_status=$?
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); }; }; then
13281 ac_cv_lib_intl_strftime=yes
13282 else
13283 echo "$as_me: failed program was:" >&5
13284 sed 's/^/| /' conftest.$ac_ext >&5
13286 ac_cv_lib_intl_strftime=no
13288 rm -f conftest.err conftest.$ac_objext \
13289 conftest$ac_exeext conftest.$ac_ext
13290 LIBS=$ac_check_lib_save_LIBS
13292 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
13293 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
13294 if test $ac_cv_lib_intl_strftime = yes; then
13295 cat >>confdefs.h <<\_ACEOF
13296 #define HAVE_STRFTIME 1
13297 _ACEOF
13299 LIBS="-lintl $LIBS"
13303 done
13305 echo "$as_me:$LINENO: checking for working strtod" >&5
13306 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
13307 if test "${ac_cv_func_strtod+set}" = set; then
13308 echo $ECHO_N "(cached) $ECHO_C" >&6
13309 else
13310 if test "$cross_compiling" = yes; then
13311 ac_cv_func_strtod=no
13312 else
13313 cat >conftest.$ac_ext <<_ACEOF
13314 /* confdefs.h. */
13315 _ACEOF
13316 cat confdefs.h >>conftest.$ac_ext
13317 cat >>conftest.$ac_ext <<_ACEOF
13318 /* end confdefs.h. */
13320 double strtod ();
13322 main()
13325 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
13326 char *string = " +69";
13327 char *term;
13328 double value;
13329 value = strtod (string, &term);
13330 if (value != 69 || term != (string + 4))
13331 exit (1);
13335 /* Under Solaris 2.4, strtod returns the wrong value for the
13336 terminating character under some conditions. */
13337 char *string = "NaN";
13338 char *term;
13339 strtod (string, &term);
13340 if (term != string && *(term - 1) == 0)
13341 exit (1);
13343 exit (0);
13346 _ACEOF
13347 rm -f conftest$ac_exeext
13348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13349 (eval $ac_link) 2>&5
13350 ac_status=$?
13351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13354 (eval $ac_try) 2>&5
13355 ac_status=$?
13356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357 (exit $ac_status); }; }; then
13358 ac_cv_func_strtod=yes
13359 else
13360 echo "$as_me: program exited with status $ac_status" >&5
13361 echo "$as_me: failed program was:" >&5
13362 sed 's/^/| /' conftest.$ac_ext >&5
13364 ( exit $ac_status )
13365 ac_cv_func_strtod=no
13367 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13370 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
13371 echo "${ECHO_T}$ac_cv_func_strtod" >&6
13372 if test $ac_cv_func_strtod = no; then
13373 case $LIBOBJS in
13374 "strtod.$ac_objext" | \
13375 *" strtod.$ac_objext" | \
13376 "strtod.$ac_objext "* | \
13377 *" strtod.$ac_objext "* ) ;;
13378 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;;
13379 esac
13381 echo "$as_me:$LINENO: checking for pow" >&5
13382 echo $ECHO_N "checking for pow... $ECHO_C" >&6
13383 if test "${ac_cv_func_pow+set}" = set; then
13384 echo $ECHO_N "(cached) $ECHO_C" >&6
13385 else
13386 cat >conftest.$ac_ext <<_ACEOF
13387 /* confdefs.h. */
13388 _ACEOF
13389 cat confdefs.h >>conftest.$ac_ext
13390 cat >>conftest.$ac_ext <<_ACEOF
13391 /* end confdefs.h. */
13392 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
13393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13394 #define pow innocuous_pow
13396 /* System header to define __stub macros and hopefully few prototypes,
13397 which can conflict with char pow (); below.
13398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13399 <limits.h> exists even on freestanding compilers. */
13401 #ifdef __STDC__
13402 # include <limits.h>
13403 #else
13404 # include <assert.h>
13405 #endif
13407 #undef pow
13409 /* Override any gcc2 internal prototype to avoid an error. */
13410 #ifdef __cplusplus
13411 extern "C"
13413 #endif
13414 /* We use char because int might match the return type of a gcc2
13415 builtin and then its argument prototype would still apply. */
13416 char pow ();
13417 /* The GNU C library defines this for functions which it implements
13418 to always fail with ENOSYS. Some functions are actually named
13419 something starting with __ and the normal name is an alias. */
13420 #if defined (__stub_pow) || defined (__stub___pow)
13421 choke me
13422 #else
13423 char (*f) () = pow;
13424 #endif
13425 #ifdef __cplusplus
13427 #endif
13430 main ()
13432 return f != pow;
13434 return 0;
13436 _ACEOF
13437 rm -f conftest.$ac_objext conftest$ac_exeext
13438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13439 (eval $ac_link) 2>conftest.er1
13440 ac_status=$?
13441 grep -v '^ *+' conftest.er1 >conftest.err
13442 rm -f conftest.er1
13443 cat conftest.err >&5
13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); } &&
13446 { ac_try='test -z "$ac_c_werror_flag"
13447 || test ! -s conftest.err'
13448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13449 (eval $ac_try) 2>&5
13450 ac_status=$?
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); }; } &&
13453 { ac_try='test -s conftest$ac_exeext'
13454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13455 (eval $ac_try) 2>&5
13456 ac_status=$?
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); }; }; then
13459 ac_cv_func_pow=yes
13460 else
13461 echo "$as_me: failed program was:" >&5
13462 sed 's/^/| /' conftest.$ac_ext >&5
13464 ac_cv_func_pow=no
13466 rm -f conftest.err conftest.$ac_objext \
13467 conftest$ac_exeext conftest.$ac_ext
13469 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
13470 echo "${ECHO_T}$ac_cv_func_pow" >&6
13472 if test $ac_cv_func_pow = no; then
13473 echo "$as_me:$LINENO: checking for pow in -lm" >&5
13474 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
13475 if test "${ac_cv_lib_m_pow+set}" = set; then
13476 echo $ECHO_N "(cached) $ECHO_C" >&6
13477 else
13478 ac_check_lib_save_LIBS=$LIBS
13479 LIBS="-lm $LIBS"
13480 cat >conftest.$ac_ext <<_ACEOF
13481 /* confdefs.h. */
13482 _ACEOF
13483 cat confdefs.h >>conftest.$ac_ext
13484 cat >>conftest.$ac_ext <<_ACEOF
13485 /* end confdefs.h. */
13487 /* Override any gcc2 internal prototype to avoid an error. */
13488 #ifdef __cplusplus
13489 extern "C"
13490 #endif
13491 /* We use char because int might match the return type of a gcc2
13492 builtin and then its argument prototype would still apply. */
13493 char pow ();
13495 main ()
13497 pow ();
13499 return 0;
13501 _ACEOF
13502 rm -f conftest.$ac_objext conftest$ac_exeext
13503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13504 (eval $ac_link) 2>conftest.er1
13505 ac_status=$?
13506 grep -v '^ *+' conftest.er1 >conftest.err
13507 rm -f conftest.er1
13508 cat conftest.err >&5
13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); } &&
13511 { ac_try='test -z "$ac_c_werror_flag"
13512 || test ! -s conftest.err'
13513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13514 (eval $ac_try) 2>&5
13515 ac_status=$?
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); }; } &&
13518 { ac_try='test -s conftest$ac_exeext'
13519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13520 (eval $ac_try) 2>&5
13521 ac_status=$?
13522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523 (exit $ac_status); }; }; then
13524 ac_cv_lib_m_pow=yes
13525 else
13526 echo "$as_me: failed program was:" >&5
13527 sed 's/^/| /' conftest.$ac_ext >&5
13529 ac_cv_lib_m_pow=no
13531 rm -f conftest.err conftest.$ac_objext \
13532 conftest$ac_exeext conftest.$ac_ext
13533 LIBS=$ac_check_lib_save_LIBS
13535 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
13536 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
13537 if test $ac_cv_lib_m_pow = yes; then
13538 POW_LIB=-lm
13539 else
13540 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
13541 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
13549 for ac_func in vprintf
13551 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13552 echo "$as_me:$LINENO: checking for $ac_func" >&5
13553 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13554 if eval "test \"\${$as_ac_var+set}\" = set"; then
13555 echo $ECHO_N "(cached) $ECHO_C" >&6
13556 else
13557 cat >conftest.$ac_ext <<_ACEOF
13558 /* confdefs.h. */
13559 _ACEOF
13560 cat confdefs.h >>conftest.$ac_ext
13561 cat >>conftest.$ac_ext <<_ACEOF
13562 /* end confdefs.h. */
13563 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13565 #define $ac_func innocuous_$ac_func
13567 /* System header to define __stub macros and hopefully few prototypes,
13568 which can conflict with char $ac_func (); below.
13569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13570 <limits.h> exists even on freestanding compilers. */
13572 #ifdef __STDC__
13573 # include <limits.h>
13574 #else
13575 # include <assert.h>
13576 #endif
13578 #undef $ac_func
13580 /* Override any gcc2 internal prototype to avoid an error. */
13581 #ifdef __cplusplus
13582 extern "C"
13584 #endif
13585 /* We use char because int might match the return type of a gcc2
13586 builtin and then its argument prototype would still apply. */
13587 char $ac_func ();
13588 /* The GNU C library defines this for functions which it implements
13589 to always fail with ENOSYS. Some functions are actually named
13590 something starting with __ and the normal name is an alias. */
13591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13592 choke me
13593 #else
13594 char (*f) () = $ac_func;
13595 #endif
13596 #ifdef __cplusplus
13598 #endif
13601 main ()
13603 return f != $ac_func;
13605 return 0;
13607 _ACEOF
13608 rm -f conftest.$ac_objext conftest$ac_exeext
13609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13610 (eval $ac_link) 2>conftest.er1
13611 ac_status=$?
13612 grep -v '^ *+' conftest.er1 >conftest.err
13613 rm -f conftest.er1
13614 cat conftest.err >&5
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); } &&
13617 { ac_try='test -z "$ac_c_werror_flag"
13618 || test ! -s conftest.err'
13619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13620 (eval $ac_try) 2>&5
13621 ac_status=$?
13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); }; } &&
13624 { ac_try='test -s conftest$ac_exeext'
13625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13626 (eval $ac_try) 2>&5
13627 ac_status=$?
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); }; }; then
13630 eval "$as_ac_var=yes"
13631 else
13632 echo "$as_me: failed program was:" >&5
13633 sed 's/^/| /' conftest.$ac_ext >&5
13635 eval "$as_ac_var=no"
13637 rm -f conftest.err conftest.$ac_objext \
13638 conftest$ac_exeext conftest.$ac_ext
13640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13641 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13642 if test `eval echo '${'$as_ac_var'}'` = yes; then
13643 cat >>confdefs.h <<_ACEOF
13644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13645 _ACEOF
13647 echo "$as_me:$LINENO: checking for _doprnt" >&5
13648 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
13649 if test "${ac_cv_func__doprnt+set}" = set; then
13650 echo $ECHO_N "(cached) $ECHO_C" >&6
13651 else
13652 cat >conftest.$ac_ext <<_ACEOF
13653 /* confdefs.h. */
13654 _ACEOF
13655 cat confdefs.h >>conftest.$ac_ext
13656 cat >>conftest.$ac_ext <<_ACEOF
13657 /* end confdefs.h. */
13658 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
13659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13660 #define _doprnt innocuous__doprnt
13662 /* System header to define __stub macros and hopefully few prototypes,
13663 which can conflict with char _doprnt (); below.
13664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13665 <limits.h> exists even on freestanding compilers. */
13667 #ifdef __STDC__
13668 # include <limits.h>
13669 #else
13670 # include <assert.h>
13671 #endif
13673 #undef _doprnt
13675 /* Override any gcc2 internal prototype to avoid an error. */
13676 #ifdef __cplusplus
13677 extern "C"
13679 #endif
13680 /* We use char because int might match the return type of a gcc2
13681 builtin and then its argument prototype would still apply. */
13682 char _doprnt ();
13683 /* The GNU C library defines this for functions which it implements
13684 to always fail with ENOSYS. Some functions are actually named
13685 something starting with __ and the normal name is an alias. */
13686 #if defined (__stub__doprnt) || defined (__stub____doprnt)
13687 choke me
13688 #else
13689 char (*f) () = _doprnt;
13690 #endif
13691 #ifdef __cplusplus
13693 #endif
13696 main ()
13698 return f != _doprnt;
13700 return 0;
13702 _ACEOF
13703 rm -f conftest.$ac_objext conftest$ac_exeext
13704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13705 (eval $ac_link) 2>conftest.er1
13706 ac_status=$?
13707 grep -v '^ *+' conftest.er1 >conftest.err
13708 rm -f conftest.er1
13709 cat conftest.err >&5
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); } &&
13712 { ac_try='test -z "$ac_c_werror_flag"
13713 || test ! -s conftest.err'
13714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13715 (eval $ac_try) 2>&5
13716 ac_status=$?
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); }; } &&
13719 { ac_try='test -s conftest$ac_exeext'
13720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13721 (eval $ac_try) 2>&5
13722 ac_status=$?
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); }; }; then
13725 ac_cv_func__doprnt=yes
13726 else
13727 echo "$as_me: failed program was:" >&5
13728 sed 's/^/| /' conftest.$ac_ext >&5
13730 ac_cv_func__doprnt=no
13732 rm -f conftest.err conftest.$ac_objext \
13733 conftest$ac_exeext conftest.$ac_ext
13735 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13736 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
13737 if test $ac_cv_func__doprnt = yes; then
13739 cat >>confdefs.h <<\_ACEOF
13740 #define HAVE_DOPRNT 1
13741 _ACEOF
13746 done
13749 if test $cross_compiling = yes -a $gnumalloc = yes ; then
13750 { echo "$as_me:$LINENO: WARNING:
13751 configure cannot check whether malloc() and realloc() are GNU libc
13752 compatible. You have to be ABSOLUTELY sure that they are, otherwise
13753 run configure with the --without-gnu-malloc switch." >&5
13754 echo "$as_me: WARNING:
13755 configure cannot check whether malloc() and realloc() are GNU libc
13756 compatible. You have to be ABSOLUTELY sure that they are, otherwise
13757 run configure with the --without-gnu-malloc switch." >&2;}
13758 ac_cv_func_malloc_0_nonnull=yes
13759 ac_cv_func_realloc_0_nonnull=yes
13762 for ac_header in stdlib.h
13764 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13766 echo "$as_me:$LINENO: checking for $ac_header" >&5
13767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13769 echo $ECHO_N "(cached) $ECHO_C" >&6
13771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13772 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13773 else
13774 # Is the header compilable?
13775 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13776 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13777 cat >conftest.$ac_ext <<_ACEOF
13778 /* confdefs.h. */
13779 _ACEOF
13780 cat confdefs.h >>conftest.$ac_ext
13781 cat >>conftest.$ac_ext <<_ACEOF
13782 /* end confdefs.h. */
13783 $ac_includes_default
13784 #include <$ac_header>
13785 _ACEOF
13786 rm -f conftest.$ac_objext
13787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13788 (eval $ac_compile) 2>conftest.er1
13789 ac_status=$?
13790 grep -v '^ *+' conftest.er1 >conftest.err
13791 rm -f conftest.er1
13792 cat conftest.err >&5
13793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794 (exit $ac_status); } &&
13795 { ac_try='test -z "$ac_c_werror_flag"
13796 || test ! -s conftest.err'
13797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13798 (eval $ac_try) 2>&5
13799 ac_status=$?
13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801 (exit $ac_status); }; } &&
13802 { ac_try='test -s conftest.$ac_objext'
13803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13804 (eval $ac_try) 2>&5
13805 ac_status=$?
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); }; }; then
13808 ac_header_compiler=yes
13809 else
13810 echo "$as_me: failed program was:" >&5
13811 sed 's/^/| /' conftest.$ac_ext >&5
13813 ac_header_compiler=no
13815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13816 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13817 echo "${ECHO_T}$ac_header_compiler" >&6
13819 # Is the header present?
13820 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13821 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13822 cat >conftest.$ac_ext <<_ACEOF
13823 /* confdefs.h. */
13824 _ACEOF
13825 cat confdefs.h >>conftest.$ac_ext
13826 cat >>conftest.$ac_ext <<_ACEOF
13827 /* end confdefs.h. */
13828 #include <$ac_header>
13829 _ACEOF
13830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13832 ac_status=$?
13833 grep -v '^ *+' conftest.er1 >conftest.err
13834 rm -f conftest.er1
13835 cat conftest.err >&5
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); } >/dev/null; then
13838 if test -s conftest.err; then
13839 ac_cpp_err=$ac_c_preproc_warn_flag
13840 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13841 else
13842 ac_cpp_err=
13844 else
13845 ac_cpp_err=yes
13847 if test -z "$ac_cpp_err"; then
13848 ac_header_preproc=yes
13849 else
13850 echo "$as_me: failed program was:" >&5
13851 sed 's/^/| /' conftest.$ac_ext >&5
13853 ac_header_preproc=no
13855 rm -f conftest.err conftest.$ac_ext
13856 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13857 echo "${ECHO_T}$ac_header_preproc" >&6
13859 # So? What about this header?
13860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13861 yes:no: )
13862 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13863 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13865 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13866 ac_header_preproc=yes
13868 no:yes:* )
13869 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13870 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13871 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13872 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13873 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13874 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13875 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13876 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13879 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13880 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13882 cat <<\_ASBOX
13883 ## ------------------------------ ##
13884 ## Report this to admin@amule.org ##
13885 ## ------------------------------ ##
13886 _ASBOX
13888 sed "s/^/$as_me: WARNING: /" >&2
13890 esac
13891 echo "$as_me:$LINENO: checking for $ac_header" >&5
13892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13894 echo $ECHO_N "(cached) $ECHO_C" >&6
13895 else
13896 eval "$as_ac_Header=\$ac_header_preproc"
13898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13899 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13903 cat >>confdefs.h <<_ACEOF
13904 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13905 _ACEOF
13909 done
13911 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
13912 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
13913 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
13914 echo $ECHO_N "(cached) $ECHO_C" >&6
13915 else
13916 if test "$cross_compiling" = yes; then
13917 ac_cv_func_malloc_0_nonnull=no
13918 else
13919 cat >conftest.$ac_ext <<_ACEOF
13920 /* confdefs.h. */
13921 _ACEOF
13922 cat confdefs.h >>conftest.$ac_ext
13923 cat >>conftest.$ac_ext <<_ACEOF
13924 /* end confdefs.h. */
13925 #if STDC_HEADERS || HAVE_STDLIB_H
13926 # include <stdlib.h>
13927 #else
13928 char *malloc ();
13929 #endif
13932 main ()
13934 exit (malloc (0) ? 0 : 1);
13936 return 0;
13938 _ACEOF
13939 rm -f conftest$ac_exeext
13940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13941 (eval $ac_link) 2>&5
13942 ac_status=$?
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13946 (eval $ac_try) 2>&5
13947 ac_status=$?
13948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); }; }; then
13950 ac_cv_func_malloc_0_nonnull=yes
13951 else
13952 echo "$as_me: program exited with status $ac_status" >&5
13953 echo "$as_me: failed program was:" >&5
13954 sed 's/^/| /' conftest.$ac_ext >&5
13956 ( exit $ac_status )
13957 ac_cv_func_malloc_0_nonnull=no
13959 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13962 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
13963 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
13964 if test $ac_cv_func_malloc_0_nonnull = yes; then
13966 cat >>confdefs.h <<\_ACEOF
13967 #define HAVE_MALLOC 1
13968 _ACEOF
13970 else
13971 cat >>confdefs.h <<\_ACEOF
13972 #define HAVE_MALLOC 0
13973 _ACEOF
13975 case $LIBOBJS in
13976 "malloc.$ac_objext" | \
13977 *" malloc.$ac_objext" | \
13978 "malloc.$ac_objext "* | \
13979 *" malloc.$ac_objext "* ) ;;
13980 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
13981 esac
13984 cat >>confdefs.h <<\_ACEOF
13985 #define malloc rpl_malloc
13986 _ACEOF
13993 for ac_header in stdlib.h
13995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13997 echo "$as_me:$LINENO: checking for $ac_header" >&5
13998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14000 echo $ECHO_N "(cached) $ECHO_C" >&6
14002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14003 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14004 else
14005 # Is the header compilable?
14006 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14007 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14008 cat >conftest.$ac_ext <<_ACEOF
14009 /* confdefs.h. */
14010 _ACEOF
14011 cat confdefs.h >>conftest.$ac_ext
14012 cat >>conftest.$ac_ext <<_ACEOF
14013 /* end confdefs.h. */
14014 $ac_includes_default
14015 #include <$ac_header>
14016 _ACEOF
14017 rm -f conftest.$ac_objext
14018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14019 (eval $ac_compile) 2>conftest.er1
14020 ac_status=$?
14021 grep -v '^ *+' conftest.er1 >conftest.err
14022 rm -f conftest.er1
14023 cat conftest.err >&5
14024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025 (exit $ac_status); } &&
14026 { ac_try='test -z "$ac_c_werror_flag"
14027 || test ! -s conftest.err'
14028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14029 (eval $ac_try) 2>&5
14030 ac_status=$?
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); }; } &&
14033 { ac_try='test -s conftest.$ac_objext'
14034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14035 (eval $ac_try) 2>&5
14036 ac_status=$?
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); }; }; then
14039 ac_header_compiler=yes
14040 else
14041 echo "$as_me: failed program was:" >&5
14042 sed 's/^/| /' conftest.$ac_ext >&5
14044 ac_header_compiler=no
14046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14047 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14048 echo "${ECHO_T}$ac_header_compiler" >&6
14050 # Is the header present?
14051 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14052 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14053 cat >conftest.$ac_ext <<_ACEOF
14054 /* confdefs.h. */
14055 _ACEOF
14056 cat confdefs.h >>conftest.$ac_ext
14057 cat >>conftest.$ac_ext <<_ACEOF
14058 /* end confdefs.h. */
14059 #include <$ac_header>
14060 _ACEOF
14061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14063 ac_status=$?
14064 grep -v '^ *+' conftest.er1 >conftest.err
14065 rm -f conftest.er1
14066 cat conftest.err >&5
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); } >/dev/null; then
14069 if test -s conftest.err; then
14070 ac_cpp_err=$ac_c_preproc_warn_flag
14071 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14072 else
14073 ac_cpp_err=
14075 else
14076 ac_cpp_err=yes
14078 if test -z "$ac_cpp_err"; then
14079 ac_header_preproc=yes
14080 else
14081 echo "$as_me: failed program was:" >&5
14082 sed 's/^/| /' conftest.$ac_ext >&5
14084 ac_header_preproc=no
14086 rm -f conftest.err conftest.$ac_ext
14087 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14088 echo "${ECHO_T}$ac_header_preproc" >&6
14090 # So? What about this header?
14091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14092 yes:no: )
14093 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14094 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14096 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14097 ac_header_preproc=yes
14099 no:yes:* )
14100 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14101 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14102 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14103 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14104 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14105 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14106 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14107 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14109 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14110 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14111 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14113 cat <<\_ASBOX
14114 ## ------------------------------ ##
14115 ## Report this to admin@amule.org ##
14116 ## ------------------------------ ##
14117 _ASBOX
14119 sed "s/^/$as_me: WARNING: /" >&2
14121 esac
14122 echo "$as_me:$LINENO: checking for $ac_header" >&5
14123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14125 echo $ECHO_N "(cached) $ECHO_C" >&6
14126 else
14127 eval "$as_ac_Header=\$ac_header_preproc"
14129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14130 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14133 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14134 cat >>confdefs.h <<_ACEOF
14135 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14136 _ACEOF
14140 done
14142 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
14143 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
14144 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
14145 echo $ECHO_N "(cached) $ECHO_C" >&6
14146 else
14147 if test "$cross_compiling" = yes; then
14148 ac_cv_func_realloc_0_nonnull=no
14149 else
14150 cat >conftest.$ac_ext <<_ACEOF
14151 /* confdefs.h. */
14152 _ACEOF
14153 cat confdefs.h >>conftest.$ac_ext
14154 cat >>conftest.$ac_ext <<_ACEOF
14155 /* end confdefs.h. */
14156 #if STDC_HEADERS || HAVE_STDLIB_H
14157 # include <stdlib.h>
14158 #else
14159 char *realloc ();
14160 #endif
14163 main ()
14165 exit (realloc (0, 0) ? 0 : 1);
14167 return 0;
14169 _ACEOF
14170 rm -f conftest$ac_exeext
14171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14172 (eval $ac_link) 2>&5
14173 ac_status=$?
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14177 (eval $ac_try) 2>&5
14178 ac_status=$?
14179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180 (exit $ac_status); }; }; then
14181 ac_cv_func_realloc_0_nonnull=yes
14182 else
14183 echo "$as_me: program exited with status $ac_status" >&5
14184 echo "$as_me: failed program was:" >&5
14185 sed 's/^/| /' conftest.$ac_ext >&5
14187 ( exit $ac_status )
14188 ac_cv_func_realloc_0_nonnull=no
14190 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14193 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
14194 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
14195 if test $ac_cv_func_realloc_0_nonnull = yes; then
14197 cat >>confdefs.h <<\_ACEOF
14198 #define HAVE_REALLOC 1
14199 _ACEOF
14201 else
14202 cat >>confdefs.h <<\_ACEOF
14203 #define HAVE_REALLOC 0
14204 _ACEOF
14206 case $LIBOBJS in
14207 "realloc.$ac_objext" | \
14208 *" realloc.$ac_objext" | \
14209 "realloc.$ac_objext "* | \
14210 *" realloc.$ac_objext "* ) ;;
14211 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
14212 esac
14215 cat >>confdefs.h <<\_ACEOF
14216 #define realloc rpl_realloc
14217 _ACEOF
14258 for ac_func in __argz_count __argz_next __argz_stringify endpwent floor ftruncate getcwd gethostbyaddr gethostbyname gethostname getmntent getmntinfo 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
14260 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14261 echo "$as_me:$LINENO: checking for $ac_func" >&5
14262 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14263 if eval "test \"\${$as_ac_var+set}\" = set"; then
14264 echo $ECHO_N "(cached) $ECHO_C" >&6
14265 else
14266 cat >conftest.$ac_ext <<_ACEOF
14267 /* confdefs.h. */
14268 _ACEOF
14269 cat confdefs.h >>conftest.$ac_ext
14270 cat >>conftest.$ac_ext <<_ACEOF
14271 /* end confdefs.h. */
14272 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14274 #define $ac_func innocuous_$ac_func
14276 /* System header to define __stub macros and hopefully few prototypes,
14277 which can conflict with char $ac_func (); below.
14278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14279 <limits.h> exists even on freestanding compilers. */
14281 #ifdef __STDC__
14282 # include <limits.h>
14283 #else
14284 # include <assert.h>
14285 #endif
14287 #undef $ac_func
14289 /* Override any gcc2 internal prototype to avoid an error. */
14290 #ifdef __cplusplus
14291 extern "C"
14293 #endif
14294 /* We use char because int might match the return type of a gcc2
14295 builtin and then its argument prototype would still apply. */
14296 char $ac_func ();
14297 /* The GNU C library defines this for functions which it implements
14298 to always fail with ENOSYS. Some functions are actually named
14299 something starting with __ and the normal name is an alias. */
14300 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14301 choke me
14302 #else
14303 char (*f) () = $ac_func;
14304 #endif
14305 #ifdef __cplusplus
14307 #endif
14310 main ()
14312 return f != $ac_func;
14314 return 0;
14316 _ACEOF
14317 rm -f conftest.$ac_objext conftest$ac_exeext
14318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14319 (eval $ac_link) 2>conftest.er1
14320 ac_status=$?
14321 grep -v '^ *+' conftest.er1 >conftest.err
14322 rm -f conftest.er1
14323 cat conftest.err >&5
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); } &&
14326 { ac_try='test -z "$ac_c_werror_flag"
14327 || test ! -s conftest.err'
14328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14329 (eval $ac_try) 2>&5
14330 ac_status=$?
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); }; } &&
14333 { ac_try='test -s conftest$ac_exeext'
14334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14335 (eval $ac_try) 2>&5
14336 ac_status=$?
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); }; }; then
14339 eval "$as_ac_var=yes"
14340 else
14341 echo "$as_me: failed program was:" >&5
14342 sed 's/^/| /' conftest.$ac_ext >&5
14344 eval "$as_ac_var=no"
14346 rm -f conftest.err conftest.$ac_objext \
14347 conftest$ac_exeext conftest.$ac_ext
14349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14350 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14351 if test `eval echo '${'$as_ac_var'}'` = yes; then
14352 cat >>confdefs.h <<_ACEOF
14353 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14354 _ACEOF
14357 done
14359 #-------------------------------------------------------------------------------
14360 # End of autoscan stuff
14361 #-------------------------------------------------------------------------------
14366 for ac_func in mkdir getrlimit setrlimit
14368 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14369 echo "$as_me:$LINENO: checking for $ac_func" >&5
14370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14371 if eval "test \"\${$as_ac_var+set}\" = set"; then
14372 echo $ECHO_N "(cached) $ECHO_C" >&6
14373 else
14374 cat >conftest.$ac_ext <<_ACEOF
14375 /* confdefs.h. */
14376 _ACEOF
14377 cat confdefs.h >>conftest.$ac_ext
14378 cat >>conftest.$ac_ext <<_ACEOF
14379 /* end confdefs.h. */
14380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14382 #define $ac_func innocuous_$ac_func
14384 /* System header to define __stub macros and hopefully few prototypes,
14385 which can conflict with char $ac_func (); below.
14386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14387 <limits.h> exists even on freestanding compilers. */
14389 #ifdef __STDC__
14390 # include <limits.h>
14391 #else
14392 # include <assert.h>
14393 #endif
14395 #undef $ac_func
14397 /* Override any gcc2 internal prototype to avoid an error. */
14398 #ifdef __cplusplus
14399 extern "C"
14401 #endif
14402 /* We use char because int might match the return type of a gcc2
14403 builtin and then its argument prototype would still apply. */
14404 char $ac_func ();
14405 /* The GNU C library defines this for functions which it implements
14406 to always fail with ENOSYS. Some functions are actually named
14407 something starting with __ and the normal name is an alias. */
14408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14409 choke me
14410 #else
14411 char (*f) () = $ac_func;
14412 #endif
14413 #ifdef __cplusplus
14415 #endif
14418 main ()
14420 return f != $ac_func;
14422 return 0;
14424 _ACEOF
14425 rm -f conftest.$ac_objext conftest$ac_exeext
14426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14427 (eval $ac_link) 2>conftest.er1
14428 ac_status=$?
14429 grep -v '^ *+' conftest.er1 >conftest.err
14430 rm -f conftest.er1
14431 cat conftest.err >&5
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); } &&
14434 { ac_try='test -z "$ac_c_werror_flag"
14435 || test ! -s conftest.err'
14436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14437 (eval $ac_try) 2>&5
14438 ac_status=$?
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); }; } &&
14441 { ac_try='test -s conftest$ac_exeext'
14442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14443 (eval $ac_try) 2>&5
14444 ac_status=$?
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); }; }; then
14447 eval "$as_ac_var=yes"
14448 else
14449 echo "$as_me: failed program was:" >&5
14450 sed 's/^/| /' conftest.$ac_ext >&5
14452 eval "$as_ac_var=no"
14454 rm -f conftest.err conftest.$ac_objext \
14455 conftest$ac_exeext conftest.$ac_ext
14457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14458 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14459 if test `eval echo '${'$as_ac_var'}'` = yes; then
14460 cat >>confdefs.h <<_ACEOF
14461 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14462 _ACEOF
14465 done
14468 tmp_CFLAGS="$CFLAGS"
14469 CFLAGS="-D_XOPEN_SOURCE=600 $CFLAGS"
14470 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
14471 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
14472 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
14473 echo $ECHO_N "(cached) $ECHO_C" >&6
14474 else
14475 cat >conftest.$ac_ext <<_ACEOF
14476 /* confdefs.h. */
14477 _ACEOF
14478 cat confdefs.h >>conftest.$ac_ext
14479 cat >>conftest.$ac_ext <<_ACEOF
14480 /* end confdefs.h. */
14481 $ac_includes_default
14483 main ()
14485 #ifndef strerror_r
14486 char *p = (char *) strerror_r;
14487 #endif
14490 return 0;
14492 _ACEOF
14493 rm -f conftest.$ac_objext
14494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14495 (eval $ac_compile) 2>conftest.er1
14496 ac_status=$?
14497 grep -v '^ *+' conftest.er1 >conftest.err
14498 rm -f conftest.er1
14499 cat conftest.err >&5
14500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501 (exit $ac_status); } &&
14502 { ac_try='test -z "$ac_c_werror_flag"
14503 || test ! -s conftest.err'
14504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14505 (eval $ac_try) 2>&5
14506 ac_status=$?
14507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508 (exit $ac_status); }; } &&
14509 { ac_try='test -s conftest.$ac_objext'
14510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14511 (eval $ac_try) 2>&5
14512 ac_status=$?
14513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514 (exit $ac_status); }; }; then
14515 ac_cv_have_decl_strerror_r=yes
14516 else
14517 echo "$as_me: failed program was:" >&5
14518 sed 's/^/| /' conftest.$ac_ext >&5
14520 ac_cv_have_decl_strerror_r=no
14522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14524 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
14525 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
14526 if test $ac_cv_have_decl_strerror_r = yes; then
14528 cat >>confdefs.h <<_ACEOF
14529 #define HAVE_DECL_STRERROR_R 1
14530 _ACEOF
14533 else
14534 cat >>confdefs.h <<_ACEOF
14535 #define HAVE_DECL_STRERROR_R 0
14536 _ACEOF
14543 for ac_func in strerror_r
14545 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14546 echo "$as_me:$LINENO: checking for $ac_func" >&5
14547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14548 if eval "test \"\${$as_ac_var+set}\" = set"; then
14549 echo $ECHO_N "(cached) $ECHO_C" >&6
14550 else
14551 cat >conftest.$ac_ext <<_ACEOF
14552 /* confdefs.h. */
14553 _ACEOF
14554 cat confdefs.h >>conftest.$ac_ext
14555 cat >>conftest.$ac_ext <<_ACEOF
14556 /* end confdefs.h. */
14557 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14559 #define $ac_func innocuous_$ac_func
14561 /* System header to define __stub macros and hopefully few prototypes,
14562 which can conflict with char $ac_func (); below.
14563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14564 <limits.h> exists even on freestanding compilers. */
14566 #ifdef __STDC__
14567 # include <limits.h>
14568 #else
14569 # include <assert.h>
14570 #endif
14572 #undef $ac_func
14574 /* Override any gcc2 internal prototype to avoid an error. */
14575 #ifdef __cplusplus
14576 extern "C"
14578 #endif
14579 /* We use char because int might match the return type of a gcc2
14580 builtin and then its argument prototype would still apply. */
14581 char $ac_func ();
14582 /* The GNU C library defines this for functions which it implements
14583 to always fail with ENOSYS. Some functions are actually named
14584 something starting with __ and the normal name is an alias. */
14585 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14586 choke me
14587 #else
14588 char (*f) () = $ac_func;
14589 #endif
14590 #ifdef __cplusplus
14592 #endif
14595 main ()
14597 return f != $ac_func;
14599 return 0;
14601 _ACEOF
14602 rm -f conftest.$ac_objext conftest$ac_exeext
14603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14604 (eval $ac_link) 2>conftest.er1
14605 ac_status=$?
14606 grep -v '^ *+' conftest.er1 >conftest.err
14607 rm -f conftest.er1
14608 cat conftest.err >&5
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); } &&
14611 { ac_try='test -z "$ac_c_werror_flag"
14612 || test ! -s conftest.err'
14613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14614 (eval $ac_try) 2>&5
14615 ac_status=$?
14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); }; } &&
14618 { ac_try='test -s conftest$ac_exeext'
14619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14620 (eval $ac_try) 2>&5
14621 ac_status=$?
14622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623 (exit $ac_status); }; }; then
14624 eval "$as_ac_var=yes"
14625 else
14626 echo "$as_me: failed program was:" >&5
14627 sed 's/^/| /' conftest.$ac_ext >&5
14629 eval "$as_ac_var=no"
14631 rm -f conftest.err conftest.$ac_objext \
14632 conftest$ac_exeext conftest.$ac_ext
14634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14635 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14636 if test `eval echo '${'$as_ac_var'}'` = yes; then
14637 cat >>confdefs.h <<_ACEOF
14638 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14639 _ACEOF
14642 done
14644 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
14645 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
14646 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
14647 echo $ECHO_N "(cached) $ECHO_C" >&6
14648 else
14650 ac_cv_func_strerror_r_char_p=no
14651 if test $ac_cv_have_decl_strerror_r = yes; then
14652 cat >conftest.$ac_ext <<_ACEOF
14653 /* confdefs.h. */
14654 _ACEOF
14655 cat confdefs.h >>conftest.$ac_ext
14656 cat >>conftest.$ac_ext <<_ACEOF
14657 /* end confdefs.h. */
14658 $ac_includes_default
14660 main ()
14663 char buf[100];
14664 char x = *strerror_r (0, buf, sizeof buf);
14665 char *p = strerror_r (0, buf, sizeof buf);
14668 return 0;
14670 _ACEOF
14671 rm -f conftest.$ac_objext
14672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14673 (eval $ac_compile) 2>conftest.er1
14674 ac_status=$?
14675 grep -v '^ *+' conftest.er1 >conftest.err
14676 rm -f conftest.er1
14677 cat conftest.err >&5
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); } &&
14680 { ac_try='test -z "$ac_c_werror_flag"
14681 || test ! -s conftest.err'
14682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14683 (eval $ac_try) 2>&5
14684 ac_status=$?
14685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); }; } &&
14687 { ac_try='test -s conftest.$ac_objext'
14688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14689 (eval $ac_try) 2>&5
14690 ac_status=$?
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); }; }; then
14693 ac_cv_func_strerror_r_char_p=yes
14694 else
14695 echo "$as_me: failed program was:" >&5
14696 sed 's/^/| /' conftest.$ac_ext >&5
14699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14700 else
14701 # strerror_r is not declared. Choose between
14702 # systems that have relatively inaccessible declarations for the
14703 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
14704 # former has a strerror_r that returns char*, while the latter
14705 # has a strerror_r that returns `int'.
14706 # This test should segfault on the DEC system.
14707 if test "$cross_compiling" = yes; then
14709 else
14710 cat >conftest.$ac_ext <<_ACEOF
14711 /* confdefs.h. */
14712 _ACEOF
14713 cat confdefs.h >>conftest.$ac_ext
14714 cat >>conftest.$ac_ext <<_ACEOF
14715 /* end confdefs.h. */
14716 $ac_includes_default
14717 extern char *strerror_r ();
14719 main ()
14721 char buf[100];
14722 char x = *strerror_r (0, buf, sizeof buf);
14723 exit (!isalpha (x));
14725 return 0;
14727 _ACEOF
14728 rm -f conftest$ac_exeext
14729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14730 (eval $ac_link) 2>&5
14731 ac_status=$?
14732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14735 (eval $ac_try) 2>&5
14736 ac_status=$?
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); }; }; then
14739 ac_cv_func_strerror_r_char_p=yes
14740 else
14741 echo "$as_me: program exited with status $ac_status" >&5
14742 echo "$as_me: failed program was:" >&5
14743 sed 's/^/| /' conftest.$ac_ext >&5
14746 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14751 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
14752 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
14753 if test $ac_cv_func_strerror_r_char_p = yes; then
14755 cat >>confdefs.h <<\_ACEOF
14756 #define STRERROR_R_CHAR_P 1
14757 _ACEOF
14761 CFLAGS="$tmp_CFLAGS"
14764 MKINSTALLDIRS=
14765 if test -n "$ac_aux_dir"; then
14766 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
14768 if test -z "$MKINSTALLDIRS"; then
14769 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
14776 # Extract the first word of "msgfmt", so it can be a program name with args.
14777 set dummy msgfmt; ac_word=$2
14778 echo "$as_me:$LINENO: checking for $ac_word" >&5
14779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14780 if test "${ac_cv_path_MSGFMT+set}" = set; then
14781 echo $ECHO_N "(cached) $ECHO_C" >&6
14782 else
14783 case "$MSGFMT" in
14785 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14788 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14789 for ac_dir in $PATH; do
14790 test -z "$ac_dir" && ac_dir=.
14791 if test -f $ac_dir/$ac_word; then
14792 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
14793 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14794 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
14795 break
14798 done
14799 IFS="$ac_save_ifs"
14800 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14802 esac
14804 MSGFMT="$ac_cv_path_MSGFMT"
14805 if test "$MSGFMT" != ":"; then
14806 echo "$as_me:$LINENO: result: $MSGFMT" >&5
14807 echo "${ECHO_T}$MSGFMT" >&6
14808 else
14809 echo "$as_me:$LINENO: result: no" >&5
14810 echo "${ECHO_T}no" >&6
14813 # Extract the first word of "gmsgfmt", so it can be a program name with args.
14814 set dummy gmsgfmt; ac_word=$2
14815 echo "$as_me:$LINENO: checking for $ac_word" >&5
14816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14817 if test "${ac_cv_path_GMSGFMT+set}" = set; then
14818 echo $ECHO_N "(cached) $ECHO_C" >&6
14819 else
14820 case $GMSGFMT in
14821 [\\/]* | ?:[\\/]*)
14822 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14826 for as_dir in $PATH
14828 IFS=$as_save_IFS
14829 test -z "$as_dir" && as_dir=.
14830 for ac_exec_ext in '' $ac_executable_extensions; do
14831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14832 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14834 break 2
14836 done
14837 done
14839 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14841 esac
14843 GMSGFMT=$ac_cv_path_GMSGFMT
14845 if test -n "$GMSGFMT"; then
14846 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
14847 echo "${ECHO_T}$GMSGFMT" >&6
14848 else
14849 echo "$as_me:$LINENO: result: no" >&5
14850 echo "${ECHO_T}no" >&6
14854 # Extract the first word of "xgettext", so it can be a program name with args.
14855 set dummy xgettext; ac_word=$2
14856 echo "$as_me:$LINENO: checking for $ac_word" >&5
14857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14858 if test "${ac_cv_path_XGETTEXT+set}" = set; then
14859 echo $ECHO_N "(cached) $ECHO_C" >&6
14860 else
14861 case "$XGETTEXT" in
14863 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14866 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14867 for ac_dir in $PATH; do
14868 test -z "$ac_dir" && ac_dir=.
14869 if test -f $ac_dir/$ac_word; then
14870 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
14871 (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
14872 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
14873 break
14876 done
14877 IFS="$ac_save_ifs"
14878 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14880 esac
14882 XGETTEXT="$ac_cv_path_XGETTEXT"
14883 if test "$XGETTEXT" != ":"; then
14884 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
14885 echo "${ECHO_T}$XGETTEXT" >&6
14886 else
14887 echo "$as_me:$LINENO: result: no" >&5
14888 echo "${ECHO_T}no" >&6
14891 rm -f messages.po
14893 # Extract the first word of "msgmerge", so it can be a program name with args.
14894 set dummy msgmerge; ac_word=$2
14895 echo "$as_me:$LINENO: checking for $ac_word" >&5
14896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14897 if test "${ac_cv_path_MSGMERGE+set}" = set; then
14898 echo $ECHO_N "(cached) $ECHO_C" >&6
14899 else
14900 case "$MSGMERGE" in
14902 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
14905 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14906 for ac_dir in $PATH; do
14907 test -z "$ac_dir" && ac_dir=.
14908 if test -f $ac_dir/$ac_word; then
14909 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
14910 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
14911 break
14914 done
14915 IFS="$ac_save_ifs"
14916 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
14918 esac
14920 MSGMERGE="$ac_cv_path_MSGMERGE"
14921 if test "$MSGMERGE" != ":"; then
14922 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
14923 echo "${ECHO_T}$MSGMERGE" >&6
14924 else
14925 echo "$as_me:$LINENO: result: no" >&5
14926 echo "${ECHO_T}no" >&6
14930 if test "$GMSGFMT" != ":"; then
14931 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
14932 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14934 else
14935 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
14936 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
14937 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
14938 GMSGFMT=":"
14942 if test "$XGETTEXT" != ":"; then
14943 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
14944 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14946 else
14947 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
14948 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
14949 XGETTEXT=":"
14951 rm -f messages.po
14954 ac_config_commands="$ac_config_commands default-1"
14957 echo "$as_me:$LINENO: checking for library containing strerror" >&5
14958 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
14959 if test "${ac_cv_search_strerror+set}" = set; then
14960 echo $ECHO_N "(cached) $ECHO_C" >&6
14961 else
14962 ac_func_search_save_LIBS=$LIBS
14963 ac_cv_search_strerror=no
14964 cat >conftest.$ac_ext <<_ACEOF
14965 /* confdefs.h. */
14966 _ACEOF
14967 cat confdefs.h >>conftest.$ac_ext
14968 cat >>conftest.$ac_ext <<_ACEOF
14969 /* end confdefs.h. */
14971 /* Override any gcc2 internal prototype to avoid an error. */
14972 #ifdef __cplusplus
14973 extern "C"
14974 #endif
14975 /* We use char because int might match the return type of a gcc2
14976 builtin and then its argument prototype would still apply. */
14977 char strerror ();
14979 main ()
14981 strerror ();
14983 return 0;
14985 _ACEOF
14986 rm -f conftest.$ac_objext conftest$ac_exeext
14987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14988 (eval $ac_link) 2>conftest.er1
14989 ac_status=$?
14990 grep -v '^ *+' conftest.er1 >conftest.err
14991 rm -f conftest.er1
14992 cat conftest.err >&5
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); } &&
14995 { ac_try='test -z "$ac_c_werror_flag"
14996 || test ! -s conftest.err'
14997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14998 (eval $ac_try) 2>&5
14999 ac_status=$?
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); }; } &&
15002 { ac_try='test -s conftest$ac_exeext'
15003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15004 (eval $ac_try) 2>&5
15005 ac_status=$?
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); }; }; then
15008 ac_cv_search_strerror="none required"
15009 else
15010 echo "$as_me: failed program was:" >&5
15011 sed 's/^/| /' conftest.$ac_ext >&5
15014 rm -f conftest.err conftest.$ac_objext \
15015 conftest$ac_exeext conftest.$ac_ext
15016 if test "$ac_cv_search_strerror" = no; then
15017 for ac_lib in cposix; do
15018 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15019 cat >conftest.$ac_ext <<_ACEOF
15020 /* confdefs.h. */
15021 _ACEOF
15022 cat confdefs.h >>conftest.$ac_ext
15023 cat >>conftest.$ac_ext <<_ACEOF
15024 /* end confdefs.h. */
15026 /* Override any gcc2 internal prototype to avoid an error. */
15027 #ifdef __cplusplus
15028 extern "C"
15029 #endif
15030 /* We use char because int might match the return type of a gcc2
15031 builtin and then its argument prototype would still apply. */
15032 char strerror ();
15034 main ()
15036 strerror ();
15038 return 0;
15040 _ACEOF
15041 rm -f conftest.$ac_objext conftest$ac_exeext
15042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15043 (eval $ac_link) 2>conftest.er1
15044 ac_status=$?
15045 grep -v '^ *+' conftest.er1 >conftest.err
15046 rm -f conftest.er1
15047 cat conftest.err >&5
15048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049 (exit $ac_status); } &&
15050 { ac_try='test -z "$ac_c_werror_flag"
15051 || test ! -s conftest.err'
15052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15053 (eval $ac_try) 2>&5
15054 ac_status=$?
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); }; } &&
15057 { ac_try='test -s conftest$ac_exeext'
15058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15059 (eval $ac_try) 2>&5
15060 ac_status=$?
15061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062 (exit $ac_status); }; }; then
15063 ac_cv_search_strerror="-l$ac_lib"
15064 break
15065 else
15066 echo "$as_me: failed program was:" >&5
15067 sed 's/^/| /' conftest.$ac_ext >&5
15070 rm -f conftest.err conftest.$ac_objext \
15071 conftest$ac_exeext conftest.$ac_ext
15072 done
15074 LIBS=$ac_func_search_save_LIBS
15076 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
15077 echo "${ECHO_T}$ac_cv_search_strerror" >&6
15078 if test "$ac_cv_search_strerror" != no; then
15079 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
15084 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
15085 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
15086 if test "${ac_cv_gnu_library_2_1+set}" = set; then
15087 echo $ECHO_N "(cached) $ECHO_C" >&6
15088 else
15089 cat >conftest.$ac_ext <<_ACEOF
15090 /* confdefs.h. */
15091 _ACEOF
15092 cat confdefs.h >>conftest.$ac_ext
15093 cat >>conftest.$ac_ext <<_ACEOF
15094 /* end confdefs.h. */
15096 #include <features.h>
15097 #ifdef __GNU_LIBRARY__
15098 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
15099 Lucky GNU user
15100 #endif
15101 #endif
15103 _ACEOF
15104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15105 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
15106 ac_cv_gnu_library_2_1=yes
15107 else
15108 ac_cv_gnu_library_2_1=no
15110 rm -f conftest*
15115 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
15116 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
15118 GLIBC21="$ac_cv_gnu_library_2_1"
15123 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
15124 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
15125 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
15126 echo $ECHO_N "(cached) $ECHO_C" >&6
15127 else
15129 if test "$cross_compiling" = yes; then
15131 # Guess based on the CPU.
15132 case "$host_cpu" in
15133 alpha* | i3456786 | m68k | s390*)
15134 gt_cv_int_divbyzero_sigfpe="guessing yes";;
15136 gt_cv_int_divbyzero_sigfpe="guessing no";;
15137 esac
15139 else
15140 cat >conftest.$ac_ext <<_ACEOF
15141 /* confdefs.h. */
15142 _ACEOF
15143 cat confdefs.h >>conftest.$ac_ext
15144 cat >>conftest.$ac_ext <<_ACEOF
15145 /* end confdefs.h. */
15147 #include <stdlib.h>
15148 #include <signal.h>
15150 static void
15151 #ifdef __cplusplus
15152 sigfpe_handler (int sig)
15153 #else
15154 sigfpe_handler (sig) int sig;
15155 #endif
15157 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
15158 exit (sig != SIGFPE);
15161 int x = 1;
15162 int y = 0;
15163 int z;
15164 int nan;
15166 int main ()
15168 signal (SIGFPE, sigfpe_handler);
15169 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
15170 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
15171 signal (SIGTRAP, sigfpe_handler);
15172 #endif
15173 /* Linux/SPARC yields signal SIGILL. */
15174 #if defined (__sparc__) && defined (__linux__)
15175 signal (SIGILL, sigfpe_handler);
15176 #endif
15178 z = x / y;
15179 nan = y / y;
15180 exit (1);
15183 _ACEOF
15184 rm -f conftest$ac_exeext
15185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15186 (eval $ac_link) 2>&5
15187 ac_status=$?
15188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15191 (eval $ac_try) 2>&5
15192 ac_status=$?
15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); }; }; then
15195 gt_cv_int_divbyzero_sigfpe=yes
15196 else
15197 echo "$as_me: program exited with status $ac_status" >&5
15198 echo "$as_me: failed program was:" >&5
15199 sed 's/^/| /' conftest.$ac_ext >&5
15201 ( exit $ac_status )
15202 gt_cv_int_divbyzero_sigfpe=no
15204 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15208 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
15209 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
15210 case "$gt_cv_int_divbyzero_sigfpe" in
15211 *yes) value=1;;
15212 *) value=0;;
15213 esac
15215 cat >>confdefs.h <<_ACEOF
15216 #define INTDIV0_RAISES_SIGFPE $value
15217 _ACEOF
15221 echo "$as_me:$LINENO: checking for inttypes.h" >&5
15222 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
15223 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
15224 echo $ECHO_N "(cached) $ECHO_C" >&6
15225 else
15226 cat >conftest.$ac_ext <<_ACEOF
15227 /* confdefs.h. */
15228 _ACEOF
15229 cat confdefs.h >>conftest.$ac_ext
15230 cat >>conftest.$ac_ext <<_ACEOF
15231 /* end confdefs.h. */
15232 #include <sys/types.h>
15233 #include <inttypes.h>
15235 main ()
15237 uintmax_t i = (uintmax_t) -1;
15239 return 0;
15241 _ACEOF
15242 rm -f conftest.$ac_objext
15243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15244 (eval $ac_compile) 2>conftest.er1
15245 ac_status=$?
15246 grep -v '^ *+' conftest.er1 >conftest.err
15247 rm -f conftest.er1
15248 cat conftest.err >&5
15249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250 (exit $ac_status); } &&
15251 { ac_try='test -z "$ac_c_werror_flag"
15252 || test ! -s conftest.err'
15253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15254 (eval $ac_try) 2>&5
15255 ac_status=$?
15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); }; } &&
15258 { ac_try='test -s conftest.$ac_objext'
15259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15260 (eval $ac_try) 2>&5
15261 ac_status=$?
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); }; }; then
15264 jm_ac_cv_header_inttypes_h=yes
15265 else
15266 echo "$as_me: failed program was:" >&5
15267 sed 's/^/| /' conftest.$ac_ext >&5
15269 jm_ac_cv_header_inttypes_h=no
15271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15273 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
15274 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
15275 if test $jm_ac_cv_header_inttypes_h = yes; then
15277 cat >>confdefs.h <<_ACEOF
15278 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
15279 _ACEOF
15284 echo "$as_me:$LINENO: checking for stdint.h" >&5
15285 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
15286 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
15287 echo $ECHO_N "(cached) $ECHO_C" >&6
15288 else
15289 cat >conftest.$ac_ext <<_ACEOF
15290 /* confdefs.h. */
15291 _ACEOF
15292 cat confdefs.h >>conftest.$ac_ext
15293 cat >>conftest.$ac_ext <<_ACEOF
15294 /* end confdefs.h. */
15295 #include <sys/types.h>
15296 #include <stdint.h>
15298 main ()
15300 uintmax_t i = (uintmax_t) -1;
15302 return 0;
15304 _ACEOF
15305 rm -f conftest.$ac_objext
15306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15307 (eval $ac_compile) 2>conftest.er1
15308 ac_status=$?
15309 grep -v '^ *+' conftest.er1 >conftest.err
15310 rm -f conftest.er1
15311 cat conftest.err >&5
15312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); } &&
15314 { ac_try='test -z "$ac_c_werror_flag"
15315 || test ! -s conftest.err'
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); }; } &&
15321 { ac_try='test -s conftest.$ac_objext'
15322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15323 (eval $ac_try) 2>&5
15324 ac_status=$?
15325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); }; }; then
15327 jm_ac_cv_header_stdint_h=yes
15328 else
15329 echo "$as_me: failed program was:" >&5
15330 sed 's/^/| /' conftest.$ac_ext >&5
15332 jm_ac_cv_header_stdint_h=no
15334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15336 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
15337 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
15338 if test $jm_ac_cv_header_stdint_h = yes; then
15340 cat >>confdefs.h <<_ACEOF
15341 #define HAVE_STDINT_H_WITH_UINTMAX 1
15342 _ACEOF
15347 echo "$as_me:$LINENO: checking for unsigned long long" >&5
15348 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
15349 if test "${ac_cv_type_unsigned_long_long+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 unsigned long long ull = 1; int i = 63;
15360 main ()
15362 unsigned long long ullmax = (unsigned long long) -1;
15363 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
15365 return 0;
15367 _ACEOF
15368 rm -f conftest.$ac_objext conftest$ac_exeext
15369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15370 (eval $ac_link) 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_exeext'
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 ac_cv_type_unsigned_long_long=yes
15391 else
15392 echo "$as_me: failed program was:" >&5
15393 sed 's/^/| /' conftest.$ac_ext >&5
15395 ac_cv_type_unsigned_long_long=no
15397 rm -f conftest.err conftest.$ac_objext \
15398 conftest$ac_exeext conftest.$ac_ext
15400 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
15401 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
15402 if test $ac_cv_type_unsigned_long_long = yes; then
15404 cat >>confdefs.h <<\_ACEOF
15405 #define HAVE_UNSIGNED_LONG_LONG 1
15406 _ACEOF
15413 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
15415 test $ac_cv_type_unsigned_long_long = yes \
15416 && ac_type='unsigned long long' \
15417 || ac_type='unsigned long'
15419 cat >>confdefs.h <<_ACEOF
15420 #define uintmax_t $ac_type
15421 _ACEOF
15426 echo "$as_me:$LINENO: checking for inttypes.h" >&5
15427 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
15428 if test "${gt_cv_header_inttypes_h+set}" = set; then
15429 echo $ECHO_N "(cached) $ECHO_C" >&6
15430 else
15432 cat >conftest.$ac_ext <<_ACEOF
15433 /* confdefs.h. */
15434 _ACEOF
15435 cat confdefs.h >>conftest.$ac_ext
15436 cat >>conftest.$ac_ext <<_ACEOF
15437 /* end confdefs.h. */
15438 #include <sys/types.h>
15439 #include <inttypes.h>
15441 main ()
15445 return 0;
15447 _ACEOF
15448 rm -f conftest.$ac_objext
15449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15450 (eval $ac_compile) 2>conftest.er1
15451 ac_status=$?
15452 grep -v '^ *+' conftest.er1 >conftest.err
15453 rm -f conftest.er1
15454 cat conftest.err >&5
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); } &&
15457 { ac_try='test -z "$ac_c_werror_flag"
15458 || test ! -s conftest.err'
15459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15460 (eval $ac_try) 2>&5
15461 ac_status=$?
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); }; } &&
15464 { ac_try='test -s conftest.$ac_objext'
15465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15466 (eval $ac_try) 2>&5
15467 ac_status=$?
15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469 (exit $ac_status); }; }; then
15470 gt_cv_header_inttypes_h=yes
15471 else
15472 echo "$as_me: failed program was:" >&5
15473 sed 's/^/| /' conftest.$ac_ext >&5
15475 gt_cv_header_inttypes_h=no
15477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15480 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
15481 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
15482 if test $gt_cv_header_inttypes_h = yes; then
15484 cat >>confdefs.h <<_ACEOF
15485 #define HAVE_INTTYPES_H 1
15486 _ACEOF
15492 if test $gt_cv_header_inttypes_h = yes; then
15493 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
15494 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
15495 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
15496 echo $ECHO_N "(cached) $ECHO_C" >&6
15497 else
15499 cat >conftest.$ac_ext <<_ACEOF
15500 /* confdefs.h. */
15501 _ACEOF
15502 cat confdefs.h >>conftest.$ac_ext
15503 cat >>conftest.$ac_ext <<_ACEOF
15504 /* end confdefs.h. */
15505 #include <inttypes.h>
15506 #ifdef PRId32
15507 char *p = PRId32;
15508 #endif
15511 main ()
15515 return 0;
15517 _ACEOF
15518 rm -f conftest.$ac_objext
15519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15520 (eval $ac_compile) 2>conftest.er1
15521 ac_status=$?
15522 grep -v '^ *+' conftest.er1 >conftest.err
15523 rm -f conftest.er1
15524 cat conftest.err >&5
15525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 (exit $ac_status); } &&
15527 { ac_try='test -z "$ac_c_werror_flag"
15528 || test ! -s conftest.err'
15529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15530 (eval $ac_try) 2>&5
15531 ac_status=$?
15532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); }; } &&
15534 { ac_try='test -s conftest.$ac_objext'
15535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15536 (eval $ac_try) 2>&5
15537 ac_status=$?
15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); }; }; then
15540 gt_cv_inttypes_pri_broken=no
15541 else
15542 echo "$as_me: failed program was:" >&5
15543 sed 's/^/| /' conftest.$ac_ext >&5
15545 gt_cv_inttypes_pri_broken=yes
15547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15550 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
15551 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
15553 if test "$gt_cv_inttypes_pri_broken" = yes; then
15555 cat >>confdefs.h <<_ACEOF
15556 #define PRI_MACROS_BROKEN 1
15557 _ACEOF
15562 if test "X$prefix" = "XNONE"; then
15563 acl_final_prefix="$ac_default_prefix"
15564 else
15565 acl_final_prefix="$prefix"
15567 if test "X$exec_prefix" = "XNONE"; then
15568 acl_final_exec_prefix='${prefix}'
15569 else
15570 acl_final_exec_prefix="$exec_prefix"
15572 acl_save_prefix="$prefix"
15573 prefix="$acl_final_prefix"
15574 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
15575 prefix="$acl_save_prefix"
15578 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15579 if test "${with_gnu_ld+set}" = set; then
15580 withval="$with_gnu_ld"
15581 test "$withval" = no || with_gnu_ld=yes
15582 else
15583 with_gnu_ld=no
15585 ac_prog=ld
15586 if test "$GCC" = yes; then
15587 # Check if gcc -print-prog-name=ld gives a path.
15588 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
15589 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
15590 case $host in
15591 *-*-mingw*)
15592 # gcc leaves a trailing carriage return which upsets mingw
15593 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15595 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15596 esac
15597 case $ac_prog in
15598 # Accept absolute paths.
15599 [\\/]* | [A-Za-z]:[\\/]*)
15600 re_direlt='/[^/][^/]*/\.\./'
15601 # Canonicalize the path of ld
15602 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
15603 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15604 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
15605 done
15606 test -z "$LD" && LD="$ac_prog"
15609 # If it fails, then pretend we aren't using GCC.
15610 ac_prog=ld
15613 # If it is relative, then search for the first ld in PATH.
15614 with_gnu_ld=unknown
15616 esac
15617 elif test "$with_gnu_ld" = yes; then
15618 echo "$as_me:$LINENO: checking for GNU ld" >&5
15619 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15620 else
15621 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15622 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15624 if test "${acl_cv_path_LD+set}" = set; then
15625 echo $ECHO_N "(cached) $ECHO_C" >&6
15626 else
15627 if test -z "$LD"; then
15628 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
15629 for ac_dir in $PATH; do
15630 test -z "$ac_dir" && ac_dir=.
15631 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15632 acl_cv_path_LD="$ac_dir/$ac_prog"
15633 # Check to see if the program is GNU ld. I'd rather use --version,
15634 # but apparently some GNU ld's only accept -v.
15635 # Break only if it was the GNU/non-GNU ld that we prefer.
15636 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
15637 test "$with_gnu_ld" != no && break
15638 else
15639 test "$with_gnu_ld" != yes && break
15642 done
15643 IFS="$ac_save_ifs"
15644 else
15645 acl_cv_path_LD="$LD" # Let the user override the test with a path.
15649 LD="$acl_cv_path_LD"
15650 if test -n "$LD"; then
15651 echo "$as_me:$LINENO: result: $LD" >&5
15652 echo "${ECHO_T}$LD" >&6
15653 else
15654 echo "$as_me:$LINENO: result: no" >&5
15655 echo "${ECHO_T}no" >&6
15657 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15658 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15659 { (exit 1); exit 1; }; }
15660 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15661 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15662 if test "${acl_cv_prog_gnu_ld+set}" = set; then
15663 echo $ECHO_N "(cached) $ECHO_C" >&6
15664 else
15665 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15666 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
15667 acl_cv_prog_gnu_ld=yes
15668 else
15669 acl_cv_prog_gnu_ld=no
15672 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
15673 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
15674 with_gnu_ld=$acl_cv_prog_gnu_ld
15678 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
15679 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
15680 if test "${acl_cv_rpath+set}" = set; then
15681 echo $ECHO_N "(cached) $ECHO_C" >&6
15682 else
15684 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
15685 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
15686 . ./conftest.sh
15687 rm -f ./conftest.sh
15688 acl_cv_rpath=done
15691 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
15692 echo "${ECHO_T}$acl_cv_rpath" >&6
15693 wl="$acl_cv_wl"
15694 libext="$acl_cv_libext"
15695 shlibext="$acl_cv_shlibext"
15696 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
15697 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
15698 hardcode_direct="$acl_cv_hardcode_direct"
15699 hardcode_minus_L="$acl_cv_hardcode_minus_L"
15700 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
15701 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
15702 # Check whether --enable-rpath or --disable-rpath was given.
15703 if test "${enable_rpath+set}" = set; then
15704 enableval="$enable_rpath"
15706 else
15707 enable_rpath=yes
15716 use_additional=yes
15718 acl_save_prefix="$prefix"
15719 prefix="$acl_final_prefix"
15720 acl_save_exec_prefix="$exec_prefix"
15721 exec_prefix="$acl_final_exec_prefix"
15723 eval additional_includedir=\"$includedir\"
15724 eval additional_libdir=\"$libdir\"
15726 exec_prefix="$acl_save_exec_prefix"
15727 prefix="$acl_save_prefix"
15730 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
15731 if test "${with_libiconv_prefix+set}" = set; then
15732 withval="$with_libiconv_prefix"
15734 if test "X$withval" = "Xno"; then
15735 use_additional=no
15736 else
15737 if test "X$withval" = "X"; then
15739 acl_save_prefix="$prefix"
15740 prefix="$acl_final_prefix"
15741 acl_save_exec_prefix="$exec_prefix"
15742 exec_prefix="$acl_final_exec_prefix"
15744 eval additional_includedir=\"$includedir\"
15745 eval additional_libdir=\"$libdir\"
15747 exec_prefix="$acl_save_exec_prefix"
15748 prefix="$acl_save_prefix"
15750 else
15751 additional_includedir="$withval/include"
15752 additional_libdir="$withval/lib"
15757 LIBICONV=
15758 LTLIBICONV=
15759 INCICONV=
15760 rpathdirs=
15761 ltrpathdirs=
15762 names_already_handled=
15763 names_next_round='iconv '
15764 while test -n "$names_next_round"; do
15765 names_this_round="$names_next_round"
15766 names_next_round=
15767 for name in $names_this_round; do
15768 already_handled=
15769 for n in $names_already_handled; do
15770 if test "$n" = "$name"; then
15771 already_handled=yes
15772 break
15774 done
15775 if test -z "$already_handled"; then
15776 names_already_handled="$names_already_handled $name"
15777 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15778 eval value=\"\$HAVE_LIB$uppername\"
15779 if test -n "$value"; then
15780 if test "$value" = yes; then
15781 eval value=\"\$LIB$uppername\"
15782 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
15783 eval value=\"\$LTLIB$uppername\"
15784 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
15785 else
15788 else
15789 found_dir=
15790 found_la=
15791 found_so=
15792 found_a=
15793 if test $use_additional = yes; then
15794 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
15795 found_dir="$additional_libdir"
15796 found_so="$additional_libdir/lib$name.$shlibext"
15797 if test -f "$additional_libdir/lib$name.la"; then
15798 found_la="$additional_libdir/lib$name.la"
15800 else
15801 if test -f "$additional_libdir/lib$name.$libext"; then
15802 found_dir="$additional_libdir"
15803 found_a="$additional_libdir/lib$name.$libext"
15804 if test -f "$additional_libdir/lib$name.la"; then
15805 found_la="$additional_libdir/lib$name.la"
15810 if test "X$found_dir" = "X"; then
15811 for x in $LDFLAGS $LTLIBICONV; do
15813 acl_save_prefix="$prefix"
15814 prefix="$acl_final_prefix"
15815 acl_save_exec_prefix="$exec_prefix"
15816 exec_prefix="$acl_final_exec_prefix"
15817 eval x=\"$x\"
15818 exec_prefix="$acl_save_exec_prefix"
15819 prefix="$acl_save_prefix"
15821 case "$x" in
15822 -L*)
15823 dir=`echo "X$x" | sed -e 's/^X-L//'`
15824 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
15825 found_dir="$dir"
15826 found_so="$dir/lib$name.$shlibext"
15827 if test -f "$dir/lib$name.la"; then
15828 found_la="$dir/lib$name.la"
15830 else
15831 if test -f "$dir/lib$name.$libext"; then
15832 found_dir="$dir"
15833 found_a="$dir/lib$name.$libext"
15834 if test -f "$dir/lib$name.la"; then
15835 found_la="$dir/lib$name.la"
15840 esac
15841 if test "X$found_dir" != "X"; then
15842 break
15844 done
15846 if test "X$found_dir" != "X"; then
15847 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15848 if test "X$found_so" != "X"; then
15849 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
15850 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15851 else
15852 haveit=
15853 for x in $ltrpathdirs; do
15854 if test "X$x" = "X$found_dir"; then
15855 haveit=yes
15856 break
15858 done
15859 if test -z "$haveit"; then
15860 ltrpathdirs="$ltrpathdirs $found_dir"
15862 if test "$hardcode_direct" = yes; then
15863 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15864 else
15865 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
15866 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15867 haveit=
15868 for x in $rpathdirs; do
15869 if test "X$x" = "X$found_dir"; then
15870 haveit=yes
15871 break
15873 done
15874 if test -z "$haveit"; then
15875 rpathdirs="$rpathdirs $found_dir"
15877 else
15878 haveit=
15879 for x in $LDFLAGS $LIBICONV; do
15881 acl_save_prefix="$prefix"
15882 prefix="$acl_final_prefix"
15883 acl_save_exec_prefix="$exec_prefix"
15884 exec_prefix="$acl_final_exec_prefix"
15885 eval x=\"$x\"
15886 exec_prefix="$acl_save_exec_prefix"
15887 prefix="$acl_save_prefix"
15889 if test "X$x" = "X-L$found_dir"; then
15890 haveit=yes
15891 break
15893 done
15894 if test -z "$haveit"; then
15895 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
15897 if test "$hardcode_minus_L" != no; then
15898 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15899 else
15900 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15905 else
15906 if test "X$found_a" != "X"; then
15907 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
15908 else
15909 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
15912 additional_includedir=
15913 case "$found_dir" in
15914 */lib | */lib/)
15915 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
15916 additional_includedir="$basedir/include"
15918 esac
15919 if test "X$additional_includedir" != "X"; then
15920 if test "X$additional_includedir" != "X/usr/include"; then
15921 haveit=
15922 if test "X$additional_includedir" = "X/usr/local/include"; then
15923 if test -n "$GCC"; then
15924 case $host_os in
15925 linux*) haveit=yes;;
15926 esac
15929 if test -z "$haveit"; then
15930 for x in $CPPFLAGS $INCICONV; do
15932 acl_save_prefix="$prefix"
15933 prefix="$acl_final_prefix"
15934 acl_save_exec_prefix="$exec_prefix"
15935 exec_prefix="$acl_final_exec_prefix"
15936 eval x=\"$x\"
15937 exec_prefix="$acl_save_exec_prefix"
15938 prefix="$acl_save_prefix"
15940 if test "X$x" = "X-I$additional_includedir"; then
15941 haveit=yes
15942 break
15944 done
15945 if test -z "$haveit"; then
15946 if test -d "$additional_includedir"; then
15947 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15953 if test -n "$found_la"; then
15954 save_libdir="$libdir"
15955 case "$found_la" in
15956 */* | *\\*) . "$found_la" ;;
15957 *) . "./$found_la" ;;
15958 esac
15959 libdir="$save_libdir"
15960 for dep in $dependency_libs; do
15961 case "$dep" in
15962 -L*)
15963 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15964 if test "X$additional_libdir" != "X/usr/lib"; then
15965 haveit=
15966 if test "X$additional_libdir" = "X/usr/local/lib"; then
15967 if test -n "$GCC"; then
15968 case $host_os in
15969 linux*) haveit=yes;;
15970 esac
15973 if test -z "$haveit"; then
15974 haveit=
15975 for x in $LDFLAGS $LIBICONV; do
15977 acl_save_prefix="$prefix"
15978 prefix="$acl_final_prefix"
15979 acl_save_exec_prefix="$exec_prefix"
15980 exec_prefix="$acl_final_exec_prefix"
15981 eval x=\"$x\"
15982 exec_prefix="$acl_save_exec_prefix"
15983 prefix="$acl_save_prefix"
15985 if test "X$x" = "X-L$additional_libdir"; then
15986 haveit=yes
15987 break
15989 done
15990 if test -z "$haveit"; then
15991 if test -d "$additional_libdir"; then
15992 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15995 haveit=
15996 for x in $LDFLAGS $LTLIBICONV; do
15998 acl_save_prefix="$prefix"
15999 prefix="$acl_final_prefix"
16000 acl_save_exec_prefix="$exec_prefix"
16001 exec_prefix="$acl_final_exec_prefix"
16002 eval x=\"$x\"
16003 exec_prefix="$acl_save_exec_prefix"
16004 prefix="$acl_save_prefix"
16006 if test "X$x" = "X-L$additional_libdir"; then
16007 haveit=yes
16008 break
16010 done
16011 if test -z "$haveit"; then
16012 if test -d "$additional_libdir"; then
16013 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16019 -R*)
16020 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16021 if test "$enable_rpath" != no; then
16022 haveit=
16023 for x in $rpathdirs; do
16024 if test "X$x" = "X$dir"; then
16025 haveit=yes
16026 break
16028 done
16029 if test -z "$haveit"; then
16030 rpathdirs="$rpathdirs $dir"
16032 haveit=
16033 for x in $ltrpathdirs; do
16034 if test "X$x" = "X$dir"; then
16035 haveit=yes
16036 break
16038 done
16039 if test -z "$haveit"; then
16040 ltrpathdirs="$ltrpathdirs $dir"
16044 -l*)
16045 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16047 *.la)
16048 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16051 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16052 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16054 esac
16055 done
16057 else
16058 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16059 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16063 done
16064 done
16065 if test "X$rpathdirs" != "X"; then
16066 if test -n "$hardcode_libdir_separator"; then
16067 alldirs=
16068 for found_dir in $rpathdirs; do
16069 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16070 done
16071 acl_save_libdir="$libdir"
16072 libdir="$alldirs"
16073 eval flag=\"$hardcode_libdir_flag_spec\"
16074 libdir="$acl_save_libdir"
16075 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16076 else
16077 for found_dir in $rpathdirs; do
16078 acl_save_libdir="$libdir"
16079 libdir="$found_dir"
16080 eval flag=\"$hardcode_libdir_flag_spec\"
16081 libdir="$acl_save_libdir"
16082 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16083 done
16086 if test "X$ltrpathdirs" != "X"; then
16087 for found_dir in $ltrpathdirs; do
16088 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16089 done
16105 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
16106 stdlib.h string.h unistd.h sys/param.h
16108 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16110 echo "$as_me:$LINENO: checking for $ac_header" >&5
16111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16113 echo $ECHO_N "(cached) $ECHO_C" >&6
16115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16117 else
16118 # Is the header compilable?
16119 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16120 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16121 cat >conftest.$ac_ext <<_ACEOF
16122 /* confdefs.h. */
16123 _ACEOF
16124 cat confdefs.h >>conftest.$ac_ext
16125 cat >>conftest.$ac_ext <<_ACEOF
16126 /* end confdefs.h. */
16127 $ac_includes_default
16128 #include <$ac_header>
16129 _ACEOF
16130 rm -f conftest.$ac_objext
16131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16132 (eval $ac_compile) 2>conftest.er1
16133 ac_status=$?
16134 grep -v '^ *+' conftest.er1 >conftest.err
16135 rm -f conftest.er1
16136 cat conftest.err >&5
16137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16138 (exit $ac_status); } &&
16139 { ac_try='test -z "$ac_c_werror_flag"
16140 || test ! -s conftest.err'
16141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16142 (eval $ac_try) 2>&5
16143 ac_status=$?
16144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145 (exit $ac_status); }; } &&
16146 { ac_try='test -s conftest.$ac_objext'
16147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16148 (eval $ac_try) 2>&5
16149 ac_status=$?
16150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); }; }; then
16152 ac_header_compiler=yes
16153 else
16154 echo "$as_me: failed program was:" >&5
16155 sed 's/^/| /' conftest.$ac_ext >&5
16157 ac_header_compiler=no
16159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16160 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16161 echo "${ECHO_T}$ac_header_compiler" >&6
16163 # Is the header present?
16164 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16165 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16166 cat >conftest.$ac_ext <<_ACEOF
16167 /* confdefs.h. */
16168 _ACEOF
16169 cat confdefs.h >>conftest.$ac_ext
16170 cat >>conftest.$ac_ext <<_ACEOF
16171 /* end confdefs.h. */
16172 #include <$ac_header>
16173 _ACEOF
16174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16176 ac_status=$?
16177 grep -v '^ *+' conftest.er1 >conftest.err
16178 rm -f conftest.er1
16179 cat conftest.err >&5
16180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16181 (exit $ac_status); } >/dev/null; then
16182 if test -s conftest.err; then
16183 ac_cpp_err=$ac_c_preproc_warn_flag
16184 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16185 else
16186 ac_cpp_err=
16188 else
16189 ac_cpp_err=yes
16191 if test -z "$ac_cpp_err"; then
16192 ac_header_preproc=yes
16193 else
16194 echo "$as_me: failed program was:" >&5
16195 sed 's/^/| /' conftest.$ac_ext >&5
16197 ac_header_preproc=no
16199 rm -f conftest.err conftest.$ac_ext
16200 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16201 echo "${ECHO_T}$ac_header_preproc" >&6
16203 # So? What about this header?
16204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16205 yes:no: )
16206 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16207 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16209 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16210 ac_header_preproc=yes
16212 no:yes:* )
16213 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16214 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16215 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16216 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16217 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16218 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16219 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16220 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16223 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16224 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16226 cat <<\_ASBOX
16227 ## ------------------------------ ##
16228 ## Report this to admin@amule.org ##
16229 ## ------------------------------ ##
16230 _ASBOX
16232 sed "s/^/$as_me: WARNING: /" >&2
16234 esac
16235 echo "$as_me:$LINENO: checking for $ac_header" >&5
16236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16238 echo $ECHO_N "(cached) $ECHO_C" >&6
16239 else
16240 eval "$as_ac_Header=\$ac_header_preproc"
16242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16243 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16246 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16247 cat >>confdefs.h <<_ACEOF
16248 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16249 _ACEOF
16253 done
16276 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
16277 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
16278 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
16280 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16281 echo "$as_me:$LINENO: checking for $ac_func" >&5
16282 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16283 if eval "test \"\${$as_ac_var+set}\" = set"; then
16284 echo $ECHO_N "(cached) $ECHO_C" >&6
16285 else
16286 cat >conftest.$ac_ext <<_ACEOF
16287 /* confdefs.h. */
16288 _ACEOF
16289 cat confdefs.h >>conftest.$ac_ext
16290 cat >>conftest.$ac_ext <<_ACEOF
16291 /* end confdefs.h. */
16292 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16293 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16294 #define $ac_func innocuous_$ac_func
16296 /* System header to define __stub macros and hopefully few prototypes,
16297 which can conflict with char $ac_func (); below.
16298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16299 <limits.h> exists even on freestanding compilers. */
16301 #ifdef __STDC__
16302 # include <limits.h>
16303 #else
16304 # include <assert.h>
16305 #endif
16307 #undef $ac_func
16309 /* Override any gcc2 internal prototype to avoid an error. */
16310 #ifdef __cplusplus
16311 extern "C"
16313 #endif
16314 /* We use char because int might match the return type of a gcc2
16315 builtin and then its argument prototype would still apply. */
16316 char $ac_func ();
16317 /* The GNU C library defines this for functions which it implements
16318 to always fail with ENOSYS. Some functions are actually named
16319 something starting with __ and the normal name is an alias. */
16320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16321 choke me
16322 #else
16323 char (*f) () = $ac_func;
16324 #endif
16325 #ifdef __cplusplus
16327 #endif
16330 main ()
16332 return f != $ac_func;
16334 return 0;
16336 _ACEOF
16337 rm -f conftest.$ac_objext conftest$ac_exeext
16338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16339 (eval $ac_link) 2>conftest.er1
16340 ac_status=$?
16341 grep -v '^ *+' conftest.er1 >conftest.err
16342 rm -f conftest.er1
16343 cat conftest.err >&5
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); } &&
16346 { ac_try='test -z "$ac_c_werror_flag"
16347 || test ! -s conftest.err'
16348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16349 (eval $ac_try) 2>&5
16350 ac_status=$?
16351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352 (exit $ac_status); }; } &&
16353 { ac_try='test -s conftest$ac_exeext'
16354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16355 (eval $ac_try) 2>&5
16356 ac_status=$?
16357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358 (exit $ac_status); }; }; then
16359 eval "$as_ac_var=yes"
16360 else
16361 echo "$as_me: failed program was:" >&5
16362 sed 's/^/| /' conftest.$ac_ext >&5
16364 eval "$as_ac_var=no"
16366 rm -f conftest.err conftest.$ac_objext \
16367 conftest$ac_exeext conftest.$ac_ext
16369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16370 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16371 if test `eval echo '${'$as_ac_var'}'` = yes; then
16372 cat >>confdefs.h <<_ACEOF
16373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16374 _ACEOF
16377 done
16385 am_save_CPPFLAGS="$CPPFLAGS"
16387 for element in $INCICONV; do
16388 haveit=
16389 for x in $CPPFLAGS; do
16391 acl_save_prefix="$prefix"
16392 prefix="$acl_final_prefix"
16393 acl_save_exec_prefix="$exec_prefix"
16394 exec_prefix="$acl_final_exec_prefix"
16395 eval x=\"$x\"
16396 exec_prefix="$acl_save_exec_prefix"
16397 prefix="$acl_save_prefix"
16399 if test "X$x" = "X$element"; then
16400 haveit=yes
16401 break
16403 done
16404 if test -z "$haveit"; then
16405 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16407 done
16410 echo "$as_me:$LINENO: checking for iconv" >&5
16411 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
16412 if test "${am_cv_func_iconv+set}" = set; then
16413 echo $ECHO_N "(cached) $ECHO_C" >&6
16414 else
16416 am_cv_func_iconv="no, consider installing GNU libiconv"
16417 am_cv_lib_iconv=no
16418 cat >conftest.$ac_ext <<_ACEOF
16419 /* confdefs.h. */
16420 _ACEOF
16421 cat confdefs.h >>conftest.$ac_ext
16422 cat >>conftest.$ac_ext <<_ACEOF
16423 /* end confdefs.h. */
16424 #include <stdlib.h>
16425 #include <iconv.h>
16427 main ()
16429 iconv_t cd = iconv_open("","");
16430 iconv(cd,NULL,NULL,NULL,NULL);
16431 iconv_close(cd);
16433 return 0;
16435 _ACEOF
16436 rm -f conftest.$ac_objext conftest$ac_exeext
16437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16438 (eval $ac_link) 2>conftest.er1
16439 ac_status=$?
16440 grep -v '^ *+' conftest.er1 >conftest.err
16441 rm -f conftest.er1
16442 cat conftest.err >&5
16443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444 (exit $ac_status); } &&
16445 { ac_try='test -z "$ac_c_werror_flag"
16446 || test ! -s conftest.err'
16447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16448 (eval $ac_try) 2>&5
16449 ac_status=$?
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); }; } &&
16452 { ac_try='test -s conftest$ac_exeext'
16453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16454 (eval $ac_try) 2>&5
16455 ac_status=$?
16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); }; }; then
16458 am_cv_func_iconv=yes
16459 else
16460 echo "$as_me: failed program was:" >&5
16461 sed 's/^/| /' conftest.$ac_ext >&5
16464 rm -f conftest.err conftest.$ac_objext \
16465 conftest$ac_exeext conftest.$ac_ext
16466 if test "$am_cv_func_iconv" != yes; then
16467 am_save_LIBS="$LIBS"
16468 LIBS="$LIBS $LIBICONV"
16469 cat >conftest.$ac_ext <<_ACEOF
16470 /* confdefs.h. */
16471 _ACEOF
16472 cat confdefs.h >>conftest.$ac_ext
16473 cat >>conftest.$ac_ext <<_ACEOF
16474 /* end confdefs.h. */
16475 #include <stdlib.h>
16476 #include <iconv.h>
16478 main ()
16480 iconv_t cd = iconv_open("","");
16481 iconv(cd,NULL,NULL,NULL,NULL);
16482 iconv_close(cd);
16484 return 0;
16486 _ACEOF
16487 rm -f conftest.$ac_objext conftest$ac_exeext
16488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16489 (eval $ac_link) 2>conftest.er1
16490 ac_status=$?
16491 grep -v '^ *+' conftest.er1 >conftest.err
16492 rm -f conftest.er1
16493 cat conftest.err >&5
16494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495 (exit $ac_status); } &&
16496 { ac_try='test -z "$ac_c_werror_flag"
16497 || test ! -s conftest.err'
16498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16499 (eval $ac_try) 2>&5
16500 ac_status=$?
16501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16502 (exit $ac_status); }; } &&
16503 { ac_try='test -s conftest$ac_exeext'
16504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16505 (eval $ac_try) 2>&5
16506 ac_status=$?
16507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508 (exit $ac_status); }; }; then
16509 am_cv_lib_iconv=yes
16510 am_cv_func_iconv=yes
16511 else
16512 echo "$as_me: failed program was:" >&5
16513 sed 's/^/| /' conftest.$ac_ext >&5
16516 rm -f conftest.err conftest.$ac_objext \
16517 conftest$ac_exeext conftest.$ac_ext
16518 LIBS="$am_save_LIBS"
16522 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
16523 echo "${ECHO_T}$am_cv_func_iconv" >&6
16524 if test "$am_cv_func_iconv" = yes; then
16526 cat >>confdefs.h <<\_ACEOF
16527 #define HAVE_ICONV 1
16528 _ACEOF
16531 if test "$am_cv_lib_iconv" = yes; then
16532 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
16533 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
16534 echo "$as_me:$LINENO: result: $LIBICONV" >&5
16535 echo "${ECHO_T}$LIBICONV" >&6
16536 else
16537 CPPFLAGS="$am_save_CPPFLAGS"
16538 LIBICONV=
16539 LTLIBICONV=
16544 if test "$am_cv_func_iconv" = yes; then
16545 echo "$as_me:$LINENO: checking for iconv declaration" >&5
16546 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
16547 if test "${am_cv_proto_iconv+set}" = set; then
16548 echo $ECHO_N "(cached) $ECHO_C" >&6
16549 else
16551 cat >conftest.$ac_ext <<_ACEOF
16552 /* confdefs.h. */
16553 _ACEOF
16554 cat confdefs.h >>conftest.$ac_ext
16555 cat >>conftest.$ac_ext <<_ACEOF
16556 /* end confdefs.h. */
16558 #include <stdlib.h>
16559 #include <iconv.h>
16560 extern
16561 #ifdef __cplusplus
16563 #endif
16564 #if defined(__STDC__) || defined(__cplusplus)
16565 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16566 #else
16567 size_t iconv();
16568 #endif
16571 main ()
16575 return 0;
16577 _ACEOF
16578 rm -f conftest.$ac_objext
16579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16580 (eval $ac_compile) 2>conftest.er1
16581 ac_status=$?
16582 grep -v '^ *+' conftest.er1 >conftest.err
16583 rm -f conftest.er1
16584 cat conftest.err >&5
16585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586 (exit $ac_status); } &&
16587 { ac_try='test -z "$ac_c_werror_flag"
16588 || test ! -s conftest.err'
16589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16590 (eval $ac_try) 2>&5
16591 ac_status=$?
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); }; } &&
16594 { ac_try='test -s conftest.$ac_objext'
16595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16596 (eval $ac_try) 2>&5
16597 ac_status=$?
16598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599 (exit $ac_status); }; }; then
16600 am_cv_proto_iconv_arg1=""
16601 else
16602 echo "$as_me: failed program was:" >&5
16603 sed 's/^/| /' conftest.$ac_ext >&5
16605 am_cv_proto_iconv_arg1="const"
16607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16608 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);"
16611 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
16612 echo "$as_me:$LINENO: result: ${ac_t:-
16613 }$am_cv_proto_iconv" >&5
16614 echo "${ECHO_T}${ac_t:-
16615 }$am_cv_proto_iconv" >&6
16617 cat >>confdefs.h <<_ACEOF
16618 #define ICONV_CONST $am_cv_proto_iconv_arg1
16619 _ACEOF
16624 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
16625 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
16626 if test "${am_cv_langinfo_codeset+set}" = set; then
16627 echo $ECHO_N "(cached) $ECHO_C" >&6
16628 else
16629 cat >conftest.$ac_ext <<_ACEOF
16630 /* confdefs.h. */
16631 _ACEOF
16632 cat confdefs.h >>conftest.$ac_ext
16633 cat >>conftest.$ac_ext <<_ACEOF
16634 /* end confdefs.h. */
16635 #include <langinfo.h>
16637 main ()
16639 char* cs = nl_langinfo(CODESET);
16641 return 0;
16643 _ACEOF
16644 rm -f conftest.$ac_objext conftest$ac_exeext
16645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16646 (eval $ac_link) 2>conftest.er1
16647 ac_status=$?
16648 grep -v '^ *+' conftest.er1 >conftest.err
16649 rm -f conftest.er1
16650 cat conftest.err >&5
16651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); } &&
16653 { ac_try='test -z "$ac_c_werror_flag"
16654 || test ! -s conftest.err'
16655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16656 (eval $ac_try) 2>&5
16657 ac_status=$?
16658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659 (exit $ac_status); }; } &&
16660 { ac_try='test -s conftest$ac_exeext'
16661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16662 (eval $ac_try) 2>&5
16663 ac_status=$?
16664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665 (exit $ac_status); }; }; then
16666 am_cv_langinfo_codeset=yes
16667 else
16668 echo "$as_me: failed program was:" >&5
16669 sed 's/^/| /' conftest.$ac_ext >&5
16671 am_cv_langinfo_codeset=no
16673 rm -f conftest.err conftest.$ac_objext \
16674 conftest$ac_exeext conftest.$ac_ext
16677 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
16678 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
16679 if test $am_cv_langinfo_codeset = yes; then
16681 cat >>confdefs.h <<\_ACEOF
16682 #define HAVE_LANGINFO_CODESET 1
16683 _ACEOF
16687 if test $ac_cv_header_locale_h = yes; then
16689 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
16690 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
16691 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
16692 echo $ECHO_N "(cached) $ECHO_C" >&6
16693 else
16694 cat >conftest.$ac_ext <<_ACEOF
16695 /* confdefs.h. */
16696 _ACEOF
16697 cat confdefs.h >>conftest.$ac_ext
16698 cat >>conftest.$ac_ext <<_ACEOF
16699 /* end confdefs.h. */
16700 #include <locale.h>
16702 main ()
16704 return LC_MESSAGES
16706 return 0;
16708 _ACEOF
16709 rm -f conftest.$ac_objext conftest$ac_exeext
16710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16711 (eval $ac_link) 2>conftest.er1
16712 ac_status=$?
16713 grep -v '^ *+' conftest.er1 >conftest.err
16714 rm -f conftest.er1
16715 cat conftest.err >&5
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); } &&
16718 { ac_try='test -z "$ac_c_werror_flag"
16719 || test ! -s conftest.err'
16720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16721 (eval $ac_try) 2>&5
16722 ac_status=$?
16723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); }; } &&
16725 { ac_try='test -s conftest$ac_exeext'
16726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16727 (eval $ac_try) 2>&5
16728 ac_status=$?
16729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); }; }; then
16731 am_cv_val_LC_MESSAGES=yes
16732 else
16733 echo "$as_me: failed program was:" >&5
16734 sed 's/^/| /' conftest.$ac_ext >&5
16736 am_cv_val_LC_MESSAGES=no
16738 rm -f conftest.err conftest.$ac_objext \
16739 conftest$ac_exeext conftest.$ac_ext
16741 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
16742 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
16743 if test $am_cv_val_LC_MESSAGES = yes; then
16745 cat >>confdefs.h <<\_ACEOF
16746 #define HAVE_LC_MESSAGES 1
16747 _ACEOF
16753 for ac_prog in bison
16755 # Extract the first word of "$ac_prog", so it can be a program name with args.
16756 set dummy $ac_prog; ac_word=$2
16757 echo "$as_me:$LINENO: checking for $ac_word" >&5
16758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16759 if test "${ac_cv_prog_INTLBISON+set}" = set; then
16760 echo $ECHO_N "(cached) $ECHO_C" >&6
16761 else
16762 if test -n "$INTLBISON"; then
16763 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
16764 else
16765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16766 for as_dir in $PATH
16768 IFS=$as_save_IFS
16769 test -z "$as_dir" && as_dir=.
16770 for ac_exec_ext in '' $ac_executable_extensions; do
16771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16772 ac_cv_prog_INTLBISON="$ac_prog"
16773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16774 break 2
16776 done
16777 done
16781 INTLBISON=$ac_cv_prog_INTLBISON
16782 if test -n "$INTLBISON"; then
16783 echo "$as_me:$LINENO: result: $INTLBISON" >&5
16784 echo "${ECHO_T}$INTLBISON" >&6
16785 else
16786 echo "$as_me:$LINENO: result: no" >&5
16787 echo "${ECHO_T}no" >&6
16790 test -n "$INTLBISON" && break
16791 done
16793 if test -z "$INTLBISON"; then
16794 ac_verc_fail=yes
16795 else
16796 echo "$as_me:$LINENO: checking version of bison" >&5
16797 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
16798 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
16799 case $ac_prog_version in
16800 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
16801 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
16802 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
16803 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
16804 esac
16805 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
16806 echo "${ECHO_T}$ac_prog_version" >&6
16808 if test $ac_verc_fail = yes; then
16809 INTLBISON=:
16826 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16827 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
16828 # Check whether --enable-nls or --disable-nls was given.
16829 if test "${enable_nls+set}" = set; then
16830 enableval="$enable_nls"
16831 USE_NLS=$enableval
16832 else
16833 USE_NLS=yes
16835 echo "$as_me:$LINENO: result: $USE_NLS" >&5
16836 echo "${ECHO_T}$USE_NLS" >&6
16840 BUILD_INCLUDED_LIBINTL=no
16841 USE_INCLUDED_LIBINTL=no
16843 LIBINTL=
16844 LTLIBINTL=
16845 POSUB=
16847 if test "$USE_NLS" = "yes"; then
16848 gt_use_preinstalled_gnugettext=no
16850 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
16851 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
16853 # Check whether --with-included-gettext or --without-included-gettext was given.
16854 if test "${with_included_gettext+set}" = set; then
16855 withval="$with_included_gettext"
16856 nls_cv_force_use_gnu_gettext=$withval
16857 else
16858 nls_cv_force_use_gnu_gettext=no
16860 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
16861 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
16863 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
16864 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
16871 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
16872 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
16873 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
16874 echo $ECHO_N "(cached) $ECHO_C" >&6
16875 else
16876 cat >conftest.$ac_ext <<_ACEOF
16877 /* confdefs.h. */
16878 _ACEOF
16879 cat confdefs.h >>conftest.$ac_ext
16880 cat >>conftest.$ac_ext <<_ACEOF
16881 /* end confdefs.h. */
16882 #include <libintl.h>
16883 extern int _nl_msg_cat_cntr;
16884 extern int *_nl_domain_bindings;
16886 main ()
16888 bindtextdomain ("", "");
16889 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
16891 return 0;
16893 _ACEOF
16894 rm -f conftest.$ac_objext conftest$ac_exeext
16895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16896 (eval $ac_link) 2>conftest.er1
16897 ac_status=$?
16898 grep -v '^ *+' conftest.er1 >conftest.err
16899 rm -f conftest.er1
16900 cat conftest.err >&5
16901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902 (exit $ac_status); } &&
16903 { ac_try='test -z "$ac_c_werror_flag"
16904 || test ! -s conftest.err'
16905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16906 (eval $ac_try) 2>&5
16907 ac_status=$?
16908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 (exit $ac_status); }; } &&
16910 { ac_try='test -s conftest$ac_exeext'
16911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16912 (eval $ac_try) 2>&5
16913 ac_status=$?
16914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915 (exit $ac_status); }; }; then
16916 gt_cv_func_gnugettext2_libc=yes
16917 else
16918 echo "$as_me: failed program was:" >&5
16919 sed 's/^/| /' conftest.$ac_ext >&5
16921 gt_cv_func_gnugettext2_libc=no
16923 rm -f conftest.err conftest.$ac_objext \
16924 conftest$ac_exeext conftest.$ac_ext
16926 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
16927 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
16929 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
16933 use_additional=yes
16935 acl_save_prefix="$prefix"
16936 prefix="$acl_final_prefix"
16937 acl_save_exec_prefix="$exec_prefix"
16938 exec_prefix="$acl_final_exec_prefix"
16940 eval additional_includedir=\"$includedir\"
16941 eval additional_libdir=\"$libdir\"
16943 exec_prefix="$acl_save_exec_prefix"
16944 prefix="$acl_save_prefix"
16947 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
16948 if test "${with_libintl_prefix+set}" = set; then
16949 withval="$with_libintl_prefix"
16951 if test "X$withval" = "Xno"; then
16952 use_additional=no
16953 else
16954 if test "X$withval" = "X"; then
16956 acl_save_prefix="$prefix"
16957 prefix="$acl_final_prefix"
16958 acl_save_exec_prefix="$exec_prefix"
16959 exec_prefix="$acl_final_exec_prefix"
16961 eval additional_includedir=\"$includedir\"
16962 eval additional_libdir=\"$libdir\"
16964 exec_prefix="$acl_save_exec_prefix"
16965 prefix="$acl_save_prefix"
16967 else
16968 additional_includedir="$withval/include"
16969 additional_libdir="$withval/lib"
16974 LIBINTL=
16975 LTLIBINTL=
16976 INCINTL=
16977 rpathdirs=
16978 ltrpathdirs=
16979 names_already_handled=
16980 names_next_round='intl '
16981 while test -n "$names_next_round"; do
16982 names_this_round="$names_next_round"
16983 names_next_round=
16984 for name in $names_this_round; do
16985 already_handled=
16986 for n in $names_already_handled; do
16987 if test "$n" = "$name"; then
16988 already_handled=yes
16989 break
16991 done
16992 if test -z "$already_handled"; then
16993 names_already_handled="$names_already_handled $name"
16994 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16995 eval value=\"\$HAVE_LIB$uppername\"
16996 if test -n "$value"; then
16997 if test "$value" = yes; then
16998 eval value=\"\$LIB$uppername\"
16999 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17000 eval value=\"\$LTLIB$uppername\"
17001 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17002 else
17005 else
17006 found_dir=
17007 found_la=
17008 found_so=
17009 found_a=
17010 if test $use_additional = yes; then
17011 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17012 found_dir="$additional_libdir"
17013 found_so="$additional_libdir/lib$name.$shlibext"
17014 if test -f "$additional_libdir/lib$name.la"; then
17015 found_la="$additional_libdir/lib$name.la"
17017 else
17018 if test -f "$additional_libdir/lib$name.$libext"; then
17019 found_dir="$additional_libdir"
17020 found_a="$additional_libdir/lib$name.$libext"
17021 if test -f "$additional_libdir/lib$name.la"; then
17022 found_la="$additional_libdir/lib$name.la"
17027 if test "X$found_dir" = "X"; then
17028 for x in $LDFLAGS $LTLIBINTL; do
17030 acl_save_prefix="$prefix"
17031 prefix="$acl_final_prefix"
17032 acl_save_exec_prefix="$exec_prefix"
17033 exec_prefix="$acl_final_exec_prefix"
17034 eval x=\"$x\"
17035 exec_prefix="$acl_save_exec_prefix"
17036 prefix="$acl_save_prefix"
17038 case "$x" in
17039 -L*)
17040 dir=`echo "X$x" | sed -e 's/^X-L//'`
17041 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17042 found_dir="$dir"
17043 found_so="$dir/lib$name.$shlibext"
17044 if test -f "$dir/lib$name.la"; then
17045 found_la="$dir/lib$name.la"
17047 else
17048 if test -f "$dir/lib$name.$libext"; then
17049 found_dir="$dir"
17050 found_a="$dir/lib$name.$libext"
17051 if test -f "$dir/lib$name.la"; then
17052 found_la="$dir/lib$name.la"
17057 esac
17058 if test "X$found_dir" != "X"; then
17059 break
17061 done
17063 if test "X$found_dir" != "X"; then
17064 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17065 if test "X$found_so" != "X"; then
17066 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17067 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17068 else
17069 haveit=
17070 for x in $ltrpathdirs; do
17071 if test "X$x" = "X$found_dir"; then
17072 haveit=yes
17073 break
17075 done
17076 if test -z "$haveit"; then
17077 ltrpathdirs="$ltrpathdirs $found_dir"
17079 if test "$hardcode_direct" = yes; then
17080 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17081 else
17082 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17083 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17084 haveit=
17085 for x in $rpathdirs; do
17086 if test "X$x" = "X$found_dir"; then
17087 haveit=yes
17088 break
17090 done
17091 if test -z "$haveit"; then
17092 rpathdirs="$rpathdirs $found_dir"
17094 else
17095 haveit=
17096 for x in $LDFLAGS $LIBINTL; do
17098 acl_save_prefix="$prefix"
17099 prefix="$acl_final_prefix"
17100 acl_save_exec_prefix="$exec_prefix"
17101 exec_prefix="$acl_final_exec_prefix"
17102 eval x=\"$x\"
17103 exec_prefix="$acl_save_exec_prefix"
17104 prefix="$acl_save_prefix"
17106 if test "X$x" = "X-L$found_dir"; then
17107 haveit=yes
17108 break
17110 done
17111 if test -z "$haveit"; then
17112 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17114 if test "$hardcode_minus_L" != no; then
17115 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17116 else
17117 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17122 else
17123 if test "X$found_a" != "X"; then
17124 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17125 else
17126 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17129 additional_includedir=
17130 case "$found_dir" in
17131 */lib | */lib/)
17132 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17133 additional_includedir="$basedir/include"
17135 esac
17136 if test "X$additional_includedir" != "X"; then
17137 if test "X$additional_includedir" != "X/usr/include"; then
17138 haveit=
17139 if test "X$additional_includedir" = "X/usr/local/include"; then
17140 if test -n "$GCC"; then
17141 case $host_os in
17142 linux*) haveit=yes;;
17143 esac
17146 if test -z "$haveit"; then
17147 for x in $CPPFLAGS $INCINTL; do
17149 acl_save_prefix="$prefix"
17150 prefix="$acl_final_prefix"
17151 acl_save_exec_prefix="$exec_prefix"
17152 exec_prefix="$acl_final_exec_prefix"
17153 eval x=\"$x\"
17154 exec_prefix="$acl_save_exec_prefix"
17155 prefix="$acl_save_prefix"
17157 if test "X$x" = "X-I$additional_includedir"; then
17158 haveit=yes
17159 break
17161 done
17162 if test -z "$haveit"; then
17163 if test -d "$additional_includedir"; then
17164 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17170 if test -n "$found_la"; then
17171 save_libdir="$libdir"
17172 case "$found_la" in
17173 */* | *\\*) . "$found_la" ;;
17174 *) . "./$found_la" ;;
17175 esac
17176 libdir="$save_libdir"
17177 for dep in $dependency_libs; do
17178 case "$dep" in
17179 -L*)
17180 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17181 if test "X$additional_libdir" != "X/usr/lib"; then
17182 haveit=
17183 if test "X$additional_libdir" = "X/usr/local/lib"; then
17184 if test -n "$GCC"; then
17185 case $host_os in
17186 linux*) haveit=yes;;
17187 esac
17190 if test -z "$haveit"; then
17191 haveit=
17192 for x in $LDFLAGS $LIBINTL; do
17194 acl_save_prefix="$prefix"
17195 prefix="$acl_final_prefix"
17196 acl_save_exec_prefix="$exec_prefix"
17197 exec_prefix="$acl_final_exec_prefix"
17198 eval x=\"$x\"
17199 exec_prefix="$acl_save_exec_prefix"
17200 prefix="$acl_save_prefix"
17202 if test "X$x" = "X-L$additional_libdir"; then
17203 haveit=yes
17204 break
17206 done
17207 if test -z "$haveit"; then
17208 if test -d "$additional_libdir"; then
17209 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17212 haveit=
17213 for x in $LDFLAGS $LTLIBINTL; do
17215 acl_save_prefix="$prefix"
17216 prefix="$acl_final_prefix"
17217 acl_save_exec_prefix="$exec_prefix"
17218 exec_prefix="$acl_final_exec_prefix"
17219 eval x=\"$x\"
17220 exec_prefix="$acl_save_exec_prefix"
17221 prefix="$acl_save_prefix"
17223 if test "X$x" = "X-L$additional_libdir"; then
17224 haveit=yes
17225 break
17227 done
17228 if test -z "$haveit"; then
17229 if test -d "$additional_libdir"; then
17230 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17236 -R*)
17237 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17238 if test "$enable_rpath" != no; then
17239 haveit=
17240 for x in $rpathdirs; do
17241 if test "X$x" = "X$dir"; then
17242 haveit=yes
17243 break
17245 done
17246 if test -z "$haveit"; then
17247 rpathdirs="$rpathdirs $dir"
17249 haveit=
17250 for x in $ltrpathdirs; do
17251 if test "X$x" = "X$dir"; then
17252 haveit=yes
17253 break
17255 done
17256 if test -z "$haveit"; then
17257 ltrpathdirs="$ltrpathdirs $dir"
17261 -l*)
17262 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17264 *.la)
17265 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17268 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17269 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17271 esac
17272 done
17274 else
17275 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17276 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17280 done
17281 done
17282 if test "X$rpathdirs" != "X"; then
17283 if test -n "$hardcode_libdir_separator"; then
17284 alldirs=
17285 for found_dir in $rpathdirs; do
17286 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17287 done
17288 acl_save_libdir="$libdir"
17289 libdir="$alldirs"
17290 eval flag=\"$hardcode_libdir_flag_spec\"
17291 libdir="$acl_save_libdir"
17292 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17293 else
17294 for found_dir in $rpathdirs; do
17295 acl_save_libdir="$libdir"
17296 libdir="$found_dir"
17297 eval flag=\"$hardcode_libdir_flag_spec\"
17298 libdir="$acl_save_libdir"
17299 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17300 done
17303 if test "X$ltrpathdirs" != "X"; then
17304 for found_dir in $ltrpathdirs; do
17305 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17306 done
17309 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
17310 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
17311 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
17312 echo $ECHO_N "(cached) $ECHO_C" >&6
17313 else
17314 gt_save_CPPFLAGS="$CPPFLAGS"
17315 CPPFLAGS="$CPPFLAGS $INCINTL"
17316 gt_save_LIBS="$LIBS"
17317 LIBS="$LIBS $LIBINTL"
17318 cat >conftest.$ac_ext <<_ACEOF
17319 /* confdefs.h. */
17320 _ACEOF
17321 cat confdefs.h >>conftest.$ac_ext
17322 cat >>conftest.$ac_ext <<_ACEOF
17323 /* end confdefs.h. */
17324 #include <libintl.h>
17325 extern int _nl_msg_cat_cntr;
17326 extern
17327 #ifdef __cplusplus
17329 #endif
17330 const char *_nl_expand_alias ();
17332 main ()
17334 bindtextdomain ("", "");
17335 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17337 return 0;
17339 _ACEOF
17340 rm -f conftest.$ac_objext conftest$ac_exeext
17341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17342 (eval $ac_link) 2>conftest.er1
17343 ac_status=$?
17344 grep -v '^ *+' conftest.er1 >conftest.err
17345 rm -f conftest.er1
17346 cat conftest.err >&5
17347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17348 (exit $ac_status); } &&
17349 { ac_try='test -z "$ac_c_werror_flag"
17350 || test ! -s conftest.err'
17351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17352 (eval $ac_try) 2>&5
17353 ac_status=$?
17354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355 (exit $ac_status); }; } &&
17356 { ac_try='test -s conftest$ac_exeext'
17357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17358 (eval $ac_try) 2>&5
17359 ac_status=$?
17360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361 (exit $ac_status); }; }; then
17362 gt_cv_func_gnugettext2_libintl=yes
17363 else
17364 echo "$as_me: failed program was:" >&5
17365 sed 's/^/| /' conftest.$ac_ext >&5
17367 gt_cv_func_gnugettext2_libintl=no
17369 rm -f conftest.err conftest.$ac_objext \
17370 conftest$ac_exeext conftest.$ac_ext
17371 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
17372 LIBS="$LIBS $LIBICONV"
17373 cat >conftest.$ac_ext <<_ACEOF
17374 /* confdefs.h. */
17375 _ACEOF
17376 cat confdefs.h >>conftest.$ac_ext
17377 cat >>conftest.$ac_ext <<_ACEOF
17378 /* end confdefs.h. */
17379 #include <libintl.h>
17380 extern int _nl_msg_cat_cntr;
17381 extern
17382 #ifdef __cplusplus
17384 #endif
17385 const char *_nl_expand_alias ();
17387 main ()
17389 bindtextdomain ("", "");
17390 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17392 return 0;
17394 _ACEOF
17395 rm -f conftest.$ac_objext conftest$ac_exeext
17396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17397 (eval $ac_link) 2>conftest.er1
17398 ac_status=$?
17399 grep -v '^ *+' conftest.er1 >conftest.err
17400 rm -f conftest.er1
17401 cat conftest.err >&5
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); } &&
17404 { ac_try='test -z "$ac_c_werror_flag"
17405 || test ! -s conftest.err'
17406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17407 (eval $ac_try) 2>&5
17408 ac_status=$?
17409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410 (exit $ac_status); }; } &&
17411 { ac_try='test -s conftest$ac_exeext'
17412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17413 (eval $ac_try) 2>&5
17414 ac_status=$?
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); }; }; then
17417 LIBINTL="$LIBINTL $LIBICONV"
17418 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17419 gt_cv_func_gnugettext2_libintl=yes
17421 else
17422 echo "$as_me: failed program was:" >&5
17423 sed 's/^/| /' conftest.$ac_ext >&5
17426 rm -f conftest.err conftest.$ac_objext \
17427 conftest$ac_exeext conftest.$ac_ext
17429 CPPFLAGS="$gt_save_CPPFLAGS"
17430 LIBS="$gt_save_LIBS"
17432 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
17433 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
17436 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
17437 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
17438 && test "$PACKAGE" != gettext; }; then
17439 gt_use_preinstalled_gnugettext=yes
17440 else
17441 LIBINTL=
17442 LTLIBINTL=
17443 INCINTL=
17447 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
17448 nls_cv_use_gnu_gettext=yes
17452 if test "$nls_cv_use_gnu_gettext" = "yes"; then
17453 INTLOBJS="\$(GETTOBJS)"
17454 BUILD_INCLUDED_LIBINTL=yes
17455 USE_INCLUDED_LIBINTL=yes
17456 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
17457 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
17458 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
17461 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17462 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17463 CATOBJEXT=.gmo
17467 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17468 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17470 cat >>confdefs.h <<\_ACEOF
17471 #define ENABLE_NLS 1
17472 _ACEOF
17474 else
17475 USE_NLS=no
17479 if test "$USE_NLS" = "yes"; then
17481 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17482 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
17483 echo "$as_me:$LINENO: checking how to link with libintl" >&5
17484 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
17485 echo "$as_me:$LINENO: result: $LIBINTL" >&5
17486 echo "${ECHO_T}$LIBINTL" >&6
17488 for element in $INCINTL; do
17489 haveit=
17490 for x in $CPPFLAGS; do
17492 acl_save_prefix="$prefix"
17493 prefix="$acl_final_prefix"
17494 acl_save_exec_prefix="$exec_prefix"
17495 exec_prefix="$acl_final_exec_prefix"
17496 eval x=\"$x\"
17497 exec_prefix="$acl_save_exec_prefix"
17498 prefix="$acl_save_prefix"
17500 if test "X$x" = "X$element"; then
17501 haveit=yes
17502 break
17504 done
17505 if test -z "$haveit"; then
17506 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17508 done
17513 cat >>confdefs.h <<\_ACEOF
17514 #define HAVE_GETTEXT 1
17515 _ACEOF
17518 cat >>confdefs.h <<\_ACEOF
17519 #define HAVE_DCGETTEXT 1
17520 _ACEOF
17524 POSUB=po
17528 if test "$PACKAGE" = gettext; then
17529 BUILD_INCLUDED_LIBINTL=yes
17537 nls_cv_header_intl=
17538 nls_cv_header_libgt=
17540 DATADIRNAME=share
17543 INSTOBJEXT=.mo
17546 GENCAT=gencat
17549 INTL_LIBTOOL_SUFFIX_PREFIX=
17553 INTLLIBS="$LIBINTL"
17560 if test $USE_INCLUDED_LIBINTL = yes; then
17561 INCINTL=-I\${top_builddir}/intl
17566 if test x$USE_NLS = xyes; then
17569 echo "$as_me:$LINENO: checking for autopoint" >&5
17570 echo $ECHO_N "checking for autopoint... $ECHO_C" >&6
17572 autopoint_version=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
17573 if test x$autopoint_version != x; then
17574 result="yes"
17575 else
17576 result="no"
17579 echo "$as_me:$LINENO: result: $result ($autopoint_version)" >&5
17580 echo "${ECHO_T}$result ($autopoint_version)" >&6
17582 if test $result = yes; then
17584 else
17585 USE_NLS=no
17591 if test x$USE_NLS = xno -a x${enable_nls-yes} = xyes; then
17592 { echo "$as_me:$LINENO: WARNING: You need to install GNU gettext/gettext-tools to compile aMule with i18n support." >&5
17593 echo "$as_me: WARNING: You need to install GNU gettext/gettext-tools to compile aMule with i18n support." >&2;}
17597 # Look for a way to preallocate disk space for files.
17599 echo "$as_me:$LINENO: checking for fallocate" >&5
17600 echo $ECHO_N "checking for fallocate... $ECHO_C" >&6
17601 cat >conftest.$ac_ext <<_ACEOF
17603 /* confdefs.h. */
17604 _ACEOF
17605 cat confdefs.h >>conftest.$ac_ext
17606 cat >>conftest.$ac_ext <<_ACEOF
17607 /* end confdefs.h. */
17609 #include <linux/falloc.h>
17612 main ()
17615 fallocate(0, 0, 0, 0);
17618 return 0;
17621 _ACEOF
17622 rm -f conftest.$ac_objext conftest$ac_exeext
17623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17624 (eval $ac_link) 2>conftest.er1
17625 ac_status=$?
17626 grep -v '^ *+' conftest.er1 >conftest.err
17627 rm -f conftest.er1
17628 cat conftest.err >&5
17629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630 (exit $ac_status); } &&
17631 { ac_try='test -z "$ac_c_werror_flag"
17632 || test ! -s conftest.err'
17633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17634 (eval $ac_try) 2>&5
17635 ac_status=$?
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); }; } &&
17638 { ac_try='test -s conftest$ac_exeext'
17639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17640 (eval $ac_try) 2>&5
17641 ac_status=$?
17642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); }; }; then
17647 cat >>confdefs.h <<\_ACEOF
17648 #define HAVE_FALLOCATE 1
17649 _ACEOF
17651 echo "$as_me:$LINENO: result: yes" >&5
17652 echo "${ECHO_T}yes" >&6
17654 else
17655 echo "$as_me: failed program was:" >&5
17656 sed 's/^/| /' conftest.$ac_ext >&5
17659 echo "$as_me:$LINENO: result: no" >&5
17660 echo "${ECHO_T}no" >&6
17663 rm -f conftest.err conftest.$ac_objext \
17664 conftest$ac_exeext conftest.$ac_ext
17667 echo "$as_me:$LINENO: checking for SYS_fallocate" >&5
17668 echo $ECHO_N "checking for SYS_fallocate... $ECHO_C" >&6
17669 cat >conftest.$ac_ext <<_ACEOF
17671 /* confdefs.h. */
17672 _ACEOF
17673 cat confdefs.h >>conftest.$ac_ext
17674 cat >>conftest.$ac_ext <<_ACEOF
17675 /* end confdefs.h. */
17677 #include <sys/sycall.h>
17678 #include <sys/types.h>
17679 #include <unistd.h>
17682 main ()
17685 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0);
17688 return 0;
17691 _ACEOF
17692 rm -f conftest.$ac_objext conftest$ac_exeext
17693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17694 (eval $ac_link) 2>conftest.er1
17695 ac_status=$?
17696 grep -v '^ *+' conftest.er1 >conftest.err
17697 rm -f conftest.er1
17698 cat conftest.err >&5
17699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17700 (exit $ac_status); } &&
17701 { ac_try='test -z "$ac_c_werror_flag"
17702 || test ! -s conftest.err'
17703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17704 (eval $ac_try) 2>&5
17705 ac_status=$?
17706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707 (exit $ac_status); }; } &&
17708 { ac_try='test -s conftest$ac_exeext'
17709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17710 (eval $ac_try) 2>&5
17711 ac_status=$?
17712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713 (exit $ac_status); }; }; then
17717 cat >>confdefs.h <<\_ACEOF
17718 #define HAVE_SYS_FALLOCATE 1
17719 _ACEOF
17721 echo "$as_me:$LINENO: result: yes" >&5
17722 echo "${ECHO_T}yes" >&6
17724 else
17725 echo "$as_me: failed program was:" >&5
17726 sed 's/^/| /' conftest.$ac_ext >&5
17729 echo "$as_me:$LINENO: result: no" >&5
17730 echo "${ECHO_T}no" >&6
17733 rm -f conftest.err conftest.$ac_objext \
17734 conftest$ac_exeext conftest.$ac_ext
17736 echo "$as_me:$LINENO: checking for posix_fallocate" >&5
17737 echo $ECHO_N "checking for posix_fallocate... $ECHO_C" >&6
17738 cat >conftest.$ac_ext <<_ACEOF
17740 /* confdefs.h. */
17741 _ACEOF
17742 cat confdefs.h >>conftest.$ac_ext
17743 cat >>conftest.$ac_ext <<_ACEOF
17744 /* end confdefs.h. */
17746 #define _XOPEN_SOURCE 600
17747 #include <stdlib.h>
17748 #ifdef HAVE_FCNTL_H
17749 # include <fcntl.h>
17750 #endif
17753 main ()
17756 posix_fallocate(0, 0, 0);
17759 return 0;
17762 _ACEOF
17763 rm -f conftest.$ac_objext conftest$ac_exeext
17764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17765 (eval $ac_link) 2>conftest.er1
17766 ac_status=$?
17767 grep -v '^ *+' conftest.er1 >conftest.err
17768 rm -f conftest.er1
17769 cat conftest.err >&5
17770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 (exit $ac_status); } &&
17772 { ac_try='test -z "$ac_c_werror_flag"
17773 || test ! -s conftest.err'
17774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17775 (eval $ac_try) 2>&5
17776 ac_status=$?
17777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778 (exit $ac_status); }; } &&
17779 { ac_try='test -s conftest$ac_exeext'
17780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17781 (eval $ac_try) 2>&5
17782 ac_status=$?
17783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784 (exit $ac_status); }; }; then
17788 cat >>confdefs.h <<\_ACEOF
17789 #define HAVE_POSIX_FALLOCATE 1
17790 _ACEOF
17792 echo "$as_me:$LINENO: result: yes" >&5
17793 echo "${ECHO_T}yes" >&6
17795 else
17796 echo "$as_me: failed program was:" >&5
17797 sed 's/^/| /' conftest.$ac_ext >&5
17800 echo "$as_me:$LINENO: result: no" >&5
17801 echo "${ECHO_T}no" >&6
17804 rm -f conftest.err conftest.$ac_objext \
17805 conftest$ac_exeext conftest.$ac_ext
17809 # Flush standard test results for speeding cache
17810 cat >confcache <<\_ACEOF
17811 # This file is a shell script that caches the results of configure
17812 # tests run on this system so they can be shared between configure
17813 # scripts and configure runs, see configure's option --config-cache.
17814 # It is not useful on other systems. If it contains results you don't
17815 # want to keep, you may remove or edit it.
17817 # config.status only pays attention to the cache file if you give it
17818 # the --recheck option to rerun configure.
17820 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17821 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17822 # following values.
17824 _ACEOF
17826 # The following way of writing the cache mishandles newlines in values,
17827 # but we know of no workaround that is simple, portable, and efficient.
17828 # So, don't put newlines in cache variables' values.
17829 # Ultrix sh set writes to stderr and can't be redirected directly,
17830 # and sets the high bit in the cache file unless we assign to the vars.
17832 (set) 2>&1 |
17833 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17834 *ac_space=\ *)
17835 # `set' does not quote correctly, so add quotes (double-quote
17836 # substitution turns \\\\ into \\, and sed turns \\ into \).
17837 sed -n \
17838 "s/'/'\\\\''/g;
17839 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17842 # `set' quotes correctly as required by POSIX, so do not add quotes.
17843 sed -n \
17844 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17846 esac;
17848 sed '
17849 t clear
17850 : clear
17851 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17852 t end
17853 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17854 : end' >>confcache
17855 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17856 if test -w $cache_file; then
17857 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17858 cat confcache >$cache_file
17859 else
17860 echo "not updating unwritable cache $cache_file"
17863 rm -f confcache
17865 # Other tests
17867 case "$USE_DEBUG" in
17868 yes) DEBUG_FLAGS="-g -D__DEBUG__ -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC"
17869 if test x$GCC = xyes; then
17870 DEBUG_FLAGS="$DEBUG_FLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
17873 if test x$SYS = xwin32; then
17874 RCFLAGS="$RCFLAGS -D__DEBUG__"
17878 *) DEBUG_FLAGS=""
17879 if test x$GCC = xyes; then
17880 DEBUG_FLAGS="$DEBUG_FLAGS -W -Wall -Wshadow -Wundef"
17884 esac
17886 #aMule options
17888 # Command line tools
17889 case "$AMULECMD" in
17890 yes) ;;
17891 *) AMULECMD="no"
17893 esac
17895 # For proper compilation flags
17897 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs adv,core,net`
17899 WXBASE_LIBS=`$WX_CONFIG_WITH_ARGS --libs net`
17900 WXBASE_CXXFLAGS="$WX_CXXFLAGS -DwxUSE_GUI=0"
17901 WXBASE_CFLAGS="$WX_CFLAGS -DwxUSE_GUI=0"
17907 case "$USE_OPTIMIZE" in
17908 yes) OPTIMIZE_FLAGS="-O2"
17910 *) OPTIMIZE_FLAGS=""
17912 esac
17914 # Profiling
17915 case "$USE_PROFILE" in
17916 yes) PROFILE_FLAGS="-pg"
17918 *) PROFILE_FLAGS=""
17920 esac
17922 echo "$as_me:$LINENO: checking if the applications should be statically linked" >&5
17923 echo $ECHO_N "checking if the applications should be statically linked... $ECHO_C" >&6
17924 case "$USE_DEBUG_STATIC" in
17925 yes) LDFLAGS="$LDFLAGS -static"
17927 esac
17928 echo "$as_me:$LINENO: result: $USE_DEBUG_STATIC" >&5
17929 echo "${ECHO_T}$USE_DEBUG_STATIC" >&6
17931 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
17932 echo "$as_me:$LINENO: checking for docdir" >&5
17933 echo $ECHO_N "checking for docdir... $ECHO_C" >&6
17934 if test x"$docdir" = x; then
17935 docdir="$datadir"/doc/"$PACKAGE_NAME"-"$PACKAGE_VERSION"
17938 echo "$as_me:$LINENO: result: $docdir" >&5
17939 echo "${ECHO_T}$docdir" >&6
17941 # Try to set the SVN checkout-date
17942 echo "$as_me:$LINENO: checking for SVNDATE" >&5
17943 echo $ECHO_N "checking for SVNDATE... $ECHO_C" >&6
17944 if test -f "$srcdir/SVNDATE" # SVNDATE for tarballs
17945 then
17946 svndate=`cat $srcdir/SVNDATE`
17947 elif test -d $srcdir/.svn # SVNDATE for svn
17948 then
17949 svndate="rev. `svnversion $srcdir | sed -e 's/[0-9][0-9]*:\(.*\)/\1/' -e 's/\([0-9][0-9]*\).*/\1/'`"
17951 echo "$as_me:$LINENO: result: ${svndate:-None required}" >&5
17952 echo "${ECHO_T}${svndate:-None required}" >&6
17953 test "$svndate" &&
17954 cat >>confdefs.h <<_ACEOF
17955 #define SVNDATE "$svndate"
17956 _ACEOF
17958 test x$SYS = xwin32 && test "$svndate" && RCFLAGS="$RCFLAGS -D__PRERELEASE__"
17959 SVNDATE="$svndate"
17962 XRCFLAGS="-Isrc"
17963 CXXFLAGS="$CXXFLAGS $DEBUG_FLAGS $OPTIMIZE_FLAGS $PROFILE_FLAGS -DUSE_WX_EXTENSIONS"
17964 CFLAGS="$CFLAGS $DEBUG_FLAGS $OPTIMIZE_FLAGS $PROFILE_FLAGS -DUSE_WX_EXTENSIONS"
17966 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
17967 if test x$SYS != xwin32; then
17968 echo "$as_me:$LINENO: checking if this is a FreeBSD 4 or earlier system" >&5
17969 echo $ECHO_N "checking if this is a FreeBSD 4 or earlier system... $ECHO_C" >&6
17970 if test x"`uname -s`" = xFreeBSD && test 0`uname -r | cut -c 1` -lt 5; then
17971 LDFLAGS="$LDFLAGS -pthread"
17972 echo "$as_me:$LINENO: result: yes" >&5
17973 echo "${ECHO_T}yes" >&6
17974 else
17975 LDFLAGS="$LDFLAGS -lpthread"
17976 echo "$as_me:$LINENO: result: no" >&5
17977 echo "${ECHO_T}no" >&6
17981 if test "$USE_NLS" = "yes" ; then
17982 echo "$as_me:$LINENO: checking for requested languages" >&5
17983 echo $ECHO_N "checking for requested languages... $ECHO_C" >&6
17984 Generate_Langs=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
17986 if test "$AMULE_DAEMON" == "yes"; then
17987 if test "$LINGUAS" = ""; then
17988 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
17989 else
17990 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17991 AMULE_DAEMON_MANPAGES="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
17993 AMULE_DAEMON_MANPAGES=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
17994 else
17995 AMULE_DAEMON_MANPAGES=
18000 if test "$AMULECMD" == "yes"; then
18001 if test "$LINGUAS" = ""; then
18002 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
18003 else
18004 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18005 AMULECMD_MANPAGES="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
18007 AMULECMD_MANPAGES=`echo $AMULECMD_MANPAGES | tr -d '\n'`
18008 else
18009 AMULECMD_MANPAGES=
18014 if test "$WEB" == "yes"; then
18015 if test "$LINGUAS" = ""; then
18016 WEB_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
18017 else
18018 WEB_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18019 WEB_MANPAGES="`basename docs/man/amuleweb.1` $WEB_MANPAGES"
18021 WEB_MANPAGES=`echo $WEB_MANPAGES | tr -d '\n'`
18022 else
18023 WEB_MANPAGES=
18028 if test "$AMULE_GUI" == "yes"; then
18029 if test "$LINGUAS" = ""; then
18030 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
18031 else
18032 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18033 AMULE_GUI_MANPAGES="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
18035 AMULE_GUI_MANPAGES=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
18036 else
18037 AMULE_GUI_MANPAGES=
18042 if test "$CAS" == "yes"; then
18043 if test "$LINGUAS" = ""; then
18044 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
18045 else
18046 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18047 CAS_MANPAGES="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
18049 CAS_MANPAGES=`echo $CAS_MANPAGES | tr -d '\n'`
18050 else
18051 CAS_MANPAGES=
18056 if test "$WXCAS" == "yes"; then
18057 if test "$LINGUAS" = ""; then
18058 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
18059 else
18060 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18061 WXCAS_MANPAGES="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
18063 WXCAS_MANPAGES=`echo $WXCAS_MANPAGES | tr -d '\n'`
18064 else
18065 WXCAS_MANPAGES=
18070 if test "$ED2K" == "yes"; then
18071 if test "$LINGUAS" = ""; then
18072 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
18073 else
18074 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18075 ED2K_MANPAGES="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
18077 ED2K_MANPAGES=`echo $ED2K_MANPAGES | tr -d '\n'`
18078 else
18079 ED2K_MANPAGES=
18084 if test "$ALC" == "yes"; then
18085 if test "$LINGUAS" = ""; then
18086 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
18087 else
18088 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18089 ALC_MANPAGES="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
18091 ALC_MANPAGES=`echo $ALC_MANPAGES | tr -d '\n'`
18092 else
18093 ALC_MANPAGES=
18098 if test "$ALCC" == "yes"; then
18099 if test "$LINGUAS" = ""; then
18100 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
18101 else
18102 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18103 ALCC_MANPAGES="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
18105 ALCC_MANPAGES=`echo $ALCC_MANPAGES | tr -d '\n'`
18106 else
18107 ALCC_MANPAGES=
18112 if test "$MONOLITHIC" == "yes"; then
18113 if test "$LINGUAS" = ""; then
18114 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
18115 else
18116 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs `
18117 MONOLITHIC_MANPAGES="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
18119 MONOLITHIC_MANPAGES=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
18120 else
18121 MONOLITHIC_MANPAGES=
18125 echo "$as_me:$LINENO: result: ${LINGUAS:-all}" >&5
18126 echo "${ECHO_T}${LINGUAS:-all}" >&6
18129 echo "$as_me:$LINENO: checking denoising level" >&5
18130 echo $ECHO_N "checking denoising level... $ECHO_C" >&6
18131 if test "$denoiselevel" = "yes"; then
18132 denoiselevel=5
18134 if test "$denoiselevel" = "no"; then
18135 denoiselevel=0
18137 if test $denoiselevel -gt 4; then
18138 if test "${svndate:+set}" = "set"; then
18139 denoiselevel=0
18140 else
18141 denoiselevel=4
18145 echo "$as_me:$LINENO: result: $denoiselevel" >&5
18146 echo "${ECHO_T}$denoiselevel" >&6
18148 ac_config_commands="$ac_config_commands denoiser"
18154 if test x$WEB = xyes; then
18155 WEB_TRUE=
18156 WEB_FALSE='#'
18157 else
18158 WEB_TRUE='#'
18159 WEB_FALSE=
18164 if test x$ED2K = xyes; then
18165 ED2K_TRUE=
18166 ED2K_FALSE='#'
18167 else
18168 ED2K_TRUE='#'
18169 ED2K_FALSE=
18174 if test x$CAS = xyes; then
18175 CAS_TRUE=
18176 CAS_FALSE='#'
18177 else
18178 CAS_TRUE='#'
18179 CAS_FALSE=
18184 if test x$WXCAS = xyes; then
18185 WXCAS_TRUE=
18186 WXCAS_FALSE='#'
18187 else
18188 WXCAS_TRUE='#'
18189 WXCAS_FALSE=
18194 if test x$ALC = xyes; then
18195 ALC_TRUE=
18196 ALC_FALSE='#'
18197 else
18198 ALC_TRUE='#'
18199 ALC_FALSE=
18204 if test x$ALCC = xyes; then
18205 ALCC_TRUE=
18206 ALCC_FALSE='#'
18207 else
18208 ALCC_TRUE='#'
18209 ALCC_FALSE=
18214 if test x$AMULE_GUI = xyes; then
18215 AMULE_GUI_TRUE=
18216 AMULE_GUI_FALSE='#'
18217 else
18218 AMULE_GUI_TRUE='#'
18219 AMULE_GUI_FALSE=
18224 if test x$AMULE_DAEMON = xyes; then
18225 AMULE_DAEMON_TRUE=
18226 AMULE_DAEMON_FALSE='#'
18227 else
18228 AMULE_DAEMON_TRUE='#'
18229 AMULE_DAEMON_FALSE=
18234 if test x$AMULECMD = xyes; then
18235 COMPILE_CMD_TRUE=
18236 COMPILE_CMD_FALSE='#'
18237 else
18238 COMPILE_CMD_TRUE='#'
18239 COMPILE_CMD_FALSE=
18244 if test x$MONOLITHIC = xyes; then
18245 MONOLITHIC_TRUE=
18246 MONOLITHIC_FALSE='#'
18247 else
18248 MONOLITHIC_TRUE='#'
18249 MONOLITHIC_FALSE=
18254 if test x$ENABLE_UPNP = xyes -a x$SYS != xwin32; then
18255 ENABLE_UPNP_TRUE=
18256 ENABLE_UPNP_FALSE='#'
18257 else
18258 ENABLE_UPNP_TRUE='#'
18259 ENABLE_UPNP_FALSE=
18264 if test x$ENABLE_IP2COUNTRY = xyes; then
18265 ENABLE_IP2COUNTRY_TRUE=
18266 ENABLE_IP2COUNTRY_FALSE='#'
18267 else
18268 ENABLE_IP2COUNTRY_TRUE='#'
18269 ENABLE_IP2COUNTRY_FALSE=
18274 if test x$SYS = xwin32; then
18275 SYS_WIN32_TRUE=
18276 SYS_WIN32_FALSE='#'
18277 else
18278 SYS_WIN32_TRUE='#'
18279 SYS_WIN32_FALSE=
18284 if test x$SYS = xwin32 -a "$RC" != ":"; then
18285 NEED_RC_TRUE=
18286 NEED_RC_FALSE='#'
18287 else
18288 NEED_RC_TRUE='#'
18289 NEED_RC_FALSE=
18294 if test x$SYS = xdarwin; then
18295 NEED_CORESERVICES_TRUE=
18296 NEED_CORESERVICES_FALSE='#'
18297 else
18298 NEED_CORESERVICES_TRUE='#'
18299 NEED_CORESERVICES_FALSE=
18304 if test x$USE_NLS = xyes; then
18305 COMPILE_NLS_TRUE=
18306 COMPILE_NLS_FALSE='#'
18307 else
18308 COMPILE_NLS_TRUE='#'
18309 COMPILE_NLS_FALSE=
18314 if test x$HAVE_FLEX_EXTENDED = xyes; then
18315 GENERATE_FLEX_HEADER_TRUE=
18316 GENERATE_FLEX_HEADER_FALSE='#'
18317 else
18318 GENERATE_FLEX_HEADER_TRUE='#'
18319 GENERATE_FLEX_HEADER_FALSE=
18323 if test x$AMULECMD = xyes -o x$WEB = xyes; then
18325 echo "$as_me:$LINENO: checking for a readline compatible library" >&5
18326 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6
18327 if test "${vl_cv_lib_readline+set}" = set; then
18328 echo $ECHO_N "(cached) $ECHO_C" >&6
18329 else
18331 ORIG_LIBS="$LIBS"
18332 for readline_lib in readline edit editline; do
18333 for termcap_lib in "" termcap curses ncurses; do
18334 if test -z "$termcap_lib"; then
18335 TRY_LIB="-l$readline_lib"
18336 else
18337 TRY_LIB="-l$readline_lib -l$termcap_lib"
18339 LIBS="$ORIG_LIBS $TRY_LIB"
18340 cat >conftest.$ac_ext <<_ACEOF
18341 /* confdefs.h. */
18342 _ACEOF
18343 cat confdefs.h >>conftest.$ac_ext
18344 cat >>conftest.$ac_ext <<_ACEOF
18345 /* end confdefs.h. */
18347 /* Override any gcc2 internal prototype to avoid an error. */
18348 #ifdef __cplusplus
18349 extern "C"
18350 #endif
18351 /* We use char because int might match the return type of a gcc2
18352 builtin and then its argument prototype would still apply. */
18353 char readline ();
18355 main ()
18357 readline ();
18359 return 0;
18361 _ACEOF
18362 rm -f conftest.$ac_objext conftest$ac_exeext
18363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18364 (eval $ac_link) 2>conftest.er1
18365 ac_status=$?
18366 grep -v '^ *+' conftest.er1 >conftest.err
18367 rm -f conftest.er1
18368 cat conftest.err >&5
18369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370 (exit $ac_status); } &&
18371 { ac_try='test -z "$ac_c_werror_flag"
18372 || test ! -s conftest.err'
18373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18374 (eval $ac_try) 2>&5
18375 ac_status=$?
18376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18377 (exit $ac_status); }; } &&
18378 { ac_try='test -s conftest$ac_exeext'
18379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18380 (eval $ac_try) 2>&5
18381 ac_status=$?
18382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); }; }; then
18384 vl_cv_lib_readline="$TRY_LIB"
18385 else
18386 echo "$as_me: failed program was:" >&5
18387 sed 's/^/| /' conftest.$ac_ext >&5
18390 rm -f conftest.err conftest.$ac_objext \
18391 conftest$ac_exeext conftest.$ac_ext
18392 if test -n "$vl_cv_lib_readline"; then
18393 break
18395 done
18396 if test -n "$vl_cv_lib_readline"; then
18397 break
18399 done
18400 if test -z "$vl_cv_lib_readline"; then
18401 vl_cv_lib_readline="no"
18402 LIBS="$ORIG_LIBS"
18403 READLINE_LIBS=""
18404 else
18405 READLINE_LIBS="$vl_cv_lib_readline"
18409 echo "$as_me:$LINENO: result: $vl_cv_lib_readline" >&5
18410 echo "${ECHO_T}$vl_cv_lib_readline" >&6
18412 if test "$vl_cv_lib_readline" != "no"; then
18414 cat >>confdefs.h <<\_ACEOF
18415 #define HAVE_LIBREADLINE 1
18416 _ACEOF
18420 for ac_header in readline.h readline/readline.h
18422 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18424 echo "$as_me:$LINENO: checking for $ac_header" >&5
18425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18427 echo $ECHO_N "(cached) $ECHO_C" >&6
18429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18431 else
18432 # Is the header compilable?
18433 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18434 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18435 cat >conftest.$ac_ext <<_ACEOF
18436 /* confdefs.h. */
18437 _ACEOF
18438 cat confdefs.h >>conftest.$ac_ext
18439 cat >>conftest.$ac_ext <<_ACEOF
18440 /* end confdefs.h. */
18441 $ac_includes_default
18442 #include <$ac_header>
18443 _ACEOF
18444 rm -f conftest.$ac_objext
18445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18446 (eval $ac_compile) 2>conftest.er1
18447 ac_status=$?
18448 grep -v '^ *+' conftest.er1 >conftest.err
18449 rm -f conftest.er1
18450 cat conftest.err >&5
18451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452 (exit $ac_status); } &&
18453 { ac_try='test -z "$ac_c_werror_flag"
18454 || test ! -s conftest.err'
18455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18456 (eval $ac_try) 2>&5
18457 ac_status=$?
18458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459 (exit $ac_status); }; } &&
18460 { ac_try='test -s conftest.$ac_objext'
18461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18462 (eval $ac_try) 2>&5
18463 ac_status=$?
18464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465 (exit $ac_status); }; }; then
18466 ac_header_compiler=yes
18467 else
18468 echo "$as_me: failed program was:" >&5
18469 sed 's/^/| /' conftest.$ac_ext >&5
18471 ac_header_compiler=no
18473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18474 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18475 echo "${ECHO_T}$ac_header_compiler" >&6
18477 # Is the header present?
18478 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18479 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18480 cat >conftest.$ac_ext <<_ACEOF
18481 /* confdefs.h. */
18482 _ACEOF
18483 cat confdefs.h >>conftest.$ac_ext
18484 cat >>conftest.$ac_ext <<_ACEOF
18485 /* end confdefs.h. */
18486 #include <$ac_header>
18487 _ACEOF
18488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18490 ac_status=$?
18491 grep -v '^ *+' conftest.er1 >conftest.err
18492 rm -f conftest.er1
18493 cat conftest.err >&5
18494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495 (exit $ac_status); } >/dev/null; then
18496 if test -s conftest.err; then
18497 ac_cpp_err=$ac_c_preproc_warn_flag
18498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18499 else
18500 ac_cpp_err=
18502 else
18503 ac_cpp_err=yes
18505 if test -z "$ac_cpp_err"; then
18506 ac_header_preproc=yes
18507 else
18508 echo "$as_me: failed program was:" >&5
18509 sed 's/^/| /' conftest.$ac_ext >&5
18511 ac_header_preproc=no
18513 rm -f conftest.err conftest.$ac_ext
18514 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18515 echo "${ECHO_T}$ac_header_preproc" >&6
18517 # So? What about this header?
18518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18519 yes:no: )
18520 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18521 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18523 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18524 ac_header_preproc=yes
18526 no:yes:* )
18527 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18528 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18529 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18530 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18531 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18532 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18533 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18534 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18536 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18537 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18538 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18540 cat <<\_ASBOX
18541 ## ------------------------------ ##
18542 ## Report this to admin@amule.org ##
18543 ## ------------------------------ ##
18544 _ASBOX
18546 sed "s/^/$as_me: WARNING: /" >&2
18548 esac
18549 echo "$as_me:$LINENO: checking for $ac_header" >&5
18550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18552 echo $ECHO_N "(cached) $ECHO_C" >&6
18553 else
18554 eval "$as_ac_Header=\$ac_header_preproc"
18556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18557 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18561 cat >>confdefs.h <<_ACEOF
18562 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18563 _ACEOF
18567 done
18569 echo "$as_me:$LINENO: checking whether readline supports history" >&5
18570 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6
18571 if test "${vl_cv_lib_readline_history+set}" = set; then
18572 echo $ECHO_N "(cached) $ECHO_C" >&6
18573 else
18575 vl_cv_lib_readline_history="no"
18576 cat >conftest.$ac_ext <<_ACEOF
18577 /* confdefs.h. */
18578 _ACEOF
18579 cat confdefs.h >>conftest.$ac_ext
18580 cat >>conftest.$ac_ext <<_ACEOF
18581 /* end confdefs.h. */
18583 /* Override any gcc2 internal prototype to avoid an error. */
18584 #ifdef __cplusplus
18585 extern "C"
18586 #endif
18587 /* We use char because int might match the return type of a gcc2
18588 builtin and then its argument prototype would still apply. */
18589 char add_history ();
18591 main ()
18593 add_history ();
18595 return 0;
18597 _ACEOF
18598 rm -f conftest.$ac_objext conftest$ac_exeext
18599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18600 (eval $ac_link) 2>conftest.er1
18601 ac_status=$?
18602 grep -v '^ *+' conftest.er1 >conftest.err
18603 rm -f conftest.er1
18604 cat conftest.err >&5
18605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606 (exit $ac_status); } &&
18607 { ac_try='test -z "$ac_c_werror_flag"
18608 || test ! -s conftest.err'
18609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18610 (eval $ac_try) 2>&5
18611 ac_status=$?
18612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613 (exit $ac_status); }; } &&
18614 { ac_try='test -s conftest$ac_exeext'
18615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18616 (eval $ac_try) 2>&5
18617 ac_status=$?
18618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18619 (exit $ac_status); }; }; then
18620 vl_cv_lib_readline_history="yes"
18621 else
18622 echo "$as_me: failed program was:" >&5
18623 sed 's/^/| /' conftest.$ac_ext >&5
18626 rm -f conftest.err conftest.$ac_objext \
18627 conftest$ac_exeext conftest.$ac_ext
18630 echo "$as_me:$LINENO: result: $vl_cv_lib_readline_history" >&5
18631 echo "${ECHO_T}$vl_cv_lib_readline_history" >&6
18632 if test "$vl_cv_lib_readline_history" = "yes"; then
18634 cat >>confdefs.h <<\_ACEOF
18635 #define HAVE_READLINE_HISTORY 1
18636 _ACEOF
18640 for ac_header in history.h readline/history.h
18642 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18644 echo "$as_me:$LINENO: checking for $ac_header" >&5
18645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18647 echo $ECHO_N "(cached) $ECHO_C" >&6
18649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18650 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18651 else
18652 # Is the header compilable?
18653 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18654 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18655 cat >conftest.$ac_ext <<_ACEOF
18656 /* confdefs.h. */
18657 _ACEOF
18658 cat confdefs.h >>conftest.$ac_ext
18659 cat >>conftest.$ac_ext <<_ACEOF
18660 /* end confdefs.h. */
18661 $ac_includes_default
18662 #include <$ac_header>
18663 _ACEOF
18664 rm -f conftest.$ac_objext
18665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18666 (eval $ac_compile) 2>conftest.er1
18667 ac_status=$?
18668 grep -v '^ *+' conftest.er1 >conftest.err
18669 rm -f conftest.er1
18670 cat conftest.err >&5
18671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18672 (exit $ac_status); } &&
18673 { ac_try='test -z "$ac_c_werror_flag"
18674 || test ! -s conftest.err'
18675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18676 (eval $ac_try) 2>&5
18677 ac_status=$?
18678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679 (exit $ac_status); }; } &&
18680 { ac_try='test -s conftest.$ac_objext'
18681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18682 (eval $ac_try) 2>&5
18683 ac_status=$?
18684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685 (exit $ac_status); }; }; then
18686 ac_header_compiler=yes
18687 else
18688 echo "$as_me: failed program was:" >&5
18689 sed 's/^/| /' conftest.$ac_ext >&5
18691 ac_header_compiler=no
18693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18694 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18695 echo "${ECHO_T}$ac_header_compiler" >&6
18697 # Is the header present?
18698 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18699 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18700 cat >conftest.$ac_ext <<_ACEOF
18701 /* confdefs.h. */
18702 _ACEOF
18703 cat confdefs.h >>conftest.$ac_ext
18704 cat >>conftest.$ac_ext <<_ACEOF
18705 /* end confdefs.h. */
18706 #include <$ac_header>
18707 _ACEOF
18708 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18709 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18710 ac_status=$?
18711 grep -v '^ *+' conftest.er1 >conftest.err
18712 rm -f conftest.er1
18713 cat conftest.err >&5
18714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715 (exit $ac_status); } >/dev/null; then
18716 if test -s conftest.err; then
18717 ac_cpp_err=$ac_c_preproc_warn_flag
18718 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18719 else
18720 ac_cpp_err=
18722 else
18723 ac_cpp_err=yes
18725 if test -z "$ac_cpp_err"; then
18726 ac_header_preproc=yes
18727 else
18728 echo "$as_me: failed program was:" >&5
18729 sed 's/^/| /' conftest.$ac_ext >&5
18731 ac_header_preproc=no
18733 rm -f conftest.err conftest.$ac_ext
18734 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18735 echo "${ECHO_T}$ac_header_preproc" >&6
18737 # So? What about this header?
18738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18739 yes:no: )
18740 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18743 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18744 ac_header_preproc=yes
18746 no:yes:* )
18747 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18748 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18749 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18750 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18751 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18752 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18753 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18754 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18757 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18758 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18760 cat <<\_ASBOX
18761 ## ------------------------------ ##
18762 ## Report this to admin@amule.org ##
18763 ## ------------------------------ ##
18764 _ASBOX
18766 sed "s/^/$as_me: WARNING: /" >&2
18768 esac
18769 echo "$as_me:$LINENO: checking for $ac_header" >&5
18770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18772 echo $ECHO_N "(cached) $ECHO_C" >&6
18773 else
18774 eval "$as_ac_Header=\$ac_header_preproc"
18776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18777 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18781 cat >>confdefs.h <<_ACEOF
18782 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18783 _ACEOF
18787 done
18792 LIBS="$ORIG_LIBS"
18796 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
18800 # Check whether --with-ccache-prefix or --without-ccache-prefix was given.
18801 if test "${with_ccache_prefix+set}" = set; then
18802 withval="$with_ccache_prefix"
18803 ccache_prefix="$withval"
18804 else
18805 ccache_prefix=""
18809 echo "$as_me:$LINENO: checking whether ccache support should be added" >&5
18810 echo $ECHO_N "checking whether ccache support should be added... $ECHO_C" >&6
18811 echo "$as_me:$LINENO: result: $ccache" >&5
18812 echo "${ECHO_T}$ccache" >&6
18815 case "$ccache" in
18817 yes)
18819 if test x$ccache_prefix == x ; then
18820 ccache_full=$(which ccache)
18821 ccache_prefix=$(dirname ${ccache_full})
18823 $ccache_prefix/ccache -V > /dev/null 2>&1
18824 CCACHE=$?
18825 if test "$CCACHE" != 0; then
18826 result="no"
18827 else
18828 result="yes"
18830 echo "$as_me:$LINENO: checking for ccache presence" >&5
18831 echo $ECHO_N "checking for ccache presence... $ECHO_C" >&6
18832 echo "$as_me:$LINENO: result: $result" >&5
18833 echo "${ECHO_T}$result" >&6
18837 if [ $CCACHE = 0 ]; then
18838 GCC="$ccache_prefix/ccache $GCC"
18839 CC="$ccache_prefix/ccache $CC"
18840 GXX="$ccache_prefix/ccache $GXX"
18841 CXX="$ccache_prefix/ccache $CXX"
18842 BUILD_CC="$ccache_prefix/ccache $BUILD_CC"
18844 esac
18846 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"
18848 ac_config_files="$ac_config_files po/Makefile.in Compilation.flags"
18850 if test x$SYS = xwin32; then
18851 ac_config_files="$ac_config_files version.rc"
18855 cat >confcache <<\_ACEOF
18856 # This file is a shell script that caches the results of configure
18857 # tests run on this system so they can be shared between configure
18858 # scripts and configure runs, see configure's option --config-cache.
18859 # It is not useful on other systems. If it contains results you don't
18860 # want to keep, you may remove or edit it.
18862 # config.status only pays attention to the cache file if you give it
18863 # the --recheck option to rerun configure.
18865 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18866 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18867 # following values.
18869 _ACEOF
18871 # The following way of writing the cache mishandles newlines in values,
18872 # but we know of no workaround that is simple, portable, and efficient.
18873 # So, don't put newlines in cache variables' values.
18874 # Ultrix sh set writes to stderr and can't be redirected directly,
18875 # and sets the high bit in the cache file unless we assign to the vars.
18877 (set) 2>&1 |
18878 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18879 *ac_space=\ *)
18880 # `set' does not quote correctly, so add quotes (double-quote
18881 # substitution turns \\\\ into \\, and sed turns \\ into \).
18882 sed -n \
18883 "s/'/'\\\\''/g;
18884 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18887 # `set' quotes correctly as required by POSIX, so do not add quotes.
18888 sed -n \
18889 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18891 esac;
18893 sed '
18894 t clear
18895 : clear
18896 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18897 t end
18898 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18899 : end' >>confcache
18900 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18901 if test -w $cache_file; then
18902 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18903 cat confcache >$cache_file
18904 else
18905 echo "not updating unwritable cache $cache_file"
18908 rm -f confcache
18910 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18911 # Let make expand exec_prefix.
18912 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18914 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18915 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18916 # trailing colons and then remove the whole line if VPATH becomes empty
18917 # (actually we leave an empty line to preserve line numbers).
18918 if test "x$srcdir" = x.; then
18919 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18920 s/:*\$(srcdir):*/:/;
18921 s/:*\${srcdir}:*/:/;
18922 s/:*@srcdir@:*/:/;
18923 s/^\([^=]*=[ ]*\):*/\1/;
18924 s/:*$//;
18925 s/^[^=]*=[ ]*$//;
18929 DEFS=-DHAVE_CONFIG_H
18931 ac_libobjs=
18932 ac_ltlibobjs=
18933 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18934 # 1. Remove the extension, and $U if already installed.
18935 ac_i=`echo "$ac_i" |
18936 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18937 # 2. Add them.
18938 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18939 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18940 done
18941 LIBOBJS=$ac_libobjs
18943 LTLIBOBJS=$ac_ltlibobjs
18946 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18947 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
18948 Usually this means the macro was only invoked conditionally." >&5
18949 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
18950 Usually this means the macro was only invoked conditionally." >&2;}
18951 { (exit 1); exit 1; }; }
18953 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18954 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
18955 Usually this means the macro was only invoked conditionally." >&5
18956 echo "$as_me: error: conditional \"AMDEP\" was never defined.
18957 Usually this means the macro was only invoked conditionally." >&2;}
18958 { (exit 1); exit 1; }; }
18960 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18961 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
18962 Usually this means the macro was only invoked conditionally." >&5
18963 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
18964 Usually this means the macro was only invoked conditionally." >&2;}
18965 { (exit 1); exit 1; }; }
18967 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18968 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
18969 Usually this means the macro was only invoked conditionally." >&5
18970 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
18971 Usually this means the macro was only invoked conditionally." >&2;}
18972 { (exit 1); exit 1; }; }
18974 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
18975 { { echo "$as_me:$LINENO: error: conditional \"WEB\" was never defined.
18976 Usually this means the macro was only invoked conditionally." >&5
18977 echo "$as_me: error: conditional \"WEB\" was never defined.
18978 Usually this means the macro was only invoked conditionally." >&2;}
18979 { (exit 1); exit 1; }; }
18981 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
18982 { { echo "$as_me:$LINENO: error: conditional \"ED2K\" was never defined.
18983 Usually this means the macro was only invoked conditionally." >&5
18984 echo "$as_me: error: conditional \"ED2K\" was never defined.
18985 Usually this means the macro was only invoked conditionally." >&2;}
18986 { (exit 1); exit 1; }; }
18988 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
18989 { { echo "$as_me:$LINENO: error: conditional \"CAS\" was never defined.
18990 Usually this means the macro was only invoked conditionally." >&5
18991 echo "$as_me: error: conditional \"CAS\" was never defined.
18992 Usually this means the macro was only invoked conditionally." >&2;}
18993 { (exit 1); exit 1; }; }
18995 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
18996 { { echo "$as_me:$LINENO: error: conditional \"WXCAS\" was never defined.
18997 Usually this means the macro was only invoked conditionally." >&5
18998 echo "$as_me: error: conditional \"WXCAS\" was never defined.
18999 Usually this means the macro was only invoked conditionally." >&2;}
19000 { (exit 1); exit 1; }; }
19002 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
19003 { { echo "$as_me:$LINENO: error: conditional \"ALC\" was never defined.
19004 Usually this means the macro was only invoked conditionally." >&5
19005 echo "$as_me: error: conditional \"ALC\" was never defined.
19006 Usually this means the macro was only invoked conditionally." >&2;}
19007 { (exit 1); exit 1; }; }
19009 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
19010 { { echo "$as_me:$LINENO: error: conditional \"ALCC\" was never defined.
19011 Usually this means the macro was only invoked conditionally." >&5
19012 echo "$as_me: error: conditional \"ALCC\" was never defined.
19013 Usually this means the macro was only invoked conditionally." >&2;}
19014 { (exit 1); exit 1; }; }
19016 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
19017 { { echo "$as_me:$LINENO: error: conditional \"AMULE_GUI\" was never defined.
19018 Usually this means the macro was only invoked conditionally." >&5
19019 echo "$as_me: error: conditional \"AMULE_GUI\" was never defined.
19020 Usually this means the macro was only invoked conditionally." >&2;}
19021 { (exit 1); exit 1; }; }
19023 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
19024 { { echo "$as_me:$LINENO: error: conditional \"AMULE_DAEMON\" was never defined.
19025 Usually this means the macro was only invoked conditionally." >&5
19026 echo "$as_me: error: conditional \"AMULE_DAEMON\" was never defined.
19027 Usually this means the macro was only invoked conditionally." >&2;}
19028 { (exit 1); exit 1; }; }
19030 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
19031 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_CMD\" was never defined.
19032 Usually this means the macro was only invoked conditionally." >&5
19033 echo "$as_me: error: conditional \"COMPILE_CMD\" was never defined.
19034 Usually this means the macro was only invoked conditionally." >&2;}
19035 { (exit 1); exit 1; }; }
19037 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
19038 { { echo "$as_me:$LINENO: error: conditional \"MONOLITHIC\" was never defined.
19039 Usually this means the macro was only invoked conditionally." >&5
19040 echo "$as_me: error: conditional \"MONOLITHIC\" was never defined.
19041 Usually this means the macro was only invoked conditionally." >&2;}
19042 { (exit 1); exit 1; }; }
19044 if test -z "${ENABLE_UPNP_TRUE}" && test -z "${ENABLE_UPNP_FALSE}"; then
19045 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_UPNP\" was never defined.
19046 Usually this means the macro was only invoked conditionally." >&5
19047 echo "$as_me: error: conditional \"ENABLE_UPNP\" was never defined.
19048 Usually this means the macro was only invoked conditionally." >&2;}
19049 { (exit 1); exit 1; }; }
19051 if test -z "${ENABLE_IP2COUNTRY_TRUE}" && test -z "${ENABLE_IP2COUNTRY_FALSE}"; then
19052 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
19053 Usually this means the macro was only invoked conditionally." >&5
19054 echo "$as_me: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
19055 Usually this means the macro was only invoked conditionally." >&2;}
19056 { (exit 1); exit 1; }; }
19058 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
19059 { { echo "$as_me:$LINENO: error: conditional \"SYS_WIN32\" was never defined.
19060 Usually this means the macro was only invoked conditionally." >&5
19061 echo "$as_me: error: conditional \"SYS_WIN32\" was never defined.
19062 Usually this means the macro was only invoked conditionally." >&2;}
19063 { (exit 1); exit 1; }; }
19065 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
19066 { { echo "$as_me:$LINENO: error: conditional \"NEED_RC\" was never defined.
19067 Usually this means the macro was only invoked conditionally." >&5
19068 echo "$as_me: error: conditional \"NEED_RC\" was never defined.
19069 Usually this means the macro was only invoked conditionally." >&2;}
19070 { (exit 1); exit 1; }; }
19072 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
19073 { { echo "$as_me:$LINENO: error: conditional \"NEED_CORESERVICES\" was never defined.
19074 Usually this means the macro was only invoked conditionally." >&5
19075 echo "$as_me: error: conditional \"NEED_CORESERVICES\" was never defined.
19076 Usually this means the macro was only invoked conditionally." >&2;}
19077 { (exit 1); exit 1; }; }
19079 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
19080 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_NLS\" was never defined.
19081 Usually this means the macro was only invoked conditionally." >&5
19082 echo "$as_me: error: conditional \"COMPILE_NLS\" was never defined.
19083 Usually this means the macro was only invoked conditionally." >&2;}
19084 { (exit 1); exit 1; }; }
19086 if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then
19087 { { echo "$as_me:$LINENO: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19088 Usually this means the macro was only invoked conditionally." >&5
19089 echo "$as_me: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19090 Usually this means the macro was only invoked conditionally." >&2;}
19091 { (exit 1); exit 1; }; }
19094 : ${CONFIG_STATUS=./config.status}
19095 ac_clean_files_save=$ac_clean_files
19096 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19097 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19098 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19099 cat >$CONFIG_STATUS <<_ACEOF
19100 #! $SHELL
19101 # Generated by $as_me.
19102 # Run this file to recreate the current configuration.
19103 # Compiler output produced by configure, useful for debugging
19104 # configure, is in config.log if it exists.
19106 debug=false
19107 ac_cs_recheck=false
19108 ac_cs_silent=false
19109 SHELL=\${CONFIG_SHELL-$SHELL}
19110 _ACEOF
19112 cat >>$CONFIG_STATUS <<\_ACEOF
19113 ## --------------------- ##
19114 ## M4sh Initialization. ##
19115 ## --------------------- ##
19117 # Be Bourne compatible
19118 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19119 emulate sh
19120 NULLCMD=:
19121 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19122 # is contrary to our usage. Disable this feature.
19123 alias -g '${1+"$@"}'='"$@"'
19124 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19125 set -o posix
19127 DUALCASE=1; export DUALCASE # for MKS sh
19129 # Support unset when possible.
19130 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19131 as_unset=unset
19132 else
19133 as_unset=false
19137 # Work around bugs in pre-3.0 UWIN ksh.
19138 $as_unset ENV MAIL MAILPATH
19139 PS1='$ '
19140 PS2='> '
19141 PS4='+ '
19143 # NLS nuisances.
19144 for as_var in \
19145 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19146 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19147 LC_TELEPHONE LC_TIME
19149 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19150 eval $as_var=C; export $as_var
19151 else
19152 $as_unset $as_var
19154 done
19156 # Required to use basename.
19157 if expr a : '\(a\)' >/dev/null 2>&1; then
19158 as_expr=expr
19159 else
19160 as_expr=false
19163 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19164 as_basename=basename
19165 else
19166 as_basename=false
19170 # Name of the executable.
19171 as_me=`$as_basename "$0" ||
19172 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19173 X"$0" : 'X\(//\)$' \| \
19174 X"$0" : 'X\(/\)$' \| \
19175 . : '\(.\)' 2>/dev/null ||
19176 echo X/"$0" |
19177 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19178 /^X\/\(\/\/\)$/{ s//\1/; q; }
19179 /^X\/\(\/\).*/{ s//\1/; q; }
19180 s/.*/./; q'`
19183 # PATH needs CR, and LINENO needs CR and PATH.
19184 # Avoid depending upon Character Ranges.
19185 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19186 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19187 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19188 as_cr_digits='0123456789'
19189 as_cr_alnum=$as_cr_Letters$as_cr_digits
19191 # The user is always right.
19192 if test "${PATH_SEPARATOR+set}" != set; then
19193 echo "#! /bin/sh" >conf$$.sh
19194 echo "exit 0" >>conf$$.sh
19195 chmod +x conf$$.sh
19196 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19197 PATH_SEPARATOR=';'
19198 else
19199 PATH_SEPARATOR=:
19201 rm -f conf$$.sh
19205 as_lineno_1=$LINENO
19206 as_lineno_2=$LINENO
19207 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19208 test "x$as_lineno_1" != "x$as_lineno_2" &&
19209 test "x$as_lineno_3" = "x$as_lineno_2" || {
19210 # Find who we are. Look in the path if we contain no path at all
19211 # relative or not.
19212 case $0 in
19213 *[\\/]* ) as_myself=$0 ;;
19214 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19215 for as_dir in $PATH
19217 IFS=$as_save_IFS
19218 test -z "$as_dir" && as_dir=.
19219 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19220 done
19223 esac
19224 # We did not find ourselves, most probably we were run as `sh COMMAND'
19225 # in which case we are not to be found in the path.
19226 if test "x$as_myself" = x; then
19227 as_myself=$0
19229 if test ! -f "$as_myself"; then
19230 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19231 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19232 { (exit 1); exit 1; }; }
19234 case $CONFIG_SHELL in
19236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19237 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19239 IFS=$as_save_IFS
19240 test -z "$as_dir" && as_dir=.
19241 for as_base in sh bash ksh sh5; do
19242 case $as_dir in
19244 if ("$as_dir/$as_base" -c '
19245 as_lineno_1=$LINENO
19246 as_lineno_2=$LINENO
19247 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19248 test "x$as_lineno_1" != "x$as_lineno_2" &&
19249 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19250 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19251 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19252 CONFIG_SHELL=$as_dir/$as_base
19253 export CONFIG_SHELL
19254 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19255 fi;;
19256 esac
19257 done
19258 done
19260 esac
19262 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19263 # uniformly replaced by the line number. The first 'sed' inserts a
19264 # line-number line before each line; the second 'sed' does the real
19265 # work. The second script uses 'N' to pair each line-number line
19266 # with the numbered line, and appends trailing '-' during
19267 # substitution so that $LINENO is not a special case at line end.
19268 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19269 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19270 sed '=' <$as_myself |
19271 sed '
19273 s,$,-,
19274 : loop
19275 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19276 t loop
19277 s,-$,,
19278 s,^['$as_cr_digits']*\n,,
19279 ' >$as_me.lineno &&
19280 chmod +x $as_me.lineno ||
19281 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19282 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19283 { (exit 1); exit 1; }; }
19285 # Don't try to exec as it changes $[0], causing all sort of problems
19286 # (the dirname of $[0] is not the place where we might find the
19287 # original and so on. Autoconf is especially sensible to this).
19288 . ./$as_me.lineno
19289 # Exit status is that of the last command.
19290 exit
19294 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19295 *c*,-n*) ECHO_N= ECHO_C='
19296 ' ECHO_T=' ' ;;
19297 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19298 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19299 esac
19301 if expr a : '\(a\)' >/dev/null 2>&1; then
19302 as_expr=expr
19303 else
19304 as_expr=false
19307 rm -f conf$$ conf$$.exe conf$$.file
19308 echo >conf$$.file
19309 if ln -s conf$$.file conf$$ 2>/dev/null; then
19310 # We could just check for DJGPP; but this test a) works b) is more generic
19311 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19312 if test -f conf$$.exe; then
19313 # Don't use ln at all; we don't have any links
19314 as_ln_s='cp -p'
19315 else
19316 as_ln_s='ln -s'
19318 elif ln conf$$.file conf$$ 2>/dev/null; then
19319 as_ln_s=ln
19320 else
19321 as_ln_s='cp -p'
19323 rm -f conf$$ conf$$.exe conf$$.file
19325 if mkdir -p . 2>/dev/null; then
19326 as_mkdir_p=:
19327 else
19328 test -d ./-p && rmdir ./-p
19329 as_mkdir_p=false
19332 as_executable_p="test -f"
19334 # Sed expression to map a string onto a valid CPP name.
19335 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19337 # Sed expression to map a string onto a valid variable name.
19338 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19341 # IFS
19342 # We need space, tab and new line, in precisely that order.
19343 as_nl='
19345 IFS=" $as_nl"
19347 # CDPATH.
19348 $as_unset CDPATH
19350 exec 6>&1
19352 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19353 # report actual input values of CONFIG_FILES etc. instead of their
19354 # values after options handling. Logging --version etc. is OK.
19355 exec 5>>config.log
19357 echo
19358 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19359 ## Running $as_me. ##
19360 _ASBOX
19361 } >&5
19362 cat >&5 <<_CSEOF
19364 This file was extended by aMule $as_me SVN, which was
19365 generated by GNU Autoconf 2.59. Invocation command line was
19367 CONFIG_FILES = $CONFIG_FILES
19368 CONFIG_HEADERS = $CONFIG_HEADERS
19369 CONFIG_LINKS = $CONFIG_LINKS
19370 CONFIG_COMMANDS = $CONFIG_COMMANDS
19371 $ $0 $@
19373 _CSEOF
19374 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19375 echo >&5
19376 _ACEOF
19378 # Files that config.status was made for.
19379 if test -n "$ac_config_files"; then
19380 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19383 if test -n "$ac_config_headers"; then
19384 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19387 if test -n "$ac_config_links"; then
19388 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19391 if test -n "$ac_config_commands"; then
19392 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19395 cat >>$CONFIG_STATUS <<\_ACEOF
19397 ac_cs_usage="\
19398 \`$as_me' instantiates files from templates according to the
19399 current configuration.
19401 Usage: $0 [OPTIONS] [FILE]...
19403 -h, --help print this help, then exit
19404 -V, --version print version number, then exit
19405 -q, --quiet do not print progress messages
19406 -d, --debug don't remove temporary files
19407 --recheck update $as_me by reconfiguring in the same conditions
19408 --file=FILE[:TEMPLATE]
19409 instantiate the configuration file FILE
19410 --header=FILE[:TEMPLATE]
19411 instantiate the configuration header FILE
19413 Configuration files:
19414 $config_files
19416 Configuration headers:
19417 $config_headers
19419 Configuration commands:
19420 $config_commands
19422 Report bugs to <bug-autoconf@gnu.org>."
19423 _ACEOF
19425 cat >>$CONFIG_STATUS <<_ACEOF
19426 ac_cs_version="\\
19427 aMule config.status SVN
19428 configured by $0, generated by GNU Autoconf 2.59,
19429 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19431 Copyright (C) 2003 Free Software Foundation, Inc.
19432 This config.status script is free software; the Free Software Foundation
19433 gives unlimited permission to copy, distribute and modify it."
19434 srcdir=$srcdir
19435 INSTALL="$INSTALL"
19436 _ACEOF
19438 cat >>$CONFIG_STATUS <<\_ACEOF
19439 # If no file are specified by the user, then we need to provide default
19440 # value. By we need to know if files were specified by the user.
19441 ac_need_defaults=:
19442 while test $# != 0
19444 case $1 in
19445 --*=*)
19446 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19447 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19448 ac_shift=:
19451 ac_option=$1
19452 ac_optarg=$2
19453 ac_shift=shift
19455 *) # This is not an option, so the user has probably given explicit
19456 # arguments.
19457 ac_option=$1
19458 ac_need_defaults=false;;
19459 esac
19461 case $ac_option in
19462 # Handling of the options.
19463 _ACEOF
19464 cat >>$CONFIG_STATUS <<\_ACEOF
19465 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19466 ac_cs_recheck=: ;;
19467 --version | --vers* | -V )
19468 echo "$ac_cs_version"; exit 0 ;;
19469 --he | --h)
19470 # Conflict between --help and --header
19471 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19472 Try \`$0 --help' for more information." >&5
19473 echo "$as_me: error: ambiguous option: $1
19474 Try \`$0 --help' for more information." >&2;}
19475 { (exit 1); exit 1; }; };;
19476 --help | --hel | -h )
19477 echo "$ac_cs_usage"; exit 0 ;;
19478 --debug | --d* | -d )
19479 debug=: ;;
19480 --file | --fil | --fi | --f )
19481 $ac_shift
19482 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19483 ac_need_defaults=false;;
19484 --header | --heade | --head | --hea )
19485 $ac_shift
19486 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19487 ac_need_defaults=false;;
19488 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19489 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19490 ac_cs_silent=: ;;
19492 # This is an error.
19493 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19494 Try \`$0 --help' for more information." >&5
19495 echo "$as_me: error: unrecognized option: $1
19496 Try \`$0 --help' for more information." >&2;}
19497 { (exit 1); exit 1; }; } ;;
19499 *) ac_config_targets="$ac_config_targets $1" ;;
19501 esac
19502 shift
19503 done
19505 ac_configure_extra_args=
19507 if $ac_cs_silent; then
19508 exec 6>/dev/null
19509 ac_configure_extra_args="$ac_configure_extra_args --silent"
19512 _ACEOF
19513 cat >>$CONFIG_STATUS <<_ACEOF
19514 if \$ac_cs_recheck; then
19515 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19516 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19519 _ACEOF
19521 cat >>$CONFIG_STATUS <<_ACEOF
19523 # INIT-COMMANDS section.
19526 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19527 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
19528 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
19529 # from automake.
19530 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
19531 # Capture the value of LINGUAS because we need it to compute CATALOGS.
19532 LINGUAS="${LINGUAS-%UNSET%}"
19534 level=$denoiselevel
19536 _ACEOF
19540 cat >>$CONFIG_STATUS <<\_ACEOF
19541 for ac_config_target in $ac_config_targets
19543 case "$ac_config_target" in
19544 # Handling of arguments.
19545 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19546 "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
19547 "docs/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/man/Makefile" ;;
19548 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
19549 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19550 "src/pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pixmaps/Makefile" ;;
19551 "src/pixmaps/flags_xpm/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
19552 "src/libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/Makefile" ;;
19553 "src/libs/ec/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/ec/Makefile" ;;
19554 "src/libs/ec/cpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
19555 "src/libs/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libs/common/Makefile" ;;
19556 "src/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
19557 "src/utils/aLinkCreator/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
19558 "src/utils/aLinkCreator/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
19559 "src/utils/aLinkCreator/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
19560 "src/utils/cas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/cas/Makefile" ;;
19561 "src/utils/cas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
19562 "src/utils/fileview/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/fileview/Makefile" ;;
19563 "src/utils/wxCas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
19564 "src/utils/wxCas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
19565 "src/utils/wxCas/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
19566 "src/utils/xas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/Makefile" ;;
19567 "src/utils/xas/autostart-xas" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
19568 "src/utils/xas/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
19569 "src/skins/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/skins/Makefile" ;;
19570 "src/webserver/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/Makefile" ;;
19571 "src/webserver/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/src/Makefile" ;;
19572 "src/webserver/default/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/default/Makefile" ;;
19573 "src/webserver/php-default/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/php-default/Makefile" ;;
19574 "src/webserver/chicane/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/chicane/Makefile" ;;
19575 "src/webserver/litoral/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/webserver/litoral/Makefile" ;;
19576 "unittests/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/Makefile" ;;
19577 "unittests/muleunit/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/muleunit/Makefile" ;;
19578 "unittests/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittests/tests/Makefile" ;;
19579 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
19580 "Compilation.flags" ) CONFIG_FILES="$CONFIG_FILES Compilation.flags" ;;
19581 "version.rc" ) CONFIG_FILES="$CONFIG_FILES version.rc" ;;
19582 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19583 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
19584 "denoiser" ) CONFIG_COMMANDS="$CONFIG_COMMANDS denoiser" ;;
19585 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19586 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19587 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19588 { (exit 1); exit 1; }; };;
19589 esac
19590 done
19592 # If the user did not use the arguments to specify the items to instantiate,
19593 # then the envvar interface is used. Set only those that are not.
19594 # We use the long form for the default assignment because of an extremely
19595 # bizarre bug on SunOS 4.1.3.
19596 if $ac_need_defaults; then
19597 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19598 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19599 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19602 # Have a temporary directory for convenience. Make it in the build tree
19603 # simply because there is no reason to put it here, and in addition,
19604 # creating and moving files from /tmp can sometimes cause problems.
19605 # Create a temporary directory, and hook for its removal unless debugging.
19606 $debug ||
19608 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19609 trap '{ (exit 1); exit 1; }' 1 2 13 15
19612 # Create a (secure) tmp directory for tmp files.
19615 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19616 test -n "$tmp" && test -d "$tmp"
19617 } ||
19619 tmp=./confstat$$-$RANDOM
19620 (umask 077 && mkdir $tmp)
19621 } ||
19623 echo "$me: cannot create a temporary directory in ." >&2
19624 { (exit 1); exit 1; }
19627 _ACEOF
19629 cat >>$CONFIG_STATUS <<_ACEOF
19632 # CONFIG_FILES section.
19635 # No need to generate the scripts if there are no CONFIG_FILES.
19636 # This happens for instance when ./config.status config.h
19637 if test -n "\$CONFIG_FILES"; then
19638 # Protect against being on the right side of a sed subst in config.status.
19639 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19640 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19641 s,@SHELL@,$SHELL,;t t
19642 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19643 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19644 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19645 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19646 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19647 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19648 s,@exec_prefix@,$exec_prefix,;t t
19649 s,@prefix@,$prefix,;t t
19650 s,@program_transform_name@,$program_transform_name,;t t
19651 s,@bindir@,$bindir,;t t
19652 s,@sbindir@,$sbindir,;t t
19653 s,@libexecdir@,$libexecdir,;t t
19654 s,@datadir@,$datadir,;t t
19655 s,@sysconfdir@,$sysconfdir,;t t
19656 s,@sharedstatedir@,$sharedstatedir,;t t
19657 s,@localstatedir@,$localstatedir,;t t
19658 s,@libdir@,$libdir,;t t
19659 s,@includedir@,$includedir,;t t
19660 s,@oldincludedir@,$oldincludedir,;t t
19661 s,@infodir@,$infodir,;t t
19662 s,@mandir@,$mandir,;t t
19663 s,@build_alias@,$build_alias,;t t
19664 s,@host_alias@,$host_alias,;t t
19665 s,@target_alias@,$target_alias,;t t
19666 s,@DEFS@,$DEFS,;t t
19667 s,@ECHO_C@,$ECHO_C,;t t
19668 s,@ECHO_N@,$ECHO_N,;t t
19669 s,@ECHO_T@,$ECHO_T,;t t
19670 s,@LIBS@,$LIBS,;t t
19671 s,@build@,$build,;t t
19672 s,@build_cpu@,$build_cpu,;t t
19673 s,@build_vendor@,$build_vendor,;t t
19674 s,@build_os@,$build_os,;t t
19675 s,@host@,$host,;t t
19676 s,@host_cpu@,$host_cpu,;t t
19677 s,@host_vendor@,$host_vendor,;t t
19678 s,@host_os@,$host_os,;t t
19679 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19680 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19681 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19682 s,@CYGPATH_W@,$CYGPATH_W,;t t
19683 s,@PACKAGE@,$PACKAGE,;t t
19684 s,@VERSION@,$VERSION,;t t
19685 s,@ACLOCAL@,$ACLOCAL,;t t
19686 s,@AUTOCONF@,$AUTOCONF,;t t
19687 s,@AUTOMAKE@,$AUTOMAKE,;t t
19688 s,@AUTOHEADER@,$AUTOHEADER,;t t
19689 s,@MAKEINFO@,$MAKEINFO,;t t
19690 s,@install_sh@,$install_sh,;t t
19691 s,@STRIP@,$STRIP,;t t
19692 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19693 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
19694 s,@mkdir_p@,$mkdir_p,;t t
19695 s,@AWK@,$AWK,;t t
19696 s,@SET_MAKE@,$SET_MAKE,;t t
19697 s,@am__leading_dot@,$am__leading_dot,;t t
19698 s,@AMTAR@,$AMTAR,;t t
19699 s,@am__tar@,$am__tar,;t t
19700 s,@am__untar@,$am__untar,;t t
19701 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
19702 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
19703 s,@MAINT@,$MAINT,;t t
19704 s,@RESOLV_LIB@,$RESOLV_LIB,;t t
19705 s,@X11LIBS@,$X11LIBS,;t t
19706 s,@CXX@,$CXX,;t t
19707 s,@CXXFLAGS@,$CXXFLAGS,;t t
19708 s,@LDFLAGS@,$LDFLAGS,;t t
19709 s,@CPPFLAGS@,$CPPFLAGS,;t t
19710 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19711 s,@EXEEXT@,$EXEEXT,;t t
19712 s,@OBJEXT@,$OBJEXT,;t t
19713 s,@DEPDIR@,$DEPDIR,;t t
19714 s,@am__include@,$am__include,;t t
19715 s,@am__quote@,$am__quote,;t t
19716 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
19717 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
19718 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
19719 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
19720 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
19721 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
19722 s,@CXXCPP@,$CXXCPP,;t t
19723 s,@CC@,$CC,;t t
19724 s,@CFLAGS@,$CFLAGS,;t t
19725 s,@ac_ct_CC@,$ac_ct_CC,;t t
19726 s,@CCDEPMODE@,$CCDEPMODE,;t t
19727 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
19728 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
19729 s,@CPP@,$CPP,;t t
19730 s,@BUILD_CC@,$BUILD_CC,;t t
19731 s,@ac_ct_BUILD_CC@,$ac_ct_BUILD_CC,;t t
19732 s,@EXEEXT@,$EXEEXT,;t t
19733 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
19734 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
19735 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
19736 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
19737 s,@EGREP@,$EGREP,;t t
19738 s,@LEX@,$LEX,;t t
19739 s,@LEXLIB@,$LEXLIB,;t t
19740 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
19741 s,@RANLIB@,$RANLIB,;t t
19742 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19743 s,@YACC@,$YACC,;t t
19744 s,@AR@,$AR,;t t
19745 s,@ac_ct_AR@,$ac_ct_AR,;t t
19746 s,@LD@,$LD,;t t
19747 s,@ac_ct_LD@,$ac_ct_LD,;t t
19748 s,@GDLIB_CONFIG_PATH@,$GDLIB_CONFIG_PATH,;t t
19749 s,@GDLIB_CFLAGS@,$GDLIB_CFLAGS,;t t
19750 s,@GDLIB_LDFLAGS@,$GDLIB_LDFLAGS,;t t
19751 s,@GDLIB_LIBS@,$GDLIB_LIBS,;t t
19752 s,@CAS_DEFS@,$CAS_DEFS,;t t
19753 s,@REGEX_LIB@,$REGEX_LIB,;t t
19754 s,@LIBPNG_CONFIG_PATH@,$LIBPNG_CONFIG_PATH,;t t
19755 s,@LIBPNG_CFLAGS@,$LIBPNG_CFLAGS,;t t
19756 s,@LIBPNG_CXXFLAGS@,$LIBPNG_CXXFLAGS,;t t
19757 s,@LIBPNG_LDFLAGS@,$LIBPNG_LDFLAGS,;t t
19758 s,@LIBPNG_LIBS@,$LIBPNG_LIBS,;t t
19759 s,@AMULEWEB_DEFS@,$AMULEWEB_DEFS,;t t
19760 s,@GEOIP_INCLUDE@,$GEOIP_INCLUDE,;t t
19761 s,@GEOIP_LIB@,$GEOIP_LIB,;t t
19762 s,@WX_CONFIG_PATH@,$WX_CONFIG_PATH,;t t
19763 s,@WX_CPPFLAGS@,$WX_CPPFLAGS,;t t
19764 s,@WX_CFLAGS@,$WX_CFLAGS,;t t
19765 s,@WX_CXXFLAGS@,$WX_CXXFLAGS,;t t
19766 s,@WX_CFLAGS_ONLY@,$WX_CFLAGS_ONLY,;t t
19767 s,@WX_CXXFLAGS_ONLY@,$WX_CXXFLAGS_ONLY,;t t
19768 s,@WX_LIBS@,$WX_LIBS,;t t
19769 s,@WX_LIBS_STATIC@,$WX_LIBS_STATIC,;t t
19770 s,@WX_VERSION_FULL@,$WX_VERSION_FULL,;t t
19771 s,@WX_RESCOMP@,$WX_RESCOMP,;t t
19772 s,@WX_VERSION_MAJOR@,$WX_VERSION_MAJOR,;t t
19773 s,@WX_VERSION_MINOR@,$WX_VERSION_MINOR,;t t
19774 s,@WX_UNICODE@,$WX_UNICODE,;t t
19775 s,@WX_DEBUG@,$WX_DEBUG,;t t
19776 s,@WX_SHARED@,$WX_SHARED,;t t
19777 s,@WX_PORT@,$WX_PORT,;t t
19778 s,@RC@,$RC,;t t
19779 s,@ac_ct_RC@,$ac_ct_RC,;t t
19780 s,@RCFLAGS@,$RCFLAGS,;t t
19781 s,@CRYPTO_PP_PREFIX@,$CRYPTO_PP_PREFIX,;t t
19782 s,@CRYPTO_PP_VERSION_STRING@,$CRYPTO_PP_VERSION_STRING,;t t
19783 s,@CRYPTO_PP_VERSION_NUMBER@,$CRYPTO_PP_VERSION_NUMBER,;t t
19784 s,@CRYPTO_PP_STYLE@,$CRYPTO_PP_STYLE,;t t
19785 s,@CRYPTO_PP_LIB_NAME@,$CRYPTO_PP_LIB_NAME,;t t
19786 s,@CRYPTO_PP_INCLUDE_PREFIX@,$CRYPTO_PP_INCLUDE_PREFIX,;t t
19787 s,@CRYPTO_PP_CXXFLAGS@,$CRYPTO_PP_CXXFLAGS,;t t
19788 s,@CRYPTO_PP_LDFLAGS@,$CRYPTO_PP_LDFLAGS,;t t
19789 s,@CRYPTOLIBS@,$CRYPTOLIBS,;t t
19790 s,@BFD_FLAGS@,$BFD_FLAGS,;t t
19791 s,@BFD_LIB@,$BFD_LIB,;t t
19792 s,@HAVE_FLEX_EXTENDED@,$HAVE_FLEX_EXTENDED,;t t
19793 s,@ALLOCA@,$ALLOCA,;t t
19794 s,@LIBOBJS@,$LIBOBJS,;t t
19795 s,@POW_LIB@,$POW_LIB,;t t
19796 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
19797 s,@MSGFMT@,$MSGFMT,;t t
19798 s,@GMSGFMT@,$GMSGFMT,;t t
19799 s,@XGETTEXT@,$XGETTEXT,;t t
19800 s,@MSGMERGE@,$MSGMERGE,;t t
19801 s,@GLIBC21@,$GLIBC21,;t t
19802 s,@LIBICONV@,$LIBICONV,;t t
19803 s,@LTLIBICONV@,$LTLIBICONV,;t t
19804 s,@INTLBISON@,$INTLBISON,;t t
19805 s,@USE_NLS@,$USE_NLS,;t t
19806 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
19807 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
19808 s,@CATOBJEXT@,$CATOBJEXT,;t t
19809 s,@INTLOBJS@,$INTLOBJS,;t t
19810 s,@DATADIRNAME@,$DATADIRNAME,;t t
19811 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
19812 s,@GENCAT@,$GENCAT,;t t
19813 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
19814 s,@INTLLIBS@,$INTLLIBS,;t t
19815 s,@LIBINTL@,$LIBINTL,;t t
19816 s,@LTLIBINTL@,$LTLIBINTL,;t t
19817 s,@POSUB@,$POSUB,;t t
19818 s,@INCINTL@,$INCINTL,;t t
19819 s,@WXBASE_LIBS@,$WXBASE_LIBS,;t t
19820 s,@WXBASE_CFLAGS@,$WXBASE_CFLAGS,;t t
19821 s,@WXBASE_CXXFLAGS@,$WXBASE_CXXFLAGS,;t t
19822 s,@docdir@,$docdir,;t t
19823 s,@SVNDATE@,$SVNDATE,;t t
19824 s,@AMULE_DAEMON_MANPAGES@,$AMULE_DAEMON_MANPAGES,;t t
19825 s,@AMULECMD_MANPAGES@,$AMULECMD_MANPAGES,;t t
19826 s,@WEB_MANPAGES@,$WEB_MANPAGES,;t t
19827 s,@AMULE_GUI_MANPAGES@,$AMULE_GUI_MANPAGES,;t t
19828 s,@CAS_MANPAGES@,$CAS_MANPAGES,;t t
19829 s,@WXCAS_MANPAGES@,$WXCAS_MANPAGES,;t t
19830 s,@ED2K_MANPAGES@,$ED2K_MANPAGES,;t t
19831 s,@ALC_MANPAGES@,$ALC_MANPAGES,;t t
19832 s,@ALCC_MANPAGES@,$ALCC_MANPAGES,;t t
19833 s,@MONOLITHIC_MANPAGES@,$MONOLITHIC_MANPAGES,;t t
19834 s,@WEB_TRUE@,$WEB_TRUE,;t t
19835 s,@WEB_FALSE@,$WEB_FALSE,;t t
19836 s,@ED2K_TRUE@,$ED2K_TRUE,;t t
19837 s,@ED2K_FALSE@,$ED2K_FALSE,;t t
19838 s,@CAS_TRUE@,$CAS_TRUE,;t t
19839 s,@CAS_FALSE@,$CAS_FALSE,;t t
19840 s,@WXCAS_TRUE@,$WXCAS_TRUE,;t t
19841 s,@WXCAS_FALSE@,$WXCAS_FALSE,;t t
19842 s,@ALC_TRUE@,$ALC_TRUE,;t t
19843 s,@ALC_FALSE@,$ALC_FALSE,;t t
19844 s,@ALCC_TRUE@,$ALCC_TRUE,;t t
19845 s,@ALCC_FALSE@,$ALCC_FALSE,;t t
19846 s,@AMULE_GUI_TRUE@,$AMULE_GUI_TRUE,;t t
19847 s,@AMULE_GUI_FALSE@,$AMULE_GUI_FALSE,;t t
19848 s,@AMULE_DAEMON_TRUE@,$AMULE_DAEMON_TRUE,;t t
19849 s,@AMULE_DAEMON_FALSE@,$AMULE_DAEMON_FALSE,;t t
19850 s,@COMPILE_CMD_TRUE@,$COMPILE_CMD_TRUE,;t t
19851 s,@COMPILE_CMD_FALSE@,$COMPILE_CMD_FALSE,;t t
19852 s,@MONOLITHIC_TRUE@,$MONOLITHIC_TRUE,;t t
19853 s,@MONOLITHIC_FALSE@,$MONOLITHIC_FALSE,;t t
19854 s,@ENABLE_UPNP_TRUE@,$ENABLE_UPNP_TRUE,;t t
19855 s,@ENABLE_UPNP_FALSE@,$ENABLE_UPNP_FALSE,;t t
19856 s,@ENABLE_IP2COUNTRY_TRUE@,$ENABLE_IP2COUNTRY_TRUE,;t t
19857 s,@ENABLE_IP2COUNTRY_FALSE@,$ENABLE_IP2COUNTRY_FALSE,;t t
19858 s,@SYS_WIN32_TRUE@,$SYS_WIN32_TRUE,;t t
19859 s,@SYS_WIN32_FALSE@,$SYS_WIN32_FALSE,;t t
19860 s,@NEED_RC_TRUE@,$NEED_RC_TRUE,;t t
19861 s,@NEED_RC_FALSE@,$NEED_RC_FALSE,;t t
19862 s,@NEED_CORESERVICES_TRUE@,$NEED_CORESERVICES_TRUE,;t t
19863 s,@NEED_CORESERVICES_FALSE@,$NEED_CORESERVICES_FALSE,;t t
19864 s,@COMPILE_NLS_TRUE@,$COMPILE_NLS_TRUE,;t t
19865 s,@COMPILE_NLS_FALSE@,$COMPILE_NLS_FALSE,;t t
19866 s,@GENERATE_FLEX_HEADER_TRUE@,$GENERATE_FLEX_HEADER_TRUE,;t t
19867 s,@GENERATE_FLEX_HEADER_FALSE@,$GENERATE_FLEX_HEADER_FALSE,;t t
19868 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
19869 s,@ccache@,$ccache,;t t
19870 s,@CCACHE@,$CCACHE,;t t
19871 s,@ccache_prefix@,$ccache_prefix,;t t
19872 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19873 CEOF
19875 _ACEOF
19877 cat >>$CONFIG_STATUS <<\_ACEOF
19878 # Split the substitutions into bite-sized pieces for seds with
19879 # small command number limits, like on Digital OSF/1 and HP-UX.
19880 ac_max_sed_lines=48
19881 ac_sed_frag=1 # Number of current file.
19882 ac_beg=1 # First line for current file.
19883 ac_end=$ac_max_sed_lines # Line after last line for current file.
19884 ac_more_lines=:
19885 ac_sed_cmds=
19886 while $ac_more_lines; do
19887 if test $ac_beg -gt 1; then
19888 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19889 else
19890 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19892 if test ! -s $tmp/subs.frag; then
19893 ac_more_lines=false
19894 else
19895 # The purpose of the label and of the branching condition is to
19896 # speed up the sed processing (if there are no `@' at all, there
19897 # is no need to browse any of the substitutions).
19898 # These are the two extra sed commands mentioned above.
19899 (echo ':t
19900 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19901 if test -z "$ac_sed_cmds"; then
19902 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19903 else
19904 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19906 ac_sed_frag=`expr $ac_sed_frag + 1`
19907 ac_beg=$ac_end
19908 ac_end=`expr $ac_end + $ac_max_sed_lines`
19910 done
19911 if test -z "$ac_sed_cmds"; then
19912 ac_sed_cmds=cat
19914 fi # test -n "$CONFIG_FILES"
19916 _ACEOF
19917 cat >>$CONFIG_STATUS <<\_ACEOF
19918 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19919 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19920 case $ac_file in
19921 - | *:- | *:-:* ) # input from stdin
19922 cat >$tmp/stdin
19923 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19924 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19925 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19926 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19927 * ) ac_file_in=$ac_file.in ;;
19928 esac
19930 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19931 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19932 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19933 X"$ac_file" : 'X\(//\)[^/]' \| \
19934 X"$ac_file" : 'X\(//\)$' \| \
19935 X"$ac_file" : 'X\(/\)' \| \
19936 . : '\(.\)' 2>/dev/null ||
19937 echo X"$ac_file" |
19938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19939 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19940 /^X\(\/\/\)$/{ s//\1/; q; }
19941 /^X\(\/\).*/{ s//\1/; q; }
19942 s/.*/./; q'`
19943 { if $as_mkdir_p; then
19944 mkdir -p "$ac_dir"
19945 else
19946 as_dir="$ac_dir"
19947 as_dirs=
19948 while test ! -d "$as_dir"; do
19949 as_dirs="$as_dir $as_dirs"
19950 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19951 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19952 X"$as_dir" : 'X\(//\)[^/]' \| \
19953 X"$as_dir" : 'X\(//\)$' \| \
19954 X"$as_dir" : 'X\(/\)' \| \
19955 . : '\(.\)' 2>/dev/null ||
19956 echo X"$as_dir" |
19957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19958 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19959 /^X\(\/\/\)$/{ s//\1/; q; }
19960 /^X\(\/\).*/{ s//\1/; q; }
19961 s/.*/./; q'`
19962 done
19963 test ! -n "$as_dirs" || mkdir $as_dirs
19964 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19965 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19966 { (exit 1); exit 1; }; }; }
19968 ac_builddir=.
19970 if test "$ac_dir" != .; then
19971 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19972 # A "../" for each directory in $ac_dir_suffix.
19973 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19974 else
19975 ac_dir_suffix= ac_top_builddir=
19978 case $srcdir in
19979 .) # No --srcdir option. We are building in place.
19980 ac_srcdir=.
19981 if test -z "$ac_top_builddir"; then
19982 ac_top_srcdir=.
19983 else
19984 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19985 fi ;;
19986 [\\/]* | ?:[\\/]* ) # Absolute path.
19987 ac_srcdir=$srcdir$ac_dir_suffix;
19988 ac_top_srcdir=$srcdir ;;
19989 *) # Relative path.
19990 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19991 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19992 esac
19994 # Do not use `cd foo && pwd` to compute absolute paths, because
19995 # the directories may not exist.
19996 case `pwd` in
19997 .) ac_abs_builddir="$ac_dir";;
19999 case "$ac_dir" in
20000 .) ac_abs_builddir=`pwd`;;
20001 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20002 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20003 esac;;
20004 esac
20005 case $ac_abs_builddir in
20006 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20008 case ${ac_top_builddir}. in
20009 .) ac_abs_top_builddir=$ac_abs_builddir;;
20010 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20011 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20012 esac;;
20013 esac
20014 case $ac_abs_builddir in
20015 .) ac_abs_srcdir=$ac_srcdir;;
20017 case $ac_srcdir in
20018 .) ac_abs_srcdir=$ac_abs_builddir;;
20019 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20020 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20021 esac;;
20022 esac
20023 case $ac_abs_builddir in
20024 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20026 case $ac_top_srcdir in
20027 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20028 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20029 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20030 esac;;
20031 esac
20034 case $INSTALL in
20035 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20036 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20037 esac
20039 if test x"$ac_file" != x-; then
20040 { echo "$as_me:$LINENO: creating $ac_file" >&5
20041 echo "$as_me: creating $ac_file" >&6;}
20042 rm -f "$ac_file"
20044 # Let's still pretend it is `configure' which instantiates (i.e., don't
20045 # use $as_me), people would be surprised to read:
20046 # /* config.h. Generated by config.status. */
20047 if test x"$ac_file" = x-; then
20048 configure_input=
20049 else
20050 configure_input="$ac_file. "
20052 configure_input=$configure_input"Generated from `echo $ac_file_in |
20053 sed 's,.*/,,'` by configure."
20055 # First look for the input files in the build tree, otherwise in the
20056 # src tree.
20057 ac_file_inputs=`IFS=:
20058 for f in $ac_file_in; do
20059 case $f in
20060 -) echo $tmp/stdin ;;
20061 [\\/$]*)
20062 # Absolute (can't be DOS-style, as IFS=:)
20063 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20064 echo "$as_me: error: cannot find input file: $f" >&2;}
20065 { (exit 1); exit 1; }; }
20066 echo "$f";;
20067 *) # Relative
20068 if test -f "$f"; then
20069 # Build tree
20070 echo "$f"
20071 elif test -f "$srcdir/$f"; then
20072 # Source tree
20073 echo "$srcdir/$f"
20074 else
20075 # /dev/null tree
20076 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20077 echo "$as_me: error: cannot find input file: $f" >&2;}
20078 { (exit 1); exit 1; }; }
20079 fi;;
20080 esac
20081 done` || { (exit 1); exit 1; }
20082 _ACEOF
20083 cat >>$CONFIG_STATUS <<_ACEOF
20084 sed "$ac_vpsub
20085 $extrasub
20086 _ACEOF
20087 cat >>$CONFIG_STATUS <<\_ACEOF
20089 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20090 s,@configure_input@,$configure_input,;t t
20091 s,@srcdir@,$ac_srcdir,;t t
20092 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20093 s,@top_srcdir@,$ac_top_srcdir,;t t
20094 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20095 s,@builddir@,$ac_builddir,;t t
20096 s,@abs_builddir@,$ac_abs_builddir,;t t
20097 s,@top_builddir@,$ac_top_builddir,;t t
20098 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20099 s,@INSTALL@,$ac_INSTALL,;t t
20100 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20101 rm -f $tmp/stdin
20102 if test x"$ac_file" != x-; then
20103 mv $tmp/out $ac_file
20104 else
20105 cat $tmp/out
20106 rm -f $tmp/out
20109 done
20110 _ACEOF
20111 cat >>$CONFIG_STATUS <<\_ACEOF
20114 # CONFIG_HEADER section.
20117 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20118 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20120 # ac_d sets the value in "#define NAME VALUE" lines.
20121 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20122 ac_dB='[ ].*$,\1#\2'
20123 ac_dC=' '
20124 ac_dD=',;t'
20125 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20126 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20127 ac_uB='$,\1#\2define\3'
20128 ac_uC=' '
20129 ac_uD=',;t'
20131 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20132 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20133 case $ac_file in
20134 - | *:- | *:-:* ) # input from stdin
20135 cat >$tmp/stdin
20136 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20137 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20138 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20139 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20140 * ) ac_file_in=$ac_file.in ;;
20141 esac
20143 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20144 echo "$as_me: creating $ac_file" >&6;}
20146 # First look for the input files in the build tree, otherwise in the
20147 # src tree.
20148 ac_file_inputs=`IFS=:
20149 for f in $ac_file_in; do
20150 case $f in
20151 -) echo $tmp/stdin ;;
20152 [\\/$]*)
20153 # Absolute (can't be DOS-style, as IFS=:)
20154 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20155 echo "$as_me: error: cannot find input file: $f" >&2;}
20156 { (exit 1); exit 1; }; }
20157 # Do quote $f, to prevent DOS paths from being IFS'd.
20158 echo "$f";;
20159 *) # Relative
20160 if test -f "$f"; then
20161 # Build tree
20162 echo "$f"
20163 elif test -f "$srcdir/$f"; then
20164 # Source tree
20165 echo "$srcdir/$f"
20166 else
20167 # /dev/null tree
20168 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20169 echo "$as_me: error: cannot find input file: $f" >&2;}
20170 { (exit 1); exit 1; }; }
20171 fi;;
20172 esac
20173 done` || { (exit 1); exit 1; }
20174 # Remove the trailing spaces.
20175 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20177 _ACEOF
20179 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20180 # `conftest.undefs', that substitutes the proper values into
20181 # config.h.in to produce config.h. The first handles `#define'
20182 # templates, and the second `#undef' templates.
20183 # And first: Protect against being on the right side of a sed subst in
20184 # config.status. Protect against being in an unquoted here document
20185 # in config.status.
20186 rm -f conftest.defines conftest.undefs
20187 # Using a here document instead of a string reduces the quoting nightmare.
20188 # Putting comments in sed scripts is not portable.
20190 # `end' is used to avoid that the second main sed command (meant for
20191 # 0-ary CPP macros) applies to n-ary macro definitions.
20192 # See the Autoconf documentation for `clear'.
20193 cat >confdef2sed.sed <<\_ACEOF
20194 s/[\\&,]/\\&/g
20195 s,[\\$`],\\&,g
20196 t clear
20197 : clear
20198 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20199 t end
20200 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20201 : end
20202 _ACEOF
20203 # If some macros were called several times there might be several times
20204 # the same #defines, which is useless. Nevertheless, we may not want to
20205 # sort them, since we want the *last* AC-DEFINE to be honored.
20206 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20207 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20208 rm -f confdef2sed.sed
20210 # This sed command replaces #undef with comments. This is necessary, for
20211 # example, in the case of _POSIX_SOURCE, which is predefined and required
20212 # on some systems where configure will not decide to define it.
20213 cat >>conftest.undefs <<\_ACEOF
20214 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20215 _ACEOF
20217 # Break up conftest.defines because some shells have a limit on the size
20218 # of here documents, and old seds have small limits too (100 cmds).
20219 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20220 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20221 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20222 echo ' :' >>$CONFIG_STATUS
20223 rm -f conftest.tail
20224 while grep . conftest.defines >/dev/null
20226 # Write a limited-size here document to $tmp/defines.sed.
20227 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20228 # Speed up: don't consider the non `#define' lines.
20229 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20230 # Work around the forget-to-reset-the-flag bug.
20231 echo 't clr' >>$CONFIG_STATUS
20232 echo ': clr' >>$CONFIG_STATUS
20233 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20234 echo 'CEOF
20235 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20236 rm -f $tmp/in
20237 mv $tmp/out $tmp/in
20238 ' >>$CONFIG_STATUS
20239 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20240 rm -f conftest.defines
20241 mv conftest.tail conftest.defines
20242 done
20243 rm -f conftest.defines
20244 echo ' fi # grep' >>$CONFIG_STATUS
20245 echo >>$CONFIG_STATUS
20247 # Break up conftest.undefs because some shells have a limit on the size
20248 # of here documents, and old seds have small limits too (100 cmds).
20249 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20250 rm -f conftest.tail
20251 while grep . conftest.undefs >/dev/null
20253 # Write a limited-size here document to $tmp/undefs.sed.
20254 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20255 # Speed up: don't consider the non `#undef'
20256 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20257 # Work around the forget-to-reset-the-flag bug.
20258 echo 't clr' >>$CONFIG_STATUS
20259 echo ': clr' >>$CONFIG_STATUS
20260 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20261 echo 'CEOF
20262 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20263 rm -f $tmp/in
20264 mv $tmp/out $tmp/in
20265 ' >>$CONFIG_STATUS
20266 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20267 rm -f conftest.undefs
20268 mv conftest.tail conftest.undefs
20269 done
20270 rm -f conftest.undefs
20272 cat >>$CONFIG_STATUS <<\_ACEOF
20273 # Let's still pretend it is `configure' which instantiates (i.e., don't
20274 # use $as_me), people would be surprised to read:
20275 # /* config.h. Generated by config.status. */
20276 if test x"$ac_file" = x-; then
20277 echo "/* Generated by configure. */" >$tmp/config.h
20278 else
20279 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20281 cat $tmp/in >>$tmp/config.h
20282 rm -f $tmp/in
20283 if test x"$ac_file" != x-; then
20284 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20285 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20286 echo "$as_me: $ac_file is unchanged" >&6;}
20287 else
20288 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20289 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20290 X"$ac_file" : 'X\(//\)[^/]' \| \
20291 X"$ac_file" : 'X\(//\)$' \| \
20292 X"$ac_file" : 'X\(/\)' \| \
20293 . : '\(.\)' 2>/dev/null ||
20294 echo X"$ac_file" |
20295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20296 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20297 /^X\(\/\/\)$/{ s//\1/; q; }
20298 /^X\(\/\).*/{ s//\1/; q; }
20299 s/.*/./; q'`
20300 { if $as_mkdir_p; then
20301 mkdir -p "$ac_dir"
20302 else
20303 as_dir="$ac_dir"
20304 as_dirs=
20305 while test ! -d "$as_dir"; do
20306 as_dirs="$as_dir $as_dirs"
20307 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20308 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20309 X"$as_dir" : 'X\(//\)[^/]' \| \
20310 X"$as_dir" : 'X\(//\)$' \| \
20311 X"$as_dir" : 'X\(/\)' \| \
20312 . : '\(.\)' 2>/dev/null ||
20313 echo X"$as_dir" |
20314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20315 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20316 /^X\(\/\/\)$/{ s//\1/; q; }
20317 /^X\(\/\).*/{ s//\1/; q; }
20318 s/.*/./; q'`
20319 done
20320 test ! -n "$as_dirs" || mkdir $as_dirs
20321 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20322 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20323 { (exit 1); exit 1; }; }; }
20325 rm -f $ac_file
20326 mv $tmp/config.h $ac_file
20328 else
20329 cat $tmp/config.h
20330 rm -f $tmp/config.h
20332 # Compute $ac_file's index in $config_headers.
20333 _am_stamp_count=1
20334 for _am_header in $config_headers :; do
20335 case $_am_header in
20336 $ac_file | $ac_file:* )
20337 break ;;
20339 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20340 esac
20341 done
20342 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20343 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20344 X$ac_file : 'X\(//\)[^/]' \| \
20345 X$ac_file : 'X\(//\)$' \| \
20346 X$ac_file : 'X\(/\)' \| \
20347 . : '\(.\)' 2>/dev/null ||
20348 echo X$ac_file |
20349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20350 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20351 /^X\(\/\/\)$/{ s//\1/; q; }
20352 /^X\(\/\).*/{ s//\1/; q; }
20353 s/.*/./; q'`/stamp-h$_am_stamp_count
20354 done
20355 _ACEOF
20356 cat >>$CONFIG_STATUS <<\_ACEOF
20359 # CONFIG_COMMANDS section.
20361 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20362 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20363 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20364 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20365 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20366 X"$ac_dest" : 'X\(//\)[^/]' \| \
20367 X"$ac_dest" : 'X\(//\)$' \| \
20368 X"$ac_dest" : 'X\(/\)' \| \
20369 . : '\(.\)' 2>/dev/null ||
20370 echo X"$ac_dest" |
20371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20372 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20373 /^X\(\/\/\)$/{ s//\1/; q; }
20374 /^X\(\/\).*/{ s//\1/; q; }
20375 s/.*/./; q'`
20376 { if $as_mkdir_p; then
20377 mkdir -p "$ac_dir"
20378 else
20379 as_dir="$ac_dir"
20380 as_dirs=
20381 while test ! -d "$as_dir"; do
20382 as_dirs="$as_dir $as_dirs"
20383 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20384 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20385 X"$as_dir" : 'X\(//\)[^/]' \| \
20386 X"$as_dir" : 'X\(//\)$' \| \
20387 X"$as_dir" : 'X\(/\)' \| \
20388 . : '\(.\)' 2>/dev/null ||
20389 echo X"$as_dir" |
20390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20391 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20392 /^X\(\/\/\)$/{ s//\1/; q; }
20393 /^X\(\/\).*/{ s//\1/; q; }
20394 s/.*/./; q'`
20395 done
20396 test ! -n "$as_dirs" || mkdir $as_dirs
20397 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20398 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20399 { (exit 1); exit 1; }; }; }
20401 ac_builddir=.
20403 if test "$ac_dir" != .; then
20404 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20405 # A "../" for each directory in $ac_dir_suffix.
20406 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20407 else
20408 ac_dir_suffix= ac_top_builddir=
20411 case $srcdir in
20412 .) # No --srcdir option. We are building in place.
20413 ac_srcdir=.
20414 if test -z "$ac_top_builddir"; then
20415 ac_top_srcdir=.
20416 else
20417 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20418 fi ;;
20419 [\\/]* | ?:[\\/]* ) # Absolute path.
20420 ac_srcdir=$srcdir$ac_dir_suffix;
20421 ac_top_srcdir=$srcdir ;;
20422 *) # Relative path.
20423 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20424 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20425 esac
20427 # Do not use `cd foo && pwd` to compute absolute paths, because
20428 # the directories may not exist.
20429 case `pwd` in
20430 .) ac_abs_builddir="$ac_dir";;
20432 case "$ac_dir" in
20433 .) ac_abs_builddir=`pwd`;;
20434 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20435 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20436 esac;;
20437 esac
20438 case $ac_abs_builddir in
20439 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20441 case ${ac_top_builddir}. in
20442 .) ac_abs_top_builddir=$ac_abs_builddir;;
20443 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20444 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20445 esac;;
20446 esac
20447 case $ac_abs_builddir in
20448 .) ac_abs_srcdir=$ac_srcdir;;
20450 case $ac_srcdir in
20451 .) ac_abs_srcdir=$ac_abs_builddir;;
20452 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20453 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20454 esac;;
20455 esac
20456 case $ac_abs_builddir in
20457 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20459 case $ac_top_srcdir in
20460 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20461 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20462 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20463 esac;;
20464 esac
20467 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20468 echo "$as_me: executing $ac_dest commands" >&6;}
20469 case $ac_dest in
20470 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20471 # Strip MF so we end up with the name of the file.
20472 mf=`echo "$mf" | sed -e 's/:.*$//'`
20473 # Check whether this is an Automake generated Makefile or not.
20474 # We used to match only the files named `Makefile.in', but
20475 # some people rename them; so instead we look at the file content.
20476 # Grep'ing the first line is not enough: some people post-process
20477 # each Makefile.in and add a new line on top of each file to say so.
20478 # So let's grep whole file.
20479 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20480 dirpart=`(dirname "$mf") 2>/dev/null ||
20481 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20482 X"$mf" : 'X\(//\)[^/]' \| \
20483 X"$mf" : 'X\(//\)$' \| \
20484 X"$mf" : 'X\(/\)' \| \
20485 . : '\(.\)' 2>/dev/null ||
20486 echo X"$mf" |
20487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20488 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20489 /^X\(\/\/\)$/{ s//\1/; q; }
20490 /^X\(\/\).*/{ s//\1/; q; }
20491 s/.*/./; q'`
20492 else
20493 continue
20495 # Extract the definition of DEPDIR, am__include, and am__quote
20496 # from the Makefile without running `make'.
20497 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20498 test -z "$DEPDIR" && continue
20499 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20500 test -z "am__include" && continue
20501 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20502 # When using ansi2knr, U may be empty or an underscore; expand it
20503 U=`sed -n 's/^U = //p' < "$mf"`
20504 # Find all dependency output files, they are included files with
20505 # $(DEPDIR) in their names. We invoke sed twice because it is the
20506 # simplest approach to changing $(DEPDIR) to its actual value in the
20507 # expansion.
20508 for file in `sed -n "
20509 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20510 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20511 # Make sure the directory exists.
20512 test -f "$dirpart/$file" && continue
20513 fdir=`(dirname "$file") 2>/dev/null ||
20514 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20515 X"$file" : 'X\(//\)[^/]' \| \
20516 X"$file" : 'X\(//\)$' \| \
20517 X"$file" : 'X\(/\)' \| \
20518 . : '\(.\)' 2>/dev/null ||
20519 echo X"$file" |
20520 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20521 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20522 /^X\(\/\/\)$/{ s//\1/; q; }
20523 /^X\(\/\).*/{ s//\1/; q; }
20524 s/.*/./; q'`
20525 { if $as_mkdir_p; then
20526 mkdir -p $dirpart/$fdir
20527 else
20528 as_dir=$dirpart/$fdir
20529 as_dirs=
20530 while test ! -d "$as_dir"; do
20531 as_dirs="$as_dir $as_dirs"
20532 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20533 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20534 X"$as_dir" : 'X\(//\)[^/]' \| \
20535 X"$as_dir" : 'X\(//\)$' \| \
20536 X"$as_dir" : 'X\(/\)' \| \
20537 . : '\(.\)' 2>/dev/null ||
20538 echo X"$as_dir" |
20539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20540 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20541 /^X\(\/\/\)$/{ s//\1/; q; }
20542 /^X\(\/\).*/{ s//\1/; q; }
20543 s/.*/./; q'`
20544 done
20545 test ! -n "$as_dirs" || mkdir $as_dirs
20546 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20547 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20548 { (exit 1); exit 1; }; }; }
20550 # echo "creating $dirpart/$file"
20551 echo '# dummy' > "$dirpart/$file"
20552 done
20553 done
20555 default-1 )
20556 for ac_file in $CONFIG_FILES; do
20557 # Support "outfile[:infile[:infile...]]"
20558 case "$ac_file" in
20559 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20560 esac
20561 # PO directories have a Makefile.in generated from Makefile.in.in.
20562 case "$ac_file" in */Makefile.in)
20563 # Adjust a relative srcdir.
20564 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
20565 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
20566 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
20567 # In autoconf-2.13 it is called $ac_given_srcdir.
20568 # In autoconf-2.50 it is called $srcdir.
20569 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
20570 case "$ac_given_srcdir" in
20571 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
20572 /*) top_srcdir="$ac_given_srcdir" ;;
20573 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
20574 esac
20575 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
20576 rm -f "$ac_dir/POTFILES"
20577 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
20578 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
20579 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
20580 # on $ac_dir but don't depend on user-specified configuration
20581 # parameters.
20582 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
20583 # The LINGUAS file contains the set of available languages.
20584 if test -n "$ALL_LINGUAS"; then
20585 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
20587 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
20588 # Hide the ALL_LINGUAS assigment from automake.
20589 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
20591 case "$ac_given_srcdir" in
20592 .) srcdirpre= ;;
20593 *) srcdirpre='$(srcdir)/' ;;
20594 esac
20595 POFILES=
20596 GMOFILES=
20597 UPDATEPOFILES=
20598 DUMMYPOFILES=
20599 for lang in $ALL_LINGUAS; do
20600 POFILES="$POFILES $srcdirpre$lang.po"
20601 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
20602 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
20603 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
20604 done
20605 # CATALOGS depends on both $ac_dir and the user's LINGUAS
20606 # environment variable.
20607 INST_LINGUAS=
20608 if test -n "$ALL_LINGUAS"; then
20609 for presentlang in $ALL_LINGUAS; do
20610 useit=no
20611 if test "%UNSET%" != "$LINGUAS"; then
20612 desiredlanguages="$LINGUAS"
20613 else
20614 desiredlanguages="$ALL_LINGUAS"
20616 for desiredlang in $desiredlanguages; do
20617 # Use the presentlang catalog if desiredlang is
20618 # a. equal to presentlang, or
20619 # b. a variant of presentlang (because in this case,
20620 # presentlang can be used as a fallback for messages
20621 # which are not translated in the desiredlang catalog).
20622 case "$desiredlang" in
20623 "$presentlang"*) useit=yes;;
20624 esac
20625 done
20626 if test $useit = yes; then
20627 INST_LINGUAS="$INST_LINGUAS $presentlang"
20629 done
20631 CATALOGS=
20632 if test -n "$INST_LINGUAS"; then
20633 for lang in $INST_LINGUAS; do
20634 CATALOGS="$CATALOGS $lang.gmo"
20635 done
20637 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
20638 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"
20639 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
20640 if test -f "$f"; then
20641 case "$f" in
20642 *.orig | *.bak | *~) ;;
20643 *) cat "$f" >> "$ac_dir/Makefile" ;;
20644 esac
20646 done
20649 esac
20650 done ;;
20651 denoiser ) if test $level -gt 0; then
20652 if test ! -d src/utils/scripts; then mkdir -p src/utils/scripts; fi
20653 sed -e "1{x;s/.*/1/;x;};/^[ ]*\$/d;/^#if /{/level.*$level/{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" \
20654 $srcdir/src/utils/scripts/denoiser.rules > src/utils/scripts/denoiser.sed
20655 for i in `find . -name 'Makefile' -print`; do
20656 if test -n "`head -n 1 $i | grep '^#'`"; then
20657 sed -f src/utils/scripts/denoiser.sed $i > $i.tmp && mv $i.tmp $i
20659 done
20660 fi ;;
20661 esac
20662 done
20663 _ACEOF
20665 cat >>$CONFIG_STATUS <<\_ACEOF
20667 { (exit 0); exit 0; }
20668 _ACEOF
20669 chmod +x $CONFIG_STATUS
20670 ac_clean_files=$ac_clean_files_save
20673 # configure is writing to config.log, and then calls config.status.
20674 # config.status does its own redirection, appending to config.log.
20675 # Unfortunately, on DOS this fails, as config.log is still kept open
20676 # by configure, so config.status won't be able to write to it; its
20677 # output is simply discarded. So we exec the FD to /dev/null,
20678 # effectively closing config.log, so it can be properly (re)opened and
20679 # appended to by config.status. When coming back to configure, we
20680 # need to make the FD available again.
20681 if test "$no_create" != yes; then
20682 ac_cs_success=:
20683 ac_config_status_args=
20684 test "$silent" = yes &&
20685 ac_config_status_args="$ac_config_status_args --quiet"
20686 exec 5>/dev/null
20687 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20688 exec 5>>config.log
20689 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20690 # would make configure fail if this is the last instruction.
20691 $ac_cs_success || { (exit 1); exit 1; }
20695 echo
20696 echo
20697 echo " Configure script has finished system check."
20698 echo
20699 echo " Configured aMule ${PACKAGE_VERSION} for '${host}'."
20700 echo
20701 echo " aMule enabled options:"
20702 echo
20703 echo " **** aMule Core ****"
20704 echo " Prefix where aMule should be installed? ${prefix:-none}"
20705 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
20706 echo " Should aMule be compiled in debug mode? ${USE_DEBUG:-no}"
20707 echo " Should aMule be compiled with profiling? ${USE_PROFILE:-no}"
20708 echo " Should aMule be compiled with optimizations? ${USE_OPTIMIZE:-no}"
20709 echo " Should aMule be compiled with UPnP support? ${ENABLE_UPNP:-yes}"
20710 echo " Should aMule be compiled with IP2country support? ${ENABLE_IP2COUNTRY:-yes}"
20711 echo " Should aMule monolithic application be built? ${MONOLITHIC:-yes}"
20712 echo " Should aMule daemon version be built? ${AMULE_DAEMON:-no}"
20713 echo " Should aMule remote gui be built? (EXPERIMENTAL) ${AMULE_GUI:-no}"
20714 echo " Crypto++ library/headers style? ${CRYPTO_PP_STYLE:-not found}"
20716 echo
20717 echo " **** aMule TextClient ****"
20718 echo " Should aMule Command Line Client be built? ${AMULECMD:-no}"
20719 echo
20720 echo " **** aMule WebServer ****"
20721 echo " Should aMule WebServer be built? ${WEB:-no}"
20722 echo
20723 echo " **** aMule ED2K Links Handler ****"
20724 echo " Should aMule ED2K Links Handler be built? ${ED2K:-yes}"
20725 echo
20726 echo " **** aMuleLinkCreator ****"
20727 echo " Should aMuleLinkCreator GUI version (alc) be built? ${ALC:-no}"
20728 echo " Should aMuleLinkCreator for console (alcc) be built? ${ALCC:-no}"
20729 echo
20730 echo " **** aMule Statistics ****"
20731 echo " Should C aMule Statistics (CAS) be built? ${CAS:-no}"
20732 echo " Should aMule GUI Statistics (wxCas) be built? ${WXCAS:-no}"
20734 echo
20735 echo " **** General Libraries and Tools ****"
20736 echo " Should ccache support be enabled? ${ccache:-no}"
20737 echo " Libraries aMule will use to build:"
20738 wxinfo="$WX_PORT"
20739 if test $WX_DEBUG -eq 1; then
20740 wxinfo="$wxinfo,debug"
20743 if test $WX_SHARED -eq 1; then
20744 wxinfo="$wxinfo,shared"
20745 else
20746 wxinfo="$wxinfo,static"
20749 echo " wxWidgets ${WX_VERSION_FULL} ($wxinfo)"
20750 echo " crypto++ ${CRYPTO_PP_VERSION_STRING} (${CRYPTO_PP_STYLE})"
20751 if test x${WEB:-no} != xno; then
20752 if test $regex_found = no; then
20753 regex_found="Not detected"
20754 else
20755 if test x$REGEX_LIB = x; then
20756 regex_found=system
20757 else
20758 regex_found="standalone (in $REGEX_LIB)"
20763 echo " regex $regex_found"
20765 if test ${enable_nls-yes} = yes; then
20766 if test x$USE_NLS = xno; then
20767 libintl_found="Not detected"
20768 else
20769 if test x$USE_INCLUDED_LIBINTL = xyes; then
20770 libintl_found="included"
20771 else
20772 libintl_found="system"
20777 echo " libintl $libintl_found"
20779 if test x$LIBPNG_VERSION != xnot_needed; then
20780 echo " libpng ${LIBPNG_VERSION:-Not detected}"
20782 if test x$GDLIB_VERSION != xnot_needed; then
20783 echo " libgd ${GDLIB_VERSION:-Not detected}"
20785 echo " zlib ${ZLIB_VERSION:-Not detected}"
20786 if test x$WEB = xdisabled; then
20787 echo ""
20788 echo ""
20789 echo "WARNING! amuleweb has been disabled because configure could not find"
20790 echo "a POSIX compliant regex library."
20791 echo ""
20793 if test x"$LIBPNG_VERSION" = x""; then
20794 echo ""
20795 echo ""
20796 echo " WARNING! libpng >= 1.2.0 not found."
20797 echo " amuleweb will be compiled but file download progress bar images will NOT be generated."
20798 echo ""