2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for aMule SVN.
5 # Report bugs to <admin@amule.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE
=1; export DUALCASE
# for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print
-rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
57 as_echo_n='/usr
/ucb
/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
70 as_echo_n='sh
-c $as_echo_n_body as_echo
'
73 as_echo='sh
-c $as_echo_body as_echo
'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x
; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var
in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\
${$as_var+set} = xset \
123 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
136 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x
; then
139 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 case \`(set -o) 2>/dev/null\` in #(
155 as_required
="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev
/null
; then :
182 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
185 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
187 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
190 test -z "$as_dir" && as_dir
=.
194 for as_base
in sh bash ksh sh5
; do
195 # Try only shells that exist, to save several forks.
196 as_shell
=$as_dir/$as_base
197 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
199 CONFIG_SHELL
=$as_shell as_have_required
=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
208 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
210 CONFIG_SHELL
=$SHELL as_have_required
=yes
215 if test "x$CONFIG_SHELL" != x
; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
221 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x
$as_have_required = xno
; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x
${ZSH_VERSION+set} = xset
; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and admin@amule.org
234 $0: about your system, including any error possibly output
235 $0: before this message. Then install a modern shell, or
236 $0: manually run the script under such a shell if you do
243 SHELL
=${CONFIG_SHELL-/bin/sh}
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE
= GREP_OPTIONS
=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
254 # Portably unset VAR.
257 { eval $1=; unset $1;}
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 # Create "$as_dir" as a directory, including parents if necessary.
286 -*) as_dir
=.
/$as_dir;;
288 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
292 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295 as_dirs
="'$as_qdir' $as_dirs"
296 as_dir
=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 test -d "$as_dir" && break
321 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
322 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
333 eval 'as_fn_append ()
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
357 as_val
=`expr "$@" || test $? -eq 1`
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
369 as_status
=$?
; test $as_status -eq 0 && as_status
=1
371 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit
$as_status
378 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
385 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
397 as_me
=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 # Avoid depending upon Character Ranges.
417 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits
='0123456789'
421 as_cr_alnum
=$as_cr_Letters$as_cr_digits
424 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
425 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 chmod +x
"$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
451 # Exit status is that of the last command.
455 ECHO_C
= ECHO_N
= ECHO_T
=
456 case `echo -n x` in #(((((
458 case `echo 'xy\c'` in
459 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
468 rm -f conf$$ conf$$.exe conf$$.
file
469 if test -d conf$$.dir
; then
470 rm -f conf$$.dir
/conf$$.
file
473 mkdir conf$$.dir
2>/dev
/null
475 if (echo >conf$$.
file) 2>/dev
/null
; then
476 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
484 elif ln conf$$.
file conf$$
2>/dev
/null
; then
492 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
493 rmdir conf$$.dir
2>/dev
/null
495 if mkdir
-p .
2>/dev
/null
; then
496 as_mkdir_p
='mkdir -p "$as_dir"'
498 test -d .
/-p && rmdir .
/-p
502 if test -x / >/dev
/null
2>&1; then
505 if ls -dL / >/dev
/null
2>&1; then
512 if test -d "$1"; then
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
523 as_executable_p
=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
536 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
543 ac_default_prefix
=/usr
/local
545 ac_config_libobj_dir
=.
552 # Identity of this package.
554 PACKAGE_TARNAME
='amule'
555 PACKAGE_VERSION
='SVN'
556 PACKAGE_STRING
='aMule SVN'
557 PACKAGE_BUGREPORT
='admin@amule.org'
560 ac_unique_file
="src/amule.cpp"
561 # Factoring default headers for most tests.
562 ac_includes_default
="\
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
574 # ifdef HAVE_STDLIB_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
598 ac_subst_vars
='am__EXEEXT_FALSE
603 COMPILE_LIB_COMMON_FALSE
604 COMPILE_LIB_COMMON_TRUE
609 GENERATE_FLEX_HEADER_FALSE
610 GENERATE_FLEX_HEADER_TRUE
613 NEED_CORESERVICES_FALSE
614 NEED_CORESERVICES_TRUE
647 AMULE_DAEMON_MANPAGES
652 INTL_LIBTOOL_SUFFIX_PREFIX
659 BUILD_INCLUDED_LIBINTL
678 DISTCHECK_CONFIGURE_FLAGS
800 MAINTAINER_MODE_FALSE
812 INSTALL_STRIP_PROGRAM
854 program_transform_name
870 enable_option_checking
872 enable_maintainer_mode
873 enable_dependency_tracking
922 with_included_gettext
928 ac_precious_vars
='build_alias
949 # Initialize some variables set by options.
951 ac_init_version
=false
952 ac_unrecognized_opts
=
954 # The variables have the same names as the options, with
955 # dashes changed to underlines.
963 program_transform_name
=s
,x
,x
,
971 # Installation directory options.
972 # These are left unexpanded so users can "make install exec_prefix=/foo"
973 # and all the variables that are supposed to be based on exec_prefix
974 # by default will actually change.
975 # Use braces instead of parens because sh, perl, etc. also accept them.
976 # (The list follows the same order as the GNU Coding Standards.)
977 bindir
='${exec_prefix}/bin'
978 sbindir
='${exec_prefix}/sbin'
979 libexecdir
='${exec_prefix}/libexec'
980 datarootdir
='${prefix}/share'
981 datadir
='${datarootdir}'
982 sysconfdir
='${prefix}/etc'
983 sharedstatedir
='${prefix}/com'
984 localstatedir
='${prefix}/var'
985 includedir
='${prefix}/include'
986 oldincludedir
='/usr/include'
987 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
988 infodir
='${datarootdir}/info'
993 libdir
='${exec_prefix}/lib'
994 localedir
='${datarootdir}/locale'
995 mandir
='${datarootdir}/man'
1001 # If the previous option needs an argument, assign it.
1002 if test -n "$ac_prev"; then
1003 eval $ac_prev=\
$ac_option
1009 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1013 # Accept the important Cygnus configure options, so we can diagnose typos.
1015 case $ac_dashdash$ac_option in
1019 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1021 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1022 bindir
=$ac_optarg ;;
1024 -build |
--build |
--buil |
--bui |
--bu)
1025 ac_prev
=build_alias
;;
1026 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1027 build_alias
=$ac_optarg ;;
1029 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1030 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1031 ac_prev
=cache_file
;;
1032 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1033 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1034 cache_file
=$ac_optarg ;;
1036 --config-cache |
-C)
1037 cache_file
=config.cache
;;
1039 -datadir |
--datadir |
--datadi |
--datad)
1041 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1042 datadir
=$ac_optarg ;;
1044 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1045 |
--dataroo |
--dataro |
--datar)
1046 ac_prev
=datarootdir
;;
1047 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1048 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1049 datarootdir
=$ac_optarg ;;
1051 -disable-* |
--disable-*)
1052 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1055 as_fn_error
"invalid feature name: $ac_useropt"
1056 ac_useropt_orig
=$ac_useropt
1057 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1060 "enable_
$ac_useropt"
1062 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1063 ac_unrecognized_sep
=', ';;
1065 eval enable_
$ac_useropt=no
;;
1067 -docdir |
--docdir |
--docdi |
--doc |
--do)
1069 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1070 docdir
=$ac_optarg ;;
1072 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1074 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1075 dvidir
=$ac_optarg ;;
1077 -enable-* |
--enable-*)
1078 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1081 as_fn_error
"invalid feature name: $ac_useropt"
1082 ac_useropt_orig
=$ac_useropt
1083 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1084 case $ac_user_opts in
1086 "enable_
$ac_useropt"
1088 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1089 ac_unrecognized_sep
=', ';;
1091 eval enable_
$ac_useropt=\
$ac_optarg ;;
1093 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1094 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1095 |
--exec |
--exe |
--ex)
1096 ac_prev
=exec_prefix
;;
1097 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1098 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1099 |
--exec=* |
--exe=* |
--ex=*)
1100 exec_prefix
=$ac_optarg ;;
1102 -gas |
--gas |
--ga |
--g)
1103 # Obsolete; use --with-gas.
1106 -help |
--help |
--hel |
--he |
-h)
1107 ac_init_help
=long
;;
1108 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1109 ac_init_help
=recursive
;;
1110 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1111 ac_init_help
=short
;;
1113 -host |
--host |
--hos |
--ho)
1114 ac_prev
=host_alias
;;
1115 -host=* |
--host=* |
--hos=* |
--ho=*)
1116 host_alias
=$ac_optarg ;;
1118 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1120 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1122 htmldir
=$ac_optarg ;;
1124 -includedir |
--includedir |
--includedi |
--included |
--include \
1125 |
--includ |
--inclu |
--incl |
--inc)
1126 ac_prev
=includedir
;;
1127 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1128 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1129 includedir
=$ac_optarg ;;
1131 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1133 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1134 infodir
=$ac_optarg ;;
1136 -libdir |
--libdir |
--libdi |
--libd)
1138 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1139 libdir
=$ac_optarg ;;
1141 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1142 |
--libexe |
--libex |
--libe)
1143 ac_prev
=libexecdir
;;
1144 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1145 |
--libexe=* |
--libex=* |
--libe=*)
1146 libexecdir
=$ac_optarg ;;
1148 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1149 ac_prev
=localedir
;;
1150 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1151 localedir
=$ac_optarg ;;
1153 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1154 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1155 ac_prev
=localstatedir
;;
1156 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1157 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1158 localstatedir
=$ac_optarg ;;
1160 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1162 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1163 mandir
=$ac_optarg ;;
1165 -nfp |
--nfp |
--nf)
1166 # Obsolete; use --without-fp.
1169 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1170 |
--no-cr |
--no-c |
-n)
1173 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1174 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1177 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1178 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1179 |
--oldin |
--oldi |
--old |
--ol |
--o)
1180 ac_prev
=oldincludedir
;;
1181 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1182 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1183 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1184 oldincludedir
=$ac_optarg ;;
1186 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1188 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1189 prefix
=$ac_optarg ;;
1191 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1192 |
--program-pre |
--program-pr |
--program-p)
1193 ac_prev
=program_prefix
;;
1194 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1195 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1196 program_prefix
=$ac_optarg ;;
1198 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1199 |
--program-suf |
--program-su |
--program-s)
1200 ac_prev
=program_suffix
;;
1201 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1202 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1203 program_suffix
=$ac_optarg ;;
1205 -program-transform-name |
--program-transform-name \
1206 |
--program-transform-nam |
--program-transform-na \
1207 |
--program-transform-n |
--program-transform- \
1208 |
--program-transform |
--program-transfor \
1209 |
--program-transfo |
--program-transf \
1210 |
--program-trans |
--program-tran \
1211 |
--progr-tra |
--program-tr |
--program-t)
1212 ac_prev
=program_transform_name
;;
1213 -program-transform-name=* |
--program-transform-name=* \
1214 |
--program-transform-nam=* |
--program-transform-na=* \
1215 |
--program-transform-n=* |
--program-transform-=* \
1216 |
--program-transform=* |
--program-transfor=* \
1217 |
--program-transfo=* |
--program-transf=* \
1218 |
--program-trans=* |
--program-tran=* \
1219 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1220 program_transform_name
=$ac_optarg ;;
1222 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1224 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1225 pdfdir
=$ac_optarg ;;
1227 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1229 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1232 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1233 |
-silent |
--silent |
--silen |
--sile |
--sil)
1236 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1238 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1240 sbindir
=$ac_optarg ;;
1242 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1243 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1244 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1246 ac_prev
=sharedstatedir
;;
1247 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1248 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1249 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1251 sharedstatedir
=$ac_optarg ;;
1253 -site |
--site |
--sit)
1255 -site=* |
--site=* |
--sit=*)
1258 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1260 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1261 srcdir
=$ac_optarg ;;
1263 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1264 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1265 ac_prev
=sysconfdir
;;
1266 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1267 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1268 sysconfdir
=$ac_optarg ;;
1270 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1271 ac_prev
=target_alias
;;
1272 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1273 target_alias
=$ac_optarg ;;
1275 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1278 -version |
--version |
--versio |
--versi |
--vers |
-V)
1279 ac_init_version
=: ;;
1282 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1285 as_fn_error
"invalid package name: $ac_useropt"
1286 ac_useropt_orig
=$ac_useropt
1287 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1288 case $ac_user_opts in
1292 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1293 ac_unrecognized_sep
=', ';;
1295 eval with_
$ac_useropt=\
$ac_optarg ;;
1297 -without-* |
--without-*)
1298 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1299 # Reject names that are not valid shell variable names.
1300 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1301 as_fn_error
"invalid package name: $ac_useropt"
1302 ac_useropt_orig
=$ac_useropt
1303 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1304 case $ac_user_opts in
1308 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1309 ac_unrecognized_sep
=', ';;
1311 eval with_
$ac_useropt=no
;;
1314 # Obsolete; use --with-x.
1317 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1318 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1319 ac_prev
=x_includes
;;
1320 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1321 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1322 x_includes
=$ac_optarg ;;
1324 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1325 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1326 ac_prev
=x_libraries
;;
1327 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1328 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1329 x_libraries
=$ac_optarg ;;
1331 -*) as_fn_error
"unrecognized option: \`$ac_option'
1332 Try \`$0 --help' for more information."
1336 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1337 # Reject names that are not valid shell variable names.
1338 case $ac_envvar in #(
1339 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1340 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1342 eval $ac_envvar=\
$ac_optarg
1343 export $ac_envvar ;;
1346 # FIXME: should be removed in autoconf 3.0.
1347 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1348 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1349 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1350 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1356 if test -n "$ac_prev"; then
1357 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1358 as_fn_error
"missing argument to $ac_option"
1361 if test -n "$ac_unrecognized_opts"; then
1362 case $enable_option_checking in
1364 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1365 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1369 # Check all directory arguments for consistency.
1370 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1371 datadir sysconfdir sharedstatedir localstatedir includedir \
1372 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1373 libdir localedir mandir
1375 eval ac_val
=\$
$ac_var
1376 # Remove trailing slashes.
1379 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1380 eval $ac_var=\
$ac_val;;
1382 # Be sure to have absolute directory names.
1384 [\\/$
]* | ?
:[\\/]* ) continue;;
1385 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1387 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1390 # There might be people who depend on the old broken behavior: `$host'
1391 # used to hold the argument of --host etc.
1392 # FIXME: To remove some day.
1395 target
=$target_alias
1397 # FIXME: To remove some day.
1398 if test "x$host_alias" != x
; then
1399 if test "x$build_alias" = x
; then
1400 cross_compiling
=maybe
1401 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1402 If a cross compiler is detected then cross compile mode will be used." >&2
1403 elif test "x$build_alias" != "x$host_alias"; then
1409 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1411 test "$silent" = yes && exec 6>/dev
/null
1414 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1415 ac_ls_di
=`ls -di .` &&
1416 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1417 as_fn_error
"working directory cannot be determined"
1418 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1419 as_fn_error
"pwd does not report name of working directory"
1422 # Find the source files, if location was not specified.
1423 if test -z "$srcdir"; then
1424 ac_srcdir_defaulted
=yes
1425 # Try the directory containing this script, then the parent directory.
1426 ac_confdir
=`$as_dirname -- "$as_myself" ||
1427 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1428 X"$as_myself" : 'X\(//\)[^/]' \| \
1429 X"$as_myself" : 'X\(//\)$' \| \
1430 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1431 $as_echo X"$as_myself" |
1432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1450 if test ! -r "$srcdir/$ac_unique_file"; then
1454 ac_srcdir_defaulted
=no
1456 if test ! -r "$srcdir/$ac_unique_file"; then
1457 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1458 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1460 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1462 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1464 # When building in place, set srcdir=.
1465 if test "$ac_abs_confdir" = "$ac_pwd"; then
1468 # Remove unnecessary trailing slashes from srcdir.
1469 # Double slashes in file names in object file debugging info
1470 # mess up M-x gdb in Emacs.
1472 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1474 for ac_var
in $ac_precious_vars; do
1475 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1476 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1477 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1478 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1482 # Report the --help message.
1484 if test "$ac_init_help" = "long"; then
1485 # Omit some internal or obsolete options to make the list less imposing.
1486 # This message is too long to be a string in the A/UX 3.1 sh.
1488 \`configure' configures aMule SVN to adapt to many kinds of systems.
1490 Usage: $0 [OPTION]... [VAR=VALUE]...
1492 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1493 VAR=VALUE. See below for descriptions of some of the useful variables.
1495 Defaults for the options are specified in brackets.
1498 -h, --help display this help and exit
1499 --help=short display options specific to this package
1500 --help=recursive display the short help of all the included packages
1501 -V, --version display version information and exit
1502 -q, --quiet, --silent do not print \`checking...' messages
1503 --cache-file=FILE cache test results in FILE [disabled]
1504 -C, --config-cache alias for \`--cache-file=config.cache'
1505 -n, --no-create do not create output files
1506 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1508 Installation directories:
1509 --prefix=PREFIX install architecture-independent files in PREFIX
1510 [$ac_default_prefix]
1511 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1514 By default, \`make install' will install all the files in
1515 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1516 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1517 for instance \`--prefix=\$HOME'.
1519 For better control, use the options below.
1521 Fine tuning of the installation directories:
1522 --bindir=DIR user executables [EPREFIX/bin]
1523 --sbindir=DIR system admin executables [EPREFIX/sbin]
1524 --libexecdir=DIR program executables [EPREFIX/libexec]
1525 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1526 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1527 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1528 --libdir=DIR object code libraries [EPREFIX/lib]
1529 --includedir=DIR C header files [PREFIX/include]
1530 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1531 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1532 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1533 --infodir=DIR info documentation [DATAROOTDIR/info]
1534 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1535 --mandir=DIR man documentation [DATAROOTDIR/man]
1536 --docdir=DIR documentation root [DATAROOTDIR/doc/amule]
1537 --htmldir=DIR html documentation [DOCDIR]
1538 --dvidir=DIR dvi documentation [DOCDIR]
1539 --pdfdir=DIR pdf documentation [DOCDIR]
1540 --psdir=DIR ps documentation [DOCDIR]
1546 --program-prefix=PREFIX prepend PREFIX to installed program names
1547 --program-suffix=SUFFIX append SUFFIX to installed program names
1548 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1551 --build=BUILD configure
for building on BUILD
[guessed
]
1552 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1556 if test -n "$ac_init_help"; then
1557 case $ac_init_help in
1558 short | recursive
) echo "Configuration of aMule SVN:";;
1563 --disable-option-checking ignore unrecognized
--enable/--with options
1564 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1565 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1566 --enable-silent-rules less verbose build output
(undo
: `make V=1')
1567 --disable-silent-rules verbose build output (undo: `make V
=0')
1568 --enable-maintainer-mode enable make rules and dependencies not useful
1569 (and sometimes confusing) to the casual installer
1570 --disable-dependency-tracking speeds up one-time build
1571 --enable-dependency-tracking do not reject slow dependency extractors
1572 --disable-monolithic disable building of the monolithic aMule app
1573 --enable-amule-daemon compile aMule daemon version
1574 --enable-amulecmd compile aMule command line client
1575 --enable-webserver compile aMule WebServer
1576 --enable-amule-gui compile aMule remote GUI
1577 --enable-cas compile C aMule Statistics
1578 --enable-wxcas compile aMule GUI Statistics
1579 --disable-ed2k don't compile aMule ed2k links handler
1580 --enable-alc compile aMuleLinkCreator GUI version
1581 --enable-alcc compile aMuleLinkCreator
for console
1582 --enable-xas install xas XChat2 plugin
1583 --enable-fileview compile aMule
file viewer
for console
(EXPERIMENTAL
)
1584 --enable-plasmamule compile aMule plasma applet and engine
1585 --enable-static produce a statically linked executable
1586 --enable-kde-in-home install KDE related stuff
in your home dir
1587 --enable-geoip compile with GeoIP IP2Country library
1588 --disable-upnp do not compile UPnP code
1589 --disable-debug disable additional debugging output
1590 --enable-profile enable code profiling
1591 --enable-optimize enable code optimization
1592 --enable-mmap enable using mapped memory
if supported
1593 --disable-rpath do not hardcode runtime library paths
1594 --disable-nls do not use Native Language Support
1595 --enable-ccache enable ccache support
for fast recompilation
1598 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1599 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1600 --with-kde4-config=PATH kde4-config
script to use
1601 --with-moc=PATH Search
in PATH
for Qt
's meta object compiler
1602 --without-gnu-malloc Don't assume that we use GNU libc compatible
1603 malloc
/realloc when cross-compiling
1604 --with-gdlib-prefix=PREFIX
1605 prefix where gdlib is installed
(optional
)
1606 --with-gdlib-config=CONFIG
1607 gdlib-config
script to use
(optional
)
1608 --with-zlib=PREFIX use zlib
in PREFIX
1609 --with-libpng-prefix=PREFIX
1610 prefix where libpng is installed
(optional
)
1611 --with-libpng-config=CONFIG
1612 libpng-config
script to use
(optional
)
1613 --with-geoip-headers=DIR
1614 GeoIP include files location
1615 --with-geoip-lib=DIR GeoIP library location
1616 --with-geoip-static Explicitly link GeoIP statically
(default
=no
)
1617 --with-wxdir=PATH Use uninstalled version of wxWidgets
in PATH
1618 --with-wx-config=CONFIG wx-config
script to use
(optional
)
1619 --with-wx-prefix=PREFIX Prefix where wxWidgets is installed
(optional
)
1620 --with-wx-exec-prefix=PREFIX
1621 Exec prefix where wxWidgets is installed
(optional
)
1622 --with-toolkit Build against a specific wxWidgets toolkit
(default
1624 --with-wxshared Force building against a shared build of wxWidgets
,
1625 even
if --disable-shared is given
(default is auto
)
1626 --with-wxdebug Force building against a debug build of wxWidgets
,
1627 even
if --disable-debug is given
(default is auto
)
1628 --with-wxversion Build against a specific version of wxWidgets
1630 --with-libupnp-prefix=PREFIX
1631 UPnP library location
1632 --with-crypto-prefix=PREFIX
1633 prefix where crypto
++ is installed
1634 --with-boost[=DIR
] use Boost.Asio
for networking
1635 --with-language=<langs
> Specify a comma-separated list of languages you want
1636 to have installed. See po
/LINGUAS
for available
1638 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1639 --with-libiconv-prefix=DIR search
for libiconv
in DIR
/include and DIR
/lib
1640 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1641 --with-included-gettext use the GNU gettext library included here
1642 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
1643 --without-libintl-prefix don't search
for libintl
in includedir and libdir
1644 --with-denoise-level=<level
>
1645 Specifies denoising level
(0-4):
1647 4 - Suppress all normal output
1648 (for more information see
1649 src
/utils
/scripts
/denoiser.rules
)
1651 --with-ccache-prefix=PREFIX
1652 prefix where ccache is installed
1654 Some influential environment variables
:
1655 CXX C
++ compiler
command
1656 CXXFLAGS C
++ compiler flags
1657 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1658 nonstandard directory
<lib dir
>
1659 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1660 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1661 you have headers
in a nonstandard directory
<include dir
>
1662 CXXCPP C
++ preprocessor
1663 CC C compiler
command
1664 CFLAGS C compiler flags
1666 YACC The
`Yet Another C Compiler' implementation to use. Defaults to
1667 the first program found out of: `bison
-y', `byacc', `yacc'.
1668 YFLAGS The list of arguments that will be passed by default to $YACC.
1669 This script will default YFLAGS to the empty string to avoid a
1670 default value of `-d' given by some make applications.
1671 RC Resource Compiler
1672 RCFLAGS Resource Compiler Flags
1673 PKG_CONFIG path to pkg-config utility
1674 BOOST_ROOT Location of Boost installation
1676 Use these variables to override the choices made by `configure' or to
help
1677 it to
find libraries and programs with nonstandard names
/locations.
1679 Report bugs to
<admin@amule.org
>.
1684 if test "$ac_init_help" = "recursive"; then
1685 # If there are subdirs, report their specific --help.
1686 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1687 test -d "$ac_dir" ||
1688 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1693 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1695 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1696 # A ".." for each directory in $ac_dir_suffix.
1697 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1698 case $ac_top_builddir_sub in
1699 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1700 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1703 ac_abs_top_builddir
=$ac_pwd
1704 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1705 # for backward compatibility:
1706 ac_top_builddir
=$ac_top_build_prefix
1709 .
) # We are building in place.
1711 ac_top_srcdir
=$ac_top_builddir_sub
1712 ac_abs_top_srcdir
=$ac_pwd ;;
1713 [\\/]* | ?
:[\\/]* ) # Absolute name.
1714 ac_srcdir
=$srcdir$ac_dir_suffix;
1715 ac_top_srcdir
=$srcdir
1716 ac_abs_top_srcdir
=$srcdir ;;
1718 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1719 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1720 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1722 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1724 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1725 # Check for guested configure.
1726 if test -f "$ac_srcdir/configure.gnu"; then
1728 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1729 elif test -f "$ac_srcdir/configure"; then
1731 $SHELL "$ac_srcdir/configure" --help=recursive
1733 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1735 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1739 test -n "$ac_init_help" && exit $ac_status
1740 if $ac_init_version; then
1743 generated by GNU Autoconf
2.65
1745 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1746 This configure
script is free software
; the Free Software Foundation
1747 gives unlimited permission to copy
, distribute and modify it.
1752 ## ------------------------ ##
1753 ## Autoconf initialization. ##
1754 ## ------------------------ ##
1756 # ac_fn_cxx_try_compile LINENO
1757 # ----------------------------
1758 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1759 ac_fn_cxx_try_compile
()
1761 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1762 rm -f conftest.
$ac_objext
1763 if { { ac_try
="$ac_compile"
1765 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1766 *) ac_try_echo=$ac_try;;
1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 $as_echo "$ac_try_echo"; } >&5
1770 (eval "$ac_compile") 2>conftest.err
1772 if test -s conftest.err; then
1773 grep -v '^ *+' conftest.err >conftest.er1
1774 cat conftest.er1 >&5
1775 mv -f conftest.er1 conftest.err
1777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778 test $ac_status = 0; } && {
1779 test -z "$ac_cxx_werror_flag" ||
1780 test ! -s conftest.err
1781 } && test -s conftest.$ac_objext; then :
1784 $as_echo "$as_me: failed program was:" >&5
1785 sed 's/^/| /' conftest.$ac_ext >&5
1789 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1790 as_fn_set_status $ac_retval
1792 } # ac_fn_cxx_try_compile
1794 # ac_fn_cxx_try_cpp LINENO
1795 # ------------------------
1796 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1797 ac_fn_cxx_try_cpp ()
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 if { { ac_try="$ac_cpp conftest.$ac_ext"
1802 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1803 *) ac_try_echo
=$ac_try;;
1805 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806 $as_echo "$ac_try_echo"; } >&5
1807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1809 if test -s conftest.err
; then
1810 grep -v '^ *+' conftest.err
>conftest.er1
1811 cat conftest.er1
>&5
1812 mv -f conftest.er1 conftest.err
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } >/dev
/null
&& {
1816 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1817 test ! -s conftest.err
1821 $as_echo "$as_me: failed program was:" >&5
1822 sed 's/^/| /' conftest.
$ac_ext >&5
1826 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1827 as_fn_set_status
$ac_retval
1829 } # ac_fn_cxx_try_cpp
1831 # ac_fn_c_try_compile LINENO
1832 # --------------------------
1833 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1834 ac_fn_c_try_compile
()
1836 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1837 rm -f conftest.
$ac_objext
1838 if { { ac_try
="$ac_compile"
1840 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1841 *) ac_try_echo=$ac_try;;
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 $as_echo "$ac_try_echo"; } >&5
1845 (eval "$ac_compile") 2>conftest.err
1847 if test -s conftest.err; then
1848 grep -v '^ *+' conftest.err >conftest.er1
1849 cat conftest.er1 >&5
1850 mv -f conftest.er1 conftest.err
1852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853 test $ac_status = 0; } && {
1854 test -z "$ac_c_werror_flag" ||
1855 test ! -s conftest.err
1856 } && test -s conftest.$ac_objext; then :
1859 $as_echo "$as_me: failed program was:" >&5
1860 sed 's/^/| /' conftest.$ac_ext >&5
1864 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1865 as_fn_set_status $ac_retval
1867 } # ac_fn_c_try_compile
1869 # ac_fn_c_try_cpp LINENO
1870 # ----------------------
1871 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875 if { { ac_try="$ac_cpp conftest.$ac_ext"
1877 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1878 *) ac_try_echo
=$ac_try;;
1880 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881 $as_echo "$ac_try_echo"; } >&5
1882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1884 if test -s conftest.err
; then
1885 grep -v '^ *+' conftest.err
>conftest.er1
1886 cat conftest.er1
>&5
1887 mv -f conftest.er1 conftest.err
1889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1890 test $ac_status = 0; } >/dev
/null
&& {
1891 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1892 test ! -s conftest.err
1896 $as_echo "$as_me: failed program was:" >&5
1897 sed 's/^/| /' conftest.
$ac_ext >&5
1901 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1902 as_fn_set_status
$ac_retval
1906 # ac_fn_c_try_link LINENO
1907 # -----------------------
1908 # Try to link conftest.$ac_ext, and return whether this succeeded.
1911 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1912 rm -f conftest.
$ac_objext conftest
$ac_exeext
1913 if { { ac_try
="$ac_link"
1915 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1916 *) ac_try_echo=$ac_try;;
1918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1919 $as_echo "$ac_try_echo"; } >&5
1920 (eval "$ac_link") 2>conftest.err
1922 if test -s conftest.err; then
1923 grep -v '^ *+' conftest.err >conftest.er1
1924 cat conftest.er1 >&5
1925 mv -f conftest.er1 conftest.err
1927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1928 test $ac_status = 0; } && {
1929 test -z "$ac_c_werror_flag" ||
1930 test ! -s conftest.err
1931 } && test -s conftest$ac_exeext && {
1932 test "$cross_compiling" = yes ||
1933 $as_test_x conftest$ac_exeext
1937 $as_echo "$as_me: failed program was:" >&5
1938 sed 's/^/| /' conftest.$ac_ext >&5
1942 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1943 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1944 # interfere with the next link command; also delete a directory that is
1945 # left behind by Apple's compiler. We do this before executing the actions.
1946 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1947 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1948 as_fn_set_status $ac_retval
1950 } # ac_fn_c_try_link
1952 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1953 # -------------------------------------------------------
1954 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1955 # the include files in INCLUDES and setting the cache variable VAR
1957 ac_fn_c_check_header_mongrel ()
1959 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1962 $as_echo_n "checking for $2... " >&6; }
1963 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1964 $as_echo_n "(cached) " >&6
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 $as_echo "$ac_res" >&6; }
1970 # Is the header compilable?
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1972 $as_echo_n "checking $2 usability... " >&6; }
1973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h. */
1978 if ac_fn_c_try_compile "$LINENO"; then :
1979 ac_header_compiler=yes
1981 ac_header_compiler=no
1983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1985 $as_echo "$ac_header_compiler" >&6; }
1987 # Is the header present?
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1989 $as_echo_n "checking $2 presence... " >&6; }
1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991 /* end confdefs.h. */
1994 if ac_fn_c_try_cpp "$LINENO"; then :
1995 ac_header_preproc=yes
1997 ac_header_preproc=no
1999 rm -f conftest.err conftest.$ac_ext
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2001 $as_echo "$ac_header_preproc" >&6; }
2003 # So? What about this header?
2004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2007 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2009 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2013 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2015 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2017 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2019 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2021 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2023 ## ------------------------------ ##
2024 ## Report this to admin@amule.org ##
2025 ## ------------------------------ ##
2027 ) | sed "s/^/$as_me: WARNING: /" >&2
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2031 $as_echo_n "checking for $2... " >&6; }
2032 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2033 $as_echo_n "(cached) " >&6
2035 eval "$3=\$ac_header_compiler"
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2039 $as_echo "$ac_res" >&6; }
2041 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2043 } # ac_fn_c_check_header_mongrel
2045 # ac_fn_c_try_run LINENO
2046 # ----------------------
2047 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2048 # that executables *can* be run.
2051 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2052 if { { ac_try="$ac_link"
2054 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2055 *) ac_try_echo
=$ac_try;;
2057 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2058 $as_echo "$ac_try_echo"; } >&5
2059 (eval "$ac_link") 2>&5
2061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2062 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2063 { { case "(($ac_try" in
2064 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2065 *) ac_try_echo=$ac_try;;
2067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2068 $as_echo "$ac_try_echo"; } >&5
2069 (eval "$ac_try") 2>&5
2071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2072 test $ac_status = 0; }; }; then :
2075 $as_echo "$as_me: program exited with status $ac_status" >&5
2076 $as_echo "$as_me: failed program was:" >&5
2077 sed 's/^/| /' conftest.$ac_ext >&5
2079 ac_retval=$ac_status
2081 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2082 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2083 as_fn_set_status $ac_retval
2087 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2088 # -------------------------------------------------------
2089 # Tests whether HEADER exists and can be compiled using the include files in
2090 # INCLUDES, setting the cache variable VAR accordingly.
2091 ac_fn_c_check_header_compile ()
2093 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2095 $as_echo_n "checking for $2... " >&6; }
2096 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2097 $as_echo_n "(cached) " >&6
2099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h. */
2104 if ac_fn_c_try_compile "$LINENO"; then :
2109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2113 $as_echo "$ac_res" >&6; }
2114 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2116 } # ac_fn_c_check_header_compile
2118 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2119 # -------------------------------------------
2120 # Tests whether TYPE exists after having included INCLUDES, setting cache
2121 # variable VAR accordingly.
2122 ac_fn_c_check_type ()
2124 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2126 $as_echo_n "checking for $2... " >&6; }
2127 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2128 $as_echo_n "(cached) " >&6
2131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132 /* end confdefs.h. */
2143 if ac_fn_c_try_compile "$LINENO"; then :
2144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h. */
2156 if ac_fn_c_try_compile "$LINENO"; then :
2161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2167 $as_echo "$ac_res" >&6; }
2168 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2170 } # ac_fn_c_check_type
2172 # ac_fn_cxx_try_link LINENO
2173 # -------------------------
2174 # Try to link conftest.$ac_ext, and return whether this succeeded.
2175 ac_fn_cxx_try_link ()
2177 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2178 rm -f conftest.$ac_objext conftest$ac_exeext
2179 if { { ac_try="$ac_link"
2181 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2182 *) ac_try_echo
=$ac_try;;
2184 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2185 $as_echo "$ac_try_echo"; } >&5
2186 (eval "$ac_link") 2>conftest.err
2188 if test -s conftest.err
; then
2189 grep -v '^ *+' conftest.err
>conftest.er1
2190 cat conftest.er1
>&5
2191 mv -f conftest.er1 conftest.err
2193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2194 test $ac_status = 0; } && {
2195 test -z "$ac_cxx_werror_flag" ||
2196 test ! -s conftest.err
2197 } && test -s conftest
$ac_exeext && {
2198 test "$cross_compiling" = yes ||
2199 $as_test_x conftest
$ac_exeext
2203 $as_echo "$as_me: failed program was:" >&5
2204 sed 's/^/| /' conftest.
$ac_ext >&5
2208 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2209 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2210 # interfere with the next link command; also delete a directory that is
2211 # left behind by Apple's compiler. We do this before executing the actions.
2212 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2213 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2214 as_fn_set_status
$ac_retval
2216 } # ac_fn_cxx_try_link
2218 # ac_fn_cxx_try_run LINENO
2219 # ------------------------
2220 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2221 # that executables *can* be run.
2222 ac_fn_cxx_try_run
()
2224 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2225 if { { ac_try
="$ac_link"
2227 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2228 *) ac_try_echo=$ac_try;;
2230 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2231 $as_echo "$ac_try_echo"; } >&5
2232 (eval "$ac_link") 2>&5
2234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2235 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2236 { { case "(($ac_try" in
2237 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2238 *) ac_try_echo
=$ac_try;;
2240 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2241 $as_echo "$ac_try_echo"; } >&5
2242 (eval "$ac_try") 2>&5
2244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2245 test $ac_status = 0; }; }; then :
2248 $as_echo "$as_me: program exited with status $ac_status" >&5
2249 $as_echo "$as_me: failed program was:" >&5
2250 sed 's/^/| /' conftest.
$ac_ext >&5
2252 ac_retval
=$ac_status
2254 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2255 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2256 as_fn_set_status
$ac_retval
2258 } # ac_fn_cxx_try_run
2260 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2261 # ---------------------------------------------------------
2262 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2263 # the include files in INCLUDES and setting the cache variable VAR
2265 ac_fn_cxx_check_header_mongrel
()
2267 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2268 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2270 $as_echo_n "checking for $2... " >&6; }
2271 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2272 $as_echo_n "(cached) " >&6
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2276 $as_echo "$ac_res" >&6; }
2278 # Is the header compilable?
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2280 $as_echo_n "checking $2 usability... " >&6; }
2281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2282 /* end confdefs.h. */
2286 if ac_fn_cxx_try_compile
"$LINENO"; then :
2287 ac_header_compiler
=yes
2289 ac_header_compiler
=no
2291 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2293 $as_echo "$ac_header_compiler" >&6; }
2295 # Is the header present?
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2297 $as_echo_n "checking $2 presence... " >&6; }
2298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2299 /* end confdefs.h. */
2302 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2303 ac_header_preproc
=yes
2305 ac_header_preproc
=no
2307 rm -f conftest.err conftest.
$ac_ext
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2309 $as_echo "$ac_header_preproc" >&6; }
2311 # So? What about this header?
2312 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2315 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2317 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2321 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2323 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2325 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2327 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2329 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2331 ## ------------------------------ ##
2332 ## Report this to admin@amule.org ##
2333 ## ------------------------------ ##
2335 ) |
sed "s/^/$as_me: WARNING: /" >&2
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2339 $as_echo_n "checking for $2... " >&6; }
2340 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2341 $as_echo_n "(cached) " >&6
2343 eval "$3=\$ac_header_compiler"
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2347 $as_echo "$ac_res" >&6; }
2349 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2351 } # ac_fn_cxx_check_header_mongrel
2353 # ac_fn_cxx_check_func LINENO FUNC VAR
2354 # ------------------------------------
2355 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2356 ac_fn_cxx_check_func
()
2358 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2360 $as_echo_n "checking for $2... " >&6; }
2361 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2362 $as_echo_n "(cached) " >&6
2364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2365 /* end confdefs.h. */
2366 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2367 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2368 #define $2 innocuous_$2
2370 /* System header to define __stub macros and hopefully few prototypes,
2371 which can conflict with char $2 (); below.
2372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2373 <limits.h> exists even on freestanding compilers. */
2376 # include <limits.h>
2378 # include <assert.h>
2383 /* Override any GCC internal prototype to avoid an error.
2384 Use char because int might match the return type of a GCC
2385 builtin and then its argument prototype would still apply. */
2390 /* The GNU C library defines this for functions which it implements
2391 to always fail with ENOSYS. Some functions are actually named
2392 something starting with __ and the normal name is an alias. */
2393 #if defined __stub_$2 || defined __stub___$2
2405 if ac_fn_cxx_try_link
"$LINENO"; then :
2410 rm -f core conftest.err conftest.
$ac_objext \
2411 conftest
$ac_exeext conftest.
$ac_ext
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2415 $as_echo "$ac_res" >&6; }
2416 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2418 } # ac_fn_cxx_check_func
2420 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2421 # ---------------------------------------------
2422 # Tests whether TYPE exists after having included INCLUDES, setting cache
2423 # variable VAR accordingly.
2424 ac_fn_cxx_check_type
()
2426 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2428 $as_echo_n "checking for $2... " >&6; }
2429 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2430 $as_echo_n "(cached) " >&6
2433 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2434 /* end confdefs.h. */
2445 if ac_fn_cxx_try_compile
"$LINENO"; then :
2446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2447 /* end confdefs.h. */
2458 if ac_fn_cxx_try_compile
"$LINENO"; then :
2463 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2465 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2469 $as_echo "$ac_res" >&6; }
2470 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2472 } # ac_fn_cxx_check_type
2474 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2475 # ---------------------------------------------------------
2476 # Tests whether HEADER exists and can be compiled using the include files in
2477 # INCLUDES, setting the cache variable VAR accordingly.
2478 ac_fn_cxx_check_header_compile
()
2480 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2482 $as_echo_n "checking for $2... " >&6; }
2483 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2484 $as_echo_n "(cached) " >&6
2486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2487 /* end confdefs.h. */
2491 if ac_fn_cxx_try_compile
"$LINENO"; then :
2496 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2500 $as_echo "$ac_res" >&6; }
2501 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2503 } # ac_fn_cxx_check_header_compile
2505 # ac_fn_c_check_func LINENO FUNC VAR
2506 # ----------------------------------
2507 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2508 ac_fn_c_check_func
()
2510 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2512 $as_echo_n "checking for $2... " >&6; }
2513 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2514 $as_echo_n "(cached) " >&6
2516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2517 /* end confdefs.h. */
2518 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2519 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2520 #define $2 innocuous_$2
2522 /* System header to define __stub macros and hopefully few prototypes,
2523 which can conflict with char $2 (); below.
2524 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2525 <limits.h> exists even on freestanding compilers. */
2528 # include <limits.h>
2530 # include <assert.h>
2535 /* Override any GCC internal prototype to avoid an error.
2536 Use char because int might match the return type of a GCC
2537 builtin and then its argument prototype would still apply. */
2542 /* The GNU C library defines this for functions which it implements
2543 to always fail with ENOSYS. Some functions are actually named
2544 something starting with __ and the normal name is an alias. */
2545 #if defined __stub_$2 || defined __stub___$2
2557 if ac_fn_c_try_link
"$LINENO"; then :
2562 rm -f core conftest.err conftest.
$ac_objext \
2563 conftest
$ac_exeext conftest.
$ac_ext
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2567 $as_echo "$ac_res" >&6; }
2568 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2570 } # ac_fn_c_check_func
2572 # ac_fn_c_check_decl LINENO SYMBOL VAR
2573 # ------------------------------------
2574 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2575 ac_fn_c_check_decl
()
2577 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2579 $as_echo_n "checking whether $2 is declared... " >&6; }
2580 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2581 $as_echo_n "(cached) " >&6
2583 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2584 /* end confdefs.h. */
2597 if ac_fn_c_try_compile
"$LINENO"; then :
2602 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2606 $as_echo "$ac_res" >&6; }
2607 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2609 } # ac_fn_c_check_decl
2610 cat >config.log
<<_ACEOF
2611 This file contains any messages produced by compilers while
2612 running configure, to aid debugging if configure makes a mistake.
2614 It was created by aMule $as_me SVN, which was
2615 generated by GNU Autoconf 2.65. Invocation command line was
2627 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2628 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2629 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2630 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2631 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2633 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2634 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2636 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2637 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2638 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2639 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2640 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2641 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2642 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2646 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2650 test -z "$as_dir" && as_dir
=.
2651 $as_echo "PATH: $as_dir"
2667 # Keep a trace of the command line.
2668 # Strip out --no-create and --no-recursion so they do not pile up.
2669 # Strip out --silent because we don't want to record it for future runs.
2670 # Also quote any args containing shell meta-characters.
2671 # Make two passes to allow for proper duplicate-argument suppression.
2675 ac_must_keep_next
=false
2681 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2682 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2683 |
-silent |
--silent |
--silen |
--sile |
--sil)
2686 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2689 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2691 as_fn_append ac_configure_args1
" '$ac_arg'"
2692 if test $ac_must_keep_next = true
; then
2693 ac_must_keep_next
=false
# Got value, back to normal.
2696 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2697 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2698 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2699 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2700 case "$ac_configure_args0 " in
2701 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2704 -* ) ac_must_keep_next
=true
;;
2707 as_fn_append ac_configure_args
" '$ac_arg'"
2712 { ac_configure_args0
=; unset ac_configure_args0
;}
2713 { ac_configure_args1
=; unset ac_configure_args1
;}
2715 # When interrupted or exit'd, cleanup temporary files, and complete
2716 # config.log. We remove comments because anyway the quotes in there
2717 # would cause problems or look ugly.
2718 # WARNING: Use '\'' to represent an apostrophe within the trap.
2719 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2720 trap 'exit_status=$?
2721 # Save into config.log some information that might help in debugging.
2726 ## ---------------- ##
2727 ## Cache variables. ##
2728 ## ---------------- ##
2731 # The following way of writing the cache mishandles newlines in values,
2733 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2734 eval ac_val=\$$ac_var
2738 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2739 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2742 _ | IFS | as_nl) ;; #(
2743 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2744 *) { eval $ac_var=; unset $ac_var;} ;;
2749 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2750 *${as_nl}ac_space=\ *)
2752 "s/'\''/'\''\\\\'\'''\''/g;
2753 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2756 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2764 ## ----------------- ##
2765 ## Output variables. ##
2766 ## ----------------- ##
2769 for ac_var in $ac_subst_vars
2771 eval ac_val=\$$ac_var
2773 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2775 $as_echo "$ac_var='\''$ac_val'\''"
2779 if test -n "$ac_subst_files"; then
2781 ## ------------------- ##
2782 ## File substitutions. ##
2783 ## ------------------- ##
2786 for ac_var
in $ac_subst_files
2788 eval ac_val
=\$
$ac_var
2790 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2792 $as_echo "$ac_var='\''$ac_val'\''"
2797 if test -s confdefs.h; then
2807 test "$ac_signal" != 0 &&
2808 $as_echo "$as_me: caught signal $ac_signal"
2809 $as_echo "$as_me: exit $exit_status"
2811 rm -f core *.core core.conftest.* &&
2812 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2815 for ac_signal
in 1 2 13 15; do
2816 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2820 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2821 rm -f -r conftest
* confdefs.h
2823 $as_echo "/* confdefs.h */" > confdefs.h
2825 # Predefined preprocessor variables.
2827 cat >>confdefs.h
<<_ACEOF
2828 #define PACKAGE_NAME "$PACKAGE_NAME"
2831 cat >>confdefs.h
<<_ACEOF
2832 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2835 cat >>confdefs.h
<<_ACEOF
2836 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2839 cat >>confdefs.h
<<_ACEOF
2840 #define PACKAGE_STRING "$PACKAGE_STRING"
2843 cat >>confdefs.h
<<_ACEOF
2844 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2847 cat >>confdefs.h
<<_ACEOF
2848 #define PACKAGE_URL "$PACKAGE_URL"
2852 # Let the site file select an alternate cache file if it wants to.
2853 # Prefer an explicitly selected file to automatically selected ones.
2856 if test -n "$CONFIG_SITE"; then
2857 ac_site_file1
=$CONFIG_SITE
2858 elif test "x$prefix" != xNONE
; then
2859 ac_site_file1
=$prefix/share
/config.site
2860 ac_site_file2
=$prefix/etc
/config.site
2862 ac_site_file1
=$ac_default_prefix/share
/config.site
2863 ac_site_file2
=$ac_default_prefix/etc
/config.site
2865 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2867 test "x$ac_site_file" = xNONE
&& continue
2868 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2870 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2871 sed 's/^/| /' "$ac_site_file" >&5
2876 if test -r "$cache_file"; then
2877 # Some versions of bash will fail to source /dev/null (special files
2878 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2879 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2881 $as_echo "$as_me: loading cache $cache_file" >&6;}
2883 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2884 *) .
"./$cache_file";;
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2889 $as_echo "$as_me: creating cache $cache_file" >&6;}
2893 as_fn_append ac_header_list
" stdlib.h"
2894 as_fn_append ac_header_list
" unistd.h"
2895 as_fn_append ac_header_list
" sys/param.h"
2896 # Check that the precious variables saved in the cache have kept the same
2898 ac_cache_corrupted
=false
2899 for ac_var
in $ac_precious_vars; do
2900 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2901 eval ac_new_set
=\
$ac_env_${ac_var}_set
2902 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2903 eval ac_new_val
=\
$ac_env_${ac_var}_value
2904 case $ac_old_set,$ac_new_set in
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2907 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2908 ac_cache_corrupted
=: ;;
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2911 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2912 ac_cache_corrupted
=: ;;
2915 if test "x$ac_old_val" != "x$ac_new_val"; then
2916 # differences in whitespace do not lead to failure.
2917 ac_old_val_w
=`echo x $ac_old_val`
2918 ac_new_val_w
=`echo x $ac_new_val`
2919 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2921 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2922 ac_cache_corrupted
=:
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2925 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2926 eval $ac_var=\
$ac_old_val
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2929 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2931 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2934 # Pass precious variables to config.status.
2935 if test "$ac_new_set" = set; then
2937 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2938 *) ac_arg
=$ac_var=$ac_new_val ;;
2940 case " $ac_configure_args " in
2941 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2942 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2946 if $ac_cache_corrupted; then
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2950 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2951 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2953 ## -------------------- ##
2954 ## Main body of script. ##
2955 ## -------------------- ##
2958 ac_cpp
='$CPP $CPPFLAGS'
2959 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2960 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2961 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2964 am__api_version
='1.11'
2967 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2968 for ac_t
in install-sh
install.sh shtool
; do
2969 if test -f "$ac_dir/$ac_t"; then
2971 ac_install_sh
="$ac_aux_dir/$ac_t -c"
2976 if test -z "$ac_aux_dir"; then
2977 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2980 # These three variables are undocumented and unsupported,
2981 # and are intended to be withdrawn in a future Autoconf release.
2982 # They can cause serious problems if a builder's source tree is in a directory
2983 # whose full name contains unusual characters.
2984 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2985 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2986 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2989 # Find a good install program. We prefer a C program (faster),
2990 # so one script is as good as another. But avoid the broken or
2991 # incompatible versions:
2992 # SysV /etc/install, /usr/sbin/install
2993 # SunOS /usr/etc/install
2994 # IRIX /sbin/install
2996 # AmigaOS /C/install, which installs bootblocks on floppy discs
2997 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2998 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2999 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3000 # OS/2's system install, which has a completely different semantic
3001 # ./install, which can be erroneously created by make from ./install.sh.
3002 # Reject install programs that cannot install multiple files.
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3004 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3005 if test -z "$INSTALL"; then
3006 if test "${ac_cv_path_install+set}" = set; then :
3007 $as_echo_n "(cached) " >&6
3009 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3013 test -z "$as_dir" && as_dir
=.
3014 # Account for people who put trailing slashes in PATH elements.
3015 case $as_dir/ in #((
3016 .
/ | .
// |
/[cC
]/* | \
3017 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3018 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3021 # OSF1 and SCO ODT 3.0 have their own names for install.
3022 # Don't use installbsd from OSF since it installs stuff as root
3024 for ac_prog
in ginstall scoinst
install; do
3025 for ac_exec_ext
in '' $ac_executable_extensions; do
3026 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3027 if test $ac_prog = install &&
3028 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3029 # AIX install. It has an incompatible calling convention.
3031 elif test $ac_prog = install &&
3032 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3033 # program-specific install script used by HP pwplus--don't use.
3036 rm -rf conftest.one conftest.two conftest.dir
3037 echo one
> conftest.one
3038 echo two
> conftest.two
3040 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3041 test -s conftest.one
&& test -s conftest.two
&&
3042 test -s conftest.dir
/conftest.one
&&
3043 test -s conftest.dir
/conftest.two
3045 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3058 rm -rf conftest.one conftest.two conftest.dir
3061 if test "${ac_cv_path_install+set}" = set; then
3062 INSTALL
=$ac_cv_path_install
3064 # As a last resort, use the slow shell script. Don't cache a
3065 # value for INSTALL within a source directory, because that will
3066 # break other packages using the cache if that directory is
3067 # removed, or if the value is a relative name.
3068 INSTALL
=$ac_install_sh
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3072 $as_echo "$INSTALL" >&6; }
3074 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3075 # It thinks the first close brace ends the variable substitution.
3076 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3078 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3080 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3083 $as_echo_n "checking whether build environment is sane... " >&6; }
3086 echo timestamp
> conftest.
file
3087 # Reject unsafe characters in $srcdir or the absolute working directory
3088 # name. Accept space and tab only in the latter.
3092 *[\\\"\
#\$\&\'\`$am_lf]*)
3093 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
3096 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3097 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3100 # Do `set' in a subshell so we don't clobber the current shell's
3101 # arguments. Must try -L first in case configure is actually a
3102 # symlink; some systems play weird games with the mod time of symlinks
3103 # (eg FreeBSD returns the mod time of the symlink's containing
3106 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3107 if test "$*" = "X"; then
3109 set X
`ls -t "$srcdir/configure" conftest.file`
3112 if test "$*" != "X $srcdir/configure conftest.file" \
3113 && test "$*" != "X conftest.file $srcdir/configure"; then
3115 # If neither matched, then we have a broken ls. This can happen
3116 # if, for instance, CONFIG_SHELL is bash and it inherits a
3117 # broken ls alias from the environment. This has actually
3118 # happened. Such a system could not be considered "sane".
3119 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
3120 alias in your environment" "$LINENO" 5
3123 test "$2" = conftest.
file
3129 as_fn_error
"newly created file is older than distributed files!
3130 Check your system clock" "$LINENO" 5
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3133 $as_echo "yes" >&6; }
3134 test "$program_prefix" != NONE
&&
3135 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3136 # Use a double $ so make ignores it.
3137 test "$program_suffix" != NONE
&&
3138 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3139 # Double any \ or $.
3140 # By default was `s,x,x', remove it if useless.
3141 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3142 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3144 # expand $ac_aux_dir to an absolute path
3145 am_aux_dir
=`cd $ac_aux_dir && pwd`
3147 if test x
"${MISSING+set}" != xset
; then
3150 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3152 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3155 # Use eval to expand $SHELL
3156 if eval "$MISSING --run true"; then
3157 am_missing_run
="$MISSING --run "
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3161 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3164 if test x
"${install_sh}" != xset
; then
3167 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3169 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3173 # Installed binaries are usually stripped using `strip' when the user
3174 # run `make install-strip'. However `strip' might not be the right
3175 # tool to use in cross-compilation environments, therefore Automake
3176 # will honor the `STRIP' environment variable to overrule this program.
3177 if test "$cross_compiling" != no
; then
3178 if test -n "$ac_tool_prefix"; then
3179 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3180 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3182 $as_echo_n "checking for $ac_word... " >&6; }
3183 if test "${ac_cv_prog_STRIP+set}" = set; then :
3184 $as_echo_n "(cached) " >&6
3186 if test -n "$STRIP"; then
3187 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3193 test -z "$as_dir" && as_dir
=.
3194 for ac_exec_ext
in '' $ac_executable_extensions; do
3195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3196 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3206 STRIP
=$ac_cv_prog_STRIP
3207 if test -n "$STRIP"; then
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3209 $as_echo "$STRIP" >&6; }
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3212 $as_echo "no" >&6; }
3217 if test -z "$ac_cv_prog_STRIP"; then
3219 # Extract the first word of "strip", so it can be a program name with args.
3220 set dummy strip
; ac_word
=$2
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3222 $as_echo_n "checking for $ac_word... " >&6; }
3223 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3224 $as_echo_n "(cached) " >&6
3226 if test -n "$ac_ct_STRIP"; then
3227 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3229 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3233 test -z "$as_dir" && as_dir
=.
3234 for ac_exec_ext
in '' $ac_executable_extensions; do
3235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3236 ac_cv_prog_ac_ct_STRIP
="strip"
3237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3246 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3247 if test -n "$ac_ct_STRIP"; then
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3249 $as_echo "$ac_ct_STRIP" >&6; }
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252 $as_echo "no" >&6; }
3255 if test "x$ac_ct_STRIP" = x
; then
3258 case $cross_compiling:$ac_tool_warned in
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3262 ac_tool_warned
=yes ;;
3267 STRIP
="$ac_cv_prog_STRIP"
3271 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3274 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3275 if test -z "$MKDIR_P"; then
3276 if test "${ac_cv_path_mkdir+set}" = set; then :
3277 $as_echo_n "(cached) " >&6
3279 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3280 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3283 test -z "$as_dir" && as_dir
=.
3284 for ac_prog
in mkdir gmkdir
; do
3285 for ac_exec_ext
in '' $ac_executable_extensions; do
3286 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3287 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3288 'mkdir (GNU coreutils) '* | \
3289 'mkdir (coreutils) '* | \
3290 'mkdir (fileutils) '4.1*)
3291 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3301 test -d .
/--version && rmdir .
/--version
3302 if test "${ac_cv_path_mkdir+set}" = set; then
3303 MKDIR_P
="$ac_cv_path_mkdir -p"
3305 # As a last resort, use the slow shell script. Don't cache a
3306 # value for MKDIR_P within a source directory, because that will
3307 # break other packages using the cache if that directory is
3308 # removed, or if the value is a relative name.
3309 MKDIR_P
="$ac_install_sh -d"
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3313 $as_echo "$MKDIR_P" >&6; }
3317 [\\/$
]* | ?
:[\\/]*) ;;
3318 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3321 for ac_prog
in gawk mawk nawk
awk
3323 # Extract the first word of "$ac_prog", so it can be a program name with args.
3324 set dummy
$ac_prog; ac_word
=$2
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3326 $as_echo_n "checking for $ac_word... " >&6; }
3327 if test "${ac_cv_prog_AWK+set}" = set; then :
3328 $as_echo_n "(cached) " >&6
3330 if test -n "$AWK"; then
3331 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3333 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3337 test -z "$as_dir" && as_dir
=.
3338 for ac_exec_ext
in '' $ac_executable_extensions; do
3339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3340 ac_cv_prog_AWK
="$ac_prog"
3341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3351 if test -n "$AWK"; then
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3353 $as_echo "$AWK" >&6; }
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3356 $as_echo "no" >&6; }
3360 test -n "$AWK" && break
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3364 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3366 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3367 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3368 $as_echo_n "(cached) " >&6
3370 cat >conftest.
make <<\_ACEOF
3373 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3375 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3376 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3378 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3380 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3384 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3386 $as_echo "yes" >&6; }
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3390 $as_echo "no" >&6; }
3391 SET_MAKE
="MAKE=${MAKE-make}"
3394 rm -rf .tst
2>/dev
/null
3395 mkdir .tst
2>/dev
/null
3396 if test -d .tst
; then
3401 rmdir .tst
2>/dev
/null
3403 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3404 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3405 # is not polluted with repeated "-I."
3406 am__isrc
=' -I$(srcdir)'
3407 # test to see if srcdir already configured
3408 if test -f $srcdir/config.status
; then
3409 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3413 # test whether we have cygpath
3414 if test -z "$CYGPATH_W"; then
3415 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3416 CYGPATH_W
='cygpath -w'
3423 # Define the identity of the package.
3428 cat >>confdefs.h
<<_ACEOF
3429 #define PACKAGE "$PACKAGE"
3433 cat >>confdefs.h
<<_ACEOF
3434 #define VERSION "$VERSION"
3437 # Some tools Automake needs.
3439 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3442 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3445 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3448 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3451 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3453 # We need awk for the "check" target. The system "awk" is bad on
3455 # Always define AMTAR for backward compatibility.
3457 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3459 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3465 # Check whether --enable-silent-rules was given.
3466 if test "${enable_silent_rules+set}" = set; then :
3467 enableval
=$enable_silent_rules;
3470 case $enable_silent_rules in
3471 yes) AM_DEFAULT_VERBOSITY
=0;;
3472 no
) AM_DEFAULT_VERBOSITY
=1;;
3473 *) AM_DEFAULT_VERBOSITY
=1;;
3481 ac_config_headers="$ac_config_headers config.h"
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3486 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3487 # Check whether --enable-maintainer-mode was given.
3488 if test "${enable_maintainer_mode+set}" = set; then :
3489 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3491 USE_MAINTAINER_MODE=no
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3495 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3496 if test $USE_MAINTAINER_MODE = yes; then
3497 MAINTAINER_MODE_TRUE=
3498 MAINTAINER_MODE_FALSE='#'
3500 MAINTAINER_MODE_TRUE
='#'
3501 MAINTAINER_MODE_FALSE
=
3504 MAINT
=$MAINTAINER_MODE_TRUE
3508 # Make sure we can run config.sub.
3509 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3510 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3513 $as_echo_n "checking build system type... " >&6; }
3514 if test "${ac_cv_build+set}" = set; then :
3515 $as_echo_n "(cached) " >&6
3517 ac_build_alias
=$build_alias
3518 test "x$ac_build_alias" = x
&&
3519 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3520 test "x$ac_build_alias" = x
&&
3521 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3522 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3523 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3527 $as_echo "$ac_cv_build" >&6; }
3528 case $ac_cv_build in
3530 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3533 ac_save_IFS
=$IFS; IFS
='-'
3539 # Remember, the first character of IFS is used to create $*,
3540 # except with old shells:
3543 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3547 $as_echo_n "checking host system type... " >&6; }
3548 if test "${ac_cv_host+set}" = set; then :
3549 $as_echo_n "(cached) " >&6
3551 if test "x$host_alias" = x
; then
3552 ac_cv_host
=$ac_cv_build
3554 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3555 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3560 $as_echo "$ac_cv_host" >&6; }
3563 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3566 ac_save_IFS
=$IFS; IFS
='-'
3572 # Remember, the first character of IFS is used to create $*,
3573 # except with old shells:
3576 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3580 case "${host_os}" in
3583 MULECPPFLAGS
="-no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH";
3584 MULELDFLAGS
="-bind_at_load"
3585 touch src
/Scanner.cpp
3589 LIBS
="$LIBS -L/usr/local/lib"
3590 MULECPPFLAGS
="-D__OPENBSD__"
3592 *cygwin
* |
*mingw32
*)
3594 MULECPPFLAGS
="-DNOMINMAX"
3598 RESOLV_LIB
="-lresolv -lnsl"
3603 # Now this is against autoconf recommendation that configure should not modify CPPFLAGS and LDFLAGS
3604 # However, these values in NetBSD are required even to run the tests, and this is the easiest way to do it.
3605 # Still, we prepend them, instead of adding, so the user may override them.
3606 CPPFLAGS
="-I/usr/pkg/include $CPPFLAGS"
3607 LDFLAGS
="-R/usr/pkg/lib -L/usr/pkg/lib $LDFLAGS"
3611 MULECPPFLAGS
="-D__IRIX__"
3618 # -lpthread is needed by Debian but FreeBSD < 5 doesn't support it
3619 if test ${SYS:-unknown} != win32
; then :
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if this is a FreeBSD 4 or earlier system" >&5
3622 $as_echo_n "checking if this is a FreeBSD 4 or earlier system... " >&6; }
3623 if test x
"`uname -s`" = xFreeBSD
&& test 0`uname -r | cut -c 1` -lt 5; then :
3625 MULELDFLAGS
="$MULELDFLAGS -pthread"
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3627 $as_echo "yes" >&6; }
3631 MULELDFLAGS
="$MULELDFLAGS -lpthread"
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633 $as_echo "no" >&6; }
3641 mule_backup_CFLAGS
="$CFLAGS"
3642 mule_backup_CXXFLAGS
="$CXXFLAGS"
3643 mule_backup_BUILD_CFLAGS
="$BUILD_CFLAGS"
3645 ac_cpp
='$CXXCPP $CPPFLAGS'
3646 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3647 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3648 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3649 if test -z "$CXX"; then
3650 if test -n "$CCC"; then
3653 if test -n "$ac_tool_prefix"; then
3654 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
3656 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3657 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3659 $as_echo_n "checking for $ac_word... " >&6; }
3660 if test "${ac_cv_prog_CXX+set}" = set; then :
3661 $as_echo_n "(cached) " >&6
3663 if test -n "$CXX"; then
3664 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3666 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3670 test -z "$as_dir" && as_dir
=.
3671 for ac_exec_ext
in '' $ac_executable_extensions; do
3672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3673 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
3674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3684 if test -n "$CXX"; then
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3686 $as_echo "$CXX" >&6; }
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3689 $as_echo "no" >&6; }
3693 test -n "$CXX" && break
3696 if test -z "$CXX"; then
3698 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
3700 # Extract the first word of "$ac_prog", so it can be a program name with args.
3701 set dummy
$ac_prog; ac_word
=$2
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3703 $as_echo_n "checking for $ac_word... " >&6; }
3704 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3705 $as_echo_n "(cached) " >&6
3707 if test -n "$ac_ct_CXX"; then
3708 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
3710 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3714 test -z "$as_dir" && as_dir
=.
3715 for ac_exec_ext
in '' $ac_executable_extensions; do
3716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3717 ac_cv_prog_ac_ct_CXX
="$ac_prog"
3718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3727 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
3728 if test -n "$ac_ct_CXX"; then
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3730 $as_echo "$ac_ct_CXX" >&6; }
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3733 $as_echo "no" >&6; }
3737 test -n "$ac_ct_CXX" && break
3740 if test "x$ac_ct_CXX" = x
; then
3743 case $cross_compiling:$ac_tool_warned in
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3746 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3747 ac_tool_warned
=yes ;;
3755 # Provide some information about the compiler.
3756 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3759 for ac_option
in --version -v -V -qversion; do
3760 { { ac_try
="$ac_compiler $ac_option >&5"
3762 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3763 *) ac_try_echo=$ac_try;;
3765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3766 $as_echo "$ac_try_echo"; } >&5
3767 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3769 if test -s conftest.err; then
3771 ... rest of stderr output deleted ...
3772 10q' conftest.err >conftest.er1
3773 cat conftest.er1 >&5
3775 rm -f conftest.er1 conftest.err
3776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3777 test $ac_status = 0; }
3780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781 /* end confdefs.h. */
3791 ac_clean_files_save=$ac_clean_files
3792 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3793 # Try to create an executable without -o first, disregard a.out.
3794 # It will help us diagnose broken compilers, and finding out an intuition
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3797 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3798 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3800 # The possible output files:
3801 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3804 for ac_file in $ac_files
3807 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3808 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3813 if { { ac_try="$ac_link_default"
3815 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3816 *) ac_try_echo
=$ac_try;;
3818 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3819 $as_echo "$ac_try_echo"; } >&5
3820 (eval "$ac_link_default") 2>&5
3822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3823 test $ac_status = 0; }; then :
3824 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3825 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3826 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3827 # so that the user can short-circuit this test for compilers unknown to
3829 for ac_file
in $ac_files ''
3831 test -f "$ac_file" ||
continue
3833 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3836 # We found the default executable, but exeext='' is most
3840 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3842 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3844 # We set ac_cv_exeext here because the later test for it is not
3845 # safe: cross compilers may not add the suffix if given an `-o'
3846 # argument, so we may need to know it at that point already.
3847 # Even if this section looks crufty: it has the advantage of
3854 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3859 if test -z "$ac_file"; then :
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3861 $as_echo "no" >&6; }
3862 $as_echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.
$ac_ext >&5
3865 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3866 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3867 { as_fn_set_status
77
3868 as_fn_error
"C++ compiler cannot create executables
3869 See \`config.log' for more details." "$LINENO" 5; }; }
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3872 $as_echo "yes" >&6; }
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3875 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3877 $as_echo "$ac_file" >&6; }
3878 ac_exeext
=$ac_cv_exeext
3880 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3881 ac_clean_files
=$ac_clean_files_save
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3883 $as_echo_n "checking for suffix of executables... " >&6; }
3884 if { { ac_try
="$ac_link"
3886 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3887 *) ac_try_echo=$ac_try;;
3889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3890 $as_echo "$ac_try_echo"; } >&5
3891 (eval "$ac_link") 2>&5
3893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3894 test $ac_status = 0; }; then :
3895 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3896 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3897 # work properly (i.e., refer to `conftest.exe'), while it won't with
3899 for ac_file
in conftest.exe conftest conftest.
*; do
3900 test -f "$ac_file" ||
continue
3902 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3903 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3910 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3911 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3912 See \`config.log' for more details." "$LINENO" 5; }
3914 rm -f conftest conftest
$ac_cv_exeext
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3916 $as_echo "$ac_cv_exeext" >&6; }
3918 rm -f conftest.
$ac_ext
3919 EXEEXT
=$ac_cv_exeext
3921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h. */
3927 FILE *f = fopen ("conftest.out", "w");
3928 return ferror (f) || fclose (f) != 0;
3934 ac_clean_files
="$ac_clean_files conftest.out"
3935 # Check that the compiler produces executables we can run. If not, either
3936 # the compiler is broken, or we cross compile.
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3938 $as_echo_n "checking whether we are cross compiling... " >&6; }
3939 if test "$cross_compiling" != yes; then
3940 { { ac_try
="$ac_link"
3942 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3943 *) ac_try_echo=$ac_try;;
3945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3946 $as_echo "$ac_try_echo"; } >&5
3947 (eval "$ac_link") 2>&5
3949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3950 test $ac_status = 0; }
3951 if { ac_try='./conftest$ac_cv_exeext'
3952 { { case "(($ac_try" in
3953 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3954 *) ac_try_echo
=$ac_try;;
3956 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3957 $as_echo "$ac_try_echo"; } >&5
3958 (eval "$ac_try") 2>&5
3960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3961 test $ac_status = 0; }; }; then
3964 if test "$cross_compiling" = maybe
; then
3967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3969 as_fn_error
"cannot run C++ compiled programs.
3970 If you meant to cross compile, use \`--host'.
3971 See \`config.log' for more details." "$LINENO" 5; }
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3976 $as_echo "$cross_compiling" >&6; }
3978 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3979 ac_clean_files
=$ac_clean_files_save
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3981 $as_echo_n "checking for suffix of object files... " >&6; }
3982 if test "${ac_cv_objext+set}" = set; then :
3983 $as_echo_n "(cached) " >&6
3985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h. */
3996 rm -f conftest.o conftest.obj
3997 if { { ac_try
="$ac_compile"
3999 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4000 *) ac_try_echo=$ac_try;;
4002 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4003 $as_echo "$ac_try_echo"; } >&5
4004 (eval "$ac_compile") 2>&5
4006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4007 test $ac_status = 0; }; then :
4008 for ac_file in conftest.o conftest.obj conftest.*; do
4009 test -f "$ac_file" || continue;
4011 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4012 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4017 $as_echo "$as_me: failed program was:" >&5
4018 sed 's/^/| /' conftest.$ac_ext >&5
4020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4022 as_fn_error "cannot compute suffix of object files
: cannot compile
4023 See \
`config.log' for more details." "$LINENO" 5; }
4025 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4028 $as_echo "$ac_cv_objext" >&6; }
4029 OBJEXT=$ac_cv_objext
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4032 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4033 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4034 $as_echo_n "(cached) " >&6
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4050 if ac_fn_cxx_try_compile "$LINENO"; then :
4055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4056 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4060 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4061 if test $ac_compiler_gnu = yes; then
4066 ac_test_CXXFLAGS=${CXXFLAGS+set}
4067 ac_save_CXXFLAGS=$CXXFLAGS
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4069 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4070 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4071 $as_echo_n "(cached) " >&6
4073 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4074 ac_cxx_werror_flag=yes
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4088 if ac_fn_cxx_try_compile "$LINENO"; then :
4089 ac_cv_prog_cxx_g=yes
4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093 /* end confdefs.h. */
4103 if ac_fn_cxx_try_compile "$LINENO"; then :
4106 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h. */
4119 if ac_fn_cxx_try_compile "$LINENO"; then :
4120 ac_cv_prog_cxx_g=yes
4122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4127 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4130 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4131 if test "$ac_test_CXXFLAGS" = set; then
4132 CXXFLAGS=$ac_save_CXXFLAGS
4133 elif test $ac_cv_prog_cxx_g = yes; then
4134 if test "$GXX" = yes; then
4140 if test "$GXX" = yes; then
4147 ac_cpp='$CPP $CPPFLAGS'
4148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4151 DEPDIR="${am__leading_dot}deps"
4153 ac_config_commands="$ac_config_commands depfiles"
4156 am_make=${MAKE-make}
4157 cat > confinc << 'END'
4159 @echo this is the am__doit target
4162 # If we don't find an include directive, just comment out the code.
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4164 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4168 # First try GNU make style include.
4169 echo "include confinc" > confmf
4170 # Ignore all kinds of additional output from `make'.
4171 case `$am_make -s -f confmf 2> /dev/null` in #(
4172 *the\ am__doit\ target*)
4178 # Now try BSD make style include.
4179 if test "$am__include" = "#"; then
4180 echo '.include
"confinc"' > confmf
4181 case `$am_make -s -f confmf 2> /dev/null` in #(
4182 *the\ am__doit\ target*)
4183 am__include=.include
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4192 $as_echo "$_am_result" >&6; }
4193 rm -f confinc confmf
4195 # Check whether --enable-dependency-tracking was given.
4196 if test "${enable_dependency_tracking+set}" = set; then :
4197 enableval=$enable_dependency_tracking;
4200 if test "x$enable_dependency_tracking" != xno; then
4201 am_depcomp="$ac_aux_dir/depcomp"
4204 if test "x$enable_dependency_tracking" != xno
; then
4214 depcc
="$CXX" am_compiler_list
=
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4217 $as_echo_n "checking dependency style of $depcc... " >&6; }
4218 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4219 $as_echo_n "(cached) " >&6
4221 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4222 # We make a subdir and do the tests there. Otherwise we can end up
4223 # making bogus files that we don't know about and never remove. For
4224 # instance it was reported that on HP-UX the gcc test will end up
4225 # making a dummy file named `D' -- because `-MD' means `put the output
4228 # Copy depcomp to subdir because otherwise we won't find it if we're
4229 # using a relative directory.
4230 cp "$am_depcomp" conftest.dir
4232 # We will build objects and dependencies in a subdirectory because
4233 # it helps to detect inapplicable dependency modes. For instance
4234 # both Tru64's cc and ICC support -MD to output dependencies as a
4235 # side effect of compilation, but ICC will put the dependencies in
4236 # the current directory while Tru64 will put them in the object
4240 am_cv_CXX_dependencies_compiler_type
=none
4241 if test "$am_compiler_list" = ""; then
4242 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4245 case " $depcc " in #(
4246 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4249 for depmode
in $am_compiler_list; do
4250 # Setup a source with many dependencies, because some compilers
4251 # like to wrap large dependency lists on column 80 (with \), and
4252 # we should not choose a depcomp mode which is confused by this.
4254 # We need to recreate these files for each test, as the compiler may
4255 # overwrite some of them when testing with obscure command lines.
4256 # This happens at least with the AIX C compiler.
4258 for i
in 1 2 3 4 5 6; do
4259 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4260 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4261 # Solaris 8's {/usr,}/bin/sh.
4262 touch sub
/conftst
$i.h
4264 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4266 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4267 # mode. It turns out that the SunPro C++ compiler does not properly
4268 # handle `-M -o', and we need to detect this. Also, some Intel
4269 # versions had trouble with output in subdirs
4270 am__obj
=sub
/conftest.
${OBJEXT-o}
4271 am__minus_obj
="-o $am__obj"
4274 # This depmode causes a compiler race in universal mode.
4275 test "$am__universal" = false ||
continue
4278 # after this tag, mechanisms are not by side-effect, so they'll
4279 # only be used when explicitly requested
4280 if test "x$enable_dependency_tracking" = xyes
; then
4286 msvisualcpp | msvcmsys
)
4287 # This compiler won't grok `-c -o', but also, the minuso test has
4288 # not run yet. These depmodes are late enough in the game, and
4289 # so weak that their functioning should not be impacted.
4290 am__obj
=conftest.
${OBJEXT-o}
4295 if depmode
=$depmode \
4296 source=sub
/conftest.c object
=$am__obj \
4297 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4298 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4299 >/dev
/null
2>conftest.err
&&
4300 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4301 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4302 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4303 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4304 # icc doesn't choke on unknown options, it will just issue warnings
4305 # or remarks (even with -Werror). So we grep stderr for any message
4306 # that says an option was ignored or not supported.
4307 # When given -MP, icc 7.0 and 7.1 complain thusly:
4308 # icc: Command line warning: ignoring option '-M'; no argument required
4309 # The diagnosis changed in icc 8.0:
4310 # icc: Command line remark: option '-MP' not supported
4311 if (grep 'ignoring option' conftest.err ||
4312 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4313 am_cv_CXX_dependencies_compiler_type
=$depmode
4322 am_cv_CXX_dependencies_compiler_type
=none
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4327 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4328 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
4331 test "x$enable_dependency_tracking" != xno \
4332 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
4333 am__fastdepCXX_TRUE
=
4334 am__fastdepCXX_FALSE
='#'
4336 am__fastdepCXX_TRUE
='#'
4337 am__fastdepCXX_FALSE
=
4342 ac_cpp
='$CXXCPP $CPPFLAGS'
4343 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4344 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4345 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4347 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4348 if test -z "$CXXCPP"; then
4349 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
4350 $as_echo_n "(cached) " >&6
4352 # Double quotes because CXXCPP needs to be expanded
4353 for CXXCPP
in "$CXX -E" "/lib/cpp"
4356 for ac_cxx_preproc_warn_flag
in '' yes
4358 # Use a header file that comes with gcc, so configuring glibc
4359 # with a fresh cross-compiler works.
4360 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4361 # <limits.h> exists even on freestanding compilers.
4362 # On the NeXT, cc -E runs the code through the compiler's parser,
4363 # not just through cpp. "Syntax error" is here to catch this case.
4364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4365 /* end confdefs.h. */
4367 # include <limits.h>
4369 # include <assert.h>
4373 if ac_fn_cxx_try_cpp
"$LINENO"; then :
4376 # Broken: fails on valid input.
4379 rm -f conftest.err conftest.
$ac_ext
4381 # OK, works on sane cases. Now check whether nonexistent headers
4382 # can be detected and how.
4383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4384 /* end confdefs.h. */
4385 #include <ac_nonexistent.h>
4387 if ac_fn_cxx_try_cpp
"$LINENO"; then :
4388 # Broken: success on invalid input.
4391 # Passes both tests.
4395 rm -f conftest.err conftest.
$ac_ext
4398 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4399 rm -f conftest.err conftest.
$ac_ext
4400 if $ac_preproc_ok; then :
4405 ac_cv_prog_CXXCPP
=$CXXCPP
4408 CXXCPP
=$ac_cv_prog_CXXCPP
4410 ac_cv_prog_CXXCPP
=$CXXCPP
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4413 $as_echo "$CXXCPP" >&6; }
4415 for ac_cxx_preproc_warn_flag
in '' yes
4417 # Use a header file that comes with gcc, so configuring glibc
4418 # with a fresh cross-compiler works.
4419 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4420 # <limits.h> exists even on freestanding compilers.
4421 # On the NeXT, cc -E runs the code through the compiler's parser,
4422 # not just through cpp. "Syntax error" is here to catch this case.
4423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4424 /* end confdefs.h. */
4426 # include <limits.h>
4428 # include <assert.h>
4432 if ac_fn_cxx_try_cpp
"$LINENO"; then :
4435 # Broken: fails on valid input.
4438 rm -f conftest.err conftest.
$ac_ext
4440 # OK, works on sane cases. Now check whether nonexistent headers
4441 # can be detected and how.
4442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4443 /* end confdefs.h. */
4444 #include <ac_nonexistent.h>
4446 if ac_fn_cxx_try_cpp
"$LINENO"; then :
4447 # Broken: success on invalid input.
4450 # Passes both tests.
4454 rm -f conftest.err conftest.
$ac_ext
4457 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4458 rm -f conftest.err conftest.
$ac_ext
4459 if $ac_preproc_ok; then :
4462 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4463 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4464 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
4465 See \`config.log' for more details." "$LINENO" 5; }
4469 ac_cpp
='$CPP $CPPFLAGS'
4470 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4471 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4472 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4475 ac_cpp
='$CPP $CPPFLAGS'
4476 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4477 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4478 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4479 if test -n "$ac_tool_prefix"; then
4480 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4481 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4483 $as_echo_n "checking for $ac_word... " >&6; }
4484 if test "${ac_cv_prog_CC+set}" = set; then :
4485 $as_echo_n "(cached) " >&6
4487 if test -n "$CC"; then
4488 ac_cv_prog_CC
="$CC" # Let the user override the test.
4490 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4494 test -z "$as_dir" && as_dir
=.
4495 for ac_exec_ext
in '' $ac_executable_extensions; do
4496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4497 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4508 if test -n "$CC"; then
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4510 $as_echo "$CC" >&6; }
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4513 $as_echo "no" >&6; }
4518 if test -z "$ac_cv_prog_CC"; then
4520 # Extract the first word of "gcc", so it can be a program name with args.
4521 set dummy gcc
; ac_word
=$2
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4523 $as_echo_n "checking for $ac_word... " >&6; }
4524 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4525 $as_echo_n "(cached) " >&6
4527 if test -n "$ac_ct_CC"; then
4528 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4530 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4534 test -z "$as_dir" && as_dir
=.
4535 for ac_exec_ext
in '' $ac_executable_extensions; do
4536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4537 ac_cv_prog_ac_ct_CC
="gcc"
4538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4547 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4548 if test -n "$ac_ct_CC"; then
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4550 $as_echo "$ac_ct_CC" >&6; }
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4553 $as_echo "no" >&6; }
4556 if test "x$ac_ct_CC" = x
; then
4559 case $cross_compiling:$ac_tool_warned in
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4562 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4563 ac_tool_warned
=yes ;;
4571 if test -z "$CC"; then
4572 if test -n "$ac_tool_prefix"; then
4573 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4574 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4576 $as_echo_n "checking for $ac_word... " >&6; }
4577 if test "${ac_cv_prog_CC+set}" = set; then :
4578 $as_echo_n "(cached) " >&6
4580 if test -n "$CC"; then
4581 ac_cv_prog_CC
="$CC" # Let the user override the test.
4583 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4587 test -z "$as_dir" && as_dir
=.
4588 for ac_exec_ext
in '' $ac_executable_extensions; do
4589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4590 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4601 if test -n "$CC"; then
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4603 $as_echo "$CC" >&6; }
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4606 $as_echo "no" >&6; }
4612 if test -z "$CC"; then
4613 # Extract the first word of "cc", so it can be a program name with args.
4614 set dummy cc
; ac_word
=$2
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4616 $as_echo_n "checking for $ac_word... " >&6; }
4617 if test "${ac_cv_prog_CC+set}" = set; then :
4618 $as_echo_n "(cached) " >&6
4620 if test -n "$CC"; then
4621 ac_cv_prog_CC
="$CC" # Let the user override the test.
4624 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4628 test -z "$as_dir" && as_dir
=.
4629 for ac_exec_ext
in '' $ac_executable_extensions; do
4630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4631 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4632 ac_prog_rejected
=yes
4636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4643 if test $ac_prog_rejected = yes; then
4644 # We found a bogon in the path, so make sure we never use it.
4645 set dummy
$ac_cv_prog_CC
4647 if test $# != 0; then
4648 # We chose a different compiler from the bogus one.
4649 # However, it has the same basename, so the bogon will be chosen
4650 # first if we set CC to just the basename; use the full file name.
4652 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4658 if test -n "$CC"; then
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4660 $as_echo "$CC" >&6; }
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4663 $as_echo "no" >&6; }
4668 if test -z "$CC"; then
4669 if test -n "$ac_tool_prefix"; then
4670 for ac_prog
in cl.exe
4672 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4673 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4675 $as_echo_n "checking for $ac_word... " >&6; }
4676 if test "${ac_cv_prog_CC+set}" = set; then :
4677 $as_echo_n "(cached) " >&6
4679 if test -n "$CC"; then
4680 ac_cv_prog_CC
="$CC" # Let the user override the test.
4682 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4686 test -z "$as_dir" && as_dir
=.
4687 for ac_exec_ext
in '' $ac_executable_extensions; do
4688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4689 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4700 if test -n "$CC"; then
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4702 $as_echo "$CC" >&6; }
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4705 $as_echo "no" >&6; }
4709 test -n "$CC" && break
4712 if test -z "$CC"; then
4714 for ac_prog
in cl.exe
4716 # Extract the first word of "$ac_prog", so it can be a program name with args.
4717 set dummy
$ac_prog; ac_word
=$2
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4719 $as_echo_n "checking for $ac_word... " >&6; }
4720 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4721 $as_echo_n "(cached) " >&6
4723 if test -n "$ac_ct_CC"; then
4724 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4726 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4730 test -z "$as_dir" && as_dir
=.
4731 for ac_exec_ext
in '' $ac_executable_extensions; do
4732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4733 ac_cv_prog_ac_ct_CC
="$ac_prog"
4734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4743 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4744 if test -n "$ac_ct_CC"; then
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4746 $as_echo "$ac_ct_CC" >&6; }
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4749 $as_echo "no" >&6; }
4753 test -n "$ac_ct_CC" && break
4756 if test "x$ac_ct_CC" = x
; then
4759 case $cross_compiling:$ac_tool_warned in
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4763 ac_tool_warned
=yes ;;
4772 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4773 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4774 as_fn_error
"no acceptable C compiler found in \$PATH
4775 See \`config.log' for more details." "$LINENO" 5; }
4777 # Provide some information about the compiler.
4778 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4781 for ac_option
in --version -v -V -qversion; do
4782 { { ac_try
="$ac_compiler $ac_option >&5"
4784 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4785 *) ac_try_echo=$ac_try;;
4787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4788 $as_echo "$ac_try_echo"; } >&5
4789 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4791 if test -s conftest.err; then
4793 ... rest of stderr output deleted ...
4794 10q' conftest.err >conftest.er1
4795 cat conftest.er1 >&5
4797 rm -f conftest.er1 conftest.err
4798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4799 test $ac_status = 0; }
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4803 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4804 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4805 $as_echo_n "(cached) " >&6
4807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4808 /* end confdefs.h. */
4821 if ac_fn_c_try_compile "$LINENO"; then :
4826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4827 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4831 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4832 if test $ac_compiler_gnu = yes; then
4837 ac_test_CFLAGS=${CFLAGS+set}
4838 ac_save_CFLAGS=$CFLAGS
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4840 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4841 if test "${ac_cv_prog_cc_g+set}" = set; then :
4842 $as_echo_n "(cached) " >&6
4844 ac_save_c_werror_flag=$ac_c_werror_flag
4845 ac_c_werror_flag=yes
4848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4849 /* end confdefs.h. */
4859 if ac_fn_c_try_compile "$LINENO"; then :
4863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4864 /* end confdefs.h. */
4874 if ac_fn_c_try_compile "$LINENO"; then :
4877 ac_c_werror_flag=$ac_save_c_werror_flag
4879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880 /* end confdefs.h. */
4890 if ac_fn_c_try_compile "$LINENO"; then :
4893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4898 ac_c_werror_flag=$ac_save_c_werror_flag
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4901 $as_echo "$ac_cv_prog_cc_g" >&6; }
4902 if test "$ac_test_CFLAGS" = set; then
4903 CFLAGS=$ac_save_CFLAGS
4904 elif test $ac_cv_prog_cc_g = yes; then
4905 if test "$GCC" = yes; then
4911 if test "$GCC" = yes; then
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4918 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4919 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4920 $as_echo_n "(cached) " >&6
4922 ac_cv_prog_cc_c89=no
4924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925 /* end confdefs.h. */
4928 #include <sys/types.h>
4929 #include <sys/stat.h>
4930 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4931 struct buf { int x; };
4932 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4933 static char *e (p, i)
4939 static char *f (char * (*g) (char **, int), char **p, ...)
4944 s = g (p, va_arg (v,int));
4949 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4950 function prototypes and stuff, but not '\xHH' hex character constants.
4951 These don't provoke an error unfortunately, instead are silently treated
4952 as 'x'. The following induces an error, until -std is added to get
4953 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4954 array size at least. It's necessary to write '\x00'==0 to get something
4955 that's true only with -std. */
4956 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4958 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4959 inside strings and character constants. */
4961 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4963 int test (int i, double x);
4964 struct s1 {int (*f) (int a);};
4965 struct s2 {int (*f) (double a);};
4966 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4972 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4977 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4978 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4980 CC="$ac_save_CC $ac_arg"
4981 if ac_fn_c_try_compile "$LINENO"; then :
4982 ac_cv_prog_cc_c89=$ac_arg
4984 rm -f core conftest.err conftest.$ac_objext
4985 test "x$ac_cv_prog_cc_c89" != "xno" && break
4987 rm -f conftest.$ac_ext
4992 case "x$ac_cv_prog_cc_c89" in
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4995 $as_echo "none needed" >&6; } ;;
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4998 $as_echo "unsupported" >&6; } ;;
5000 CC="$CC $ac_cv_prog_cc_c89"
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5002 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5004 if test "x$ac_cv_prog_cc_c89" != xno; then :
5009 ac_cpp='$CPP $CPPFLAGS'
5010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5014 depcc="$CC" am_compiler_list=
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5017 $as_echo_n "checking dependency style of $depcc... " >&6; }
5018 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5019 $as_echo_n "(cached) " >&6
5021 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5022 # We make a subdir and do the tests there. Otherwise we can end up
5023 # making bogus files that we don't know about and never remove. For
5024 # instance it was reported that on HP-UX the gcc test will end up
5025 # making a dummy file named `D
' -- because `-MD' means
`put the output
5028 # Copy depcomp to subdir because otherwise we won't find it if we're
5029 # using a relative directory.
5030 cp "$am_depcomp" conftest.dir
5032 # We will build objects and dependencies in a subdirectory because
5033 # it helps to detect inapplicable dependency modes. For instance
5034 # both Tru64's cc and ICC support -MD to output dependencies as a
5035 # side effect of compilation, but ICC will put the dependencies in
5036 # the current directory while Tru64 will put them in the object
5040 am_cv_CC_dependencies_compiler_type=none
5041 if test "$am_compiler_list" = ""; then
5042 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
5045 case " $depcc " in #(
5046 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5049 for depmode in $am_compiler_list; do
5050 # Setup a source with many dependencies, because some compilers
5051 # like to wrap large dependency lists on column 80 (with \), and
5052 # we should not choose a depcomp mode which is confused by this.
5054 # We need to recreate these files for each test, as the compiler may
5055 # overwrite some of them when testing with obscure command lines.
5056 # This happens at least with the AIX C compiler.
5058 for i in 1 2 3 4 5 6; do
5059 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5060 # Using `: > sub
/conftst
$i.h
' creates only sub/conftst1.h with
5061 # Solaris 8's
{/usr
,}/bin
/sh.
5062 touch sub
/conftst
$i.h
5064 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5066 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5067 # mode. It turns out that the SunPro C++ compiler does not properly
5068 # handle `-M -o', and we need to detect this. Also, some Intel
5069 # versions had trouble with output in subdirs
5070 am__obj
=sub
/conftest.
${OBJEXT-o}
5071 am__minus_obj
="-o $am__obj"
5074 # This depmode causes a compiler race in universal mode.
5075 test "$am__universal" = false ||
continue
5078 # after this tag, mechanisms are not by side-effect, so they'll
5079 # only be used when explicitly requested
5080 if test "x$enable_dependency_tracking" = xyes
; then
5086 msvisualcpp | msvcmsys
)
5087 # This compiler won't grok `-c -o', but also, the minuso test has
5088 # not run yet. These depmodes are late enough in the game, and
5089 # so weak that their functioning should not be impacted.
5090 am__obj
=conftest.
${OBJEXT-o}
5095 if depmode
=$depmode \
5096 source=sub
/conftest.c object
=$am__obj \
5097 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5098 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5099 >/dev
/null
2>conftest.err
&&
5100 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5101 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5102 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5103 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5104 # icc doesn't choke on unknown options, it will just issue warnings
5105 # or remarks (even with -Werror). So we grep stderr for any message
5106 # that says an option was ignored or not supported.
5107 # When given -MP, icc 7.0 and 7.1 complain thusly:
5108 # icc: Command line warning: ignoring option '-M'; no argument required
5109 # The diagnosis changed in icc 8.0:
5110 # icc: Command line remark: option '-MP' not supported
5111 if (grep 'ignoring option' conftest.err ||
5112 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5113 am_cv_CC_dependencies_compiler_type
=$depmode
5122 am_cv_CC_dependencies_compiler_type
=none
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5127 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5128 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5131 test "x$enable_dependency_tracking" != xno \
5132 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5134 am__fastdepCC_FALSE
='#'
5136 am__fastdepCC_TRUE
='#'
5137 am__fastdepCC_FALSE
=
5142 ac_cpp
='$CPP $CPPFLAGS'
5143 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5144 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5145 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5147 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5148 # On Suns, sometimes $CPP names a directory.
5149 if test -n "$CPP" && test -d "$CPP"; then
5152 if test -z "$CPP"; then
5153 if test "${ac_cv_prog_CPP+set}" = set; then :
5154 $as_echo_n "(cached) " >&6
5156 # Double quotes because CPP needs to be expanded
5157 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5160 for ac_c_preproc_warn_flag
in '' yes
5162 # Use a header file that comes with gcc, so configuring glibc
5163 # with a fresh cross-compiler works.
5164 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5165 # <limits.h> exists even on freestanding compilers.
5166 # On the NeXT, cc -E runs the code through the compiler's parser,
5167 # not just through cpp. "Syntax error" is here to catch this case.
5168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5169 /* end confdefs.h. */
5171 # include <limits.h>
5173 # include <assert.h>
5177 if ac_fn_c_try_cpp
"$LINENO"; then :
5180 # Broken: fails on valid input.
5183 rm -f conftest.err conftest.
$ac_ext
5185 # OK, works on sane cases. Now check whether nonexistent headers
5186 # can be detected and how.
5187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5188 /* end confdefs.h. */
5189 #include <ac_nonexistent.h>
5191 if ac_fn_c_try_cpp
"$LINENO"; then :
5192 # Broken: success on invalid input.
5195 # Passes both tests.
5199 rm -f conftest.err conftest.
$ac_ext
5202 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5203 rm -f conftest.err conftest.
$ac_ext
5204 if $ac_preproc_ok; then :
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5217 $as_echo "$CPP" >&6; }
5219 for ac_c_preproc_warn_flag
in '' yes
5221 # Use a header file that comes with gcc, so configuring glibc
5222 # with a fresh cross-compiler works.
5223 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5224 # <limits.h> exists even on freestanding compilers.
5225 # On the NeXT, cc -E runs the code through the compiler's parser,
5226 # not just through cpp. "Syntax error" is here to catch this case.
5227 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5228 /* end confdefs.h. */
5230 # include <limits.h>
5232 # include <assert.h>
5236 if ac_fn_c_try_cpp
"$LINENO"; then :
5239 # Broken: fails on valid input.
5242 rm -f conftest.err conftest.
$ac_ext
5244 # OK, works on sane cases. Now check whether nonexistent headers
5245 # can be detected and how.
5246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5247 /* end confdefs.h. */
5248 #include <ac_nonexistent.h>
5250 if ac_fn_c_try_cpp
"$LINENO"; then :
5251 # Broken: success on invalid input.
5254 # Passes both tests.
5258 rm -f conftest.err conftest.
$ac_ext
5261 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5262 rm -f conftest.err conftest.
$ac_ext
5263 if $ac_preproc_ok; then :
5266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5268 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5269 See \`config.log' for more details." "$LINENO" 5; }
5273 ac_cpp
='$CPP $CPPFLAGS'
5274 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5275 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5276 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5279 test -n "$build_alias" && ac_build_prefix
=$build_alias-
5281 if test "$cross_compiling" = yes; then :
5283 # Even if we're cross-compiling, we want a compiler here
5284 # that is not a cross-compiler.
5285 saved_cross
=$cross_compiling
5289 ac_cpp
='$CPP $BUILD_CPPFLAGS'
5290 ac_compile
='$BUILD_CC -c $BUILD_CFLAGS $BUILD_CPPFLAGS conftest.$ac_ext >&5'
5291 ac_link
='$BUILD_CC -o conftest$ac_build_exeext $BUILD_CFLAGS $BUILD_CPPFLAGS $BUILD_LDFLAGS conftest.$ac_ext $BUILD_LIBS >&5'
5292 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5293 if test -n "$ac_build_prefix"; then
5294 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5295 set dummy
${ac_build_prefix}gcc
; ac_word
=$2
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5297 $as_echo_n "checking for $ac_word... " >&6; }
5298 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5299 $as_echo_n "(cached) " >&6
5301 if test -n "$BUILD_CC"; then
5302 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
5304 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5308 test -z "$as_dir" && as_dir
=.
5309 for ac_exec_ext
in '' $ac_executable_extensions; do
5310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5311 ac_cv_prog_BUILD_CC
="${ac_build_prefix}gcc"
5312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5321 BUILD_CC
=$ac_cv_prog_BUILD_CC
5322 if test -n "$BUILD_CC"; then
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5324 $as_echo "$BUILD_CC" >&6; }
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5327 $as_echo "no" >&6; }
5332 if test -z "$ac_cv_prog_BUILD_CC"; then
5333 ac_ct_BUILD_CC
=$BUILD_CC
5334 # Extract the first word of "gcc", so it can be a program name with args.
5335 set dummy gcc
; ac_word
=$2
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5337 $as_echo_n "checking for $ac_word... " >&6; }
5338 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then :
5339 $as_echo_n "(cached) " >&6
5341 if test -n "$ac_ct_BUILD_CC"; then
5342 ac_cv_prog_ac_ct_BUILD_CC
="$ac_ct_BUILD_CC" # Let the user override the test.
5344 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5348 test -z "$as_dir" && as_dir
=.
5349 for ac_exec_ext
in '' $ac_executable_extensions; do
5350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5351 ac_cv_prog_ac_ct_BUILD_CC
="gcc"
5352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5361 ac_ct_BUILD_CC
=$ac_cv_prog_ac_ct_BUILD_CC
5362 if test -n "$ac_ct_BUILD_CC"; then
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5364 $as_echo "$ac_ct_BUILD_CC" >&6; }
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5367 $as_echo "no" >&6; }
5370 if test "x$ac_ct_BUILD_CC" = x
; then
5373 case $cross_compiling:$ac_tool_warned in
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5377 ac_tool_warned
=yes ;;
5379 BUILD_CC
=$ac_ct_BUILD_CC
5382 BUILD_CC
="$ac_cv_prog_BUILD_CC"
5385 if test -z "$BUILD_CC"; then
5386 if test -n "$ac_build_prefix"; then
5387 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5388 set dummy
${ac_build_prefix}cc
; ac_word
=$2
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5390 $as_echo_n "checking for $ac_word... " >&6; }
5391 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5392 $as_echo_n "(cached) " >&6
5394 if test -n "$BUILD_CC"; then
5395 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
5397 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5401 test -z "$as_dir" && as_dir
=.
5402 for ac_exec_ext
in '' $ac_executable_extensions; do
5403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5404 ac_cv_prog_BUILD_CC
="${ac_build_prefix}cc"
5405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5414 BUILD_CC
=$ac_cv_prog_BUILD_CC
5415 if test -n "$BUILD_CC"; then
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5417 $as_echo "$BUILD_CC" >&6; }
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5420 $as_echo "no" >&6; }
5425 if test -z "$ac_cv_prog_BUILD_CC"; then
5426 ac_ct_BUILD_CC
=$BUILD_CC
5427 # Extract the first word of "cc", so it can be a program name with args.
5428 set dummy cc
; ac_word
=$2
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5430 $as_echo_n "checking for $ac_word... " >&6; }
5431 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then :
5432 $as_echo_n "(cached) " >&6
5434 if test -n "$ac_ct_BUILD_CC"; then
5435 ac_cv_prog_ac_ct_BUILD_CC
="$ac_ct_BUILD_CC" # Let the user override the test.
5437 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5441 test -z "$as_dir" && as_dir
=.
5442 for ac_exec_ext
in '' $ac_executable_extensions; do
5443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5444 ac_cv_prog_ac_ct_BUILD_CC
="cc"
5445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5454 ac_ct_BUILD_CC
=$ac_cv_prog_ac_ct_BUILD_CC
5455 if test -n "$ac_ct_BUILD_CC"; then
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5457 $as_echo "$ac_ct_BUILD_CC" >&6; }
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5460 $as_echo "no" >&6; }
5463 if test "x$ac_ct_BUILD_CC" = x
; then
5466 case $cross_compiling:$ac_tool_warned in
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5470 ac_tool_warned
=yes ;;
5472 BUILD_CC
=$ac_ct_BUILD_CC
5475 BUILD_CC
="$ac_cv_prog_BUILD_CC"
5479 if test -z "$BUILD_CC"; then
5480 # Extract the first word of "cc", so it can be a program name with args.
5481 set dummy cc
; ac_word
=$2
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5483 $as_echo_n "checking for $ac_word... " >&6; }
5484 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5485 $as_echo_n "(cached) " >&6
5487 if test -n "$BUILD_CC"; then
5488 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
5491 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5495 test -z "$as_dir" && as_dir
=.
5496 for ac_exec_ext
in '' $ac_executable_extensions; do
5497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5498 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5499 ac_prog_rejected
=yes
5502 ac_cv_prog_BUILD_CC
="cc"
5503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5510 if test $ac_prog_rejected = yes; then
5511 # We found a bogon in the path, so make sure we never use it.
5512 set dummy
$ac_cv_prog_BUILD_CC
5514 if test $# != 0; then
5515 # We chose a different compiler from the bogus one.
5516 # However, it has the same basename, so the bogon will be chosen
5517 # first if we set BUILD_CC to just the basename; use the full file name.
5519 ac_cv_prog_BUILD_CC
="$as_dir/$ac_word${1+' '}$@"
5524 BUILD_CC
=$ac_cv_prog_BUILD_CC
5525 if test -n "$BUILD_CC"; then
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5527 $as_echo "$BUILD_CC" >&6; }
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5530 $as_echo "no" >&6; }
5535 if test -z "$BUILD_CC"; then
5536 if test -n "$ac_build_prefix"; then
5539 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5540 set dummy
$ac_build_prefix$ac_prog; ac_word
=$2
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5542 $as_echo_n "checking for $ac_word... " >&6; }
5543 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5544 $as_echo_n "(cached) " >&6
5546 if test -n "$BUILD_CC"; then
5547 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
5549 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5553 test -z "$as_dir" && as_dir
=.
5554 for ac_exec_ext
in '' $ac_executable_extensions; do
5555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5556 ac_cv_prog_BUILD_CC
="$ac_build_prefix$ac_prog"
5557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5566 BUILD_CC
=$ac_cv_prog_BUILD_CC
5567 if test -n "$BUILD_CC"; then
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5569 $as_echo "$BUILD_CC" >&6; }
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5572 $as_echo "no" >&6; }
5576 test -n "$BUILD_CC" && break
5579 if test -z "$BUILD_CC"; then
5580 ac_ct_BUILD_CC
=$BUILD_CC
5583 # Extract the first word of "$ac_prog", so it can be a program name with args.
5584 set dummy
$ac_prog; ac_word
=$2
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5586 $as_echo_n "checking for $ac_word... " >&6; }
5587 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then :
5588 $as_echo_n "(cached) " >&6
5590 if test -n "$ac_ct_BUILD_CC"; then
5591 ac_cv_prog_ac_ct_BUILD_CC
="$ac_ct_BUILD_CC" # Let the user override the test.
5593 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5597 test -z "$as_dir" && as_dir
=.
5598 for ac_exec_ext
in '' $ac_executable_extensions; do
5599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5600 ac_cv_prog_ac_ct_BUILD_CC
="$ac_prog"
5601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5610 ac_ct_BUILD_CC
=$ac_cv_prog_ac_ct_BUILD_CC
5611 if test -n "$ac_ct_BUILD_CC"; then
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5613 $as_echo "$ac_ct_BUILD_CC" >&6; }
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5616 $as_echo "no" >&6; }
5620 test -n "$ac_ct_BUILD_CC" && break
5623 if test "x$ac_ct_BUILD_CC" = x
; then
5626 case $cross_compiling:$ac_tool_warned in
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5629 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5630 ac_tool_warned
=yes ;;
5632 BUILD_CC
=$ac_ct_BUILD_CC
5639 test -z "$BUILD_CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5641 as_fn_error
"no acceptable C compiler found in \$PATH
5642 See \`config.log' for more details." "$LINENO" 5; }
5644 # Provide some information about the compiler.
5645 echo "$as_me:$LINENO:" \
5646 "checking for C compiler version" >&5
5647 ac_compiler
=`set X $ac_compile; echo $2`
5648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler --version </dev/null >&5\""; } >&5
5649 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
5651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5652 test $ac_status = 0; }
5653 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler -v </dev/null >&5\""; } >&5
5654 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
5656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5657 test $ac_status = 0; }
5658 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler -V </dev/null >&5\""; } >&5
5659 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
5661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5662 test $ac_status = 0; }
5664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5665 /* end confdefs.h. */
5675 ac_clean_files_save
=$ac_clean_files
5676 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5677 # Try to create an executable without -o first, disregard a.out.
5678 # It will help us diagnose broken compilers, and finding out an intuition
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5681 $as_echo_n "checking whether the C compiler works... " >&6; }
5682 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5684 # The possible output files:
5685 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5688 for ac_file
in $ac_files
5691 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5692 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
5697 if { { ac_try
="$ac_link_default"
5699 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5700 *) ac_try_echo=$ac_try;;
5702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5703 $as_echo "$ac_try_echo"; } >&5
5704 (eval "$ac_link_default") 2>&5
5706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5707 test $ac_status = 0; }; then :
5708 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
5709 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
5710 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5711 # so that the user can short-circuit this test for compilers unknown to
5713 for ac_file in $ac_files ''
5715 test -f "$ac_file" || continue
5717 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5720 # We found the default executable, but exeext='' is most
5724 if test "${ac_cv_build_exeext+set}" = set && test "$ac_cv_build_exeext" != no;
5726 ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5728 # We set ac_cv_exeext here because the later test for it is not
5729 # safe: cross compilers may not add the suffix if given an `-o'
5730 # argument, so we may need to know it at that point already.
5731 # Even if this section looks crufty: it has the advantage of
5738 test "$ac_cv_build_exeext" = no && ac_cv_build_exeext=
5743 if test -z "$ac_file"; then :
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5745 $as_echo "no" >&6; }
5746 $as_echo "$as_me: failed program was:" >&5
5747 sed 's
/^
/|
/' conftest.$ac_ext >&5
5749 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5750 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
5751 { as_fn_set_status 77
5752 as_fn_error "C compiler cannot create executables
5753 See \`config.log
' for more details." "$LINENO" 5; }; }
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5756 $as_echo "yes" >&6; }
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5759 $as_echo_n "checking for C compiler default output file name... " >&6; }
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5761 $as_echo "$ac_file" >&6; }
5762 ac_build_exeext=$ac_cv_build_exeext
5764 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_build_exeext b.out
5765 ac_clean_files=$ac_clean_files_save
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5767 $as_echo_n "checking for suffix of executables... " >&6; }
5768 if { { ac_try="$ac_link"
5770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5771 *) ac_try_echo=$ac_try;;
5773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5774 $as_echo "$ac_try_echo"; } >&5
5775 (eval "$ac_link") 2>&5
5777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5778 test $ac_status = 0; }; then :
5779 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
5780 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
5781 # work properly (i.e., refer to `conftest.exe
'), while it won't with
5783 for ac_file
in conftest.exe conftest conftest.
*; do
5784 test -f "$ac_file" ||
continue
5786 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5787 *.
* ) ac_cv_build_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5793 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5794 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5795 as_fn_error
"cannot compute suffix of executables: cannot compile and link
5796 See \`config.log' for more details." "$LINENO" 5; }
5798 rm -f conftest conftest
$ac_cv_build_exeext
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_exeext" >&5
5800 $as_echo "$ac_cv_build_exeext" >&6; }
5802 rm -f conftest.
$ac_ext
5803 BUILD_EXEEXT
=$ac_cv_build_exeext
5804 ac_build_exeext
=$BUILD_EXEEXT
5805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5806 /* end confdefs.h. */
5811 FILE *f = fopen ("conftest.out", "w");
5812 return ferror (f) || fclose (f) != 0;
5818 ac_clean_files
="$ac_clean_files conftest.out"
5819 # Check that the compiler produces executables we can run. If not, either
5820 # the compiler is broken, or we cross compile.
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5822 $as_echo_n "checking whether we are cross compiling... " >&6; }
5823 if test "$cross_compiling" != yes; then
5824 { { ac_try
="$ac_link"
5826 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5827 *) ac_try_echo=$ac_try;;
5829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5830 $as_echo "$ac_try_echo"; } >&5
5831 (eval "$ac_link") 2>&5
5833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5834 test $ac_status = 0; }
5835 if { ac_try='./conftest$ac_cv_build_exeext'
5836 { { case "(($ac_try" in
5837 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5838 *) ac_try_echo
=$ac_try;;
5840 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5841 $as_echo "$ac_try_echo"; } >&5
5842 (eval "$ac_try") 2>&5
5844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5845 test $ac_status = 0; }; }; then
5848 if test "$cross_compiling" = maybe
; then
5851 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5853 as_fn_error
"cannot run C compiled programs.
5854 If you meant to cross compile, use \`--host'.
5855 See \`config.log' for more details." "$LINENO" 5; }
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5860 $as_echo "$cross_compiling" >&6; }
5862 rm -f conftest.
$ac_ext conftest
$ac_cv_build_exeext conftest.out
5863 ac_clean_files
=$ac_clean_files_save
5866 # Restore configuration environment
5867 cross_compiling
=$saved_cross
5870 ac_cpp
='$CPP $CPPFLAGS'
5871 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5872 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5873 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5876 BUILD_CC
="$CC" ; BUILD_EXEEXT
=$EXEEXT
5878 CFLAGS
="$mule_backup_CFLAGS"
5879 CXXFLAGS
="$mule_backup_CXXFLAGS"
5880 BUILD_CFLAGS
="$mule_backup_BUILD_CFLAGS"
5881 for ac_prog
in gawk mawk nawk
awk
5883 # Extract the first word of "$ac_prog", so it can be a program name with args.
5884 set dummy
$ac_prog; ac_word
=$2
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5886 $as_echo_n "checking for $ac_word... " >&6; }
5887 if test "${ac_cv_prog_AWK+set}" = set; then :
5888 $as_echo_n "(cached) " >&6
5890 if test -n "$AWK"; then
5891 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
5893 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5897 test -z "$as_dir" && as_dir
=.
5898 for ac_exec_ext
in '' $ac_executable_extensions; do
5899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5900 ac_cv_prog_AWK
="$ac_prog"
5901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5911 if test -n "$AWK"; then
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5913 $as_echo "$AWK" >&6; }
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5916 $as_echo "no" >&6; }
5920 test -n "$AWK" && break
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5924 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5925 if test "${ac_cv_path_GREP+set}" = set; then :
5926 $as_echo_n "(cached) " >&6
5928 if test -z "$GREP"; then
5929 ac_path_GREP_found
=false
5930 # Loop through the user's path and test for each of PROGNAME-LIST
5931 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5932 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5935 test -z "$as_dir" && as_dir
=.
5936 for ac_prog
in grep ggrep
; do
5937 for ac_exec_ext
in '' $ac_executable_extensions; do
5938 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5939 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5940 # Check for GNU ac_path_GREP and select it if it is found.
5941 # Check for GNU $ac_path_GREP
5942 case `"$ac_path_GREP" --version 2>&1` in
5944 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5947 $as_echo_n 0123456789 >"conftest.in"
5950 cat "conftest.in" "conftest.in" >"conftest.tmp"
5951 mv "conftest.tmp" "conftest.in"
5952 cp "conftest.in" "conftest.nl"
5953 $as_echo 'GREP' >> "conftest.nl"
5954 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5955 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5956 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5957 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5958 # Best one so far, save it but keep looking for a better one
5959 ac_cv_path_GREP
="$ac_path_GREP"
5960 ac_path_GREP_max
=$ac_count
5962 # 10*(2^10) chars as input seems more than enough
5963 test $ac_count -gt 10 && break
5965 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5968 $ac_path_GREP_found && break 3
5973 if test -z "$ac_cv_path_GREP"; then
5974 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5977 ac_cv_path_GREP
=$GREP
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5982 $as_echo "$ac_cv_path_GREP" >&6; }
5983 GREP
="$ac_cv_path_GREP"
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5987 $as_echo_n "checking for egrep... " >&6; }
5988 if test "${ac_cv_path_EGREP+set}" = set; then :
5989 $as_echo_n "(cached) " >&6
5991 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5992 then ac_cv_path_EGREP
="$GREP -E"
5994 if test -z "$EGREP"; then
5995 ac_path_EGREP_found
=false
5996 # Loop through the user's path and test for each of PROGNAME-LIST
5997 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5998 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6001 test -z "$as_dir" && as_dir
=.
6002 for ac_prog
in egrep; do
6003 for ac_exec_ext
in '' $ac_executable_extensions; do
6004 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
6005 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
6006 # Check for GNU ac_path_EGREP and select it if it is found.
6007 # Check for GNU $ac_path_EGREP
6008 case `"$ac_path_EGREP" --version 2>&1` in
6010 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
6013 $as_echo_n 0123456789 >"conftest.in"
6016 cat "conftest.in" "conftest.in" >"conftest.tmp"
6017 mv "conftest.tmp" "conftest.in"
6018 cp "conftest.in" "conftest.nl"
6019 $as_echo 'EGREP' >> "conftest.nl"
6020 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6021 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6022 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6023 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6024 # Best one so far, save it but keep looking for a better one
6025 ac_cv_path_EGREP
="$ac_path_EGREP"
6026 ac_path_EGREP_max
=$ac_count
6028 # 10*(2^10) chars as input seems more than enough
6029 test $ac_count -gt 10 && break
6031 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6034 $ac_path_EGREP_found && break 3
6039 if test -z "$ac_cv_path_EGREP"; then
6040 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6043 ac_cv_path_EGREP
=$EGREP
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6049 $as_echo "$ac_cv_path_EGREP" >&6; }
6050 EGREP
="$ac_cv_path_EGREP"
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6054 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6056 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6057 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6058 $as_echo_n "(cached) " >&6
6060 cat >conftest.
make <<\_ACEOF
6063 @
echo '@@@%%%=$(MAKE)=@@@%%%'
6065 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6066 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6068 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
6070 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
6074 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6076 $as_echo "yes" >&6; }
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6080 $as_echo "no" >&6; }
6081 SET_MAKE
="MAKE=${MAKE-make}"
6085 for ac_prog
in flex
lex
6087 # Extract the first word of "$ac_prog", so it can be a program name with args.
6088 set dummy
$ac_prog; ac_word
=$2
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6090 $as_echo_n "checking for $ac_word... " >&6; }
6091 if test "${ac_cv_prog_LEX+set}" = set; then :
6092 $as_echo_n "(cached) " >&6
6094 if test -n "$LEX"; then
6095 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
6097 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6101 test -z "$as_dir" && as_dir
=.
6102 for ac_exec_ext
in '' $ac_executable_extensions; do
6103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6104 ac_cv_prog_LEX
="$ac_prog"
6105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6115 if test -n "$LEX"; then
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
6117 $as_echo "$LEX" >&6; }
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6120 $as_echo "no" >&6; }
6124 test -n "$LEX" && break
6126 test -n "$LEX" || LEX
=":"
6128 if test "x$LEX" != "x:"; then
6129 cat >conftest.l
<<_ACEOF
6135 e { yyless (input () != 0); }
6136 f { unput (yytext[0]); }
6137 . { BEGIN INITIAL; }
6139 #ifdef YYTEXT_POINTER
6140 extern char *yytext;
6145 return ! yylex () + ! yywrap ();
6148 { { ac_try
="$LEX conftest.l"
6150 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6151 *) ac_try_echo=$ac_try;;
6153 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6154 $as_echo "$ac_try_echo"; } >&5
6155 (eval "$LEX conftest.l") 2>&5
6157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6158 test $ac_status = 0; }
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
6160 $as_echo_n "checking lex output file root... " >&6; }
6161 if test "${ac_cv_prog_lex_root+set}" = set; then :
6162 $as_echo_n "(cached) " >&6
6165 if test -f lex.yy.c; then
6166 ac_cv_prog_lex_root=lex.yy
6167 elif test -f lexyy.c; then
6168 ac_cv_prog_lex_root=lexyy
6170 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6174 $as_echo "$ac_cv_prog_lex_root" >&6; }
6175 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6177 if test -z "${LEXLIB+set}"; then
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6179 $as_echo_n "checking lex library... " >&6; }
6180 if test "${ac_cv_lib_lex+set}" = set; then :
6181 $as_echo_n "(cached) " >&6
6185 ac_cv_lib_lex='none needed'
6186 for ac_lib in '' -lfl -ll; do
6187 LIBS="$ac_lib $ac_save_LIBS"
6188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6189 /* end confdefs.h. */
6190 `cat $LEX_OUTPUT_ROOT.c
`
6192 if ac_fn_c_try_link "$LINENO"; then :
6193 ac_cv_lib_lex=$ac_lib
6195 rm -f core conftest.err conftest.$ac_objext \
6196 conftest$ac_exeext conftest.$ac_ext
6197 test "$ac_cv_lib_lex" != 'none needed' && break
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6203 $as_echo "$ac_cv_lib_lex" >&6; }
6204 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6209 $as_echo_n "checking whether yytext is a pointer... " >&6; }
6210 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
6211 $as_echo_n "(cached) " >&6
6213 # POSIX says lex can declare yytext either as a pointer or an array; the
6214 # default is implementation-dependent. Figure out which it is, since
6215 # not all implementations provide the %pointer and %array declarations.
6216 ac_cv_prog_lex_yytext_pointer=no
6218 LIBS="$LEXLIB $ac_save_LIBS"
6219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6220 /* end confdefs.h. */
6221 #define YYTEXT_POINTER 1
6222 `cat $LEX_OUTPUT_ROOT.c
`
6224 if ac_fn_c_try_link "$LINENO"; then :
6225 ac_cv_prog_lex_yytext_pointer=yes
6227 rm -f core conftest.err conftest.$ac_objext \
6228 conftest$ac_exeext conftest.$ac_ext
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6233 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6234 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6236 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6239 rm -f conftest.l $LEX_OUTPUT_ROOT.c
6243 if test -n "$ac_tool_prefix"; then
6244 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6245 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6247 $as_echo_n "checking for $ac_word... " >&6; }
6248 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6249 $as_echo_n "(cached) " >&6
6251 if test -n "$RANLIB"; then
6252 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258 test -z "$as_dir" && as_dir=.
6259 for ac_exec_ext in '' $ac_executable_extensions; do
6260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6261 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6271 RANLIB=$ac_cv_prog_RANLIB
6272 if test -n "$RANLIB"; then
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6274 $as_echo "$RANLIB" >&6; }
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6277 $as_echo "no" >&6; }
6282 if test -z "$ac_cv_prog_RANLIB"; then
6283 ac_ct_RANLIB=$RANLIB
6284 # Extract the first word of "ranlib", so it can be a program name with args.
6285 set dummy ranlib; ac_word=$2
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6287 $as_echo_n "checking for $ac_word... " >&6; }
6288 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6289 $as_echo_n "(cached) " >&6
6291 if test -n "$ac_ct_RANLIB"; then
6292 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298 test -z "$as_dir" && as_dir=.
6299 for ac_exec_ext in '' $ac_executable_extensions; do
6300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6301 ac_cv_prog_ac_ct_RANLIB="ranlib"
6302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6311 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6312 if test -n "$ac_ct_RANLIB"; then
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6314 $as_echo "$ac_ct_RANLIB" >&6; }
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6317 $as_echo "no" >&6; }
6320 if test "x$ac_ct_RANLIB" = x; then
6323 case $cross_compiling:$ac_tool_warned in
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6326 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6327 ac_tool_warned=yes ;;
6329 RANLIB=$ac_ct_RANLIB
6332 RANLIB="$ac_cv_prog_RANLIB"
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6336 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6337 if test "${ac_cv_path_SED+set}" = set; then :
6338 $as_echo_n "(cached) " >&6
6340 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6341 for ac_i in 1 2 3 4 5 6 7; do
6342 ac_script="$ac_script$as_nl$ac_script"
6344 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6345 { ac_script=; unset ac_script;}
6346 if test -z "$SED"; then
6347 ac_path_SED_found=false
6348 # Loop through the user's path and test for each of PROGNAME-LIST
6349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6353 test -z "$as_dir" && as_dir=.
6354 for ac_prog in sed gsed; do
6355 for ac_exec_ext in '' $ac_executable_extensions; do
6356 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6357 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6358 # Check for GNU ac_path_SED and select it if it is found.
6359 # Check for GNU $ac_path_SED
6360 case `"$ac_path_SED" --version 2>&1` in
6362 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6365 $as_echo_n 0123456789 >"conftest.in"
6368 cat "conftest.in" "conftest.in" >"conftest.tmp"
6369 mv "conftest.tmp" "conftest.in"
6370 cp "conftest.in" "conftest.nl"
6371 $as_echo '' >> "conftest.nl"
6372 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6373 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6374 as_fn_arith $ac_count + 1 && ac_count=$as_val
6375 if test $ac_count -gt ${ac_path_SED_max-0}; then
6376 # Best one so far, save it but keep looking for a better one
6377 ac_cv_path_SED="$ac_path_SED"
6378 ac_path_SED_max=$ac_count
6380 # 10*(2^10) chars as input seems more than enough
6381 test $ac_count -gt 10 && break
6383 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6386 $ac_path_SED_found && break 3
6391 if test -z "$ac_cv_path_SED"; then
6392 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6400 $as_echo "$ac_cv_path_SED" >&6; }
6401 SED="$ac_cv_path_SED"
6404 for ac_prog in 'bison -y' byacc
6406 # Extract the first word of "$ac_prog", so it can be a program name with args.
6407 set dummy $ac_prog; ac_word=$2
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409 $as_echo_n "checking for $ac_word... " >&6; }
6410 if test "${ac_cv_prog_YACC+set}" = set; then :
6411 $as_echo_n "(cached) " >&6
6413 if test -n "$YACC"; then
6414 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6420 test -z "$as_dir" && as_dir=.
6421 for ac_exec_ext in '' $ac_executable_extensions; do
6422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6423 ac_cv_prog_YACC="$ac_prog"
6424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6433 YACC=$ac_cv_prog_YACC
6434 if test -n "$YACC"; then
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6436 $as_echo "$YACC" >&6; }
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439 $as_echo "no" >&6; }
6443 test -n "$YACC" && break
6445 test -n "$YACC" || YACC="yacc"
6448 if test -n "$ac_tool_prefix"; then
6449 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6450 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6452 $as_echo_n "checking for $ac_word... " >&6; }
6453 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6454 $as_echo_n "(cached) " >&6
6456 if test -n "$RANLIB"; then
6457 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463 test -z "$as_dir" && as_dir=.
6464 for ac_exec_ext in '' $ac_executable_extensions; do
6465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6466 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6476 RANLIB=$ac_cv_prog_RANLIB
6477 if test -n "$RANLIB"; then
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6479 $as_echo "$RANLIB" >&6; }
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6482 $as_echo "no" >&6; }
6487 if test -z "$ac_cv_prog_RANLIB"; then
6488 ac_ct_RANLIB=$RANLIB
6489 # Extract the first word of "ranlib", so it can be a program name with args.
6490 set dummy ranlib; ac_word=$2
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6492 $as_echo_n "checking for $ac_word... " >&6; }
6493 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6494 $as_echo_n "(cached) " >&6
6496 if test -n "$ac_ct_RANLIB"; then
6497 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503 test -z "$as_dir" && as_dir=.
6504 for ac_exec_ext in '' $ac_executable_extensions; do
6505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6506 ac_cv_prog_ac_ct_RANLIB="ranlib"
6507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6516 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6517 if test -n "$ac_ct_RANLIB"; then
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6519 $as_echo "$ac_ct_RANLIB" >&6; }
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6522 $as_echo "no" >&6; }
6525 if test "x$ac_ct_RANLIB" = x; then
6528 case $cross_compiling:$ac_tool_warned in
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6532 ac_tool_warned=yes ;;
6534 RANLIB=$ac_ct_RANLIB
6537 RANLIB="$ac_cv_prog_RANLIB"
6540 if test -n "$ac_tool_prefix"; then
6541 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6542 set dummy ${ac_tool_prefix}strip; ac_word=$2
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6544 $as_echo_n "checking for $ac_word... " >&6; }
6545 if test "${ac_cv_prog_STRIP+set}" = set; then :
6546 $as_echo_n "(cached) " >&6
6548 if test -n "$STRIP"; then
6549 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555 test -z "$as_dir" && as_dir=.
6556 for ac_exec_ext in '' $ac_executable_extensions; do
6557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6558 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6568 STRIP=$ac_cv_prog_STRIP
6569 if test -n "$STRIP"; then
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6571 $as_echo "$STRIP" >&6; }
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6574 $as_echo "no" >&6; }
6579 if test -z "$ac_cv_prog_STRIP"; then
6581 # Extract the first word of "strip", so it can be a program name with args.
6582 set dummy strip; ac_word=$2
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6584 $as_echo_n "checking for $ac_word... " >&6; }
6585 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6586 $as_echo_n "(cached) " >&6
6588 if test -n "$ac_ct_STRIP"; then
6589 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595 test -z "$as_dir" && as_dir=.
6596 for ac_exec_ext in '' $ac_executable_extensions; do
6597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6598 ac_cv_prog_ac_ct_STRIP="strip"
6599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6608 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6609 if test -n "$ac_ct_STRIP"; then
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6611 $as_echo "$ac_ct_STRIP" >&6; }
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6614 $as_echo "no" >&6; }
6617 if test "x$ac_ct_STRIP" = x; then
6620 case $cross_compiling:$ac_tool_warned in
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6624 ac_tool_warned=yes ;;
6629 STRIP="$ac_cv_prog_STRIP"
6632 if test -n "$ac_tool_prefix"; then
6633 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6634 set dummy ${ac_tool_prefix}ar; ac_word=$2
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6636 $as_echo_n "checking for $ac_word... " >&6; }
6637 if test "${ac_cv_prog_AR+set}" = set; then :
6638 $as_echo_n "(cached) " >&6
6640 if test -n "$AR"; then
6641 ac_cv_prog_AR="$AR" # Let the user override the test.
6643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647 test -z "$as_dir" && as_dir=.
6648 for ac_exec_ext in '' $ac_executable_extensions; do
6649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6650 ac_cv_prog_AR="${ac_tool_prefix}ar"
6651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6661 if test -n "$AR"; then
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6663 $as_echo "$AR" >&6; }
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6666 $as_echo "no" >&6; }
6671 if test -z "$ac_cv_prog_AR"; then
6673 # Extract the first word of "ar", so it can be a program name with args.
6674 set dummy ar; ac_word=$2
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6676 $as_echo_n "checking for $ac_word... " >&6; }
6677 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6678 $as_echo_n "(cached) " >&6
6680 if test -n "$ac_ct_AR"; then
6681 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687 test -z "$as_dir" && as_dir=.
6688 for ac_exec_ext in '' $ac_executable_extensions; do
6689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6690 ac_cv_prog_ac_ct_AR="ar"
6691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6700 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6701 if test -n "$ac_ct_AR"; then
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6703 $as_echo "$ac_ct_AR" >&6; }
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6706 $as_echo "no" >&6; }
6709 if test "x$ac_ct_AR" = x; then
6712 case $cross_compiling:$ac_tool_warned in
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6716 ac_tool_warned=yes ;;
6724 if test -n "$ac_tool_prefix"; then
6725 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
6726 set dummy ${ac_tool_prefix}ld; ac_word=$2
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6728 $as_echo_n "checking for $ac_word... " >&6; }
6729 if test "${ac_cv_prog_LD+set}" = set; then :
6730 $as_echo_n "(cached) " >&6
6732 if test -n "$LD"; then
6733 ac_cv_prog_LD="$LD" # Let the user override the test.
6735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739 test -z "$as_dir" && as_dir=.
6740 for ac_exec_ext in '' $ac_executable_extensions; do
6741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6742 ac_cv_prog_LD="${ac_tool_prefix}ld"
6743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6753 if test -n "$LD"; then
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6755 $as_echo "$LD" >&6; }
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6758 $as_echo "no" >&6; }
6763 if test -z "$ac_cv_prog_LD"; then
6765 # Extract the first word of "ld", so it can be a program name with args.
6766 set dummy ld; ac_word=$2
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6768 $as_echo_n "checking for $ac_word... " >&6; }
6769 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
6770 $as_echo_n "(cached) " >&6
6772 if test -n "$ac_ct_LD"; then
6773 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
6775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779 test -z "$as_dir" && as_dir=.
6780 for ac_exec_ext in '' $ac_executable_extensions; do
6781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6782 ac_cv_prog_ac_ct_LD="ld"
6783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6792 ac_ct_LD=$ac_cv_prog_ac_ct_LD
6793 if test -n "$ac_ct_LD"; then
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
6795 $as_echo "$ac_ct_LD" >&6; }
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6798 $as_echo "no" >&6; }
6801 if test "x$ac_ct_LD" = x; then
6804 case $cross_compiling:$ac_tool_warned in
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6808 ac_tool_warned=yes ;;
6817 # Check whether --enable-monolithic was given.
6818 if test "${enable_monolithic+set}" = set; then :
6819 enableval=$enable_monolithic;
6822 if test ${enable_monolithic:-yes} = yes; then
6824 MONOLITHIC_FALSE='#'
6831 # Check whether --enable-amule-daemon was given.
6832 if test "${enable_amule_daemon+set}" = set; then :
6833 enableval=$enable_amule_daemon;
6836 if test ${enable_amule_daemon:-no} = yes; then
6838 AMULE_DAEMON_FALSE='#'
6840 AMULE_DAEMON_TRUE='#'
6845 # Check whether --enable-amulecmd was given.
6846 if test "${enable_amulecmd+set}" = set; then :
6847 enableval=$enable_amulecmd;
6850 if test ${enable_amulecmd:-no} = yes; then
6852 COMPILE_CMD_FALSE='#'
6854 COMPILE_CMD_TRUE='#'
6859 # Check whether --enable-webserver was given.
6860 if test "${enable_webserver+set}" = set; then :
6861 enableval=$enable_webserver;
6864 if test ${enable_webserver:-no} = yes; then
6873 # Check whether --enable-amule-gui was given.
6874 if test "${enable_amule_gui+set}" = set; then :
6875 enableval=$enable_amule_gui;
6878 if test ${enable_amule_gui:-no} = yes; then
6887 # Check whether --enable-cas was given.
6888 if test "${enable_cas+set}" = set; then :
6889 enableval=$enable_cas;
6892 if test ${enable_cas:-no} = yes; then
6901 # Check whether --enable-wxcas was given.
6902 if test "${enable_wxcas+set}" = set; then :
6903 enableval=$enable_wxcas;
6906 if test ${enable_wxcas:-no} = yes; then
6915 # Check whether --enable-ed2k was given.
6916 if test "${enable_ed2k+set}" = set; then :
6917 enableval=$enable_ed2k;
6920 if test ${enable_ed2k:-yes} = yes; then
6929 # Check whether --enable-alc was given.
6930 if test "${enable_alc+set}" = set; then :
6931 enableval=$enable_alc;
6934 if test ${enable_alc:-no} = yes; then
6943 # Check whether --enable-alcc was given.
6944 if test "${enable_alcc+set}" = set; then :
6945 enableval=$enable_alcc;
6948 if test ${enable_alcc:-no} = yes; then
6957 # Check whether --enable-xas was given.
6958 if test "${enable_xas+set}" = set; then :
6959 enableval=$enable_xas;
6962 if test ${enable_xas:-no} = yes; then
6971 # Check whether --enable-fileview was given.
6972 if test "${enable_fileview+set}" = set; then :
6973 enableval=$enable_fileview;
6976 if test ${enable_fileview:-no} = yes; then
6985 # Check whether --enable-plasmamule was given.
6986 if test "${enable_plasmamule+set}" = set; then :
6987 enableval=$enable_plasmamule;
6992 # Run all the tests with static linkage if we want a statically linked binary
6993 # Check whether --enable-static was given.
6994 if test "${enable_static+set}" = set; then :
6995 enableval=$enable_static;
6999 if test ${enable_static:-no} = yes; then :
7000 LDFLAGS="$LDFLAGS -static"
7005 # Check whether --with-kde4-config was given.
7006 if test "${with_kde4_config+set}" = set; then :
7007 withval=$with_kde4_config; KDE4_CONFIG=$withval
7012 # Check whether --enable-kde-in-home was given.
7013 if test "${enable_kde_in_home+set}" = set; then :
7014 enableval=$enable_kde_in_home; KDE_IN_HOME=$enableval
7022 # Check whether --with-moc was given.
7023 if test "${with_moc+set}" = set; then :
7024 withval=$with_moc; QT_MOC=$withval
7031 # Default is yes, because they're most likely compatible.
7032 # However, this is only used when cross-compiling.
7034 # Check whether --with-gnu-malloc was given.
7035 if test "${with_gnu_malloc+set}" = set; then :
7036 withval=$with_gnu_malloc; gnumalloc=$withval
7043 # Checking for libs before all other stuff to break
7044 # configure as soon as possible in case of a missing one
7045 # to avoid losing too much time
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7050 $as_echo_n "checking for ANSI C header files... " >&6; }
7051 if test "${ac_cv_header_stdc+set}" = set; then :
7052 $as_echo_n "(cached) " >&6
7054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7055 /* end confdefs.h. */
7069 if ac_fn_c_try_compile "$LINENO"; then :
7070 ac_cv_header_stdc=yes
7072 ac_cv_header_stdc=no
7074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7076 if test $ac_cv_header_stdc = yes; then
7077 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7079 /* end confdefs.h. */
7083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7084 $EGREP "memchr" >/dev/null 2>&1; then :
7087 ac_cv_header_stdc=no
7093 if test $ac_cv_header_stdc = yes; then
7094 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7096 /* end confdefs.h. */
7100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7101 $EGREP "free" >/dev/null 2>&1; then :
7104 ac_cv_header_stdc=no
7110 if test $ac_cv_header_stdc = yes; then
7111 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7112 if test "$cross_compiling" = yes; then :
7115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7116 /* end confdefs.h. */
7119 #if ((' ' & 0x0FF) == 0x020)
7120 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7121 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7123 # define ISLOWER(c) \
7124 (('a' <= (c) && (c) <= 'i') \
7125 || ('j' <= (c) && (c) <= 'r') \
7126 || ('s' <= (c) && (c) <= 'z'))
7127 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7130 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7135 for (i = 0; i < 256; i++)
7136 if (XOR (islower (i), ISLOWER (i))
7137 || toupper (i) != TOUPPER (i))
7142 if ac_fn_c_try_run "$LINENO"; then :
7145 ac_cv_header_stdc=no
7147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7148 conftest.$ac_objext conftest.beam conftest.$ac_ext
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7154 $as_echo "$ac_cv_header_stdc" >&6; }
7155 if test $ac_cv_header_stdc = yes; then
7157 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7161 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7162 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7163 inttypes.h stdint.h unistd.h
7165 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
7166 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7168 eval as_val=\$$as_ac_Header
7169 if test "x$as_val" = x""yes; then :
7170 cat >>confdefs.h <<_ACEOF
7171 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7179 if test ${enable_cas:-no} = yes; then :
7183 # Check whether --with-gdlib-prefix was given.
7184 if test "${with_gdlib_prefix+set}" = set; then :
7185 withval=$with_gdlib_prefix;
7189 # Check whether --with-gdlib-config was given.
7190 if test "${with_gdlib_config+set}" = set; then :
7191 withval=$with_gdlib_config;
7197 # do we have gdlib-config name: it can be gdlib-config or gd-config or ...
7198 if test x${GDLIB_CONFIG_NAME+set} != xset; then :
7199 GDLIB_CONFIG_NAME=gdlib-config
7201 if test -n "$with_gdlib_config"; then :
7202 GDLIB_CONFIG_NAME="$with_gdlib_config"
7205 # deal with optional prefix
7206 if test -n "$with_gdlib_prefix"; then :
7207 GDLIB_LOOKUP_PATH="$with_gdlib_prefix/bin"
7210 # don't search the PATH if GDLIB_CONFIG_NAME is absolute filename
7211 if test -x "$GDLIB_CONFIG_NAME"; then :
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib-config" >&5
7214 $as_echo_n "checking for gdlib-config... " >&6; }
7215 GDLIB_CONFIG_PATH="$GDLIB_CONFIG_NAME"
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG_PATH" >&5
7217 $as_echo "$GDLIB_CONFIG_PATH" >&6; }
7220 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args.
7221 set dummy $GDLIB_CONFIG_NAME; ac_word=$2
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7223 $as_echo_n "checking for $ac_word... " >&6; }
7224 if test "${ac_cv_path_GDLIB_CONFIG_PATH+set}" = set; then :
7225 $as_echo_n "(cached) " >&6
7227 case $GDLIB_CONFIG_PATH in
7229 ac_cv_path_GDLIB_CONFIG_PATH="$GDLIB_CONFIG_PATH" # Let the user override the test with a path.
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233 as_dummy="$GDLIB_LOOKUP_PATH:$PATH"
7234 for as_dir in $as_dummy
7237 test -z "$as_dir" && as_dir=.
7238 for ac_exec_ext in '' $ac_executable_extensions; do
7239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7240 ac_cv_path_GDLIB_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7248 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH="no"
7252 GDLIB_CONFIG_PATH=$ac_cv_path_GDLIB_CONFIG_PATH
7253 if test -n "$GDLIB_CONFIG_PATH"; then
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG_PATH" >&5
7255 $as_echo "$GDLIB_CONFIG_PATH" >&6; }
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7258 $as_echo "no" >&6; }
7264 if test ${GDLIB_CONFIG_PATH:-no} != no; then :
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib version >= 2.0.0" >&5
7267 $as_echo_n "checking for gdlib version >= 2.0.0... " >&6; }
7268 GDLIB_CONFIG_WITH_ARGS="$GDLIB_CONFIG_PATH $gdlib_config_args"
7270 GDLIB_VERSION=`$GDLIB_CONFIG_WITH_ARGS --version`
7271 gdlib_config_major_version=`echo $GDLIB_VERSION |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
7272 gdlib_config_minor_version=`echo $GDLIB_VERSION |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
7273 gdlib_config_micro_version=`echo $GDLIB_VERSION |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
7276 if test $gdlib_config_major_version -gt 2; then
7278 elif test $gdlib_config_major_version -eq 2; then
7280 if test $gdlib_config_minor_version -gt 0; then
7282 elif test $gdlib_config_minor_version -eq 0; then
7283 if test $gdlib_config_micro_version -ge 0; then
7293 if test -z "$gdlib_ver_ok"; then :
7295 if test -z "$GDLIB_VERSION"; then :
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7297 $as_echo "no" >&6; }
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $GDLIB_VERSION is not new enough)" >&5
7301 $as_echo "no (version $GDLIB_VERSION is not new enough)" >&6; }
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $GDLIB_VERSION)" >&5
7309 $as_echo "yes (version $GDLIB_VERSION)" >&6; }
7310 GDLIB_CFLAGS="`$GDLIB_CONFIG_WITH_ARGS --cflags`"
7311 GDLIB_LDFLAGS="`$GDLIB_CONFIG_WITH_ARGS --ldflags`"
7312 GDLIB_LIBS="`$GDLIB_CONFIG_WITH_ARGS --libs`"
7313 mule_backup_CFLAGS="$CFLAGS"
7314 CFLAGS="$CFLAGS $GDLIB_CFLAGS"
7315 ac_fn_c_check_header_mongrel "$LINENO" "gd.h" "ac_cv_header_gd_h" "$ac_includes_default"
7316 if test "x$ac_cv_header_gd_h" = x""yes; then :
7323 CFLAGS="$mule_backup_CFLAGS"
7329 if test -n "$GDLIB_VERSION"; then :
7332 GDLIB_LIBS="-lgd $GDLIB_LIBS"
7340 if test -z "$CAS_DEFS"; then :
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7342 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
7343 Please check that gdlib-config is in your default path, check out
7344 LD_LIBRARY_PATH or equivalent variable.
7345 Or this might also be that your gdlib-config has other name.
7346 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
7347 (replace /usr/bin/gdlib-config with a valid path to your
7349 If you use compiled packages check if you have devel pack installed.
7350 To download the latest version check http://www.boutell.com/gd for
7352 $as_echo "$as_me: WARNING:
7353 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
7354 Please check that gdlib-config is in your default path, check out
7355 LD_LIBRARY_PATH or equivalent variable.
7356 Or this might also be that your gdlib-config has other name.
7357 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
7358 (replace /usr/bin/gdlib-config with a valid path to your
7360 If you use compiled packages check if you have devel pack installed.
7361 To download the latest version check http://www.boutell.com/gd for
7364 _mule_has_warnings=yes
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
7371 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
7372 if test "${ac_cv_header_stdbool_h+set}" = set; then :
7373 $as_echo_n "(cached) " >&6
7375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7376 /* end confdefs.h. */
7378 #include <stdbool.h>
7380 "error: bool is not defined"
7383 "error: false is not defined"
7386 "error: false is not 0"
7389 "error: true is not defined"
7392 "error: true is not 1"
7394 #ifndef __bool_true_false_are_defined
7395 "error: __bool_true_false_are_defined is not defined"
7398 struct s { _Bool s: 1; _Bool t; } s;
7400 char a[true == 1 ? 1 : -1];
7401 char b[false == 0 ? 1 : -1];
7402 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7403 char d[(bool) 0.5 == true ? 1 : -1];
7405 char f[(_Bool) 0.0 == false ? 1 : -1];
7407 char h[sizeof (_Bool)];
7409 enum { j = false, k = true, l = false * true, m = true * 256 };
7410 /* The following fails for
7411 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
7413 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
7414 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
7415 # if defined __xlc__ || defined __GNUC__
7416 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
7417 reported by James Lemley on 2005-10-05; see
7418 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
7419 This test is not quite right, since xlc is allowed to
7420 reject this program, as the initializer for xlcbug is
7421 not one of the forms that C requires support for.
7422 However, doing the test right would require a runtime
7423 test, and that would make cross-compilation harder.
7424 Let us hope that IBM fixes the xlc bug, and also adds
7425 support for this kind of constant expression. In the
7426 meantime, this test will reject xlc, which is OK, since
7427 our stdbool.h substitute should suffice. We also test
7428 this with GCC, where it should work, to detect more
7429 quickly whether someone messes up the test in the
7431 char digs[] = "0123456789";
7432 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
7434 /* Catch a bug in an HP-UX C compiler. See
7435 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7436 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
7447 /* Refer to every declared value, to avoid compiler optimizations. */
7448 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
7449 + !m + !n + !o + !p + !q + !pq);
7455 if ac_fn_c_try_compile "$LINENO"; then :
7456 ac_cv_header_stdbool_h=yes
7458 ac_cv_header_stdbool_h=no
7460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
7463 $as_echo "$ac_cv_header_stdbool_h" >&6; }
7464 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
7465 if test "x$ac_cv_type__Bool" = x""yes; then :
7467 cat >>confdefs.h <<_ACEOF
7468 #define HAVE__BOOL 1
7474 if test $ac_cv_header_stdbool_h = yes; then
7476 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7481 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7482 if test "${ac_cv_c_const+set}" = set; then :
7483 $as_echo_n "(cached) " >&6
7485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7486 /* end confdefs.h. */
7491 /* FIXME: Include the comments suggested by Paul. */
7493 /* Ultrix mips cc rejects this. */
7494 typedef int charset[2];
7496 /* SunOS 4.1.1 cc rejects this. */
7497 char const *const *pcpcc;
7499 /* NEC SVR4.0.2 mips cc rejects this. */
7500 struct point {int x, y;};
7501 static struct point const zero = {0,0};
7502 /* AIX XL C 1.02.0.0 rejects this.
7503 It does not let you subtract one const X* pointer from another in
7504 an arm of an if-expression whose if-part is not a constant
7506 const char *g = "string";
7507 pcpcc = &g + (g ? g-g : 0);
7508 /* HPUX 7.0 cc rejects these. */
7510 ppc = (char**) pcpcc;
7511 pcpcc = (char const *const *) ppc;
7512 { /* SCO 3.2v4 cc rejects this. */
7514 char const *s = 0 ? (char *) 0 : (char const *) 0;
7519 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7521 const int *foo = &x[0];
7524 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7525 typedef const int *iptr;
7529 { /* AIX XL C 1.02.0.0 rejects this saying
7530 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7531 struct s { int j; const int *ap[3]; };
7532 struct s *b; b->j = 5;
7534 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7538 return !cs[0] && !zero.x;
7545 if ac_fn_c_try_compile "$LINENO"; then :
7550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7553 $as_echo "$ac_cv_c_const" >&6; }
7554 if test $ac_cv_c_const = no; then
7556 $as_echo "#define const /**/" >>confdefs.h
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
7561 $as_echo_n "checking for inline... " >&6; }
7562 if test "${ac_cv_c_inline+set}" = set; then :
7563 $as_echo_n "(cached) " >&6
7566 for ac_kw in inline __inline__ __inline; do
7567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7568 /* end confdefs.h. */
7571 static $ac_kw foo_t static_foo () {return 0; }
7572 $ac_kw foo_t foo () {return 0; }
7576 if ac_fn_c_try_compile "$LINENO"; then :
7577 ac_cv_c_inline=$ac_kw
7579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7580 test "$ac_cv_c_inline" != no && break
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
7585 $as_echo "$ac_cv_c_inline" >&6; }
7587 case $ac_cv_c_inline in
7590 case $ac_cv_c_inline in
7592 *) ac_val=$ac_cv_c_inline;;
7594 cat >>confdefs.h <<_ACEOF
7596 #define inline $ac_val
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
7603 $as_echo_n "checking for working volatile... " >&6; }
7604 if test "${ac_cv_c_volatile+set}" = set; then :
7605 $as_echo_n "(cached) " >&6
7607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7608 /* end confdefs.h. */
7615 int * volatile y = (int *) 0;
7621 if ac_fn_c_try_compile "$LINENO"; then :
7622 ac_cv_c_volatile=yes
7626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
7629 $as_echo "$ac_cv_c_volatile" >&6; }
7630 if test $ac_cv_c_volatile = no; then
7632 $as_echo "#define volatile /**/" >>confdefs.h
7638 ac_cpp='$CXXCPP $CPPFLAGS'
7639 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7640 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7641 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7647 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_amule_gui:-no} = yes ; then :
7650 # Check whether --with-zlib was given.
7651 if test "${with_zlib+set}" = set; then :
7656 case "${with_zlib:-yes}" in
7658 as_fn_error "zlib >= 1.1.4 is required for aMule" "$LINENO" 5
7663 zlib_prefix="$with_zlib"
7666 mule_backup_CPPFLAGS="$CPPFLAGS"
7667 mule_backup_LDFLAGS="$LDFLAGS"
7668 mule_backup_LIBS="$LIBS"
7669 if test -n "$zlib_prefix"; then :
7671 ZLIB_CPPFLAGS="-I$zlib_prefix/include"
7672 ZLIB_LDFLAGS="-L$zlib_prefix/lib"
7673 CPPFLAGS="$CPPFLAGS $ZLIB_CPPFLAGS"
7674 LDFLAGS="$LDFLAGS $ZLIB_LDFLAGS"
7683 LIBS="$ZLIB_LIBS $LIBS"
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib >= 1.1.4" >&5
7686 $as_echo_n "checking for zlib >= 1.1.4... " >&6; }
7687 if test "$cross_compiling" = yes; then :
7691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7692 /* end confdefs.h. */
7702 printf("\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n\n");
7710 if ac_fn_cxx_try_link "$LINENO"; then :
7712 ZLIB_VERSION=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest
$ac_exeext |
sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'`
7713 cross_zver_max="`echo $ZLIB_VERSION | cut
-d.
-f1`"
7714 cross_zver_mid="`echo $ZLIB_VERSION | cut
-d.
-f2`"
7715 cross_zver_min="`echo $ZLIB_VERSION | cut
-d.
-f3`"
7716 if test "$cross_zver_max" -gt "1"; then
7718 elif test "$cross_zver_max" -eq "1"; then
7720 if test "$cross_zver_mid" -gt "1"; then
7722 elif test "$cross_zver_mid" -eq "1"; then
7723 if test "$cross_zver_min" -ge "4"; then
7732 if test ${result:-no} = yes; then :
7733 z_version=" (version $ZLIB_VERSION)"
7737 rm -f core conftest.err conftest.$ac_objext \
7738 conftest$ac_exeext conftest.$ac_ext
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$z_version" >&5
7740 $as_echo "$result$z_version" >&6; }
7743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7744 /* end confdefs.h. */
7753 const char *zver = zlibVersion();
7754 FILE *f=fopen("conftestval", "w");
7761 zver[4] >= '4'))) ? "yes" : "no");
7763 f=fopen("conftestver", "w");
7765 fprintf(f, "%s", ZLIB_VERSION);
7774 if ac_fn_cxx_try_run "$LINENO"; then :
7776 if test -f conftestval; then :
7777 result=`cat conftestval
`
7781 if test ${result:-no} = yes; then :
7783 if test -f conftestver; then :
7785 ZLIB_VERSION=`cat conftestver
`
7786 z_version=" (version $ZLIB_VERSION)"
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$z_version" >&5
7794 $as_echo "$result$z_version" >&6; }
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7800 $as_echo "$result" >&6; }
7803 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7804 conftest.$ac_objext conftest.beam conftest.$ac_ext
7808 CPPFLAGS="$mule_backup_CPPFLAGS"
7809 LDFLAGS="$mule_backup_LDFLAGS"
7810 LIBS="$mule_backup_LIBS"
7812 if test ${result:-no} = no; then :
7817 as_fn_error "zlib >= 1.1.4 is required for aMule" "$LINENO" 5
7826 if test ${enable_webserver:-no} = yes; then :
7829 # Check whether --with-libpng-prefix was given.
7830 if test "${with_libpng_prefix+set}" = set; then :
7831 withval=$with_libpng_prefix;
7835 # Check whether --with-libpng-config was given.
7836 if test "${with_libpng_config+set}" = set; then :
7837 withval=$with_libpng_config;
7843 # do we have libpng-config name: it can be libpng-config or libpng12-config or ...
7844 if test x${LIBPNG_CONFIG_NAME+set} != xset; then :
7845 LIBPNG_CONFIG_NAME=libpng-config
7847 if test -n "$with_libpng_config"; then :
7848 LIBPNG_CONFIG_NAME="$with_libpng_config"
7851 # deal with optional prefix
7852 if test -n "$with_libpng_prefix"; then :
7853 LIBPNG_LOOKUP_PATH="$with_libpng_prefix/bin"
7856 # don't search the PATH if LIBPNG_CONFIG_NAME is absolute filename
7857 if test -x "$LIBPNG_CONFIG_NAME"; then :
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng-config" >&5
7860 $as_echo_n "checking for libpng-config... " >&6; }
7861 LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_NAME"
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG_PATH" >&5
7863 $as_echo "$LIBPNG_CONFIG_PATH" >&6; }
7866 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
7867 set dummy $LIBPNG_CONFIG_NAME; ac_word=$2
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7869 $as_echo_n "checking for $ac_word... " >&6; }
7870 if test "${ac_cv_path_LIBPNG_CONFIG_PATH+set}" = set; then :
7871 $as_echo_n "(cached) " >&6
7873 case $LIBPNG_CONFIG_PATH in
7875 ac_cv_path_LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
7878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7879 as_dummy="$LIBPNG_LOOKUP_PATH:$PATH"
7880 for as_dir in $as_dummy
7883 test -z "$as_dir" && as_dir=.
7884 for ac_exec_ext in '' $ac_executable_extensions; do
7885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7886 ac_cv_path_LIBPNG_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7894 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH="no"
7898 LIBPNG_CONFIG_PATH=$ac_cv_path_LIBPNG_CONFIG_PATH
7899 if test -n "$LIBPNG_CONFIG_PATH"; then
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG_PATH" >&5
7901 $as_echo "$LIBPNG_CONFIG_PATH" >&6; }
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7904 $as_echo "no" >&6; }
7910 if test ${LIBPNG_CONFIG_PATH:-no} != no; then :
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng version >= 1.2.0" >&5
7913 $as_echo_n "checking for libpng version >= 1.2.0... " >&6; }
7915 LIBPNG_CONFIG_WITH_ARGS="$LIBPNG_CONFIG_PATH $libpng_config_args"
7917 LIBPNG_VERSION=`$LIBPNG_CONFIG_WITH_ARGS --version`
7918 libpng_config_major_version=`echo $LIBPNG_VERSION |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
7919 libpng_config_minor_version=`echo $LIBPNG_VERSION |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
7920 libpng_config_micro_version=`echo $LIBPNG_VERSION |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
7923 if test $libpng_config_major_version -gt 1; then
7925 elif test $libpng_config_major_version -eq 1; then
7927 if test $libpng_config_minor_version -gt 2; then
7929 elif test $libpng_config_minor_version -eq 2; then
7930 if test $libpng_config_micro_version -ge 0; then
7940 if test -z "$libpng_ver_ok"; then :
7942 if test -z "$LIBPNG_VERSION"; then :
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7944 $as_echo "no" >&6; }
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $LIBPNG_VERSION is not new enough)" >&5
7948 $as_echo "no (version $LIBPNG_VERSION is not new enough)" >&6; }
7955 LIBPNG_LIBS=`$LIBPNG_CONFIG_WITH_ARGS --libs`
7956 LIBPNG_LDFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --ldflags |
sed -e "s/ *${LIBPNG_LIBS}$//"`
7957 LIBPNG_CFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $LIBPNG_VERSION)" >&5
7959 $as_echo "yes (version $LIBPNG_VERSION)" >&6; }
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libpng is usable" >&5
7962 $as_echo_n "checking if libpng is usable... " >&6; }
7964 SAVED_CFLAGS=$CFLAGS
7965 SAVED_LDFLAGS=$LDFLAGS
7968 CFLAGS="$CFLAGS $LIBPNG_CFLAGS"
7969 LDFLAGS="$LDFLAGS $LIBPNG_LDFLAGS"
7970 LIBS="$LIBS $LIBPNG_LIBS"
7972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7973 /* end confdefs.h. */
7983 png_uint_32 libpng_vn = png_access_version_number();
7984 printf("\nlibpng version %i\n\n", libpng_vn);
7991 if ac_fn_cxx_try_link "$LINENO"; then :
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7994 $as_echo "yes" >&6; }
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (failed to compile and link test program)" >&5
7999 $as_echo "no (failed to compile and link test program)" >&6; }
8006 rm -f core conftest.err conftest.$ac_objext \
8007 conftest$ac_exeext conftest.$ac_ext
8009 CFLAGS=$SAVED_CFLAGS
8010 LDFLAGS=$SAVED_LDFLAGS
8017 if test -n "$LIBPNG_VERSION"; then :
8018 AMULEWEB_DEFS="-DWITH_LIBPNG"
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8022 libpng >= 1.2.0 not found.
8023 amuleweb will be compiled but file download progress bar images will
8024 NOT be generated." >&5
8025 $as_echo "$as_me: WARNING:
8026 libpng >= 1.2.0 not found.
8027 amuleweb will be compiled but file download progress bar images will
8028 NOT be generated." >&2;}
8030 _mule_has_warnings=yes
8041 # Check for perl File::Copy
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for File::Copy" >&5
8043 $as_echo_n "checking for File::Copy... " >&6; }
8044 if perl -e "require File::Copy" 2>/dev/null; then :
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8046 $as_echo "ok" >&6; }
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8049 File::Copy perl module is required by the mldonkey_importer script.
8050 If you want to use this script please install File::Copy from CPAN." >&5
8051 $as_echo "$as_me: WARNING:
8052 File::Copy perl module is required by the mldonkey_importer script.
8053 If you want to use this script please install File::Copy from CPAN." >&2;}
8055 _mule_has_warnings=yes
8060 # Check for GeoIP (required for IP2Country capability)
8062 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
8064 # Check whether --enable-geoip was given.
8065 if test "${enable_geoip+set}" = set; then :
8066 enableval=$enable_geoip;
8071 if test ${enable_geoip:-no} = yes; then :
8074 # Check whether --with-geoip-headers was given.
8075 if test "${with_geoip_headers+set}" = set; then :
8076 withval=$with_geoip_headers; GEOIP_CPPFLAGS="-I$withval"
8080 # Check whether --with-geoip-lib was given.
8081 if test "${with_geoip_lib+set}" = set; then :
8082 withval=$with_geoip_lib; GEOIP_LDFLAGS="-L$withval"
8086 mule_backup_CPPFLAGS="$CPPFLAGS"
8087 CPPFLAGS="$CPPFLAGS $GEOIP_CPPFLAGS"
8088 mule_backup_LDFLAGS="$LDFLAGS"
8089 LDFLAGS="$LDFLAGS $GEOIP_LDFLAGS"
8091 ac_fn_cxx_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
8092 if test "x$ac_cv_header_GeoIP_h" = x""yes; then :
8094 if test x$SYS = xwin32; then :
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WinSock library needed by GeoIP" >&5
8097 $as_echo_n "checking for WinSock library needed by GeoIP... " >&6; }
8098 # Actually, we might not need any if GeoIP is linked as a .dll
8099 # - but that's even harder to check for
8100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8101 /* end confdefs.h. */
8105 #if (defined _WINSOCK2API_ || defined _WINSOCK2_H)
8106 I do know it's not the best approach, but at least works with MinGW stock headers.
8107 (tested with w32api-3.12)
8119 if ac_fn_cxx_try_compile "$LINENO"; then :
8121 GEOIP_WINSOCK_LIB="-lwsock32"
8125 GEOIP_WINSOCK_LIB="-lws2_32"
8128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GEOIP_WINSOCK_LIB" >&5
8130 $as_echo "$GEOIP_WINSOCK_LIB" >&6; }
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP_open in -lGeoIP" >&5
8134 $as_echo_n "checking for GeoIP_open in -lGeoIP... " >&6; }
8135 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then :
8136 $as_echo_n "(cached) " >&6
8138 ac_check_lib_save_LIBS=$LIBS
8139 LIBS="-lGeoIP ${GEOIP_WINSOCK_LIB:-} $LIBS"
8140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8141 /* end confdefs.h. */
8143 /* Override any GCC internal prototype to avoid an error.
8144 Use char because int might match the return type of a GCC
8145 builtin and then its argument prototype would still apply. */
8153 return GeoIP_open ();
8158 if ac_fn_cxx_try_link "$LINENO"; then :
8159 ac_cv_lib_GeoIP_GeoIP_open=yes
8161 ac_cv_lib_GeoIP_GeoIP_open=no
8163 rm -f core conftest.err conftest.$ac_objext \
8164 conftest$ac_exeext conftest.$ac_ext
8165 LIBS=$ac_check_lib_save_LIBS
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
8168 $as_echo "$ac_cv_lib_GeoIP_GeoIP_open" >&6; }
8169 if test "x$ac_cv_lib_GeoIP_GeoIP_open" = x""yes; then :
8172 $as_echo "#define SUPPORT_GEOIP 1" >>confdefs.h
8174 GEOIP_LIBS="-lGeoIP"
8175 if test x$SYS = xwin32; then :
8176 GEOIP_LIBS="$GEOIP_LIBS $GEOIP_WINSOCK_LIB"
8178 GEOIP_CPPFLAGS="$GEOIP_CPPFLAGS -DENABLE_IP2COUNTRY=1"
8180 # Check whether --with-geoip-static was given.
8181 if test "${with_geoip_static+set}" = set; then :
8182 withval=$with_geoip_static;
8183 if test "$withval" != "no" -a ${enable_static:-no} = no; then :
8185 mule_backup_LIBS="$LIBS"
8186 LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic $LIBS"
8187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8188 /* end confdefs.h. */
8197 GeoIP *g = GeoIP_new(GEOIP_STANDARD);
8204 if ac_fn_cxx_try_link "$LINENO"; then :
8206 GEOIP_LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic"
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8211 Cannot link GeoIP statically, because your linker ($LD) does not
8213 $as_echo "$as_me: WARNING:
8214 Cannot link GeoIP statically, because your linker ($LD) does not
8217 _mule_has_warnings=yes
8221 rm -f core conftest.err conftest.$ac_objext \
8222 conftest$ac_exeext conftest.$ac_ext
8223 LIBS="$mule_backup_LIBS"
8232 enable_geoip=disabled
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8234 GeoIP support has been disabled because the GeoIP libraries were not
8236 $as_echo "$as_me: WARNING:
8237 GeoIP support has been disabled because the GeoIP libraries were not
8240 _mule_has_warnings=yes
8248 enable_geoip=disabled
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8250 GeoIP support has been disabled because the GeoIP header files were
8252 $as_echo "$as_me: WARNING:
8253 GeoIP support has been disabled because the GeoIP header files were
8256 _mule_has_warnings=yes
8263 CPPFLAGS="$mule_backup_CPPFLAGS"
8264 LDFLAGS="$mule_backup_LDFLAGS"
8272 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_alc:-no} = yes -o ${enable_alcc:-no} = yes -o ${enable_wxcas:-no} = yes -o ${enable_fileview:-no} = yes ; then :
8275 # Check whether --with-wxdir was given.
8276 if test "${with_wxdir+set}" = set; then :
8277 withval=$with_wxdir; wx_config_name="$withval/wx-config"
8278 wx_config_args="--inplace"
8282 # Check whether --with-wx-config was given.
8283 if test "${with_wx_config+set}" = set; then :
8284 withval=$with_wx_config; wx_config_name="$withval"
8288 # Check whether --with-wx-prefix was given.
8289 if test "${with_wx_prefix+set}" = set; then :
8290 withval=$with_wx_prefix; wx_config_prefix="$withval"
8296 # Check whether --with-wx-exec-prefix was given.
8297 if test "${with_wx_exec_prefix+set}" = set; then :
8298 withval=$with_wx_exec_prefix; wx_config_exec_prefix="$withval"
8300 wx_config_exec_prefix=""
8315 # Check whether --with-toolkit was given.
8316 if test "${with_toolkit+set}" = set; then :
8317 withval=$with_toolkit;
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-toolkit option" >&5
8324 $as_echo_n "checking for the --with-toolkit option... " >&6; }
8325 if test "$withval" = "auto" ; then
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8327 $as_echo "will be automatically detected" >&6; }
8332 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a \
8333 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
8334 "$TOOLKIT" != "x11" -a "$TOOLKIT" != "mac" -a \
8335 "$TOOLKIT" != "mgl" -a "$TOOLKIT" != "dfb" -a \
8336 "$TOOLKIT" != "base" -a "$TOOLKIT" != "cocoa" -a \
8337 "$TOOLKIT" != "osx_cocoa"; then
8339 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa, osx_cocoa)
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLKIT" >&5
8344 $as_echo "$TOOLKIT" >&6; }
8351 # Check whether --with-wxshared was given.
8352 if test "${with_wxshared+set}" = set; then :
8353 withval=$with_wxshared;
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxshared option" >&5
8360 $as_echo_n "checking for the --with-wxshared option... " >&6; }
8361 if test "$withval" = "yes" ; then
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8363 $as_echo "yes" >&6; }
8366 elif test "1" = "1" -a "$withval" = "no" ; then
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8368 $as_echo "no" >&6; }
8370 elif test "$withval" = "auto" ; then
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8372 $as_echo "will be automatically detected" >&6; }
8376 Unrecognized option value (allowed values: yes, auto)
8384 # Check whether --with-wxdebug was given.
8385 if test "${with_wxdebug+set}" = set; then :
8386 withval=$with_wxdebug;
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxdebug option" >&5
8393 $as_echo_n "checking for the --with-wxdebug option... " >&6; }
8394 if test "$withval" = "yes" ; then
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8396 $as_echo "yes" >&6; }
8399 elif test "1" = "1" -a "$withval" = "no" ; then
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8401 $as_echo "no" >&6; }
8403 elif test "$withval" = "auto" ; then
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8405 $as_echo "will be automatically detected" >&6; }
8409 Unrecognized option value (allowed values: yes, auto)
8417 # Check whether --with-wxversion was given.
8418 if test "${with_wxversion+set}" = set; then :
8419 withval=$with_wxversion;
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxversion option" >&5
8426 $as_echo_n "checking for the --with-wxversion option... " >&6; }
8427 if test "$withval" = "auto" ; then
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8429 $as_echo "will be automatically detected" >&6; }
8433 wx_requested_major_version=`echo $withval | \
8434 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
8435 wx_requested_minor_version=`echo $withval | \
8436 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
8438 if test "${#wx_requested_major_version}" != "1" -o \
8439 "${#wx_requested_minor_version}" != "1" ; then
8441 Unrecognized option value (allowed values: auto, 2.8, 2.9)
8445 WX_VERSION="$wx_requested_major_version"".""$wx_requested_minor_version"
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_VERSION" >&5
8447 $as_echo "$WX_VERSION" >&6; }
8451 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8452 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
8453 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
8454 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
8455 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
8456 echo "[dbg] VERSION: $VERSION, WX_VERSION: $WX_VERSION"
8459 # Force using a static wxWidgets library if the executable is to be linked statically.
8460 if test ${enable_static:-no} = yes; then :
8463 # Force using a unicode build of the library
8464 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_fileview:-no} = yes ; then :
8469 if test "$WX_SHARED" = "1" ; then
8470 WXCONFIG_FLAGS="--static=no "
8471 elif test "$WX_SHARED" = "0" ; then
8472 WXCONFIG_FLAGS="--static=yes "
8475 if test "$WX_DEBUG" = "1" ; then
8476 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=yes "
8477 elif test "$WX_DEBUG" = "0" ; then
8478 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=no "
8481 if test "$WX_UNICODE" = "1" ; then
8482 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=yes "
8483 elif test "$WX_UNICODE" = "0" ; then
8484 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=no "
8487 if test "$TOOLKIT" != "auto" ; then
8488 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
8491 if test "$WX_VERSION" != "auto" ; then
8492 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--version=$WX_VERSION "
8495 WXCONFIG_FLAGS=${WXCONFIG_FLAGS% }
8497 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8498 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
8502 if test x${WX_CONFIG_NAME+set} != xset ; then
8503 WX_CONFIG_NAME=wx-config
8506 if test "x$wx_config_name" != x ; then
8507 WX_CONFIG_NAME="$wx_config_name"
8510 if test x$wx_config_exec_prefix != x ; then
8511 wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
8512 WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
8514 if test x$wx_config_prefix != x ; then
8515 wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
8516 WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
8518 if test "$cross_compiling" = "yes"; then
8519 wx_config_args="$wx_config_args --host=$host_alias"
8522 if test -x "$WX_CONFIG_NAME" ; then
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wx-config" >&5
8524 $as_echo_n "checking for wx-config... " >&6; }
8525 WX_CONFIG_PATH="$WX_CONFIG_NAME"
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
8527 $as_echo "$WX_CONFIG_PATH" >&6; }
8529 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
8530 set dummy $WX_CONFIG_NAME; ac_word=$2
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8532 $as_echo_n "checking for $ac_word... " >&6; }
8533 if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then :
8534 $as_echo_n "(cached) " >&6
8536 case $WX_CONFIG_PATH in
8538 ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path.
8541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8542 as_dummy=""$WX_LOOKUP_PATH:$PATH""
8543 for as_dir in $as_dummy
8546 test -z "$as_dir" && as_dir=.
8547 for ac_exec_ext in '' $ac_executable_extensions; do
8548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8549 ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
8550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8557 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no"
8561 WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH
8562 if test -n "$WX_CONFIG_PATH"; then
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
8564 $as_echo "$WX_CONFIG_PATH" >&6; }
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8567 $as_echo "no" >&6; }
8573 if test "$WX_CONFIG_PATH" != "no" ; then
8576 min_wx_version=2.8.12
8577 if test -z "$WXCONFIG_FLAGS" ; then
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version" >&5
8579 $as_echo_n "checking for wxWidgets version >= $min_wx_version... " >&6; }
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
8582 $as_echo_n "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... " >&6; }
8585 WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS "
8587 WX_VERSION_FULL=`$WX_CONFIG_WITH_ARGS --version 2>/dev
/null
`
8588 wx_config_major_version=`echo $WX_VERSION_FULL | \
8589 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8590 wx_config_minor_version=`echo $WX_VERSION_FULL | \
8591 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8592 wx_config_micro_version=`echo $WX_VERSION_FULL | \
8593 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8595 wx_requested_major_version=`echo $min_wx_version | \
8596 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8597 wx_requested_minor_version=`echo $min_wx_version | \
8598 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8599 wx_requested_micro_version=`echo $min_wx_version | \
8600 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8604 if test "x$WX_VERSION_FULL" != x ; then
8605 if test $wx_config_major_version -gt $wx_requested_major_version; then
8608 if test $wx_config_major_version -eq $wx_requested_major_version; then
8609 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
8612 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
8613 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
8623 if test -n "$wx_ver_ok"; then
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $WX_VERSION_FULL)" >&5
8626 $as_echo "yes (version $WX_VERSION_FULL)" >&6; }
8627 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs`
8629 WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
8631 WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags`
8632 WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags`
8633 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
8635 WX_CFLAGS_ONLY=`echo $WX_CFLAGS |
sed "s@^$WX_CPPFLAGS *@@"`
8636 WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS |
sed "s@^$WX_CFLAGS *@@"`
8642 if test "x$WX_VERSION_FULL" = x; then
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8644 $as_echo "no" >&6; }
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $WX_VERSION_FULL is not new enough)" >&5
8647 $as_echo "no (version $WX_VERSION_FULL is not new enough)" >&6; }
8656 if test ! -z "$WXCONFIG_FLAGS"; then
8659 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
8660 build with the following settings:
8662 but such build is not available.
8664 To see the wxWidgets builds available on this system, please use
8665 'wx-config --list' command. To use the default build, returned by
8666 'wx-config --selected-config', use the options with their 'auto'
8672 The requested wxWidgets build couldn't be found.
8675 If you still get this error, then check that 'wx-config' is
8676 in path, the directory where wxWidgets libraries are installed
8677 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
8678 or equivalent variable and wxWidgets version is 2.8.12 or above."
8680 as_fn_error "$wx_error_message" "$LINENO" 5
8704 WX_VERSION_MAJOR="$wx_config_major_version"
8705 WX_VERSION_MINOR="$wx_config_minor_version"
8709 if test "$wxWin" != 1; then :
8711 wxWidgets must be installed on your system but wx-config
8712 script couldn't be found. Please check that wx-config is
8713 in path or specified by --with-wx-config=path flag, the
8714 directory where wxWidgets libraries are installed (returned
8715 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
8716 equivalent variable and wxWidgets version is 2.8.12 or above.
8720 if test "${WX_VERSION_FULL}" = "2.9.0"; then :
8722 This version of wxWidgets is known to not work with aMule.
8723 Please upgrade to a newer version.
8728 WX_VERSION="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
8730 WX_SELECTEDCONFIG=$($WX_CONFIG_WITH_ARGS --selected_config)
8732 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8733 echo "[dbg] Using wx-config --selected-config"
8734 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
8738 if test $WX_SHARED = "1"; then
8740 elif test $WX_SHARED = "0"; then
8742 elif test $WX_SHARED = "auto"; then
8747 if test "$UNICODE" = "auto" ; then
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built with UNICODE enabled" >&5
8750 $as_echo_n "checking if wxWidgets was built with UNICODE enabled... " >&6; }
8752 WX_UNICODE=$(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
8754 if test "$WX_UNICODE" != "0"; then
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8757 $as_echo "yes" >&6; }
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8762 $as_echo "no" >&6; }
8771 if test "$DEBUG" = "auto" ; then
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built in DEBUG mode" >&5
8774 $as_echo_n "checking if wxWidgets was built in DEBUG mode... " >&6; }
8776 WX_DEBUG=$(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
8778 if test "$WX_DEBUG" != "0"; then
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8781 $as_echo "yes" >&6; }
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8786 $as_echo "no" >&6; }
8795 if test "$STATIC" = "auto" ; then
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built in STATIC mode" >&5
8798 $as_echo_n "checking if wxWidgets was built in STATIC mode... " >&6; }
8800 WX_STATIC=$(expr "$WX_SELECTEDCONFIG" : ".*static.*")
8802 if test "$WX_STATIC" != "0"; then
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8805 $as_echo "yes" >&6; }
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8810 $as_echo "no" >&6; }
8819 if test "$WX_STATIC" != "0"; then
8829 if test "$TOOLKIT" = "auto" ; then
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which wxWidgets toolkit was selected" >&5
8832 $as_echo_n "checking which wxWidgets toolkit was selected... " >&6; }
8834 WX_GTKPORT1=$(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
8835 WX_GTKPORT2=$(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
8836 WX_MSWPORT=$(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
8837 WX_MOTIFPORT=$(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
8838 WX_MACPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
8839 WX_X11PORT=$(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
8840 WX_MGLPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mgl.*")
8841 WX_DFBPORT=$(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
8842 WX_BASEPORT=$(expr "$WX_SELECTEDCONFIG" : ".*base.*")
8843 WX_COCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*cocoa.*")
8844 WX_OSXCOCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*osx_cocoa.*")
8847 if test "$WX_GTKPORT1" != "0"; then WX_PORT="gtk1"; fi
8848 if test "$WX_GTKPORT2" != "0"; then WX_PORT="gtk2"; fi
8849 if test "$WX_MSWPORT" != "0"; then WX_PORT="msw"; fi
8850 if test "$WX_MOTIFPORT" != "0"; then WX_PORT="motif"; fi
8851 if test "$WX_MACPORT" != "0"; then WX_PORT="mac"; fi
8852 if test "$WX_X11PORT" != "0"; then WX_PORT="x11"; fi
8853 if test "$WX_MGLPORT" != "0"; then WX_PORT="mgl"; fi
8854 if test "$WX_DFBPORT" != "0"; then WX_PORT="dfb"; fi
8855 if test "$WX_BASEPORT" != "0"; then WX_PORT="base"; fi
8856 if test "$WX_COCOAPORT" != "0"; then WX_PORT="cocoa"; fi
8857 if test "$WX_OSXCOCOAPORT" != "0"; then WX_PORT="osx_cocoa"; fi
8860 if test "$WX_PORT" = "unknown" ; then
8862 Cannot detect the currently installed wxWidgets port !
8863 Please check your 'wx-config --cxxflags'...
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_PORT" >&5
8868 $as_echo "$WX_PORT" >&6; }
8871 if test -n "$TOOLKIT" ; then
8880 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8881 echo "[dbg] Values of all WX_* options after final detection:"
8882 echo "[dbg] WX_DEBUG: $WX_DEBUG"
8883 echo "[dbg] WX_UNICODE: $WX_UNICODE"
8884 echo "[dbg] WX_SHARED: $WX_SHARED"
8885 echo "[dbg] WX_VERSION: $WX_VERSION"
8886 echo "[dbg] WX_PORT: $WX_PORT"
8889 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
8891 Cannot build shared library against a static build of wxWidgets !
8892 This error happens because the wxWidgets build which was selected
8893 has been detected as static while you asked to build $PACKAGE_NAME
8894 as shared library and this is not possible.
8895 Use the '--disable-shared' option to build $PACKAGE_NAME
8896 as static library or '--with-wxshared' to use wxWidgets as shared library.
8900 if test "$DEBUG" = "auto"; then
8903 if test "$DEBUG" = "1"; then
8905 elif test "$DEBUG" = ""; then
8909 if test "$UNICODE" = "auto"; then
8912 if test "$SHARED" = "auto"; then
8915 if test "$TOOLKIT" = "auto"; then
8920 # We also need wxBase
8921 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs adv
,core
,net
`
8922 WXBASE_LIBS=`$WX_CONFIG_WITH_ARGS --libs net
`
8923 WXBASE_CPPFLAGS="$WX_CPPFLAGS -DwxUSE_GUI=0"
8925 MULERCFLAGS=`$WX_CONFIG_WITH_ARGS --cflags |
$AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
8929 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_wxcas:-no} = yes -o ${enable_alc:-no} = yes ; then :
8930 if test "${WX_PORT}" = base; then :
8932 The selected components need a wxWidgets library with GUI,
8933 but your installation is base-only. Please install a GUI
8934 enabled version of wxWidgets and then retry.
8941 if test ${SYS:-unknown} = win32; then :
8942 if test -n "$ac_tool_prefix"; then
8943 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8944 set dummy ${ac_tool_prefix}windres; ac_word=$2
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8946 $as_echo_n "checking for $ac_word... " >&6; }
8947 if test "${ac_cv_prog_RC+set}" = set; then :
8948 $as_echo_n "(cached) " >&6
8950 if test -n "$RC"; then
8951 ac_cv_prog_RC="$RC" # Let the user override the test.
8953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8957 test -z "$as_dir" && as_dir=.
8958 for ac_exec_ext in '' $ac_executable_extensions; do
8959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8960 ac_cv_prog_RC="${ac_tool_prefix}windres"
8961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8971 if test -n "$RC"; then
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
8973 $as_echo "$RC" >&6; }
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8976 $as_echo "no" >&6; }
8981 if test -z "$ac_cv_prog_RC"; then
8983 # Extract the first word of "windres", so it can be a program name with args.
8984 set dummy windres; ac_word=$2
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8986 $as_echo_n "checking for $ac_word... " >&6; }
8987 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then :
8988 $as_echo_n "(cached) " >&6
8990 if test -n "$ac_ct_RC"; then
8991 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
8993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8997 test -z "$as_dir" && as_dir=.
8998 for ac_exec_ext in '' $ac_executable_extensions; do
8999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9000 ac_cv_prog_ac_ct_RC="windres"
9001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9010 ac_ct_RC=$ac_cv_prog_ac_ct_RC
9011 if test -n "$ac_ct_RC"; then
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
9013 $as_echo "$ac_ct_RC" >&6; }
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9016 $as_echo "no" >&6; }
9019 if test "x$ac_ct_RC" = x; then
9022 case $cross_compiling:$ac_tool_warned in
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9026 ac_tool_warned=yes ;;
9038 # Check whether --enable-upnp was given.
9039 if test "${enable_upnp+set}" = set; then :
9040 enableval=$enable_upnp;
9044 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
9051 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9052 if test -n "$ac_tool_prefix"; then
9053 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9054 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9056 $as_echo_n "checking for $ac_word... " >&6; }
9057 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9058 $as_echo_n "(cached) " >&6
9062 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9069 test -z "$as_dir" && as_dir=.
9070 for ac_exec_ext in '' $ac_executable_extensions; do
9071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9072 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9083 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9084 if test -n "$PKG_CONFIG"; then
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9086 $as_echo "$PKG_CONFIG" >&6; }
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9089 $as_echo "no" >&6; }
9094 if test -z "$ac_cv_path_PKG_CONFIG"; then
9095 ac_pt_PKG_CONFIG=$PKG_CONFIG
9096 # Extract the first word of "pkg-config", so it can be a program name with args.
9097 set dummy pkg-config; ac_word=$2
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9099 $as_echo_n "checking for $ac_word... " >&6; }
9100 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
9101 $as_echo_n "(cached) " >&6
9103 case $ac_pt_PKG_CONFIG in
9105 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9112 test -z "$as_dir" && as_dir=.
9113 for ac_exec_ext in '' $ac_executable_extensions; do
9114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9115 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9126 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9127 if test -n "$ac_pt_PKG_CONFIG"; then
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9129 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9132 $as_echo "no" >&6; }
9135 if test "x$ac_pt_PKG_CONFIG" = x; then
9138 case $cross_compiling:$ac_tool_warned in
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9141 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9142 ac_tool_warned=yes ;;
9144 PKG_CONFIG=$ac_pt_PKG_CONFIG
9147 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9151 if test -n "$PKG_CONFIG"; then
9152 _pkg_min_version=0.9.0
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9154 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9155 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9157 $as_echo "yes" >&6; }
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9160 $as_echo "no" >&6; }
9165 if test ${enable_upnp:-yes} = yes; then :
9169 # Check whether --with-libupnp-prefix was given.
9170 if test "${with_libupnp_prefix+set}" = set; then :
9171 withval=$with_libupnp_prefix; export PKG_CONFIG_PATH=$withval/lib/pkgconfig
9175 if test $cross_compiling = no; then :
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libupnp version >= 1.6.6" >&5
9178 $as_echo_n "checking for libupnp version >= 1.6.6... " >&6; }
9179 if test -n "$PKG_CONFIG"; then :
9181 if $PKG_CONFIG libupnp --exists; then :
9183 LIBUPNP_VERSION=`$PKG_CONFIG libupnp
--modversion`
9184 if $PKG_CONFIG libupnp --atleast-version=1.6.6; then :
9187 resultstr=" (version $LIBUPNP_VERSION)"
9188 LIBUPNP_CPPFLAGS=`$PKG_CONFIG libupnp
--cflags-only-I`
9189 LIBUPNP_CFLAGS=`$PKG_CONFIG libupnp
--cflags-only-other`
9190 LIBUPNP_LDFLAGS=`$PKG_CONFIG libupnp
--libs-only-L`
9191 LIBUPNP_LIBS=`$PKG_CONFIG libupnp
--libs-only-other`
9192 LIBUPNP_LIBS="$LIBUPNP_LIBS `$PKG_CONFIG libupnp
--libs-only-l`"
9197 resultstr=" (version $LIBUPNP_VERSION is not new enough)"
9204 resultstr=" (try to use --with-libupnp-prefix=PREFIX)"
9211 resultstr=" (pkg-config not found)"
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5
9215 $as_echo "$result$resultstr" >&6; }
9216 libupnp_error="libupnp >= 1.6.6 not found$resultstr"
9221 libupnp_error="cross compiling"
9225 if test ${result:-no} = yes; then :
9226 LIBUPNP_CPPFLAGS="$LIBUPNP_CPPFLAGS -DENABLE_UPNP=1"
9228 enable_upnp=disabled
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9230 UPnP code has been disabled because ${libupnp_error}." >&5
9231 $as_echo "$as_me: WARNING:
9232 UPnP code has been disabled because ${libupnp_error}." >&2;}
9234 _mule_has_warnings=yes
9243 # Check for Crypto++
9244 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then :
9247 # Check whether --with-crypto-prefix was given.
9248 if test "${with_crypto_prefix+set}" = set; then :
9249 withval=$with_crypto_prefix;
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto++ version >= 5.1" >&5
9254 $as_echo_n "checking for crypto++ version >= 5.1... " >&6; }
9256 cryptopp_file_with_version="cryptlib.h"
9258 CRYPTOPP_STYLE="unknown"
9259 CRYPTOPP_LIB_NAME="unknown"
9260 cryptopp_includedir="unknown"
9261 CRYPTOPP_INCLUDE_PREFIX="unknown"
9262 cryptopp_libdir="unknown"
9264 if test -n "$with_crypto_prefix"; then :
9266 CRYPTOPP_PREFIX="$with_crypto_prefix"
9267 # Find the Cryptopp header in the user-provided location
9268 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
9270 CRYPTOPP_STYLE="sources"
9271 CRYPTOPP_LIB_NAME="cryptopp"
9272 cryptopp_includedir=
9273 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
9276 elif test -f $CRYPTOPP_PREFIX/include/cryptopp/$cryptopp_file_with_version; then
9278 CRYPTOPP_STYLE="installed"
9279 CRYPTOPP_LIB_NAME="cryptopp"
9280 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
9281 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
9282 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
9284 elif test -f $CRYPTOPP_PREFIX/include/crypto++/$cryptopp_file_with_version; then
9286 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
9287 CRYPTOPP_STYLE="gentoo_debian"
9288 CRYPTOPP_LIB_NAME="crypto++"
9289 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
9290 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
9291 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
9298 for CRYPTOPP_PREFIX in /usr /usr/local /opt /opt/local /usr/pkg /mingw ; do
9299 # Find the Cryptopp header in system locations
9300 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
9302 CRYPTOPP_STYLE="sources"
9303 CRYPTOPP_LIB_NAME="cryptopp"
9304 cryptopp_includedir=
9305 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
9309 elif test -f $CRYPTOPP_PREFIX/include/cryptopp/$cryptopp_file_with_version; then
9311 CRYPTOPP_STYLE="installed"
9312 CRYPTOPP_LIB_NAME="cryptopp"
9313 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
9314 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
9315 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
9318 elif test -f $CRYPTOPP_PREFIX/include/crypto++/$cryptopp_file_with_version; then
9320 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
9321 CRYPTOPP_STYLE="gentoo_debian"
9322 CRYPTOPP_LIB_NAME="crypto++"
9323 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
9324 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
9325 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
9334 if test $CRYPTOPP_STYLE = "unknown"; then :
9335 result=no; resultstr=""
9338 # Find out the crypto++ version and check against the minimum required
9339 cryptopp_header_path="${cryptopp_includedir+$cryptopp_includedir/}$CRYPTOPP_INCLUDE_PREFIX/$cryptopp_file_with_version"
9340 CRYPTOPP_VERSION_STRING=`$EGREP "Reference Manual|API Reference" $cryptopp_header_path |
sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
9341 CRYPTOPP_VERSION_NUMBER=`echo $CRYPTOPP_VERSION_STRING |
$AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
9342 minvers=`echo 5.1 |
$AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
9344 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then :
9347 resultstr=" (version $CRYPTOPP_VERSION_STRING, $CRYPTOPP_STYLE)"
9348 if test -n "$cryptopp_includedir"; then :
9349 CRYPTOPP_CPPFLAGS="-I$cryptopp_includedir"
9353 if test -n "$cryptopp_libdir"; then :
9355 CRYPTOPP_LDFLAGS="-L$cryptopp_libdir"
9356 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME"
9361 CRYPTOPP_LIBS="${CRYPTOPP_INCLUDE_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a"
9365 cat >>confdefs.h <<_ACEOF
9366 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX
9373 resultstr=" (version $CRYPTOPP_VERSION_STRING is not new enough)"
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5
9380 $as_echo "$result$resultstr" >&6; }
9382 if test ${result:-no} = yes; then :
9384 # Check for CryptoPP >= 5.5
9385 if test $CRYPTOPP_VERSION_NUMBER -ge "5005000"; then :
9386 CRYPTOPP_CPPFLAGS="$CRYPTOPP_CPPFLAGS -D__WEAK_CRYPTO__"
9392 Could not find crypto++ header file \"$cryptopp_file_with_version\".
9393 Please try again with --with-crypto-prefix=/my_crypto_prefix
9394 (replace /my_crypto_prefix with a valid path to your crypto++
9395 installation directory)." "$LINENO" 5
9404 # Check whether --enable-debug was given.
9405 if test "${enable_debug+set}" = set; then :
9406 enableval=$enable_debug;
9410 # Check whether --enable-profile was given.
9411 if test "${enable_profile+set}" = set; then :
9412 enableval=$enable_profile;
9416 # Check whether --enable-optimize was given.
9417 if test "${enable_optimize+set}" = set; then :
9418 enableval=$enable_optimize;
9423 if test ${enable_debug:-yes} = yes; then :
9425 MULECPPFLAGS="$MULECPPFLAGS -D__DEBUG__"
9427 MULECFLAGS="$MULECFLAGS -g"
9428 MULECXXFLAGS="$MULECXXFLAGS -g"
9430 if test ${GCC:-no} = yes; then :
9432 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
9433 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
9436 if test ${SYS:-unknown} = win32; then :
9437 MULERCFLAGS="$MULERCFLAGS -D__DEBUG__"
9442 if test ${GCC:-no} = yes; then :
9444 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef"
9445 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef"
9451 if test ${enable_profile:-no} = yes; then :
9454 MULECFLAGS="$MULECFLAGS -pg"
9455 MULECXXFLAGS="$MULECXXFLAGS -pg"
9457 MULELDFLAGS="$MULELDFLAGS -pg"
9461 if test ${enable_optimize:-no} = yes; then :
9463 MULECFLAGS="$MULECFLAGS -O2"
9464 MULECXXFLAGS="$MULECXXFLAGS -O2"
9468 MULECPPFLAGS="$MULECPPFLAGS -DUSE_WX_EXTENSIONS"
9472 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_ed2k:-yes} = yes -o ${enable_alc:-no} = yes -o ${enable_alcc:-no} = yes -o ${enable_wxcas:-no} = yes -o ${enable_fileview:-no} = yes ; then :
9477 if test ${GCC:-no} = yes; then :
9479 mule_backup_CXXFLAGS="$CXXFLAGS"
9480 CXXFLAGS="$CXXFLAGS $MULECPPFLAGS $MULECFLAGS $MULECXXFLAGS -Werror"
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler ($CXX) uses strict aliasing" >&5
9483 $as_echo_n "checking whether the C++ compiler ($CXX) uses strict aliasing... " >&6; }
9484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9485 /* end confdefs.h. */
9493 short *b = (short*)&a;
9503 if ac_fn_cxx_try_compile "$LINENO"; then :
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9506 $as_echo "no" >&6; }
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9511 $as_echo "yes" >&6; }
9512 $as_echo "#define GCC_USES_STRICT_ALIASING 1" >>confdefs.h
9516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9518 CXXFLAGS="$mule_backup_CXXFLAGS"
9522 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_alc:-no} = yes -o ${enable_alcc:-no} = yes ; then :
9524 mule_backup_CPPFLAGS="$CPPFLAGS"
9525 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that wxWidgets has support for large files" >&5
9528 $as_echo_n "checking that wxWidgets has support for large files... " >&6; }
9529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9530 /* end confdefs.h. */
9534 #include <wx/filefn.h>
9535 #ifndef wxHAS_LARGE_FILES
9536 #error No LargeFile support!
9541 if ac_fn_cxx_try_cpp "$LINENO"; then :
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9544 $as_echo "yes" >&6; }
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9549 $as_echo "no" >&6; }
9551 Support for large files in wxWidgets is required by aMule.
9552 To continue you must recompile wxWidgets with support for
9553 large files enabled." "$LINENO" 5
9556 rm -f conftest.err conftest.$ac_ext
9558 CPPFLAGS="$mule_backup_CPPFLAGS"
9562 # Check if the compiler is broken, wrt. exceptions.
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception-handling" >&5
9565 $as_echo_n "checking for exception-handling... " >&6; }
9566 if test "$cross_compiling" = yes; then :
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: undeterminable" >&5
9569 $as_echo "undeterminable" >&6; }
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9571 Cross-compilation detected, so exception handling cannot be tested.
9572 Note that broken exception handling in your compiler may lead to
9573 unexpected crashes." >&5
9574 $as_echo "$as_me: WARNING:
9575 Cross-compilation detected, so exception handling cannot be tested.
9576 Note that broken exception handling in your compiler may lead to
9577 unexpected crashes." >&2;}
9579 _mule_has_warnings=yes
9583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9584 /* end confdefs.h. */
9603 if ac_fn_cxx_try_run "$LINENO"; then :
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9606 $as_echo "yes" >&6; }
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9611 $as_echo "no" >&6; }
9612 as_fn_error "Exception handling does not work. Broken compiler?" "$LINENO" 5
9615 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9616 conftest.$ac_objext conftest.beam conftest.$ac_ext
9622 for ac_header in typeinfo
9624 ac_fn_cxx_check_header_mongrel "$LINENO" "typeinfo" "ac_cv_header_typeinfo" "$ac_includes_default"
9625 if test "x$ac_cv_header_typeinfo" = x""yes; then :
9626 cat >>confdefs.h <<_ACEOF
9627 #define HAVE_TYPEINFO 1
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <cxxabi.h> and __cxa_demangle()" >&5
9635 $as_echo_n "checking for <cxxabi.h> and __cxa_demangle()... " >&6; }
9636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9637 /* end confdefs.h. */
9640 #ifdef HAVE_TYPEINFO
9641 # include <typeinfo>
9650 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
9651 std::type_info *ti = abi::__cxa_current_exception_type();
9658 if ac_fn_cxx_try_link "$LINENO"; then :
9661 $as_echo "#define HAVE_CXXABI 1" >>confdefs.h
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9664 $as_echo "yes" >&6; }
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9669 $as_echo "no" >&6; }
9672 rm -f core conftest.err conftest.$ac_objext \
9673 conftest$ac_exeext conftest.$ac_ext
9676 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes ; then :
9679 # Check whether --with-boost was given.
9680 if test "${with_boost+set}" = set; then :
9681 withval=$with_boost; with_boost=${withval:-yes}
9687 if test ${with_boost:-no} != no; then :
9689 echo "$as_me: this is boost.m4 serial 16" >&5
9691 boost_version_req=1.47
9693 set x $boost_version_req 0 0 0
9696 boost_version_req=`expr "$1" '*' 100000 + "$2" '*' 100 + "$3"`
9697 boost_version_req_string=$1.$2.$3
9698 # If BOOST_ROOT is set and the user has not provided a value to
9699 # --with-boost, then treat BOOST_ROOT as if it the user supplied it.
9700 if test x"$BOOST_ROOT" != x; then
9701 if test x"$with_boost" = x; then
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&5
9703 $as_echo "$as_me: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&6;}
9704 with_boost=$BOOST_ROOT
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&5
9707 $as_echo "$as_me: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&6;}
9710 DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS '--with-boost=$with_boost'"
9711 boost_save_CPPFLAGS=$CPPFLAGS
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost headers version >= $boost_version_req_string" >&5
9713 $as_echo_n "checking for Boost headers version >= $boost_version_req_string... " >&6; }
9714 if test "${boost_cv_inc_path+set}" = set; then :
9715 $as_echo_n "(cached) " >&6
9717 boost_cv_inc_path=no
9718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9719 /* end confdefs.h. */
9720 #include <boost/version.hpp>
9721 #if !defined BOOST_VERSION
9722 # error BOOST_VERSION is not defined
9723 #elif BOOST_VERSION < $boost_version_req
9724 # error Boost headers version < $boost_version_req
9735 # If the user provided a value to --with-boost, use it and only it.
9736 case $with_boost in #(
9737 ''|yes) set x '' /opt/local/include /usr/local/include /opt/include \
9738 /usr/include C:/Boost/include;; #(
9739 *) set x "$with_boost/include" "$with_boost";;
9744 # Without --layout=system, Boost (or at least some versions) installs
9745 # itself in <prefix>/include/boost-<version>. This inner loop helps to
9746 # find headers in such directories.
9748 # Any ${boost_dir}/boost-x_xx directories are searched in reverse version
9749 # order followed by ${boost_dir}. The final '.' is a sentinel for
9750 # searching $boost_dir" itself. Entries are whitespace separated.
9752 # I didn't indent this loop on purpose (to avoid over-indented code)
9753 boost_layout_system_search_list=`cd "$boost_dir" 2>/dev
/null \
9754 && ls -1 |
"${GREP}" '^boost-' |
sort -rn -t- -k2 \
9756 for boost_inc in $boost_layout_system_search_list
9758 if test x"$boost_inc" != x.; then
9759 boost_inc="$boost_dir/$boost_inc"
9761 boost_inc="$boost_dir" # Uses sentinel in boost_layout_system_search_list
9763 if test x"$boost_inc" != x; then
9764 # We are going to check whether the version of Boost installed
9765 # in $boost_inc is usable by running a compilation that
9766 # #includes it. But if we pass a -I/some/path in which Boost
9767 # is not installed, the compiler will just skip this -I and
9768 # use other locations (either from CPPFLAGS, or from its list
9769 # of system include directories). As a result we would use
9770 # header installed on the machine instead of the /some/path
9771 # specified by the user. So in that precise case (trying
9772 # $boost_inc), make sure the version.hpp exists.
9774 # Use test -e as there can be symlinks.
9775 test -e "$boost_inc/boost/version.hpp" || continue
9776 CPPFLAGS="$CPPFLAGS -I$boost_inc"
9778 if ac_fn_cxx_try_compile "$LINENO"; then :
9779 boost_cv_inc_path=yes
9783 rm -f core conftest.err conftest.$ac_objext
9784 if test x"$boost_cv_inc_path" = xyes; then
9785 if test x"$boost_inc" != x; then
9786 boost_cv_inc_path=$boost_inc
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_inc_path" >&5
9795 $as_echo "$boost_cv_inc_path" >&6; }
9796 case $boost_cv_inc_path in #(
9798 boost_errmsg="cannot find Boost headers version >= $boost_version_req_string"
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: $boost_errmsg" >&5
9800 $as_echo "$as_me: $boost_errmsg" >&6;}
9807 BOOST_CPPFLAGS="-I$boost_cv_inc_path"
9810 if test x"$boost_cv_inc_path" != xno; then
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost's header version" >&5
9812 $as_echo_n "checking for Boost's header version... " >&6; }
9813 if test "${boost_cv_lib_version+set}" = set; then :
9814 $as_echo_n "(cached) " >&6
9816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9817 /* end confdefs.h. */
9818 #include <boost/version.hpp>
9819 boost-lib-version = BOOST_LIB_VERSION
9821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9823 $SED -n -e "/^boost-lib-version = /{s///;s/\"//g;p;q;}" >conftest.i 2>&1; then :
9824 boost_cv_lib_version=`cat conftest.i
`
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_version" >&5
9830 $as_echo "$boost_cv_lib_version" >&6; }
9831 # e.g. "134" for 1_34_1 or "135" for 1_35
9832 boost_major_version=`echo "$boost_cv_lib_version" |
sed 's/_//;s/_.*//'`
9833 case $boost_major_version in #(
9835 as_fn_error "invalid value: boost_major_version=$boost_major_version" "$LINENO" 5
9839 CPPFLAGS=$boost_save_CPPFLAGS
9841 if test ${with_boost:-no} != disabled; then :
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the toolset name used by Boost for $CXX" >&5
9844 $as_echo_n "checking for the toolset name used by Boost for $CXX... " >&6; }
9845 if test "${boost_cv_lib_tag+set}" = set; then :
9846 $as_echo_n "(cached) " >&6
9848 boost_cv_lib_tag=unknown
9849 if test x$boost_cv_inc_path != xno; then
9850 # The following tests are mostly inspired by boost/config/auto_link.hpp
9851 # The list is sorted to most recent/common to oldest compiler (in order
9852 # to increase the likelihood of finding the right compiler with the
9853 # least number of compilation attempt).
9854 # Beware that some tests are sensible to the order (for instance, we must
9855 # look for MinGW before looking for GCC3).
9856 # I used one compilation test per compiler with a #error to recognize
9857 # each compiler so that it works even when cross-compiling (let me know
9858 # if you know a better approach).
9859 # Known missing tags (known from Boost's tools/build/v2/tools/common.jam):
9860 # como, edg, kcc, bck, mp, sw, tru, xlc
9861 # I'm not sure about my test for `il
' (be careful: Intel's ICC pre-defines
9862 # the same defines as GCC's).
9864 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC @ gcc46" \
9865 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC @ gcc45" \
9866 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc44" \
9867 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc43" \
9868 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc42" \
9869 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc41" \
9870 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc40" \
9871 "defined __GNUC__ && __GNUC__ == 3 && !defined __ICC \
9872 && (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
9873 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw" \
9874 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc34" \
9875 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc33" \
9876 "defined _MSC_VER && _MSC_VER >= 1500 @ vc90" \
9877 "defined _MSC_VER && _MSC_VER == 1400 @ vc80" \
9878 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc32" \
9879 "defined _MSC_VER && _MSC_VER == 1310 @ vc71" \
9880 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc31" \
9881 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc30" \
9882 "defined __BORLANDC__ @ bcb" \
9883 "defined __ICC && (defined __unix || defined ) @ il" \
9884 "defined __ICL @ iw" \
9885 "defined _MSC_VER && _MSC_VER == 1300 @ vc7" \
9886 "defined __GNUC__ && __GNUC__ == 2 && __GNUC_MINOR__ == 95 && !defined __ICC @ gcc295" \
9887 "defined __MWERKS__ && __MWERKS__ <= 0x32FF @ cw9" \
9888 "defined _MSC_VER && _MSC_VER < 1300 && !defined UNDER_CE @ vc6" \
9889 "defined _MSC_VER && _MSC_VER < 1300 && defined UNDER_CE @ evc4" \
9890 "defined __MWERKS__ && __MWERKS__ <= 0x31FF @ cw8"
9892 boost_tag_test
=`expr "X$i" : 'X\([^@]*\) @ '`
9893 boost_tag
=`expr "X$i" : 'X[^@]* @ \(.*\)'`
9894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9895 /* end confdefs.h. */
9900 # error $boost_tag_test
9911 if ac_fn_cxx_try_compile
"$LINENO"; then :
9912 boost_cv_lib_tag
=$boost_tag; break
9914 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9916 case $boost_cv_lib_tag in #(
9917 # Some newer (>= 1.35?) versions of Boost seem to only use "gcc" as opposed
9918 # to "gcc41" for instance.
9919 *-gcc |
*'-gcc ') :;; #( Don't re-add -gcc: it's already in there.
9924 if test $boost_major_version -ge 136; then
9925 # The `x' added in r46793 of Boost.
9929 # We can specify multiple tags in this variable because it's used by
9930 # BOOST_FIND_LIB that does a `for tag in -$boost_cv_lib_tag' ...
9931 boost_cv_lib_tag
="$boost_tag_x$boost_cv_lib_tag -${boost_tag_x}gcc"
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not figure out which toolset name to use for $CXX" >&5
9935 $as_echo "$as_me: WARNING: could not figure out which toolset name to use for $CXX" >&2;}
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_tag" >&5
9942 $as_echo "$boost_cv_lib_tag" >&6; }
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost sources" >&5
9944 $as_echo_n "checking for Boost sources... " >&6; }
9945 mule_backup_CPPFLAGS
="$CPPFLAGS"
9946 CPPFLAGS
="$CPPFLAGS $BOOST_CPPFLAGS"
9947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9948 /* end confdefs.h. */
9950 #include <boost/../libs/system/src/error_code.cpp>
9960 if ac_fn_cxx_try_compile
"$LINENO"; then :
9963 $as_echo "#define HAVE_BOOST_SOURCES 1" >>confdefs.h
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9966 $as_echo "yes" >&6; }
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9971 $as_echo "no" >&6; }
9972 if test x
"$boost_cv_inc_path" = xno
; then
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost system library" >&5
9974 $as_echo "$as_me: Boost not available, not searching for the Boost system library" >&6;}
9976 if test x
"$boost_cv_inc_path" = xno
; then
9979 boost_save_CPPFLAGS
=$CPPFLAGS
9980 CPPFLAGS
="$CPPFLAGS $BOOST_CPPFLAGS"
9981 ac_fn_cxx_check_header_mongrel
"$LINENO" "boost/system/error_code.hpp" "ac_cv_header_boost_system_error_code_hpp" "$ac_includes_default"
9982 if test "x$ac_cv_header_boost_system_error_code_hpp" = x
""yes; then :
9989 CPPFLAGS
=$boost_save_CPPFLAGS
9992 boost_save_CPPFLAGS
=$CPPFLAGS
9993 CPPFLAGS
="$CPPFLAGS $BOOST_CPPFLAGS"
9994 # Now let's try to find the library. The algorithm is as follows: first look
9995 # for a given library name according to the user's PREFERRED-RT-OPT. For each
9996 # library name, we prefer to use the ones that carry the tag (toolset name).
9997 # Each library is searched through the various standard paths were Boost is
9998 # usually installed. If we can't find the standard variants, we try to
9999 # enforce -mt (for instance on MacOSX, libboost_threads.dylib doesn't exist
10000 # but there's -obviously- libboost_threads-mt.dylib).
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost system library" >&5
10002 $as_echo_n "checking for the Boost system library... " >&6; }
10003 if test "${boost_cv_lib_system+set}" = set; then :
10004 $as_echo_n "(cached) " >&6
10006 boost_cv_lib_system
=no
10009 boost_save_ac_objext
=$ac_objext
10010 # Generate the test file.
10011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10012 /* end confdefs.h. */
10013 #include <boost/system/error_code.hpp>
10018 boost::system::error_code e; e.clear();
10023 if ac_fn_cxx_try_compile
"$LINENO"; then :
10024 ac_objext
=do_not_rm_me_plz
10026 as_fn_error
"cannot compile a test that uses Boost system" "$LINENO" 5
10028 rm -f core conftest.err conftest.
$ac_objext
10029 ac_objext
=$boost_save_ac_objext
10031 # Don't bother to ident the 6 nested for loops, only the 2 innermost ones
10033 for boost_tag_
in -$boost_cv_lib_tag ''; do
10034 for boost_ver_
in -$boost_cv_lib_version ''; do
10035 for boost_mt_
in $boost_mt -mt ''; do
10036 for boost_rtopt_
in $boost_rtopt '' -d; do
10038 boost_system
$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
10039 boost_system
$boost_tag_$boost_rtopt_$boost_ver_ \
10040 boost_system
$boost_tag_$boost_mt_$boost_ver_ \
10041 boost_system
$boost_tag_$boost_ver_
10043 # Avoid testing twice the same lib
10044 case $boost_failed_libs in #(
10045 *@
$boost_lib@
*) continue;;
10047 # If with_boost is empty, we'll search in /lib first, which is not quite
10048 # right so instead we'll try to a location based on where the headers are.
10049 boost_tmp_lib
=$with_boost
10050 test x
"$with_boost" = x
&& boost_tmp_lib
=${boost_cv_inc_path%/include}
10051 for boost_ldpath
in "$boost_tmp_lib/lib" '' \
10052 /opt
/local
/lib
* /usr
/local
/lib
* /opt
/lib
* /usr
/lib
* \
10053 "$with_boost" C
:/Boost
/lib
/lib
*
10055 test -e "$boost_ldpath" ||
continue
10056 boost_save_LDFLAGS
=$LDFLAGS
10057 boost_cv_lib_system_LIBS
="-l$boost_lib"
10058 boost_save_LIBS
=$LIBS
10059 LIBS
="$boost_cv_lib_system_LIBS $LIBS"
10060 test x
"$boost_ldpath" != x
&& LDFLAGS
="$LDFLAGS -L$boost_ldpath"
10061 rm -f conftest
$ac_exeext
10062 boost_save_ac_ext
=$ac_ext
10064 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
10065 # tries to link the existing object file instead of compiling from source.
10066 test -f conftest.
$ac_objext && ac_ext
=$ac_objext && boost_use_source
=false
&&
10067 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
10068 if { { ac_try
="$ac_link"
10069 case "(($ac_try" in
10070 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10071 *) ac_try_echo=$ac_try;;
10073 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10074 $as_echo "$ac_try_echo"; } >&5
10075 (eval "$ac_link") 2>conftest.err
10077 if test -s conftest.err; then
10078 grep -v '^ *+' conftest.err >conftest.er1
10079 cat conftest.er1 >&5
10080 mv -f conftest.er1 conftest.err
10082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10083 test $ac_status = 0; } && {
10084 test -z "$ac_cxx_werror_flag" ||
10085 test ! -s conftest.err
10086 } && test -s conftest$ac_exeext && {
10087 test "$cross_compiling" = yes ||
10088 $as_executable_p conftest$ac_exeext
10090 boost_cv_lib_system=yes
10092 if $boost_use_source; then
10093 $as_echo "$as_me: failed program was:" >&5
10094 sed 's/^/| /' conftest.$ac_ext >&5
10097 boost_cv_lib_system=no
10099 ac_objext=$boost_save_ac_objext
10100 ac_ext=$boost_save_ac_ext
10101 rm -f core conftest.err conftest_ipa8_conftest.oo \
10103 ac_objext=$boost_save_ac_objext
10104 LDFLAGS=$boost_save_LDFLAGS
10105 LIBS=$boost_save_LIBS
10106 if test x"$boost_cv_lib_system" = xyes; then
10107 boost_cv_lib_system_LDFLAGS="-L$boost_ldpath -Wl,-R$boost_ldpath"
10108 boost_cv_lib_system_LDPATH="$boost_ldpath"
10111 boost_failed_libs="$boost_failed_libs@$boost_lib@"
10112 boost_cv_lib_system_LDFLAGS=
10113 boost_cv_lib_system_LDPATH=
10114 boost_cv_lib_system_LIBS=
10122 rm -f conftest.$ac_objext
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_system" >&5
10126 $as_echo "$boost_cv_lib_system" >&6; }
10127 BOOST_SYSTEM_LDFLAGS=$boost_cv_lib_system_LDFLAGS
10128 BOOST_SYSTEM_LDPATH=$boost_cv_lib_system_LDPATH
10129 BOOST_LDPATH=$boost_cv_lib_system_LDPATH
10130 BOOST_SYSTEM_LIBS=$boost_cv_lib_system_LIBS
10131 CPPFLAGS=$boost_save_CPPFLAGS
10136 if test ${boost_cv_lib_system:-no} != yes; then :
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10139 Boost support has been disabled because Boost.System not found" >&5
10140 $as_echo "$as_me: WARNING:
10141 Boost support has been disabled because Boost.System not found" >&2;}
10142 _mule_warning_8=yes
10143 _mule_has_warnings=yes
10145 with_boost=disabled
10150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10151 CPPFLAGS="$mule_backup_CPPFLAGS"
10152 if test x"$boost_cv_inc_path" = xno; then
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10155 Boost support has been disabled because Boost.Asio not found" >&5
10156 $as_echo "$as_me: WARNING:
10157 Boost support has been disabled because Boost.Asio not found" >&2;}
10158 _mule_warning_9=yes
10159 _mule_has_warnings=yes
10161 with_boost=disabled
10164 boost_save_CPPFLAGS=$CPPFLAGS
10165 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
10166 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/asio.hpp" "ac_cv_header_boost_asio_hpp" "$ac_includes_default"
10167 if test "x$ac_cv_header_boost_asio_hpp" = x""yes; then :
10169 $as_echo "#define ASIO_SOCKETS 1" >>confdefs.h
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10174 Boost support has been disabled because Boost.Asio not found" >&5
10175 $as_echo "$as_me: WARNING:
10176 Boost support has been disabled because Boost.Asio not found" >&2;}
10177 _mule_warning_10=yes
10178 _mule_has_warnings=yes
10180 with_boost=disabled
10185 CPPFLAGS=$boost_save_CPPFLAGS
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10191 Boost support has been disabled because of insufficient Boost version." >&5
10192 $as_echo "$as_me: WARNING:
10193 Boost support has been disabled because of insufficient Boost version." >&2;}
10194 _mule_warning_11=yes
10195 _mule_has_warnings=yes
10205 # Ok, we have all needed libs, now checking for other stuff
10206 if test "$LEX" = "flex"; then :
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended flex capabilities" >&5
10209 $as_echo_n "checking for extended flex capabilities... " >&6; }
10211 extended_flex=`flex
--help |
grep header-file
`
10212 if test -n "$extended_flex"; then :
10213 HAVE_FLEX_EXTENDED=yes
10215 HAVE_FLEX_EXTENDED=no
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_FLEX_EXTENDED" >&5
10218 $as_echo "$HAVE_FLEX_EXTENDED" >&6; }
10220 if test $HAVE_FLEX_EXTENDED = no; then :
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&5
10222 $as_echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&6;}
10226 HAVE_FLEX_EXTENDED=no
10230 # Checks for header files.
10231 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10232 # for constant arguments. Useless!
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10234 $as_echo_n "checking for working alloca.h... " >&6; }
10235 if test "${ac_cv_working_alloca_h+set}" = set; then :
10236 $as_echo_n "(cached) " >&6
10238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10239 /* end confdefs.h. */
10240 #include <alloca.h>
10244 char *p = (char *) alloca (2 * sizeof (int));
10250 if ac_fn_cxx_try_link "$LINENO"; then :
10251 ac_cv_working_alloca_h=yes
10253 ac_cv_working_alloca_h=no
10255 rm -f core conftest.err conftest.$ac_objext \
10256 conftest$ac_exeext conftest.$ac_ext
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10259 $as_echo "$ac_cv_working_alloca_h" >&6; }
10260 if test $ac_cv_working_alloca_h = yes; then
10262 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10267 $as_echo_n "checking for alloca... " >&6; }
10268 if test "${ac_cv_func_alloca_works+set}" = set; then :
10269 $as_echo_n "(cached) " >&6
10271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10272 /* end confdefs.h. */
10274 # define alloca __builtin_alloca
10277 # include <malloc.h>
10278 # define alloca _alloca
10280 # ifdef HAVE_ALLOCA_H
10281 # include <alloca.h>
10286 # ifndef alloca /* predefined by HP cc +Olibcalls */
10297 char *p = (char *) alloca (1);
10303 if ac_fn_cxx_try_link "$LINENO"; then :
10304 ac_cv_func_alloca_works=yes
10306 ac_cv_func_alloca_works=no
10308 rm -f core conftest.err conftest.$ac_objext \
10309 conftest$ac_exeext conftest.$ac_ext
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10312 $as_echo "$ac_cv_func_alloca_works" >&6; }
10314 if test $ac_cv_func_alloca_works = yes; then
10316 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10319 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10320 # that cause trouble. Some versions do not even contain alloca or
10321 # contain a buggy version. If you still want to use their alloca,
10322 # use ar to extract alloca.o from them instead of compiling alloca.c.
10324 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
10326 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c
' needs Cray hooks" >&5
10330 $as_echo_n "checking whether \`alloca.c' needs Cray hooks...
" >&6; }
10331 if test "${ac_cv_os_cray+set}" = set; then :
10332 $as_echo_n "(cached
) " >&6
10334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10335 /* end confdefs.h. */
10336 #if defined CRAY && ! defined CRAY2
10343 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10344 $EGREP "webecray
" >/dev/null 2>&1; then :
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_os_cray" >&5
10353 $as_echo "$ac_cv_os_cray" >&6; }
10354 if test $ac_cv_os_cray = yes; then
10355 for ac_func in _getb67 GETB67 getb67; do
10356 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
10357 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10358 eval as_val=\$$as_ac_var
10359 if test "x
$as_val" = x""yes; then :
10361 cat >>confdefs.h <<_ACEOF
10362 #define CRAY_STACKSEG_END $ac_func
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction
for C alloca
" >&5
10372 $as_echo_n "checking stack direction
for C alloca...
" >&6; }
10373 if test "${ac_cv_c_stack_direction+set}" = set; then :
10374 $as_echo_n "(cached
) " >&6
10376 if test "$cross_compiling" = yes; then :
10377 ac_cv_c_stack_direction=0
10379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10380 /* end confdefs.h. */
10381 $ac_includes_default
10383 find_stack_direction ()
10385 static char *addr = 0;
10390 return find_stack_direction ();
10393 return (&dummy > addr) ? 1 : -1;
10399 return find_stack_direction () < 0;
10402 if ac_fn_cxx_try_run "$LINENO"; then :
10403 ac_cv_c_stack_direction=1
10405 ac_cv_c_stack_direction=-1
10407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10408 conftest.$ac_objext conftest.beam conftest.$ac_ext
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_stack_direction" >&5
10413 $as_echo "$ac_cv_c_stack_direction" >&6; }
10414 cat >>confdefs.h <<_ACEOF
10415 #define STACK_DIRECTION $ac_cv_c_stack_direction
10421 ac_header_dirent=no
10422 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10423 as_ac_Header=`$as_echo "ac_cv_header_dirent_
$ac_hdr" | $as_tr_sh`
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_hdr that defines DIR
" >&5
10425 $as_echo_n "checking
for $ac_hdr that defines DIR...
" >&6; }
10426 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then :
10427 $as_echo_n "(cached
) " >&6
10429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10430 /* end confdefs.h. */
10431 #include <sys/types.h>
10443 if ac_fn_cxx_try_compile "$LINENO"; then :
10444 eval "$as_ac_Header=yes"
10446 eval "$as_ac_Header=no
"
10448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10450 eval ac_res=\$$as_ac_Header
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
10452 $as_echo "$ac_res" >&6; }
10453 eval as_val=\$$as_ac_Header
10454 if test "x
$as_val" = x""yes; then :
10455 cat >>confdefs.h <<_ACEOF
10456 #define `$as_echo "HAVE_
$ac_hdr" | $as_tr_cpp` 1
10459 ac_header_dirent=$ac_hdr; break
10463 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10464 if test $ac_header_dirent = dirent.h; then
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for library containing opendir
" >&5
10466 $as_echo_n "checking
for library containing opendir...
" >&6; }
10467 if test "${ac_cv_search_opendir+set}" = set; then :
10468 $as_echo_n "(cached
) " >&6
10470 ac_func_search_save_LIBS=$LIBS
10471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10472 /* end confdefs.h. */
10474 /* Override any GCC internal prototype to avoid an error.
10475 Use char because int might match the return type of a GCC
10476 builtin and then its argument prototype would still apply. */
10489 for ac_lib in '' dir; do
10490 if test -z "$ac_lib"; then
10491 ac_res="none required
"
10494 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10496 if ac_fn_cxx_try_link "$LINENO"; then :
10497 ac_cv_search_opendir=$ac_res
10499 rm -f core conftest.err conftest.$ac_objext \
10501 if test "${ac_cv_search_opendir+set}" = set; then :
10505 if test "${ac_cv_search_opendir+set}" = set; then :
10508 ac_cv_search_opendir=no
10510 rm conftest.$ac_ext
10511 LIBS=$ac_func_search_save_LIBS
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_search_opendir" >&5
10514 $as_echo "$ac_cv_search_opendir" >&6; }
10515 ac_res=$ac_cv_search_opendir
10516 if test "$ac_res" != no; then :
10517 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for library containing opendir
" >&5
10523 $as_echo_n "checking
for library containing opendir...
" >&6; }
10524 if test "${ac_cv_search_opendir+set}" = set; then :
10525 $as_echo_n "(cached
) " >&6
10527 ac_func_search_save_LIBS=$LIBS
10528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10529 /* end confdefs.h. */
10531 /* Override any GCC internal prototype to avoid an error.
10532 Use char because int might match the return type of a GCC
10533 builtin and then its argument prototype would still apply. */
10546 for ac_lib in '' x; do
10547 if test -z "$ac_lib"; then
10548 ac_res="none required
"
10551 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10553 if ac_fn_cxx_try_link "$LINENO"; then :
10554 ac_cv_search_opendir=$ac_res
10556 rm -f core conftest.err conftest.$ac_objext \
10558 if test "${ac_cv_search_opendir+set}" = set; then :
10562 if test "${ac_cv_search_opendir+set}" = set; then :
10565 ac_cv_search_opendir=no
10567 rm conftest.$ac_ext
10568 LIBS=$ac_func_search_save_LIBS
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_search_opendir" >&5
10571 $as_echo "$ac_cv_search_opendir" >&6; }
10572 ac_res=$ac_cv_search_opendir
10573 if test "$ac_res" != no; then :
10574 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
10581 $as_echo_n "checking
for ANSI C header files...
" >&6; }
10582 if test "${ac_cv_header_stdc+set}" = set; then :
10583 $as_echo_n "(cached
) " >&6
10585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10586 /* end confdefs.h. */
10587 #include <stdlib.h>
10588 #include <stdarg.h>
10589 #include <string.h>
10600 if ac_fn_cxx_try_compile "$LINENO"; then :
10601 ac_cv_header_stdc=yes
10603 ac_cv_header_stdc=no
10605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10607 if test $ac_cv_header_stdc = yes; then
10608 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10610 /* end confdefs.h. */
10611 #include <string.h>
10614 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10615 $EGREP "memchr
" >/dev/null 2>&1; then :
10618 ac_cv_header_stdc=no
10624 if test $ac_cv_header_stdc = yes; then
10625 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10627 /* end confdefs.h. */
10628 #include <stdlib.h>
10631 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10632 $EGREP "free
" >/dev/null 2>&1; then :
10635 ac_cv_header_stdc=no
10641 if test $ac_cv_header_stdc = yes; then
10642 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10643 if test "$cross_compiling" = yes; then :
10646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10647 /* end confdefs.h. */
10649 #include <stdlib.h>
10650 #if ((' ' & 0x0FF) == 0x020)
10651 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10652 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10654 # define ISLOWER(c) \
10655 (('a' <= (c) && (c) <= 'i') \
10656 || ('j' <= (c) && (c) <= 'r') \
10657 || ('s' <= (c) && (c) <= 'z'))
10658 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10661 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10666 for (i = 0; i < 256; i++)
10667 if (XOR (islower (i), ISLOWER (i))
10668 || toupper (i) != TOUPPER (i))
10673 if ac_fn_cxx_try_run "$LINENO"; then :
10676 ac_cv_header_stdc=no
10678 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10679 conftest.$ac_objext conftest.beam conftest.$ac_ext
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
10685 $as_echo "$ac_cv_header_stdc" >&6; }
10686 if test $ac_cv_header_stdc = yes; then
10688 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10692 for ac_header
in argz.h arpa
/inet.h errno.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 signal.h stdint.h stdio_ext.h stdlib.h string.h
strings.h sys
/ioctl.h sys
/mntent.h sys
/mnttab.h sys
/mount.h sys
/param.h sys
/resource.h sys
/select.h sys
/socket.h sys
/statvfs.h sys
/time.h sys
/timeb.h sys
/types.h unistd.h
10694 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10695 ac_fn_cxx_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10696 eval as_val
=\$
$as_ac_Header
10697 if test "x$as_val" = x
""yes; then :
10698 cat >>confdefs.h
<<_ACEOF
10699 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
10707 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
10708 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
10709 $as_echo_n "(cached) " >&6
10711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10712 /* end confdefs.h. */
10713 #include <sys/types.h>
10714 #include <sys/wait.h>
10715 #ifndef WEXITSTATUS
10716 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
10719 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10727 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10732 if ac_fn_cxx_try_compile
"$LINENO"; then :
10733 ac_cv_header_sys_wait_h
=yes
10735 ac_cv_header_sys_wait_h
=no
10737 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
10740 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
10741 if test $ac_cv_header_sys_wait_h = yes; then
10743 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
10749 # Checks for typedefs, structures, and compiler characteristics.
10750 ac_fn_cxx_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
10751 if test "x$ac_cv_type_mode_t" = x
""yes; then :
10755 cat >>confdefs.h
<<_ACEOF
10761 ac_fn_cxx_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
10762 if test "x$ac_cv_type_off_t" = x
""yes; then :
10766 cat >>confdefs.h
<<_ACEOF
10767 #define off_t long int
10772 ac_fn_cxx_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
10773 if test "x$ac_cv_type_size_t" = x
""yes; then :
10777 cat >>confdefs.h
<<_ACEOF
10778 #define size_t unsigned int
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
10784 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
10785 if test "${ac_cv_header_time+set}" = set; then :
10786 $as_echo_n "(cached) " >&6
10788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10789 /* end confdefs.h. */
10790 #include <sys/types.h>
10791 #include <sys/time.h>
10797 if ((struct tm *) 0)
10803 if ac_fn_cxx_try_compile
"$LINENO"; then :
10804 ac_cv_header_time
=yes
10806 ac_cv_header_time
=no
10808 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
10811 $as_echo "$ac_cv_header_time" >&6; }
10812 if test $ac_cv_header_time = yes; then
10814 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
10819 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
10820 if test "${ac_cv_struct_tm+set}" = set; then :
10821 $as_echo_n "(cached) " >&6
10823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10824 /* end confdefs.h. */
10825 #include <sys/types.h>
10832 int *p = &tm.tm_sec;
10838 if ac_fn_cxx_try_compile
"$LINENO"; then :
10839 ac_cv_struct_tm
=time.h
10841 ac_cv_struct_tm
=sys
/time.h
10843 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
10846 $as_echo "$ac_cv_struct_tm" >&6; }
10847 if test $ac_cv_struct_tm = sys
/time.h
; then
10849 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
10854 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
10855 if test "${ac_cv_type_uid_t+set}" = set; then :
10856 $as_echo_n "(cached) " >&6
10858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10859 /* end confdefs.h. */
10860 #include <sys/types.h>
10863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10864 $EGREP "uid_t" >/dev
/null
2>&1; then :
10865 ac_cv_type_uid_t
=yes
10867 ac_cv_type_uid_t
=no
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
10873 $as_echo "$ac_cv_type_uid_t" >&6; }
10874 if test $ac_cv_type_uid_t = no
; then
10876 $as_echo "#define uid_t int" >>confdefs.h
10879 $as_echo "#define gid_t int" >>confdefs.h
10883 ac_fn_cxx_check_type
"$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10884 if test "x$ac_cv_type_ptrdiff_t" = x
""yes; then :
10886 cat >>confdefs.h
<<_ACEOF
10887 #define HAVE_PTRDIFF_T 1
10895 # Checks for library functions.
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
10897 $as_echo_n "checking whether closedir returns void... " >&6; }
10898 if test "${ac_cv_func_closedir_void+set}" = set; then :
10899 $as_echo_n "(cached) " >&6
10901 if test "$cross_compiling" = yes; then :
10902 ac_cv_func_closedir_void
=yes
10904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10905 /* end confdefs.h. */
10906 $ac_includes_default
10907 #include <$ac_header_dirent>
10908 #ifndef __cplusplus
10915 return closedir (opendir (".")) != 0;
10920 if ac_fn_cxx_try_run
"$LINENO"; then :
10921 ac_cv_func_closedir_void
=no
10923 ac_cv_func_closedir_void
=yes
10925 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10926 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
10931 $as_echo "$ac_cv_func_closedir_void" >&6; }
10932 if test $ac_cv_func_closedir_void = yes; then
10934 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
10938 if test $ac_cv_c_compiler_gnu = yes; then
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
10940 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
10941 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
10942 $as_echo_n "(cached) " >&6
10944 ac_pattern
="Autoconf.*'x'"
10945 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10946 /* end confdefs.h. */
10950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10951 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
10952 ac_cv_prog_gcc_traditional
=yes
10954 ac_cv_prog_gcc_traditional
=no
10959 if test $ac_cv_prog_gcc_traditional = no
; then
10960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10961 /* end confdefs.h. */
10962 #include <termio.h>
10965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10966 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
10967 ac_cv_prog_gcc_traditional
=yes
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
10974 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
10975 if test $ac_cv_prog_gcc_traditional = yes; then
10976 CC
="$CC -traditional"
10980 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10981 if test "x$ac_cv_type_pid_t" = x
""yes; then :
10985 cat >>confdefs.h
<<_ACEOF
10991 for ac_header
in vfork.h
10993 ac_fn_cxx_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
10994 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
10995 cat >>confdefs.h
<<_ACEOF
10996 #define HAVE_VFORK_H 1
11003 for ac_func
in fork vfork
11005 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11006 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11007 eval as_val
=\$
$as_ac_var
11008 if test "x$as_val" = x
""yes; then :
11009 cat >>confdefs.h
<<_ACEOF
11010 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11016 if test "x$ac_cv_func_fork" = xyes
; then
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11018 $as_echo_n "checking for working fork... " >&6; }
11019 if test "${ac_cv_func_fork_works+set}" = set; then :
11020 $as_echo_n "(cached) " >&6
11022 if test "$cross_compiling" = yes; then :
11023 ac_cv_func_fork_works
=cross
11025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11026 /* end confdefs.h. */
11027 $ac_includes_default
11032 /* By Ruediger Kuhlmann. */
11033 return fork () < 0;
11039 if ac_fn_cxx_try_run
"$LINENO"; then :
11040 ac_cv_func_fork_works
=yes
11042 ac_cv_func_fork_works
=no
11044 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11045 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11050 $as_echo "$ac_cv_func_fork_works" >&6; }
11053 ac_cv_func_fork_works
=$ac_cv_func_fork
11055 if test "x$ac_cv_func_fork_works" = xcross
; then
11057 *-*-amigaos* |
*-*-msdosdjgpp*)
11058 # Override, as these systems have only a dummy fork() stub
11059 ac_cv_func_fork_works
=no
11062 ac_cv_func_fork_works
=yes
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11066 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11068 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11069 if test "x$ac_cv_func_vfork" = xyes
; then
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11071 $as_echo_n "checking for working vfork... " >&6; }
11072 if test "${ac_cv_func_vfork_works+set}" = set; then :
11073 $as_echo_n "(cached) " >&6
11075 if test "$cross_compiling" = yes; then :
11076 ac_cv_func_vfork_works
=cross
11078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11079 /* end confdefs.h. */
11080 /* Thanks to Paul Eggert for this test. */
11081 $ac_includes_default
11082 #include <sys/wait.h>
11083 #ifdef HAVE_VFORK_H
11084 # include <vfork.h>
11086 /* On some sparc systems, changes by the child to local and incoming
11087 argument registers are propagated back to the parent. The compiler
11088 is told about this with #include <vfork.h>, but some compilers
11089 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11090 static variable whose address is put into a register that is
11091 clobbered by the vfork. */
11094 sparc_address_test (int arg)
11096 sparc_address_test (arg) int arg;
11099 static pid_t child;
11117 pid_t parent = getpid ();
11120 sparc_address_test (0);
11125 /* Here is another test for sparc vfork register problems. This
11126 test uses lots of local variables, at least as many local
11127 variables as main has allocated so far including compiler
11128 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11129 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11130 reuse the register of parent for one of the local variables,
11131 since it will think that parent can't possibly be used any more
11132 in this routine. Assigning to the local variable will thus
11133 munge parent in the parent process. */
11135 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11136 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11137 /* Convince the compiler that p..p7 are live; otherwise, it might
11138 use the same hardware register for all 8 local variables. */
11139 if (p != p1 || p != p2 || p != p3 || p != p4
11140 || p != p5 || p != p6 || p != p7)
11143 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11144 from child file descriptors. If the child closes a descriptor
11145 before it execs or exits, this munges the parent's descriptor
11146 as well. Test for this by closing stdout in the child. */
11147 _exit(close(fileno(stdout)) != 0);
11152 while (wait(&status) != child)
11155 /* Was there some problem with vforking? */
11158 /* Did the child fail? (This shouldn't happen.) */
11161 /* Did the vfork/compiler bug occur? */
11162 || parent != getpid()
11164 /* Did the file descriptor bug occur? */
11165 || fstat(fileno(stdout), &st) != 0
11170 if ac_fn_cxx_try_run
"$LINENO"; then :
11171 ac_cv_func_vfork_works
=yes
11173 ac_cv_func_vfork_works
=no
11175 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11176 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11181 $as_echo "$ac_cv_func_vfork_works" >&6; }
11184 if test "x$ac_cv_func_fork_works" = xcross
; then
11185 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11187 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11190 if test "x$ac_cv_func_vfork_works" = xyes
; then
11192 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11196 $as_echo "#define vfork fork" >>confdefs.h
11199 if test "x$ac_cv_func_fork_works" = xyes
; then
11201 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
11206 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
11207 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
11208 $as_echo_n "(cached) " >&6
11210 rm -f conftest.sym conftest.
file
11211 echo >conftest.
file
11212 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
11213 if test "$cross_compiling" = yes; then :
11214 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11217 /* end confdefs.h. */
11218 $ac_includes_default
11223 /* Linux will dereference the symlink and fail, as required by POSIX.
11224 That is better in the sense that it means we will not
11225 have to compile and use the lstat wrapper. */
11226 return lstat ("conftest.sym/", &sbuf) == 0;
11231 if ac_fn_cxx_try_run
"$LINENO"; then :
11232 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
11234 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11236 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11237 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11241 # If the `ln -s' command failed, then we probably don't even
11242 # have an lstat function.
11243 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11245 rm -f conftest.sym conftest.
file
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11249 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
11251 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11253 cat >>confdefs.h
<<_ACEOF
11254 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11258 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno
; then
11259 case " $LIBOBJS " in
11260 *" lstat.$ac_objext "* ) ;;
11261 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext"
11267 if test x
$SYS != xwin32
; then :
11269 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
11270 # -lseq on Dynix/PTX, -lgen on Unixware.
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
11272 $as_echo_n "checking for library containing getmntent... " >&6; }
11273 if test "${ac_cv_search_getmntent+set}" = set; then :
11274 $as_echo_n "(cached) " >&6
11276 ac_func_search_save_LIBS
=$LIBS
11277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11278 /* end confdefs.h. */
11280 /* Override any GCC internal prototype to avoid an error.
11281 Use char because int might match the return type of a GCC
11282 builtin and then its argument prototype would still apply. */
11290 return getmntent ();
11295 for ac_lib
in '' sun
seq gen
; do
11296 if test -z "$ac_lib"; then
11297 ac_res
="none required"
11300 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11302 if ac_fn_cxx_try_link
"$LINENO"; then :
11303 ac_cv_search_getmntent
=$ac_res
11305 rm -f core conftest.err conftest.
$ac_objext \
11307 if test "${ac_cv_search_getmntent+set}" = set; then :
11311 if test "${ac_cv_search_getmntent+set}" = set; then :
11314 ac_cv_search_getmntent
=no
11316 rm conftest.
$ac_ext
11317 LIBS
=$ac_func_search_save_LIBS
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
11320 $as_echo "$ac_cv_search_getmntent" >&6; }
11321 ac_res
=$ac_cv_search_getmntent
11322 if test "$ac_res" != no
; then :
11323 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11324 ac_cv_func_getmntent
=yes
11326 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
11329 ac_cv_func_getmntent
=no
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
11334 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
11335 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
11336 $as_echo_n "(cached) " >&6
11338 if test "$cross_compiling" = yes; then :
11339 ac_cv_func_lstat_empty_string_bug
=yes
11341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11342 /* end confdefs.h. */
11343 $ac_includes_default
11348 return lstat ("", &sbuf) == 0;
11353 if ac_fn_cxx_try_run
"$LINENO"; then :
11354 ac_cv_func_lstat_empty_string_bug
=no
11356 ac_cv_func_lstat_empty_string_bug
=yes
11358 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11359 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
11364 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
11365 if test $ac_cv_func_lstat_empty_string_bug = yes; then
11366 case " $LIBOBJS " in
11367 *" lstat.$ac_objext "* ) ;;
11368 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext"
11373 cat >>confdefs.h
<<_ACEOF
11374 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
11380 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
11381 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
11382 $as_echo_n "(cached) " >&6
11384 rm -f conftest.sym conftest.
file
11385 echo >conftest.
file
11386 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
11387 if test "$cross_compiling" = yes; then :
11388 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11391 /* end confdefs.h. */
11392 $ac_includes_default
11397 /* Linux will dereference the symlink and fail, as required by POSIX.
11398 That is better in the sense that it means we will not
11399 have to compile and use the lstat wrapper. */
11400 return lstat ("conftest.sym/", &sbuf) == 0;
11405 if ac_fn_cxx_try_run
"$LINENO"; then :
11406 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
11408 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11410 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11411 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11415 # If the `ln -s' command failed, then we probably don't even
11416 # have an lstat function.
11417 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11419 rm -f conftest.sym conftest.
file
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11423 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
11425 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11427 cat >>confdefs.h
<<_ACEOF
11428 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11432 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno
; then
11433 case " $LIBOBJS " in
11434 *" lstat.$ac_objext "* ) ;;
11435 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext"
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
11444 $as_echo_n "checking for working memcmp... " >&6; }
11445 if test "${ac_cv_func_memcmp_working+set}" = set; then :
11446 $as_echo_n "(cached) " >&6
11448 if test "$cross_compiling" = yes; then :
11449 ac_cv_func_memcmp_working
=no
11451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11452 /* end confdefs.h. */
11453 $ac_includes_default
11458 /* Some versions of memcmp are not 8-bit clean. */
11459 char c0 = '\100', c1 = '\200', c2 = '\201';
11460 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11463 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11464 or more and with at least one buffer not starting on a 4-byte boundary.
11465 William Lewis provided this test program. */
11470 for (i = 0; i < 4; i++)
11474 strcpy (a, "--------01111111");
11475 strcpy (b, "--------10000000");
11476 if (memcmp (a, b, 16) >= 0)
11486 if ac_fn_cxx_try_run
"$LINENO"; then :
11487 ac_cv_func_memcmp_working
=yes
11489 ac_cv_func_memcmp_working
=no
11491 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11492 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
11497 $as_echo "$ac_cv_func_memcmp_working" >&6; }
11498 test $ac_cv_func_memcmp_working = no
&& case " $LIBOBJS " in
11499 *" memcmp.$ac_objext "* ) ;;
11500 *) LIBOBJS
="$LIBOBJS memcmp.$ac_objext"
11505 for ac_header
in sys
/select.h sys
/socket.h
11507 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11508 ac_fn_cxx_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11509 eval as_val
=\$
$as_ac_Header
11510 if test "x$as_val" = x
""yes; then :
11511 cat >>confdefs.h
<<_ACEOF
11512 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
11520 $as_echo_n "checking types of arguments for select... " >&6; }
11521 if test "${ac_cv_func_select_args+set}" = set; then :
11522 $as_echo_n "(cached) " >&6
11524 for ac_arg234
in 'fd_set *' 'int *' 'void *'; do
11525 for ac_arg1
in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
11526 for ac_arg5
in 'struct timeval *' 'const struct timeval *'; do
11527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11528 /* end confdefs.h. */
11529 $ac_includes_default
11530 #ifdef HAVE_SYS_SELECT_H
11531 # include <sys/select.h>
11533 #ifdef HAVE_SYS_SOCKET_H
11534 # include <sys/socket.h>
11540 extern int select ($ac_arg1,
11541 $ac_arg234, $ac_arg234, $ac_arg234,
11547 if ac_fn_cxx_try_compile
"$LINENO"; then :
11548 ac_cv_func_select_args
="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
11550 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11554 # Provide a safe default value.
11555 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
11559 $as_echo "$ac_cv_func_select_args" >&6; }
11560 ac_save_IFS
=$IFS; IFS
=','
11561 set dummy
`echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
11565 cat >>confdefs.h
<<_ACEOF
11566 #define SELECT_TYPE_ARG1 $1
11570 cat >>confdefs.h
<<_ACEOF
11571 #define SELECT_TYPE_ARG234 ($2)
11575 cat >>confdefs.h
<<_ACEOF
11576 #define SELECT_TYPE_ARG5 ($3)
11581 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
11582 $as_echo_n "(cached) " >&6
11584 ac_cv_func_setvbuf_reversed
=no
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11589 $as_echo_n "checking return type of signal handlers... " >&6; }
11590 if test "${ac_cv_type_signal+set}" = set; then :
11591 $as_echo_n "(cached) " >&6
11593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11594 /* end confdefs.h. */
11595 #include <sys/types.h>
11596 #include <signal.h>
11601 return *(signal (0, 0)) (0) == 1;
11606 if ac_fn_cxx_try_compile
"$LINENO"; then :
11607 ac_cv_type_signal
=int
11609 ac_cv_type_signal
=void
11611 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11614 $as_echo "$ac_cv_type_signal" >&6; }
11616 cat >>confdefs.h
<<_ACEOF
11617 #define RETSIGTYPE $ac_cv_type_signal
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
11622 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
11623 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
11624 $as_echo_n "(cached) " >&6
11626 if test "$cross_compiling" = yes; then :
11627 ac_cv_func_stat_empty_string_bug
=yes
11629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11630 /* end confdefs.h. */
11631 $ac_includes_default
11636 return stat ("", &sbuf) == 0;
11641 if ac_fn_cxx_try_run
"$LINENO"; then :
11642 ac_cv_func_stat_empty_string_bug
=no
11644 ac_cv_func_stat_empty_string_bug
=yes
11646 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11647 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
11652 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
11653 if test $ac_cv_func_stat_empty_string_bug = yes; then
11654 case " $LIBOBJS " in
11655 *" stat.$ac_objext "* ) ;;
11656 *) LIBOBJS
="$LIBOBJS stat.$ac_objext"
11661 cat >>confdefs.h
<<_ACEOF
11662 #define HAVE_STAT_EMPTY_STRING_BUG 1
11667 for ac_func
in strftime
11669 ac_fn_cxx_check_func
"$LINENO" "strftime" "ac_cv_func_strftime"
11670 if test "x$ac_cv_func_strftime" = x
""yes; then :
11671 cat >>confdefs.h
<<_ACEOF
11672 #define HAVE_STRFTIME 1
11676 # strftime is in -lintl on SCO UNIX.
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
11678 $as_echo_n "checking for strftime in -lintl... " >&6; }
11679 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
11680 $as_echo_n "(cached) " >&6
11682 ac_check_lib_save_LIBS
=$LIBS
11683 LIBS
="-lintl $LIBS"
11684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11685 /* end confdefs.h. */
11687 /* Override any GCC internal prototype to avoid an error.
11688 Use char because int might match the return type of a GCC
11689 builtin and then its argument prototype would still apply. */
11697 return strftime ();
11702 if ac_fn_cxx_try_link
"$LINENO"; then :
11703 ac_cv_lib_intl_strftime
=yes
11705 ac_cv_lib_intl_strftime
=no
11707 rm -f core conftest.err conftest.
$ac_objext \
11708 conftest
$ac_exeext conftest.
$ac_ext
11709 LIBS
=$ac_check_lib_save_LIBS
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
11712 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
11713 if test "x$ac_cv_lib_intl_strftime" = x
""yes; then :
11714 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
11716 LIBS
="-lintl $LIBS"
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
11723 $as_echo_n "checking for working strtod... " >&6; }
11724 if test "${ac_cv_func_strtod+set}" = set; then :
11725 $as_echo_n "(cached) " >&6
11727 if test "$cross_compiling" = yes; then :
11728 ac_cv_func_strtod
=no
11730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11731 /* end confdefs.h. */
11733 $ac_includes_default
11741 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
11742 char *string = " +69";
11745 value = strtod (string, &term);
11746 if (value != 69 || term != (string + 4))
11751 /* Under Solaris 2.4, strtod returns the wrong value for the
11752 terminating character under some conditions. */
11753 char *string = "NaN";
11755 strtod (string, &term);
11756 if (term != string && *(term - 1) == 0)
11763 if ac_fn_cxx_try_run
"$LINENO"; then :
11764 ac_cv_func_strtod
=yes
11766 ac_cv_func_strtod
=no
11768 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11769 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
11774 $as_echo "$ac_cv_func_strtod" >&6; }
11775 if test $ac_cv_func_strtod = no
; then
11776 case " $LIBOBJS " in
11777 *" strtod.$ac_objext "* ) ;;
11778 *) LIBOBJS
="$LIBOBJS strtod.$ac_objext"
11782 ac_fn_cxx_check_func
"$LINENO" "pow" "ac_cv_func_pow"
11783 if test "x$ac_cv_func_pow" = x
""yes; then :
11787 if test $ac_cv_func_pow = no
; then
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
11789 $as_echo_n "checking for pow in -lm... " >&6; }
11790 if test "${ac_cv_lib_m_pow+set}" = set; then :
11791 $as_echo_n "(cached) " >&6
11793 ac_check_lib_save_LIBS
=$LIBS
11795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11796 /* end confdefs.h. */
11798 /* Override any GCC internal prototype to avoid an error.
11799 Use char because int might match the return type of a GCC
11800 builtin and then its argument prototype would still apply. */
11813 if ac_fn_cxx_try_link
"$LINENO"; then :
11814 ac_cv_lib_m_pow
=yes
11818 rm -f core conftest.err conftest.
$ac_objext \
11819 conftest
$ac_exeext conftest.
$ac_ext
11820 LIBS
=$ac_check_lib_save_LIBS
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
11823 $as_echo "$ac_cv_lib_m_pow" >&6; }
11824 if test "x$ac_cv_lib_m_pow" = x
""yes; then :
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
11828 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
11835 for ac_func
in vprintf
11837 ac_fn_cxx_check_func
"$LINENO" "vprintf" "ac_cv_func_vprintf"
11838 if test "x$ac_cv_func_vprintf" = x
""yes; then :
11839 cat >>confdefs.h
<<_ACEOF
11840 #define HAVE_VPRINTF 1
11843 ac_fn_cxx_check_func
"$LINENO" "_doprnt" "ac_cv_func__doprnt"
11844 if test "x$ac_cv_func__doprnt" = x
""yes; then :
11846 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
11854 if test $cross_compiling = yes -a $gnumalloc = yes; then :
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11857 configure cannot check whether malloc() and realloc() are GNU libc
11858 compatible. You have to be ABSOLUTELY sure that they are, otherwise
11859 run configure with the --without-gnu-malloc switch." >&5
11860 $as_echo "$as_me: WARNING:
11861 configure cannot check whether malloc() and realloc() are GNU libc
11862 compatible. You have to be ABSOLUTELY sure that they are, otherwise
11863 run configure with the --without-gnu-malloc switch." >&2;}
11864 _mule_warning_12
=yes
11865 _mule_has_warnings
=yes
11867 ac_cv_func_malloc_0_nonnull
=yes
11868 ac_cv_func_realloc_0_nonnull
=yes
11871 for ac_header
in stdlib.h
11873 ac_fn_cxx_check_header_mongrel
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
11874 if test "x$ac_cv_header_stdlib_h" = x
""yes; then :
11875 cat >>confdefs.h
<<_ACEOF
11876 #define HAVE_STDLIB_H 1
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
11884 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
11885 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
11886 $as_echo_n "(cached) " >&6
11888 if test "$cross_compiling" = yes; then :
11889 ac_cv_func_malloc_0_nonnull
=no
11891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11892 /* end confdefs.h. */
11893 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
11894 # include <stdlib.h>
11902 return ! malloc (0);
11907 if ac_fn_cxx_try_run
"$LINENO"; then :
11908 ac_cv_func_malloc_0_nonnull
=yes
11910 ac_cv_func_malloc_0_nonnull
=no
11912 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11913 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
11918 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
11919 if test $ac_cv_func_malloc_0_nonnull = yes; then :
11921 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
11924 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
11926 case " $LIBOBJS " in
11927 *" malloc.$ac_objext "* ) ;;
11928 *) LIBOBJS
="$LIBOBJS malloc.$ac_objext"
11933 $as_echo "#define malloc rpl_malloc" >>confdefs.h
11938 for ac_header
in stdlib.h
11940 ac_fn_cxx_check_header_mongrel
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
11941 if test "x$ac_cv_header_stdlib_h" = x
""yes; then :
11942 cat >>confdefs.h
<<_ACEOF
11943 #define HAVE_STDLIB_H 1
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
11951 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
11952 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
11953 $as_echo_n "(cached) " >&6
11955 if test "$cross_compiling" = yes; then :
11956 ac_cv_func_realloc_0_nonnull
=no
11958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11959 /* end confdefs.h. */
11960 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
11961 # include <stdlib.h>
11969 return ! realloc (0, 0);
11974 if ac_fn_cxx_try_run
"$LINENO"; then :
11975 ac_cv_func_realloc_0_nonnull
=yes
11977 ac_cv_func_realloc_0_nonnull
=no
11979 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11980 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
11985 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
11986 if test $ac_cv_func_realloc_0_nonnull = yes; then :
11988 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
11991 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
11993 case " $LIBOBJS " in
11994 *" realloc.$ac_objext "* ) ;;
11995 *) LIBOBJS
="$LIBOBJS realloc.$ac_objext"
12000 $as_echo "#define realloc rpl_realloc" >>confdefs.h
12005 for ac_func
in __argz_count __argz_next __argz_stringify endpwent floor ftruncate getcwd gethostbyaddr gethostbyname gethostname getopt_long getpass getrlimit gettimeofday inet_ntoa localeconv memmove mempcpy memset mkdir nl_langinfo pow
select setlocale setrlimit sigaction socket sqrt stpcpy strcasecmp strchr strcspn strdup strerror strncasecmp strstr strtoul
12007 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12008 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12009 eval as_val
=\$
$as_ac_var
12010 if test "x$as_val" = x
""yes; then :
12011 cat >>confdefs.h
<<_ACEOF
12012 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12023 for ac_header
in $ac_header_list
12025 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12026 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12028 eval as_val
=\$
$as_ac_Header
12029 if test "x$as_val" = x
""yes; then :
12030 cat >>confdefs.h
<<_ACEOF
12031 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12044 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
12046 # Check whether --enable-mmap was given.
12047 if test "${enable_mmap+set}" = set; then :
12048 enableval
=$enable_mmap;
12055 if test ${enable_mmap:-no} = yes; then :
12057 $as_echo "#define ENABLE_MMAP 1" >>confdefs.h
12060 for ac_func
in getpagesize
12062 ac_fn_cxx_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12063 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
12064 cat >>confdefs.h
<<_ACEOF
12065 #define HAVE_GETPAGESIZE 1
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12072 $as_echo_n "checking for working mmap... " >&6; }
12073 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
12074 $as_echo_n "(cached) " >&6
12076 if test "$cross_compiling" = yes; then :
12077 ac_cv_func_mmap_fixed_mapped
=no
12079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12080 /* end confdefs.h. */
12081 $ac_includes_default
12082 /* malloc might have been renamed as rpl_malloc. */
12085 /* Thanks to Mike Haertel and Jim Avera for this test.
12086 Here is a matrix of mmap possibilities:
12087 mmap private not fixed
12088 mmap private fixed at somewhere currently unmapped
12089 mmap private fixed at somewhere already mapped
12090 mmap shared not fixed
12091 mmap shared fixed at somewhere currently unmapped
12092 mmap shared fixed at somewhere already mapped
12093 For private mappings, we should verify that changes cannot be read()
12094 back from the file, nor mmap's back from the file at a different
12095 address. (There have been systems where private was not correctly
12096 implemented like the infamous i386 svr4.0, and systems where the
12097 VM page cache was not coherent with the file system buffer cache
12098 like early versions of FreeBSD and possibly contemporary NetBSD.)
12099 For shared mappings, we should conversely verify that changes get
12100 propagated back to all the places they're supposed to be.
12102 Grep wants private fixed already mapped.
12103 The main things grep needs to know about mmap are:
12104 * does it exist and is it safe to write into the mmap'd area
12105 * how to use it (BSD variants) */
12108 #include <sys/mman.h>
12110 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12114 /* This mess was copied from the GNU getpagesize.h. */
12115 #ifndef HAVE_GETPAGESIZE
12116 # ifdef _SC_PAGESIZE
12117 # define getpagesize() sysconf(_SC_PAGESIZE)
12118 # else /* no _SC_PAGESIZE */
12119 # ifdef HAVE_SYS_PARAM_H
12120 # include <sys/param.h>
12121 # ifdef EXEC_PAGESIZE
12122 # define getpagesize() EXEC_PAGESIZE
12123 # else /* no EXEC_PAGESIZE */
12125 # define getpagesize() NBPG * CLSIZE
12128 # endif /* no CLSIZE */
12129 # else /* no NBPG */
12131 # define getpagesize() NBPC
12132 # else /* no NBPC */
12134 # define getpagesize() PAGESIZE
12135 # endif /* PAGESIZE */
12136 # endif /* no NBPC */
12137 # endif /* no NBPG */
12138 # endif /* no EXEC_PAGESIZE */
12139 # else /* no HAVE_SYS_PARAM_H */
12140 # define getpagesize() 8192 /* punt totally */
12141 # endif /* no HAVE_SYS_PARAM_H */
12142 # endif /* no _SC_PAGESIZE */
12144 #endif /* no HAVE_GETPAGESIZE */
12149 char *data, *data2, *data3;
12153 pagesize = getpagesize ();
12155 /* First, make a file with some known garbage in it. */
12156 data = (char *) malloc (pagesize);
12159 for (i = 0; i < pagesize; ++i)
12160 *(data + i) = rand ();
12162 fd = creat ("conftest.mmap", 0600);
12165 if (write (fd, data, pagesize) != pagesize)
12169 /* Next, check that the tail of a page is zero-filled. File must have
12170 non-zero length, otherwise we risk SIGBUS for entire page. */
12171 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
12174 data2 = (char *) "";
12175 if (write (fd2, data2, 1) != 1)
12177 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
12178 if (data2 == MAP_FAILED)
12180 for (i = 0; i < pagesize; ++i)
12184 if (munmap (data2, pagesize))
12187 /* Next, try to mmap the file at a fixed address which already has
12188 something else allocated at it. If we can, also make sure that
12189 we see the same garbage. */
12190 fd = open ("conftest.mmap", O_RDWR);
12193 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12194 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12196 for (i = 0; i < pagesize; ++i)
12197 if (*(data + i) != *(data2 + i))
12200 /* Finally, make sure that changes to the mapped area do not
12201 percolate back to the file as seen by read(). (This is a bug on
12202 some variants of i386 svr4.0.) */
12203 for (i = 0; i < pagesize; ++i)
12204 *(data2 + i) = *(data2 + i) + 1;
12205 data3 = (char *) malloc (pagesize);
12208 if (read (fd, data3, pagesize) != pagesize)
12210 for (i = 0; i < pagesize; ++i)
12211 if (*(data + i) != *(data3 + i))
12217 if ac_fn_cxx_try_run
"$LINENO"; then :
12218 ac_cv_func_mmap_fixed_mapped
=yes
12220 ac_cv_func_mmap_fixed_mapped
=no
12222 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12223 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12228 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12229 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12231 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12234 rm -f conftest.mmap conftest.txt
12236 for ac_func
in munmap sysconf
12238 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12239 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12240 eval as_val
=\$
$as_ac_var
12241 if test "x$as_val" = x
""yes; then :
12242 cat >>confdefs.h
<<_ACEOF
12243 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12249 if test $ac_cv_func_sysconf = yes; then :
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pagesize constant for sysconf" >&5
12252 $as_echo_n "checking for pagesize constant for sysconf... " >&6; }
12253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12254 /* end confdefs.h. */
12257 #include <unistd.h>
12263 return sysconf(_SC_PAGESIZE);
12270 if ac_fn_cxx_try_link
"$LINENO"; then :
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: _SC_PAGESIZE" >&5
12273 $as_echo "_SC_PAGESIZE" >&6; }
12275 $as_echo "#define HAVE__SC_PAGESIZE 1" >>confdefs.h
12280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12281 /* end confdefs.h. */
12284 #include <unistd.h>
12290 return sysconf(_SC_PAGE_SIZE);
12297 if ac_fn_cxx_try_link
"$LINENO"; then :
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: _SC_PAGE_SIZE" >&5
12300 $as_echo "_SC_PAGE_SIZE" >&6; }
12302 $as_echo "#define HAVE__SC_PAGE_SIZE 1" >>confdefs.h
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12308 $as_echo "none" >&6; }
12311 rm -f core conftest.err conftest.
$ac_objext \
12312 conftest
$ac_exeext conftest.
$ac_ext
12315 rm -f core conftest.err conftest.
$ac_objext \
12316 conftest
$ac_exeext conftest.
$ac_ext
12325 # Look for a way to preallocate disk space for files.
12326 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
12329 $as_echo_n "checking for fallocate... " >&6; }
12330 mule_backup_CPPFLAGS
="$CPPFLAGS"
12331 CPPFLAGS
="$CPPFLAGS $WX_CPPFLAGS"
12332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12333 /* end confdefs.h. */
12336 #ifndef _GNU_SOURCE
12337 # define _GNU_SOURCE
12339 #ifdef HAVE_FCNTL_H
12340 # include <fcntl.h>
12342 #include <linux/falloc.h>
12348 fallocate(0, 0, 0, 0);
12355 if ac_fn_cxx_try_link
"$LINENO"; then :
12358 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12361 $as_echo "yes" >&6; }
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12366 $as_echo "no" >&6; }
12369 rm -f core conftest.err conftest.
$ac_objext \
12370 conftest
$ac_exeext conftest.
$ac_ext
12371 CPPFLAGS
="$mule_backup_CPPFLAGS"
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYS_fallocate" >&5
12375 $as_echo_n "checking for SYS_fallocate... " >&6; }
12376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12377 /* end confdefs.h. */
12380 #include <sys/syscall.h>
12381 #include <sys/types.h>
12382 #include <unistd.h>
12388 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0);
12395 if ac_fn_cxx_try_link
"$LINENO"; then :
12398 $as_echo "#define HAVE_SYS_FALLOCATE 1" >>confdefs.h
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12401 $as_echo "yes" >&6; }
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12406 $as_echo "no" >&6; }
12409 rm -f core conftest.err conftest.
$ac_objext \
12410 conftest
$ac_exeext conftest.
$ac_ext
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fallocate" >&5
12413 $as_echo_n "checking for posix_fallocate... " >&6; }
12414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12415 /* end confdefs.h. */
12418 #define _XOPEN_SOURCE 600
12419 #include <stdlib.h>
12420 #ifdef HAVE_FCNTL_H
12421 # include <fcntl.h>
12428 posix_fallocate(0, 0, 0);
12435 if ac_fn_cxx_try_link
"$LINENO"; then :
12438 $as_echo "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12441 $as_echo "yes" >&6; }
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12446 $as_echo "no" >&6; }
12449 rm -f core conftest.err conftest.
$ac_objext \
12450 conftest
$ac_exeext conftest.
$ac_ext
12456 ac_cpp
='$CPP $CPPFLAGS'
12457 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12458 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12459 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12461 # Checking Native Language Support
12465 if test -n "$ac_aux_dir"; then
12466 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
12468 if test -z "$MKINSTALLDIRS"; then
12469 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
12476 # Extract the first word of "msgfmt", so it can be a program name with args.
12477 set dummy msgfmt
; ac_word
=$2
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12479 $as_echo_n "checking for $ac_word... " >&6; }
12480 if test "${ac_cv_path_MSGFMT+set}" = set; then :
12481 $as_echo_n "(cached) " >&6
12485 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
12488 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
12489 for ac_dir
in $PATH; do
12490 test -z "$ac_dir" && ac_dir
=.
12491 if test -f $ac_dir/$ac_word; then
12492 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
12493 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
12494 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
12500 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
12504 MSGFMT
="$ac_cv_path_MSGFMT"
12505 if test "$MSGFMT" != ":"; then
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12507 $as_echo "$MSGFMT" >&6; }
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12510 $as_echo "no" >&6; }
12513 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12514 set dummy gmsgfmt
; ac_word
=$2
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12516 $as_echo_n "checking for $ac_word... " >&6; }
12517 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
12518 $as_echo_n "(cached) " >&6
12522 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
12525 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12526 for as_dir
in $PATH
12529 test -z "$as_dir" && as_dir
=.
12530 for ac_exec_ext
in '' $ac_executable_extensions; do
12531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12532 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
12533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12540 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
12544 GMSGFMT
=$ac_cv_path_GMSGFMT
12545 if test -n "$GMSGFMT"; then
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12547 $as_echo "$GMSGFMT" >&6; }
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12550 $as_echo "no" >&6; }
12555 # Extract the first word of "xgettext", so it can be a program name with args.
12556 set dummy xgettext
; ac_word
=$2
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12558 $as_echo_n "checking for $ac_word... " >&6; }
12559 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12560 $as_echo_n "(cached) " >&6
12562 case "$XGETTEXT" in
12564 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
12567 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
12568 for ac_dir
in $PATH; do
12569 test -z "$ac_dir" && ac_dir
=.
12570 if test -f $ac_dir/$ac_word; then
12571 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev
/null
>/dev
/null
2>&1 &&
12572 (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
12573 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
12579 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
12583 XGETTEXT
="$ac_cv_path_XGETTEXT"
12584 if test "$XGETTEXT" != ":"; then
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12586 $as_echo "$XGETTEXT" >&6; }
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12589 $as_echo "no" >&6; }
12594 # Extract the first word of "msgmerge", so it can be a program name with args.
12595 set dummy msgmerge
; ac_word
=$2
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12597 $as_echo_n "checking for $ac_word... " >&6; }
12598 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12599 $as_echo_n "(cached) " >&6
12601 case "$MSGMERGE" in
12603 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
12606 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
12607 for ac_dir
in $PATH; do
12608 test -z "$ac_dir" && ac_dir
=.
12609 if test -f $ac_dir/$ac_word; then
12610 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
12611 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word"
12617 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
12621 MSGMERGE
="$ac_cv_path_MSGMERGE"
12622 if test "$MSGMERGE" != ":"; then
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12624 $as_echo "$MSGMERGE" >&6; }
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12627 $as_echo "no" >&6; }
12631 if test "$GMSGFMT" != ":"; then
12632 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
12633 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
12636 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12638 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12643 if test "$XGETTEXT" != ":"; then
12644 if $XGETTEXT --omit-header --copyright-holder= /dev
/null
>/dev
/null
2>&1 &&
12645 (if $XGETTEXT --omit-header --copyright-holder= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12649 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12655 ac_config_commands
="$ac_config_commands default-1"
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
12660 $as_echo_n "checking for strerror in -lcposix... " >&6; }
12661 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
12662 $as_echo_n "(cached) " >&6
12664 ac_check_lib_save_LIBS
=$LIBS
12665 LIBS
="-lcposix $LIBS"
12666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12667 /* end confdefs.h. */
12669 /* Override any GCC internal prototype to avoid an error.
12670 Use char because int might match the return type of a GCC
12671 builtin and then its argument prototype would still apply. */
12679 return strerror ();
12684 if ac_fn_c_try_link
"$LINENO"; then :
12685 ac_cv_lib_cposix_strerror
=yes
12687 ac_cv_lib_cposix_strerror
=no
12689 rm -f core conftest.err conftest.
$ac_objext \
12690 conftest
$ac_exeext conftest.
$ac_ext
12691 LIBS
=$ac_check_lib_save_LIBS
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
12694 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
12695 if test "x$ac_cv_lib_cposix_strerror" = x
""yes; then :
12696 LIBS
="$LIBS -lcposix"
12702 for ac_func
in getpagesize
12704 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12705 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
12706 cat >>confdefs.h
<<_ACEOF
12707 #define HAVE_GETPAGESIZE 1
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12714 $as_echo_n "checking for working mmap... " >&6; }
12715 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
12716 $as_echo_n "(cached) " >&6
12718 if test "$cross_compiling" = yes; then :
12719 ac_cv_func_mmap_fixed_mapped
=no
12721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12722 /* end confdefs.h. */
12723 $ac_includes_default
12724 /* malloc might have been renamed as rpl_malloc. */
12727 /* Thanks to Mike Haertel and Jim Avera for this test.
12728 Here is a matrix of mmap possibilities:
12729 mmap private not fixed
12730 mmap private fixed at somewhere currently unmapped
12731 mmap private fixed at somewhere already mapped
12732 mmap shared not fixed
12733 mmap shared fixed at somewhere currently unmapped
12734 mmap shared fixed at somewhere already mapped
12735 For private mappings, we should verify that changes cannot be read()
12736 back from the file, nor mmap's back from the file at a different
12737 address. (There have been systems where private was not correctly
12738 implemented like the infamous i386 svr4.0, and systems where the
12739 VM page cache was not coherent with the file system buffer cache
12740 like early versions of FreeBSD and possibly contemporary NetBSD.)
12741 For shared mappings, we should conversely verify that changes get
12742 propagated back to all the places they're supposed to be.
12744 Grep wants private fixed already mapped.
12745 The main things grep needs to know about mmap are:
12746 * does it exist and is it safe to write into the mmap'd area
12747 * how to use it (BSD variants) */
12750 #include <sys/mman.h>
12752 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12756 /* This mess was copied from the GNU getpagesize.h. */
12757 #ifndef HAVE_GETPAGESIZE
12758 # ifdef _SC_PAGESIZE
12759 # define getpagesize() sysconf(_SC_PAGESIZE)
12760 # else /* no _SC_PAGESIZE */
12761 # ifdef HAVE_SYS_PARAM_H
12762 # include <sys/param.h>
12763 # ifdef EXEC_PAGESIZE
12764 # define getpagesize() EXEC_PAGESIZE
12765 # else /* no EXEC_PAGESIZE */
12767 # define getpagesize() NBPG * CLSIZE
12770 # endif /* no CLSIZE */
12771 # else /* no NBPG */
12773 # define getpagesize() NBPC
12774 # else /* no NBPC */
12776 # define getpagesize() PAGESIZE
12777 # endif /* PAGESIZE */
12778 # endif /* no NBPC */
12779 # endif /* no NBPG */
12780 # endif /* no EXEC_PAGESIZE */
12781 # else /* no HAVE_SYS_PARAM_H */
12782 # define getpagesize() 8192 /* punt totally */
12783 # endif /* no HAVE_SYS_PARAM_H */
12784 # endif /* no _SC_PAGESIZE */
12786 #endif /* no HAVE_GETPAGESIZE */
12791 char *data, *data2, *data3;
12795 pagesize = getpagesize ();
12797 /* First, make a file with some known garbage in it. */
12798 data = (char *) malloc (pagesize);
12801 for (i = 0; i < pagesize; ++i)
12802 *(data + i) = rand ();
12804 fd = creat ("conftest.mmap", 0600);
12807 if (write (fd, data, pagesize) != pagesize)
12811 /* Next, check that the tail of a page is zero-filled. File must have
12812 non-zero length, otherwise we risk SIGBUS for entire page. */
12813 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
12817 if (write (fd2, data2, 1) != 1)
12819 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
12820 if (data2 == MAP_FAILED)
12822 for (i = 0; i < pagesize; ++i)
12826 if (munmap (data2, pagesize))
12829 /* Next, try to mmap the file at a fixed address which already has
12830 something else allocated at it. If we can, also make sure that
12831 we see the same garbage. */
12832 fd = open ("conftest.mmap", O_RDWR);
12835 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12836 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12838 for (i = 0; i < pagesize; ++i)
12839 if (*(data + i) != *(data2 + i))
12842 /* Finally, make sure that changes to the mapped area do not
12843 percolate back to the file as seen by read(). (This is a bug on
12844 some variants of i386 svr4.0.) */
12845 for (i = 0; i < pagesize; ++i)
12846 *(data2 + i) = *(data2 + i) + 1;
12847 data3 = (char *) malloc (pagesize);
12850 if (read (fd, data3, pagesize) != pagesize)
12852 for (i = 0; i < pagesize; ++i)
12853 if (*(data + i) != *(data3 + i))
12859 if ac_fn_c_try_run
"$LINENO"; then :
12860 ac_cv_func_mmap_fixed_mapped
=yes
12862 ac_cv_func_mmap_fixed_mapped
=no
12864 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12865 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12870 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12871 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12873 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12876 rm -f conftest.mmap conftest.txt
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
12880 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
12881 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
12882 $as_echo_n "(cached) " >&6
12884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12885 /* end confdefs.h. */
12887 #include <features.h>
12888 #ifdef __GNU_LIBRARY__
12889 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
12895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12896 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then :
12897 ac_cv_gnu_library_2_1
=yes
12899 ac_cv_gnu_library_2_1
=no
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
12907 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
12909 GLIBC21
="$ac_cv_gnu_library_2_1"
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
12915 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
12916 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
12917 $as_echo_n "(cached) " >&6
12920 if test "$cross_compiling" = yes; then :
12922 # Guess based on the CPU.
12923 case "$host_cpu" in
12924 alpha
* | i3456786 | m68k | s390
*)
12925 gt_cv_int_divbyzero_sigfpe
="guessing yes";;
12927 gt_cv_int_divbyzero_sigfpe
="guessing no";;
12931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12932 /* end confdefs.h. */
12934 #include <stdlib.h>
12935 #include <signal.h>
12939 sigfpe_handler (int sig)
12941 sigfpe_handler (sig) int sig;
12944 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
12945 exit (sig != SIGFPE);
12955 signal (SIGFPE, sigfpe_handler);
12956 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
12957 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
12958 signal (SIGTRAP, sigfpe_handler);
12960 /* Linux/SPARC yields signal SIGILL. */
12961 #if defined (__sparc__) && defined (__linux__)
12962 signal (SIGILL, sigfpe_handler);
12971 if ac_fn_c_try_run
"$LINENO"; then :
12972 gt_cv_int_divbyzero_sigfpe
=yes
12974 gt_cv_int_divbyzero_sigfpe
=no
12976 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12977 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
12983 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
12984 case "$gt_cv_int_divbyzero_sigfpe" in
12989 cat >>confdefs.h
<<_ACEOF
12990 #define INTDIV0_RAISES_SIGFPE $value
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
12996 $as_echo_n "checking for inttypes.h... " >&6; }
12997 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then :
12998 $as_echo_n "(cached) " >&6
13000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13001 /* end confdefs.h. */
13002 #include <sys/types.h>
13003 #include <inttypes.h>
13007 uintmax_t i = (uintmax_t) -1;
13012 if ac_fn_c_try_compile
"$LINENO"; then :
13013 jm_ac_cv_header_inttypes_h
=yes
13015 jm_ac_cv_header_inttypes_h
=no
13017 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
13020 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
13021 if test $jm_ac_cv_header_inttypes_h = yes; then
13023 cat >>confdefs.h
<<_ACEOF
13024 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
13031 $as_echo_n "checking for stdint.h... " >&6; }
13032 if test "${jm_ac_cv_header_stdint_h+set}" = set; then :
13033 $as_echo_n "(cached) " >&6
13035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13036 /* end confdefs.h. */
13037 #include <sys/types.h>
13038 #include <stdint.h>
13042 uintmax_t i = (uintmax_t) -1;
13047 if ac_fn_c_try_compile
"$LINENO"; then :
13048 jm_ac_cv_header_stdint_h
=yes
13050 jm_ac_cv_header_stdint_h
=no
13052 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
13055 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
13056 if test $jm_ac_cv_header_stdint_h = yes; then
13058 cat >>confdefs.h
<<_ACEOF
13059 #define HAVE_STDINT_H_WITH_UINTMAX 1
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
13066 $as_echo_n "checking for unsigned long long... " >&6; }
13067 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
13068 $as_echo_n "(cached) " >&6
13070 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13071 /* end confdefs.h. */
13072 unsigned long long ull = 1; int i = 63;
13076 unsigned long long ullmax = (unsigned long long) -1;
13077 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
13082 if ac_fn_c_try_link
"$LINENO"; then :
13083 ac_cv_type_unsigned_long_long
=yes
13085 ac_cv_type_unsigned_long_long
=no
13087 rm -f core conftest.err conftest.
$ac_objext \
13088 conftest
$ac_exeext conftest.
$ac_ext
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
13091 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
13092 if test $ac_cv_type_unsigned_long_long = yes; then
13094 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
13101 if test $jm_ac_cv_header_inttypes_h = no
&& test $jm_ac_cv_header_stdint_h = no
; then
13103 test $ac_cv_type_unsigned_long_long = yes \
13104 && ac_type
='unsigned long long' \
13105 || ac_type
='unsigned long'
13107 cat >>confdefs.h
<<_ACEOF
13108 #define uintmax_t $ac_type
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
13115 $as_echo_n "checking for inttypes.h... " >&6; }
13116 if test "${gt_cv_header_inttypes_h+set}" = set; then :
13117 $as_echo_n "(cached) " >&6
13120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13121 /* end confdefs.h. */
13122 #include <sys/types.h>
13123 #include <inttypes.h>
13132 if ac_fn_c_try_compile
"$LINENO"; then :
13133 gt_cv_header_inttypes_h
=yes
13135 gt_cv_header_inttypes_h
=no
13137 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
13141 $as_echo "$gt_cv_header_inttypes_h" >&6; }
13142 if test $gt_cv_header_inttypes_h = yes; then
13144 cat >>confdefs.h
<<_ACEOF
13145 #define HAVE_INTTYPES_H 1
13152 if test $gt_cv_header_inttypes_h = yes; then
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
13154 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
13155 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
13156 $as_echo_n "(cached) " >&6
13159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13160 /* end confdefs.h. */
13161 #include <inttypes.h>
13174 if ac_fn_c_try_compile
"$LINENO"; then :
13175 gt_cv_inttypes_pri_broken
=no
13177 gt_cv_inttypes_pri_broken
=yes
13179 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
13183 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
13185 if test "$gt_cv_inttypes_pri_broken" = yes; then
13187 cat >>confdefs.h
<<_ACEOF
13188 #define PRI_MACROS_BROKEN 1
13194 if test "X$prefix" = "XNONE"; then
13195 acl_final_prefix
="$ac_default_prefix"
13197 acl_final_prefix
="$prefix"
13199 if test "X$exec_prefix" = "XNONE"; then
13200 acl_final_exec_prefix
='${prefix}'
13202 acl_final_exec_prefix
="$exec_prefix"
13204 acl_save_prefix
="$prefix"
13205 prefix
="$acl_final_prefix"
13206 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
13207 prefix
="$acl_save_prefix"
13210 # Check whether --with-gnu-ld was given.
13211 if test "${with_gnu_ld+set}" = set; then :
13212 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
13218 if test "$GCC" = yes; then
13219 # Check if gcc -print-prog-name=ld gives a path.
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13221 $as_echo_n "checking for ld used by GCC... " >&6; }
13224 # gcc leaves a trailing carriage return which upsets mingw
13225 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13227 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
13230 # Accept absolute paths.
13231 [\\/]* |
[A-Za-z
]:[\\/]*)
13232 re_direlt
='/[^/][^/]*/\.\./'
13233 # Canonicalize the path of ld
13234 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
13235 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
13236 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
13238 test -z "$LD" && LD
="$ac_prog"
13241 # If it fails, then pretend we aren't using GCC.
13245 # If it is relative, then search for the first ld in PATH.
13246 with_gnu_ld
=unknown
13249 elif test "$with_gnu_ld" = yes; then
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13251 $as_echo_n "checking for GNU ld... " >&6; }
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13254 $as_echo_n "checking for non-GNU ld... " >&6; }
13256 if test "${acl_cv_path_LD+set}" = set; then :
13257 $as_echo_n "(cached) " >&6
13259 if test -z "$LD"; then
13260 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13261 for ac_dir
in $PATH; do
13262 test -z "$ac_dir" && ac_dir
=.
13263 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
13264 acl_cv_path_LD
="$ac_dir/$ac_prog"
13265 # Check to see if the program is GNU ld. I'd rather use --version,
13266 # but apparently some GNU ld's only accept -v.
13267 # Break only if it was the GNU/non-GNU ld that we prefer.
13268 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
13269 test "$with_gnu_ld" != no
&& break
13271 test "$with_gnu_ld" != yes && break
13277 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
13281 LD
="$acl_cv_path_LD"
13282 if test -n "$LD"; then
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13284 $as_echo "$LD" >&6; }
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13287 $as_echo "no" >&6; }
13289 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13291 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13292 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
13293 $as_echo_n "(cached) " >&6
13295 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13296 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
13297 acl_cv_prog_gnu_ld
=yes
13299 acl_cv_prog_gnu_ld
=no
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13303 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13304 with_gnu_ld
=$acl_cv_prog_gnu_ld
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13309 $as_echo_n "checking for shared library run path origin... " >&6; }
13310 if test "${acl_cv_rpath+set}" = set; then :
13311 $as_echo_n "(cached) " >&6
13314 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
13315 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13317 rm -f .
/conftest.sh
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13322 $as_echo "$acl_cv_rpath" >&6; }
13324 libext
="$acl_cv_libext"
13325 shlibext
="$acl_cv_shlibext"
13326 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
13327 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
13328 hardcode_direct
="$acl_cv_hardcode_direct"
13329 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
13330 sys_lib_search_path_spec
="$acl_cv_sys_lib_search_path_spec"
13331 sys_lib_dlsearch_path_spec
="$acl_cv_sys_lib_dlsearch_path_spec"
13332 # Check whether --enable-rpath was given.
13333 if test "${enable_rpath+set}" = set; then :
13334 enableval
=$enable_rpath; :
13348 acl_save_prefix
="$prefix"
13349 prefix
="$acl_final_prefix"
13350 acl_save_exec_prefix
="$exec_prefix"
13351 exec_prefix
="$acl_final_exec_prefix"
13353 eval additional_includedir
=\"$includedir\"
13354 eval additional_libdir
=\"$libdir\"
13356 exec_prefix
="$acl_save_exec_prefix"
13357 prefix
="$acl_save_prefix"
13360 # Check whether --with-libiconv-prefix was given.
13361 if test "${with_libiconv_prefix+set}" = set; then :
13362 withval
=$with_libiconv_prefix;
13363 if test "X$withval" = "Xno"; then
13366 if test "X$withval" = "X"; then
13368 acl_save_prefix
="$prefix"
13369 prefix
="$acl_final_prefix"
13370 acl_save_exec_prefix
="$exec_prefix"
13371 exec_prefix
="$acl_final_exec_prefix"
13373 eval additional_includedir
=\"$includedir\"
13374 eval additional_libdir
=\"$libdir\"
13376 exec_prefix
="$acl_save_exec_prefix"
13377 prefix
="$acl_save_prefix"
13380 additional_includedir
="$withval/include"
13381 additional_libdir
="$withval/lib"
13392 names_already_handled
=
13393 names_next_round
='iconv '
13394 while test -n "$names_next_round"; do
13395 names_this_round
="$names_next_round"
13397 for name
in $names_this_round; do
13399 for n
in $names_already_handled; do
13400 if test "$n" = "$name"; then
13401 already_handled
=yes
13405 if test -z "$already_handled"; then
13406 names_already_handled
="$names_already_handled $name"
13407 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13408 eval value
=\"\
$HAVE_LIB$uppername\"
13409 if test -n "$value"; then
13410 if test "$value" = yes; then
13411 eval value
=\"\
$LIB$uppername\"
13412 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
13413 eval value
=\"\
$LTLIB$uppername\"
13414 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
13423 if test $use_additional = yes; then
13424 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13425 found_dir
="$additional_libdir"
13426 found_so
="$additional_libdir/lib$name.$shlibext"
13427 if test -f "$additional_libdir/lib$name.la"; then
13428 found_la
="$additional_libdir/lib$name.la"
13431 if test -f "$additional_libdir/lib$name.$libext"; then
13432 found_dir
="$additional_libdir"
13433 found_a
="$additional_libdir/lib$name.$libext"
13434 if test -f "$additional_libdir/lib$name.la"; then
13435 found_la
="$additional_libdir/lib$name.la"
13440 if test "X$found_dir" = "X"; then
13441 for x
in $LDFLAGS $LTLIBICONV; do
13443 acl_save_prefix
="$prefix"
13444 prefix
="$acl_final_prefix"
13445 acl_save_exec_prefix
="$exec_prefix"
13446 exec_prefix
="$acl_final_exec_prefix"
13448 exec_prefix
="$acl_save_exec_prefix"
13449 prefix
="$acl_save_prefix"
13453 dir
=`echo "X$x" | sed -e 's/^X-L//'`
13454 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13456 found_so
="$dir/lib$name.$shlibext"
13457 if test -f "$dir/lib$name.la"; then
13458 found_la
="$dir/lib$name.la"
13461 if test -f "$dir/lib$name.$libext"; then
13463 found_a
="$dir/lib$name.$libext"
13464 if test -f "$dir/lib$name.la"; then
13465 found_la
="$dir/lib$name.la"
13471 if test "X$found_dir" != "X"; then
13476 if test "X$found_dir" != "X"; then
13477 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13478 if test "X$found_so" != "X"; then
13479 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
13480 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
13483 for x
in $ltrpathdirs; do
13484 if test "X$x" = "X$found_dir"; then
13489 if test -z "$haveit"; then
13490 ltrpathdirs
="$ltrpathdirs $found_dir"
13492 if test "$hardcode_direct" = yes; then
13493 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
13495 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
13496 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
13498 for x
in $rpathdirs; do
13499 if test "X$x" = "X$found_dir"; then
13504 if test -z "$haveit"; then
13505 rpathdirs
="$rpathdirs $found_dir"
13509 for x
in $LDFLAGS $LIBICONV; do
13511 acl_save_prefix
="$prefix"
13512 prefix
="$acl_final_prefix"
13513 acl_save_exec_prefix
="$exec_prefix"
13514 exec_prefix
="$acl_final_exec_prefix"
13516 exec_prefix
="$acl_save_exec_prefix"
13517 prefix
="$acl_save_prefix"
13519 if test "X$x" = "X-L$found_dir"; then
13524 if test -z "$haveit"; then
13525 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13527 if test "$hardcode_minus_L" != no
; then
13528 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
13530 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
13536 if test "X$found_a" != "X"; then
13537 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
13539 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13542 additional_includedir
=
13543 case "$found_dir" in
13545 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13546 additional_includedir
="$basedir/include"
13549 if test "X$additional_includedir" != "X"; then
13550 if test "X$additional_includedir" != "X/usr/include"; then
13552 if test "X$additional_includedir" = "X/usr/local/include"; then
13553 if test -n "$GCC"; then
13555 linux
*) haveit
=yes;;
13559 if test -z "$haveit"; then
13560 for x
in $CPPFLAGS $INCICONV; do
13562 acl_save_prefix
="$prefix"
13563 prefix
="$acl_final_prefix"
13564 acl_save_exec_prefix
="$exec_prefix"
13565 exec_prefix
="$acl_final_exec_prefix"
13567 exec_prefix
="$acl_save_exec_prefix"
13568 prefix
="$acl_save_prefix"
13570 if test "X$x" = "X-I$additional_includedir"; then
13575 if test -z "$haveit"; then
13576 if test -d "$additional_includedir"; then
13577 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13583 if test -n "$found_la"; then
13584 save_libdir
="$libdir"
13585 case "$found_la" in
13586 */* |
*\\*) .
"$found_la" ;;
13587 *) .
"./$found_la" ;;
13589 libdir
="$save_libdir"
13590 for dep
in $dependency_libs; do
13593 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
13594 if test "X$additional_libdir" != "X/usr/lib"; then
13596 if test "X$additional_libdir" = "X/usr/local/lib"; then
13597 if test -n "$GCC"; then
13599 linux
*) haveit
=yes;;
13603 if test -z "$haveit"; then
13605 for x
in $LDFLAGS $LIBICONV; do
13607 acl_save_prefix
="$prefix"
13608 prefix
="$acl_final_prefix"
13609 acl_save_exec_prefix
="$exec_prefix"
13610 exec_prefix
="$acl_final_exec_prefix"
13612 exec_prefix
="$acl_save_exec_prefix"
13613 prefix
="$acl_save_prefix"
13615 if test "X$x" = "X-L$additional_libdir"; then
13620 if test -z "$haveit"; then
13621 if test -d "$additional_libdir"; then
13622 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13626 for x
in $LDFLAGS $LTLIBICONV; do
13628 acl_save_prefix
="$prefix"
13629 prefix
="$acl_final_prefix"
13630 acl_save_exec_prefix
="$exec_prefix"
13631 exec_prefix
="$acl_final_exec_prefix"
13633 exec_prefix
="$acl_save_exec_prefix"
13634 prefix
="$acl_save_prefix"
13636 if test "X$x" = "X-L$additional_libdir"; then
13641 if test -z "$haveit"; then
13642 if test -d "$additional_libdir"; then
13643 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13650 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
13651 if test "$enable_rpath" != no
; then
13653 for x
in $rpathdirs; do
13654 if test "X$x" = "X$dir"; then
13659 if test -z "$haveit"; then
13660 rpathdirs
="$rpathdirs $dir"
13663 for x
in $ltrpathdirs; do
13664 if test "X$x" = "X$dir"; then
13669 if test -z "$haveit"; then
13670 ltrpathdirs
="$ltrpathdirs $dir"
13675 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13678 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13681 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
13682 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13688 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
13689 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13695 if test "X$rpathdirs" != "X"; then
13696 if test -n "$hardcode_libdir_separator"; then
13698 for found_dir
in $rpathdirs; do
13699 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13701 acl_save_libdir
="$libdir"
13703 eval flag
=\"$hardcode_libdir_flag_spec\"
13704 libdir
="$acl_save_libdir"
13705 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
13707 for found_dir
in $rpathdirs; do
13708 acl_save_libdir
="$libdir"
13709 libdir
="$found_dir"
13710 eval flag
=\"$hardcode_libdir_flag_spec\"
13711 libdir
="$acl_save_libdir"
13712 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
13716 if test "X$ltrpathdirs" != "X"; then
13717 for found_dir
in $ltrpathdirs; do
13718 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13725 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
13726 stdlib.h string.h unistd.h sys
/param.h
13728 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13729 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13730 eval as_val
=\$
$as_ac_Header
13731 if test "x$as_val" = x
""yes; then :
13732 cat >>confdefs.h
<<_ACEOF
13733 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13740 for ac_func
in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
13741 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
13742 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
13744 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13745 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13746 eval as_val
=\$
$as_ac_var
13747 if test "x$as_val" = x
""yes; then :
13748 cat >>confdefs.h
<<_ACEOF
13749 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13761 am_save_CPPFLAGS
="$CPPFLAGS"
13763 for element
in $INCICONV; do
13765 for x
in $CPPFLAGS; do
13767 acl_save_prefix
="$prefix"
13768 prefix
="$acl_final_prefix"
13769 acl_save_exec_prefix
="$exec_prefix"
13770 exec_prefix
="$acl_final_exec_prefix"
13772 exec_prefix
="$acl_save_exec_prefix"
13773 prefix
="$acl_save_prefix"
13775 if test "X$x" = "X$element"; then
13780 if test -z "$haveit"; then
13781 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13787 $as_echo_n "checking for iconv... " >&6; }
13788 if test "${am_cv_func_iconv+set}" = set; then :
13789 $as_echo_n "(cached) " >&6
13792 am_cv_func_iconv
="no, consider installing GNU libiconv"
13794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13795 /* end confdefs.h. */
13796 #include <stdlib.h>
13801 iconv_t cd = iconv_open("","");
13802 iconv(cd,NULL,NULL,NULL,NULL);
13808 if ac_fn_c_try_link
"$LINENO"; then :
13809 am_cv_func_iconv
=yes
13811 rm -f core conftest.err conftest.
$ac_objext \
13812 conftest
$ac_exeext conftest.
$ac_ext
13813 if test "$am_cv_func_iconv" != yes; then
13814 am_save_LIBS
="$LIBS"
13815 LIBS
="$LIBS $LIBICONV"
13816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13817 /* end confdefs.h. */
13818 #include <stdlib.h>
13823 iconv_t cd = iconv_open("","");
13824 iconv(cd,NULL,NULL,NULL,NULL);
13830 if ac_fn_c_try_link
"$LINENO"; then :
13831 am_cv_lib_iconv
=yes
13832 am_cv_func_iconv
=yes
13834 rm -f core conftest.err conftest.
$ac_objext \
13835 conftest
$ac_exeext conftest.
$ac_ext
13836 LIBS
="$am_save_LIBS"
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13841 $as_echo "$am_cv_func_iconv" >&6; }
13842 if test "$am_cv_func_iconv" = yes; then
13844 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13847 if test "$am_cv_lib_iconv" = yes; then
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13849 $as_echo_n "checking how to link with libiconv... " >&6; }
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13851 $as_echo "$LIBICONV" >&6; }
13853 CPPFLAGS
="$am_save_CPPFLAGS"
13860 if test "$am_cv_func_iconv" = yes; then
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
13862 $as_echo_n "checking for iconv declaration... " >&6; }
13863 if test "${am_cv_proto_iconv+set}" = set; then :
13864 $as_echo_n "(cached) " >&6
13867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13868 /* end confdefs.h. */
13870 #include <stdlib.h>
13876 #if defined(__STDC__) || defined(__cplusplus)
13877 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13890 if ac_fn_c_try_compile
"$LINENO"; then :
13891 am_cv_proto_iconv_arg1
=""
13893 am_cv_proto_iconv_arg1
="const"
13895 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13896 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);"
13899 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
13901 }$am_cv_proto_iconv" >&5
13903 }$am_cv_proto_iconv" >&6; }
13905 cat >>confdefs.h
<<_ACEOF
13906 #define ICONV_CONST $am_cv_proto_iconv_arg1
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13913 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13914 if test "${am_cv_langinfo_codeset+set}" = set; then :
13915 $as_echo_n "(cached) " >&6
13917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13918 /* end confdefs.h. */
13919 #include <langinfo.h>
13923 char* cs = nl_langinfo(CODESET);
13928 if ac_fn_c_try_link
"$LINENO"; then :
13929 am_cv_langinfo_codeset
=yes
13931 am_cv_langinfo_codeset
=no
13933 rm -f core conftest.err conftest.
$ac_objext \
13934 conftest
$ac_exeext conftest.
$ac_ext
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13938 $as_echo "$am_cv_langinfo_codeset" >&6; }
13939 if test $am_cv_langinfo_codeset = yes; then
13941 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13945 if test $ac_cv_header_locale_h = yes; then
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13948 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13949 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
13950 $as_echo_n "(cached) " >&6
13952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13953 /* end confdefs.h. */
13954 #include <locale.h>
13963 if ac_fn_c_try_link
"$LINENO"; then :
13964 am_cv_val_LC_MESSAGES
=yes
13966 am_cv_val_LC_MESSAGES
=no
13968 rm -f core conftest.err conftest.
$ac_objext \
13969 conftest
$ac_exeext conftest.
$ac_ext
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13972 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13973 if test $am_cv_val_LC_MESSAGES = yes; then
13975 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13981 for ac_prog
in bison
13983 # Extract the first word of "$ac_prog", so it can be a program name with args.
13984 set dummy
$ac_prog; ac_word
=$2
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13986 $as_echo_n "checking for $ac_word... " >&6; }
13987 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
13988 $as_echo_n "(cached) " >&6
13990 if test -n "$INTLBISON"; then
13991 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
13993 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13994 for as_dir
in $PATH
13997 test -z "$as_dir" && as_dir
=.
13998 for ac_exec_ext
in '' $ac_executable_extensions; do
13999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14000 ac_cv_prog_INTLBISON
="$ac_prog"
14001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14010 INTLBISON
=$ac_cv_prog_INTLBISON
14011 if test -n "$INTLBISON"; then
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
14013 $as_echo "$INTLBISON" >&6; }
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14016 $as_echo "no" >&6; }
14020 test -n "$INTLBISON" && break
14023 if test -z "$INTLBISON"; then
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
14027 $as_echo_n "checking version of bison... " >&6; }
14028 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
14029 case $ac_prog_version in
14030 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
14031 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
14032 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
14033 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
14036 $as_echo "$ac_prog_version" >&6; }
14038 if test $ac_verc_fail = yes; then
14044 # Check whether --with-language was given.
14045 if test "${with_language+set}" = set; then :
14046 withval
=$with_language; if test "$withval" != "all"; then :
14047 LINGUAS
="`echo $withval | sed -e 's/,/ /g'`"
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14067 $as_echo_n "checking whether NLS is requested... " >&6; }
14068 # Check whether --enable-nls was given.
14069 if test "${enable_nls+set}" = set; then :
14070 enableval
=$enable_nls; USE_NLS
=$enableval
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14076 $as_echo "$USE_NLS" >&6; }
14080 BUILD_INCLUDED_LIBINTL
=no
14081 USE_INCLUDED_LIBINTL
=no
14087 if test "$USE_NLS" = "yes"; then
14088 gt_use_preinstalled_gnugettext
=no
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
14091 $as_echo_n "checking whether included gettext is requested... " >&6; }
14093 # Check whether --with-included-gettext was given.
14094 if test "${with_included_gettext+set}" = set; then :
14095 withval
=$with_included_gettext; nls_cv_force_use_gnu_gettext
=$withval
14097 nls_cv_force_use_gnu_gettext
=no
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
14101 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
14103 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
14104 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
14112 $as_echo_n "checking for GNU gettext in libc... " >&6; }
14113 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then :
14114 $as_echo_n "(cached) " >&6
14116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14117 /* end confdefs.h. */
14118 #include <libintl.h>
14119 extern int _nl_msg_cat_cntr;
14120 extern int *_nl_domain_bindings;
14124 bindtextdomain ("", "");
14125 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
14130 if ac_fn_c_try_link
"$LINENO"; then :
14131 gt_cv_func_gnugettext2_libc
=yes
14133 gt_cv_func_gnugettext2_libc
=no
14135 rm -f core conftest.err conftest.
$ac_objext \
14136 conftest
$ac_exeext conftest.
$ac_ext
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5
14139 $as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
14141 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
14147 acl_save_prefix
="$prefix"
14148 prefix
="$acl_final_prefix"
14149 acl_save_exec_prefix
="$exec_prefix"
14150 exec_prefix
="$acl_final_exec_prefix"
14152 eval additional_includedir
=\"$includedir\"
14153 eval additional_libdir
=\"$libdir\"
14155 exec_prefix
="$acl_save_exec_prefix"
14156 prefix
="$acl_save_prefix"
14159 # Check whether --with-libintl-prefix was given.
14160 if test "${with_libintl_prefix+set}" = set; then :
14161 withval
=$with_libintl_prefix;
14162 if test "X$withval" = "Xno"; then
14165 if test "X$withval" = "X"; then
14167 acl_save_prefix
="$prefix"
14168 prefix
="$acl_final_prefix"
14169 acl_save_exec_prefix
="$exec_prefix"
14170 exec_prefix
="$acl_final_exec_prefix"
14172 eval additional_includedir
=\"$includedir\"
14173 eval additional_libdir
=\"$libdir\"
14175 exec_prefix
="$acl_save_exec_prefix"
14176 prefix
="$acl_save_prefix"
14179 additional_includedir
="$withval/include"
14180 additional_libdir
="$withval/lib"
14191 names_already_handled
=
14192 names_next_round
='intl '
14193 while test -n "$names_next_round"; do
14194 names_this_round
="$names_next_round"
14196 for name
in $names_this_round; do
14198 for n
in $names_already_handled; do
14199 if test "$n" = "$name"; then
14200 already_handled
=yes
14204 if test -z "$already_handled"; then
14205 names_already_handled
="$names_already_handled $name"
14206 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14207 eval value
=\"\
$HAVE_LIB$uppername\"
14208 if test -n "$value"; then
14209 if test "$value" = yes; then
14210 eval value
=\"\
$LIB$uppername\"
14211 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
14212 eval value
=\"\
$LTLIB$uppername\"
14213 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
14222 if test $use_additional = yes; then
14223 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14224 found_dir
="$additional_libdir"
14225 found_so
="$additional_libdir/lib$name.$shlibext"
14226 if test -f "$additional_libdir/lib$name.la"; then
14227 found_la
="$additional_libdir/lib$name.la"
14230 if test -f "$additional_libdir/lib$name.$libext"; then
14231 found_dir
="$additional_libdir"
14232 found_a
="$additional_libdir/lib$name.$libext"
14233 if test -f "$additional_libdir/lib$name.la"; then
14234 found_la
="$additional_libdir/lib$name.la"
14239 if test "X$found_dir" = "X"; then
14240 for x
in $LDFLAGS $LTLIBINTL; do
14242 acl_save_prefix
="$prefix"
14243 prefix
="$acl_final_prefix"
14244 acl_save_exec_prefix
="$exec_prefix"
14245 exec_prefix
="$acl_final_exec_prefix"
14247 exec_prefix
="$acl_save_exec_prefix"
14248 prefix
="$acl_save_prefix"
14252 dir
=`echo "X$x" | sed -e 's/^X-L//'`
14253 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14255 found_so
="$dir/lib$name.$shlibext"
14256 if test -f "$dir/lib$name.la"; then
14257 found_la
="$dir/lib$name.la"
14260 if test -f "$dir/lib$name.$libext"; then
14262 found_a
="$dir/lib$name.$libext"
14263 if test -f "$dir/lib$name.la"; then
14264 found_la
="$dir/lib$name.la"
14270 if test "X$found_dir" != "X"; then
14275 if test "X$found_dir" != "X"; then
14276 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14277 if test "X$found_so" != "X"; then
14278 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
14279 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
14282 for x
in $ltrpathdirs; do
14283 if test "X$x" = "X$found_dir"; then
14288 if test -z "$haveit"; then
14289 ltrpathdirs
="$ltrpathdirs $found_dir"
14291 if test "$hardcode_direct" = yes; then
14292 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
14294 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
14295 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
14297 for x
in $rpathdirs; do
14298 if test "X$x" = "X$found_dir"; then
14303 if test -z "$haveit"; then
14304 rpathdirs
="$rpathdirs $found_dir"
14308 for x
in $LDFLAGS $LIBINTL; do
14310 acl_save_prefix
="$prefix"
14311 prefix
="$acl_final_prefix"
14312 acl_save_exec_prefix
="$exec_prefix"
14313 exec_prefix
="$acl_final_exec_prefix"
14315 exec_prefix
="$acl_save_exec_prefix"
14316 prefix
="$acl_save_prefix"
14318 if test "X$x" = "X-L$found_dir"; then
14323 if test -z "$haveit"; then
14324 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14326 if test "$hardcode_minus_L" != no
; then
14327 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
14329 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
14335 if test "X$found_a" != "X"; then
14336 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
14338 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14341 additional_includedir
=
14342 case "$found_dir" in
14344 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14345 additional_includedir
="$basedir/include"
14348 if test "X$additional_includedir" != "X"; then
14349 if test "X$additional_includedir" != "X/usr/include"; then
14351 if test "X$additional_includedir" = "X/usr/local/include"; then
14352 if test -n "$GCC"; then
14354 linux
*) haveit
=yes;;
14358 if test -z "$haveit"; then
14359 for x
in $CPPFLAGS $INCINTL; do
14361 acl_save_prefix
="$prefix"
14362 prefix
="$acl_final_prefix"
14363 acl_save_exec_prefix
="$exec_prefix"
14364 exec_prefix
="$acl_final_exec_prefix"
14366 exec_prefix
="$acl_save_exec_prefix"
14367 prefix
="$acl_save_prefix"
14369 if test "X$x" = "X-I$additional_includedir"; then
14374 if test -z "$haveit"; then
14375 if test -d "$additional_includedir"; then
14376 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14382 if test -n "$found_la"; then
14383 save_libdir
="$libdir"
14384 case "$found_la" in
14385 */* |
*\\*) .
"$found_la" ;;
14386 *) .
"./$found_la" ;;
14388 libdir
="$save_libdir"
14389 for dep
in $dependency_libs; do
14392 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
14393 if test "X$additional_libdir" != "X/usr/lib"; then
14395 if test "X$additional_libdir" = "X/usr/local/lib"; then
14396 if test -n "$GCC"; then
14398 linux
*) haveit
=yes;;
14402 if test -z "$haveit"; then
14404 for x
in $LDFLAGS $LIBINTL; do
14406 acl_save_prefix
="$prefix"
14407 prefix
="$acl_final_prefix"
14408 acl_save_exec_prefix
="$exec_prefix"
14409 exec_prefix
="$acl_final_exec_prefix"
14411 exec_prefix
="$acl_save_exec_prefix"
14412 prefix
="$acl_save_prefix"
14414 if test "X$x" = "X-L$additional_libdir"; then
14419 if test -z "$haveit"; then
14420 if test -d "$additional_libdir"; then
14421 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14425 for x
in $LDFLAGS $LTLIBINTL; do
14427 acl_save_prefix
="$prefix"
14428 prefix
="$acl_final_prefix"
14429 acl_save_exec_prefix
="$exec_prefix"
14430 exec_prefix
="$acl_final_exec_prefix"
14432 exec_prefix
="$acl_save_exec_prefix"
14433 prefix
="$acl_save_prefix"
14435 if test "X$x" = "X-L$additional_libdir"; then
14440 if test -z "$haveit"; then
14441 if test -d "$additional_libdir"; then
14442 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14449 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
14450 if test "$enable_rpath" != no
; then
14452 for x
in $rpathdirs; do
14453 if test "X$x" = "X$dir"; then
14458 if test -z "$haveit"; then
14459 rpathdirs
="$rpathdirs $dir"
14462 for x
in $ltrpathdirs; do
14463 if test "X$x" = "X$dir"; then
14468 if test -z "$haveit"; then
14469 ltrpathdirs
="$ltrpathdirs $dir"
14474 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14477 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14480 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
14481 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14487 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
14488 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14494 if test "X$rpathdirs" != "X"; then
14495 if test -n "$hardcode_libdir_separator"; then
14497 for found_dir
in $rpathdirs; do
14498 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14500 acl_save_libdir
="$libdir"
14502 eval flag
=\"$hardcode_libdir_flag_spec\"
14503 libdir
="$acl_save_libdir"
14504 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
14506 for found_dir
in $rpathdirs; do
14507 acl_save_libdir
="$libdir"
14508 libdir
="$found_dir"
14509 eval flag
=\"$hardcode_libdir_flag_spec\"
14510 libdir
="$acl_save_libdir"
14511 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
14515 if test "X$ltrpathdirs" != "X"; then
14516 for found_dir
in $ltrpathdirs; do
14517 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14522 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14523 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then :
14524 $as_echo_n "(cached) " >&6
14526 gt_save_CPPFLAGS
="$CPPFLAGS"
14527 CPPFLAGS
="$CPPFLAGS $INCINTL"
14528 gt_save_LIBS
="$LIBS"
14529 LIBS
="$LIBS $LIBINTL"
14530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14531 /* end confdefs.h. */
14532 #include <libintl.h>
14533 extern int _nl_msg_cat_cntr;
14538 const char *_nl_expand_alias ();
14542 bindtextdomain ("", "");
14543 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
14548 if ac_fn_c_try_link
"$LINENO"; then :
14549 gt_cv_func_gnugettext2_libintl
=yes
14551 gt_cv_func_gnugettext2_libintl
=no
14553 rm -f core conftest.err conftest.
$ac_objext \
14554 conftest
$ac_exeext conftest.
$ac_ext
14555 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
14556 LIBS
="$LIBS $LIBICONV"
14557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14558 /* end confdefs.h. */
14559 #include <libintl.h>
14560 extern int _nl_msg_cat_cntr;
14565 const char *_nl_expand_alias ();
14569 bindtextdomain ("", "");
14570 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
14575 if ac_fn_c_try_link
"$LINENO"; then :
14576 LIBINTL
="$LIBINTL $LIBICONV"
14577 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
14578 gt_cv_func_gnugettext2_libintl
=yes
14581 rm -f core conftest.err conftest.
$ac_objext \
14582 conftest
$ac_exeext conftest.
$ac_ext
14584 CPPFLAGS
="$gt_save_CPPFLAGS"
14585 LIBS
="$gt_save_LIBS"
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5
14588 $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
14591 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
14592 ||
{ test "$gt_cv_func_gnugettext2_libintl" = "yes" \
14593 && test "$PACKAGE" != gettext; }; then
14594 gt_use_preinstalled_gnugettext
=yes
14602 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
14603 nls_cv_use_gnu_gettext
=yes
14607 if test "$nls_cv_use_gnu_gettext" = "yes"; then
14608 INTLOBJS
="\$(GETTOBJS)"
14609 BUILD_INCLUDED_LIBINTL
=yes
14610 USE_INCLUDED_LIBINTL
=yes
14611 LIBINTL
="\${top_builddir}/intl/libintl.a $LIBICONV"
14612 LTLIBINTL
="\${top_builddir}/intl/libintl.a $LTLIBICONV"
14613 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
14616 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14617 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
14622 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14623 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
14625 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14632 if test "$USE_NLS" = "yes"; then
14634 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14635 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14637 $as_echo_n "checking how to link with libintl... " >&6; }
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14639 $as_echo "$LIBINTL" >&6; }
14641 for element
in $INCINTL; do
14643 for x
in $CPPFLAGS; do
14645 acl_save_prefix
="$prefix"
14646 prefix
="$acl_final_prefix"
14647 acl_save_exec_prefix
="$exec_prefix"
14648 exec_prefix
="$acl_final_exec_prefix"
14650 exec_prefix
="$acl_save_exec_prefix"
14651 prefix
="$acl_save_prefix"
14653 if test "X$x" = "X$element"; then
14658 if test -z "$haveit"; then
14659 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
14666 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14669 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
14677 if test "$PACKAGE" = gettext; then
14678 BUILD_INCLUDED_LIBINTL
=yes
14686 nls_cv_header_intl
=
14687 nls_cv_header_libgt
=
14698 INTL_LIBTOOL_SUFFIX_PREFIX
=
14702 INTLLIBS
="$LIBINTL"
14709 if test $USE_INCLUDED_LIBINTL = yes; then :
14710 INCINTL
=-I\
${top_builddir}/intl
14713 if test x
$USE_NLS = xyes
; then :
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for autopoint" >&5
14716 $as_echo_n "checking for autopoint... " >&6; }
14717 autopoint_version
=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
14718 if test -n "$autopoint_version"; then :
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($autopoint_version)" >&5
14721 $as_echo "yes ($autopoint_version)" >&6; }
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14727 $as_echo "no" >&6; }
14733 if test x
$USE_NLS = xno
-a x
${enable_nls:-yes} = xyes
; then :
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14735 You need to install GNU gettext/gettext-tools to compile aMule with
14737 $as_echo "$as_me: WARNING:
14738 You need to install GNU gettext/gettext-tools to compile aMule with
14739 i18n support." >&2;}
14740 _mule_warning_13
=yes
14741 _mule_has_warnings
=yes
14745 if test ${USE_NLS:-no} = yes; then :
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for requested languages" >&5
14748 $as_echo_n "checking for requested languages... " >&6; }
14749 Generate_Langs
=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
14751 if test ${enable_amule_daemon:-no} = yes; then :
14753 if test -z "$LINGUAS"; then :
14754 AMULE_DAEMON_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
14757 AMULE_DAEMON_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs`
14758 AMULE_DAEMON_MANPAGES
="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
14761 AMULE_DAEMON_MANPAGES
=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
14764 AMULE_DAEMON_MANPAGES
=
14769 if test ${enable_amulecmd:-no} = yes; then :
14771 if test -z "$LINGUAS"; then :
14772 AMULECMD_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
14775 AMULECMD_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs`
14776 AMULECMD_MANPAGES
="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
14779 AMULECMD_MANPAGES
=`echo $AMULECMD_MANPAGES | tr -d '\n'`
14787 if test ${enable_webserver:-no} = yes; then :
14789 if test -z "$LINGUAS"; then :
14790 WEBSERVER_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
14793 WEBSERVER_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs`
14794 WEBSERVER_MANPAGES
="`basename docs/man/amuleweb.1` $WEBSERVER_MANPAGES"
14797 WEBSERVER_MANPAGES
=`echo $WEBSERVER_MANPAGES | tr -d '\n'`
14800 WEBSERVER_MANPAGES
=
14805 if test ${enable_amule_gui:-no} = yes; then :
14807 if test -z "$LINGUAS"; then :
14808 AMULE_GUI_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
14811 AMULE_GUI_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs`
14812 AMULE_GUI_MANPAGES
="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
14815 AMULE_GUI_MANPAGES
=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
14818 AMULE_GUI_MANPAGES
=
14823 if test ${enable_cas:-no} = yes; then :
14825 if test -z "$LINGUAS"; then :
14826 CAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
14829 CAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
14830 CAS_MANPAGES
="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
14833 CAS_MANPAGES
=`echo $CAS_MANPAGES | tr -d '\n'`
14841 if test ${enable_wxcas:-no} = yes; then :
14843 if test -z "$LINGUAS"; then :
14844 WXCAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
14847 WXCAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
14848 WXCAS_MANPAGES
="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
14851 WXCAS_MANPAGES
=`echo $WXCAS_MANPAGES | tr -d '\n'`
14859 if test ${enable_ed2k:-yes} = yes; then :
14861 if test -z "$LINGUAS"; then :
14862 ED2K_MANPAGES
=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
14865 ED2K_MANPAGES
=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs`
14866 ED2K_MANPAGES
="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
14869 ED2K_MANPAGES
=`echo $ED2K_MANPAGES | tr -d '\n'`
14877 if test ${enable_alc:-no} = yes; then :
14879 if test -z "$LINGUAS"; then :
14880 ALC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
14883 ALC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
14884 ALC_MANPAGES
="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
14887 ALC_MANPAGES
=`echo $ALC_MANPAGES | tr -d '\n'`
14895 if test ${enable_alcc:-no} = yes; then :
14897 if test -z "$LINGUAS"; then :
14898 ALCC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
14901 ALCC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
14902 ALCC_MANPAGES
="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
14905 ALCC_MANPAGES
=`echo $ALCC_MANPAGES | tr -d '\n'`
14913 if test ${enable_monolithic:-yes} = yes; then :
14915 if test -z "$LINGUAS"; then :
14916 MONOLITHIC_MANPAGES
=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
14919 MONOLITHIC_MANPAGES
=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs`
14920 MONOLITHIC_MANPAGES
="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
14923 MONOLITHIC_MANPAGES
=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
14926 MONOLITHIC_MANPAGES
=
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LINGUAS:-all}" >&5
14931 $as_echo "${LINGUAS:-all}" >&6; }
14937 ac_cpp
='$CXXCPP $CPPFLAGS'
14938 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14939 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14940 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
14944 # Check for bfd.h (to have proper backtraces without using wxExecute)
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bfd" >&5
14947 $as_echo_n "checking for bfd... " >&6; }
14949 for bfd_ldadd
in "" "${LIBINTL}" "-ldl" "-ldl ${LIBINTL}"; do
14950 mule_backup_LIBS
="$LIBS"
14951 mule_backup_LDFLAGS
="$LDFLAGS"
14952 LIBS
="-lbfd -liberty ${bfd_ldadd} ${ZLIB_LIBS} $LIBS"
14953 LDFLAGS
="$LDFLAGS ${ZLIB_LDFLAGS}"
14954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14955 /* end confdefs.h. */
14958 #include <ansidecl.h>
14965 const char *dummy = bfd_errmsg(bfd_get_error());
14972 if ac_fn_cxx_try_link
"$LINENO"; then :
14975 BFD_CPPFLAGS
="-DHAVE_BFD"
14976 BFD_LIBS
="-lbfd -liberty ${bfd_ldadd}"
14977 LIBS
="$mule_backup_LIBS"
14978 LDFLAGS
="$mule_backup_LDFLAGS"
14982 rm -f core conftest.err conftest.
$ac_objext \
14983 conftest
$ac_exeext conftest.
$ac_ext
14984 LIBS
="$mule_backup_LIBS"
14985 LDFLAGS
="$mule_backup_LDFLAGS"
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
14989 $as_echo "$result" >&6; }
14991 if test $result = no
; then :
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14993 bfd.h not found or unusable, please install binutils development
14994 package if you are a developer or want to help testing aMule" >&5
14995 $as_echo "$as_me: WARNING:
14996 bfd.h not found or unusable, please install binutils development
14997 package if you are a developer or want to help testing aMule" >&2;}
14998 _mule_warning_14
=yes
14999 _mule_has_warnings
=yes
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <execinfo.h> and backtrace()" >&5
15006 $as_echo_n "checking for <execinfo.h> and backtrace()... " >&6; }
15007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15008 /* end confdefs.h. */
15011 #include <execinfo.h>
15018 int n = backtrace((void **)&bt, 1);
15019 char **bt_syms = backtrace_symbols(bt, n);
15026 if ac_fn_cxx_try_link
"$LINENO"; then :
15029 $as_echo "#define HAVE_EXECINFO 1" >>confdefs.h
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15032 $as_echo "yes" >&6; }
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15037 $as_echo "no" >&6; }
15040 rm -f core conftest.err conftest.
$ac_objext \
15041 conftest
$ac_exeext conftest.
$ac_ext
15045 # aMule plasma widget
15046 if test ${enable_plasmamule:-no} = yes; then :
15049 if test -z ${QT_MOC}; then :
15051 for ac_prog
in moc-qt4 moc
15053 # Extract the first word of "$ac_prog", so it can be a program name with args.
15054 set dummy
$ac_prog; ac_word
=$2
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15056 $as_echo_n "checking for $ac_word... " >&6; }
15057 if test "${ac_cv_path_QT_MOC+set}" = set; then :
15058 $as_echo_n "(cached) " >&6
15062 ac_cv_path_QT_MOC
="$QT_MOC" # Let the user override the test with a path.
15065 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15066 for as_dir
in $PATH
15069 test -z "$as_dir" && as_dir
=.
15070 for ac_exec_ext
in '' $ac_executable_extensions; do
15071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15072 ac_cv_path_QT_MOC
="$as_dir/$ac_word$ac_exec_ext"
15073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15083 QT_MOC
=$ac_cv_path_QT_MOC
15084 if test -n "$QT_MOC"; then
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_MOC" >&5
15086 $as_echo "$QT_MOC" >&6; }
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15089 $as_echo "no" >&6; }
15093 test -n "$QT_MOC" && break
15096 if test -z ${QT_MOC}; then :
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc" >&5
15106 $as_echo_n "checking for moc... " >&6; }
15107 if test -x ${QT_MOC}; then :
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${QT_MOC}" >&5
15110 $as_echo "${QT_MOC}" >&6; }
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
15116 $as_echo "\"not found\"" >&6; }
15125 if test "${QT_MOC}" != "not found"; then :
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc version >= 4" >&5
15128 $as_echo_n "checking for moc version >= 4... " >&6; }
15129 QT_MOC_VERSION
=`${QT_MOC} -v 2>&1 | sed -e 's/^.* (/(/'`
15130 if test `echo ${QT_MOC_VERSION} | sed -e 's/^.* //' -e 's/\..*$//'` = 4; then :
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${QT_MOC_VERSION}" >&5
15133 $as_echo "found ${QT_MOC_VERSION}" >&6; }
15137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ${QT_MOC_VERSION} is too old" >&5
15138 $as_echo "not found ${QT_MOC_VERSION} is too old" >&6; }
15146 if test "${QT_MOC}" = "not found"; then :
15147 enable_plasmamule
=disabled
15150 if test ${enable_plasmamule:-no} = yes; then :
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt" >&5
15155 $as_echo_n "checking for qt... " >&6; }
15156 if test `${PKG_CONFIG} QtCore` --exists && `${PKG_CONFIG} QtGui --exists`; then :
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15159 $as_echo "found" >&6; }
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core cflags" >&5
15161 $as_echo_n "checking for qt core cflags... " >&6; }
15162 QT_CORE_CXXFLAGS
=`${PKG_CONFIG} --cflags QtCore`
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_CFLAGS" >&5
15164 $as_echo "$QT_CORE_CFLAGS" >&6; }
15165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core libs" >&5
15166 $as_echo_n "checking for qt core libs... " >&6; }
15167 QT_CORE_LIBS
=`${PKG_CONFIG} --libs QtCore`
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_LIBS" >&5
15169 $as_echo "$QT_CORE_LIBS" >&6; }
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui cflags" >&5
15171 $as_echo_n "checking for qt gui cflags... " >&6; }
15172 QT_GUI_CXXFLAGS
=`${PKG_CONFIG} --cflags QtGui`
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_CFLAGS" >&5
15174 $as_echo "$QT_GUI_CFLAGS" >&6; }
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui libs" >&5
15176 $as_echo_n "checking for qt gui libs... " >&6; }
15177 QT_GUI_LIBS
=`${PKG_CONFIG} --libs QtGui`
15178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_LIBS" >&5
15179 $as_echo "$QT_GUI_LIBS" >&6; }
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15183 $as_echo "not found" >&6; }
15188 if test `${PKG_CONFIG} QtDBus --modversion | sed -e 's/\.//g'` -ge 470 ; then :
15190 QT_DBUS_LDFLAGS
="-lQtDBus"
15200 if test -z "${QT_CORE_CXXFLAGS}"; then :
15201 enable_plasmamule
=disabled
15206 if test ${enable_plasmamule:-no} = yes; then :
15209 if test -z ${KDE4_CONFIG}; then :
15211 # Extract the first word of "kde4-config", so it can be a program name with args.
15212 set dummy kde4-config
; ac_word
=$2
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15214 $as_echo_n "checking for $ac_word... " >&6; }
15215 if test "${ac_cv_path_KDE4_CONFIG+set}" = set; then :
15216 $as_echo_n "(cached) " >&6
15218 case $KDE4_CONFIG in
15220 ac_cv_path_KDE4_CONFIG
="$KDE4_CONFIG" # Let the user override the test with a path.
15223 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15224 for as_dir
in $PATH
15227 test -z "$as_dir" && as_dir
=.
15228 for ac_exec_ext
in '' $ac_executable_extensions; do
15229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15230 ac_cv_path_KDE4_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
15231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15241 KDE4_CONFIG
=$ac_cv_path_KDE4_CONFIG
15242 if test -n "$KDE4_CONFIG"; then
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE4_CONFIG" >&5
15244 $as_echo "$KDE4_CONFIG" >&6; }
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15247 $as_echo "no" >&6; }
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4-config" >&5
15255 $as_echo_n "checking for kde4-config... " >&6; }
15256 if test ! -x KDE4_CONFIG
; then :
15258 KDE4_CONFIG
="not found"
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15260 $as_echo "not found" >&6; }
15267 if test "${KDE4_CONFIG}" != "not found"; then :
15269 KDE_CONF_VER
=`${KDE4_CONFIG} --version | grep KDE | sed -e 's/^.*: //' -e 's/ (.*$//'`
15270 if test `echo ${KDE_CONF_VER} | sed -e 's/\..*$//'` = 4; then :
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&5
15273 $as_echo "found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&6; }
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: at least version
4 required
" >&5
15278 $as_echo "at least version
4 required
" >&6; }
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: not found
" >&5
15286 $as_echo "not found
" >&6; }
15292 if test "${KDE4_CONFIG}" = "not found
"; then :
15293 enable_plasmamule=disabled
15298 if test ${enable_plasmamule:-no} = yes; then :
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for kde4 headers
" >&5
15302 $as_echo_n "checking
for kde4 headers...
" >&6; }
15303 KDE_HEADER_DIR=`${KDE4_CONFIG} --path include`
15305 if test -f ${KDE_HEADER_DIR}kdirwatch.h; then :
15307 if test -f ${KDE_HEADER_DIR}plasma/dataengine.h; then :
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${KDE_HEADER_DIR}" >&5
15310 $as_echo "${KDE_HEADER_DIR}" >&6; }
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: dataengine.h not found
" >&5
15315 $as_echo "dataengine.h not found
" >&6; }
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: kdirwatch.h not found
" >&5
15323 $as_echo "kdirwatch.h not found
" >&6; }
15329 if test -z ${KDE_HEADER_DIR}; then :
15330 enable_plasmamule=disabled
15335 if test ${enable_plasmamule:-no} = yes; then :
15337 if test -e `$BUILD_CC -print-file-name=libplasma.so` &&
15338 test -e `$BUILD_CC -print-file-name=libkdecore.so`; then :
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for kde4 applinks Path
" >&5
15343 $as_echo_n "checking
for kde4 applinks Path...
" >&6; }
15344 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15349 if test ${KDE_IN_HOME} = "yes"; then :
15351 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15355 if test -n ${prefix}; then :
15357 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep ${prefix} | head -1`
15358 if test -n ${KDE_APPLNK_PATH}; then :
15360 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
15366 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${KDE_APPLNK_PATH}" >&5
15372 $as_echo "${KDE_APPLNK_PATH}" >&6; }
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for kde4 services Path
" >&5
15378 $as_echo_n "checking
for kde4 services Path...
" >&6; }
15379 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15384 if test ${KDE_IN_HOME} = "yes"; then :
15386 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15390 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | grep /usr | head -1`
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${KDE_SERVICE_PATH}" >&5
15394 $as_echo "${KDE_SERVICE_PATH}" >&6; }
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for kde4 plugins Path
" >&5
15400 $as_echo_n "checking
for kde4 plugins Path...
" >&6; }
15401 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15406 if test ${KDE_IN_HOME} = "yes"; then :
15408 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15412 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | grep /usr | head -1`
15415 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${KDE_MODULE_PATH}" >&5
15416 $as_echo "${KDE_MODULE_PATH}" >&6; }
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for kde4 icons Path
" >&5
15422 $as_echo_n "checking
for kde4 icons Path...
" >&6; }
15423 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15428 if test ${KDE_IN_HOME} = "yes"; then :
15430 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15434 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | grep /usr | head -1`
15437 KDE_ICON_PATH=${KDE_ICON_PATH}hicolor/scalable/mimetypes/
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${KDE_ICON_PATH}" >&5
15439 $as_echo "${KDE_ICON_PATH}" >&6; }
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for location
for mime-type installation
" >&5
15445 $as_echo_n "checking
for location
for mime-type installation...
" >&6; }
15446 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15451 if test ${KDE_IN_HOME} = "yes"; then :
15453 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15457 if test -n ${prefix}; then :
15459 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | grep ${prefix} | head -1`
15460 if test -n ${KDE_MIME_PATH}; then :
15462 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
15468 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${KDE_MIME_PATH}" >&5
15474 $as_echo "${KDE_MIME_PATH}" >&6; }
15479 enable_plasmamule=disabled
15484 if test ${enable_debug:-yes} = yes; then :
15486 DEBUGFLAG="-D__DEBUG__"
15494 # Check for readline library
15495 if test ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes ; then :
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a readline compatible library
" >&5
15498 $as_echo_n "checking
for a readline compatible library...
" >&6; }
15499 if test "${vl_cv_lib_readline+set}" = set; then :
15500 $as_echo_n "(cached
) " >&6
15504 for readline_lib in readline edit editline; do
15505 for termcap_lib in "" termcap curses ncurses; do
15506 if test -z "$termcap_lib"; then
15507 TRY_LIB="-l$readline_lib"
15509 TRY_LIB="-l$readline_lib -l$termcap_lib"
15511 LIBS="$ORIG_LIBS $TRY_LIB"
15512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15513 /* end confdefs.h. */
15515 /* Override any GCC internal prototype to avoid an error.
15516 Use char because int might match the return type of a GCC
15517 builtin and then its argument prototype would still apply. */
15525 return readline ();
15530 if ac_fn_cxx_try_link "$LINENO"; then :
15531 vl_cv_lib_readline="$TRY_LIB"
15533 rm -f core conftest.err conftest.$ac_objext \
15534 conftest$ac_exeext conftest.$ac_ext
15535 if test -n "$vl_cv_lib_readline"; then
15539 if test -n "$vl_cv_lib_readline"; then
15543 if test -z "$vl_cv_lib_readline"; then
15544 vl_cv_lib_readline="no
"
15548 READLINE_LIBS="$vl_cv_lib_readline"
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $vl_cv_lib_readline" >&5
15553 $as_echo "$vl_cv_lib_readline" >&6; }
15555 if test "$vl_cv_lib_readline" != "no
"; then
15557 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
15559 for ac_header
in readline.h readline
/readline.h
15561 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15562 ac_fn_cxx_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15563 eval as_val
=\$
$as_ac_Header
15564 if test "x$as_val" = x
""yes; then :
15565 cat >>confdefs.h
<<_ACEOF
15566 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
15574 $as_echo_n "checking whether readline supports history... " >&6; }
15575 if test "${vl_cv_lib_readline_history+set}" = set; then :
15576 $as_echo_n "(cached) " >&6
15579 vl_cv_lib_readline_history
="no"
15580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15581 /* end confdefs.h. */
15583 /* Override any GCC internal prototype to avoid an error.
15584 Use char because int might match the return type of a GCC
15585 builtin and then its argument prototype would still apply. */
15589 char add_history ();
15593 return add_history ();
15598 if ac_fn_cxx_try_link
"$LINENO"; then :
15599 vl_cv_lib_readline_history
="yes"
15601 rm -f core conftest.err conftest.
$ac_objext \
15602 conftest
$ac_exeext conftest.
$ac_ext
15605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
15606 $as_echo "$vl_cv_lib_readline_history" >&6; }
15607 if test "$vl_cv_lib_readline_history" = "yes"; then
15609 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
15611 for ac_header
in history.h readline
/history.h
15613 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15614 ac_fn_cxx_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15615 eval as_val
=\$
$as_ac_Header
15616 if test "x$as_val" = x
""yes; then :
15617 cat >>confdefs.h
<<_ACEOF
15618 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15634 ac_cpp
='$CPP $CPPFLAGS'
15635 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15636 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15637 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15640 # Check for strerror_r
15641 mule_backup_CPPFLAGS
="$CPPFLAGS"
15642 CPPFLAGS
="$CPPFLAGS -D_XOPEN_SOURCE=600"
15643 ac_fn_c_check_decl
"$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
15644 if test "x$ac_cv_have_decl_strerror_r" = x
""yes; then :
15650 cat >>confdefs.h
<<_ACEOF
15651 #define HAVE_DECL_STRERROR_R $ac_have_decl
15654 for ac_func
in strerror_r
15656 ac_fn_c_check_func
"$LINENO" "strerror_r" "ac_cv_func_strerror_r"
15657 if test "x$ac_cv_func_strerror_r" = x
""yes; then :
15658 cat >>confdefs.h
<<_ACEOF
15659 #define HAVE_STRERROR_R 1
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
15666 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
15667 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then :
15668 $as_echo_n "(cached) " >&6
15671 ac_cv_func_strerror_r_char_p
=no
15672 if test $ac_cv_have_decl_strerror_r = yes; then
15673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15674 /* end confdefs.h. */
15675 $ac_includes_default
15681 char x = *strerror_r (0, buf, sizeof buf);
15682 char *p = strerror_r (0, buf, sizeof buf);
15689 if ac_fn_c_try_compile
"$LINENO"; then :
15690 ac_cv_func_strerror_r_char_p
=yes
15692 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15694 # strerror_r is not declared. Choose between
15695 # systems that have relatively inaccessible declarations for the
15696 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
15697 # former has a strerror_r that returns char*, while the latter
15698 # has a strerror_r that returns `int'.
15699 # This test should segfault on the DEC system.
15700 if test "$cross_compiling" = yes; then :
15703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15704 /* end confdefs.h. */
15705 $ac_includes_default
15706 extern char *strerror_r ();
15711 char x = *strerror_r (0, buf, sizeof buf);
15712 return ! isalpha (x);
15717 if ac_fn_c_try_run
"$LINENO"; then :
15718 ac_cv_func_strerror_r_char_p
=yes
15720 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15721 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
15728 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
15729 if test $ac_cv_func_strerror_r_char_p = yes; then
15731 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
15735 CPPFLAGS
="$mule_backup_CPPFLAGS"
15740 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for docdir" >&5
15742 $as_echo_n "checking for docdir... " >&6; }
15743 if test -z "$docdir"; then :
15744 docdir
="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}"
15746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
15747 $as_echo "$docdir" >&6; }
15750 # Try to set the SVN checkout-date
15751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVNDATE" >&5
15752 $as_echo_n "checking for SVNDATE... " >&6; }
15753 if test -f "$srcdir/.svn-revision" # SVNDATE for tarballs
15755 svndate
="rev. `cat $srcdir/.svn-revision`"
15756 elif test -d $srcdir/.svn
# SVNDATE for svn
15758 svndate
="rev. `svnversion $srcdir | sed -e 's/[0-9][0-9]*:\(.*\)/\1/' -e 's/\([0-9][0-9]*\).*/\1/'`"
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svndate:-None required}" >&5
15761 $as_echo "${svndate:-None required}" >&6; }
15762 if test -n "$svndate"; then :
15765 cat >>confdefs.h
<<_ACEOF
15766 #define SVNDATE "$svndate"
15769 MULERCFLAGS
="$MULERCFLAGS -D__PRERELEASE__"
15777 # Check whether --with-denoise-level was given.
15778 if test "${with_denoise_level+set}" = set; then :
15779 withval
=$with_denoise_level;
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking denoising level" >&5
15784 $as_echo_n "checking denoising level... " >&6; }
15785 if test ${with_denoise_level:-5} = yes; then :
15786 with_denoise_level
=5
15788 if test ${with_denoise_level:-5} = no
; then :
15789 with_denoise_level
=0
15791 if test ${with_denoise_level:-5} -gt 4; then :
15792 if test "${svndate:+set}" = "set"; then :
15793 with_denoise_level
=0
15795 with_denoise_level
=4
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_denoise_level" >&5
15799 $as_echo "$with_denoise_level" >&6; }
15801 ac_config_commands
="$ac_config_commands denoiser"
15806 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
15808 # Check whether --enable-ccache was given.
15809 if test "${enable_ccache+set}" = set; then :
15810 enableval
=$enable_ccache;
15816 # Check whether --with-ccache-prefix was given.
15817 if test "${with_ccache_prefix+set}" = set; then :
15818 withval
=$with_ccache_prefix;
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ccache support should be added" >&5
15823 $as_echo_n "checking whether ccache support should be added... " >&6; }
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_ccache:-no}" >&5
15825 $as_echo "${enable_ccache:-no}" >&6; }
15827 if test ${enable_ccache:-no} = yes; then :
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccache presence" >&5
15830 $as_echo_n "checking for ccache presence... " >&6; }
15831 if test -z "$with_ccache_prefix"; then :
15833 ccache_full
=`which ccache`
15834 with_ccache_prefix
=`dirname ${ccache_full}`
15837 if $with_ccache_prefix/ccache
-V >/dev
/null
2>&1; then :
15839 CC
="$with_ccache_prefix/ccache $CC"
15840 CXX
="$with_ccache_prefix/ccache $CXX"
15841 BUILD_CC
="$with_ccache_prefix/ccache $BUILD_CC"
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_ccache:-no}" >&5
15847 $as_echo "${enable_ccache:-no}" >&6; }
15854 if test x
$SYS = xwin32
; then
15856 SYS_WIN32_FALSE
='#'
15862 if test x
$SYS = xwin32
-a "$RC" != ":"; then
15870 if test x
$SYS = xdarwin
; then
15871 NEED_CORESERVICES_TRUE
=
15872 NEED_CORESERVICES_FALSE
='#'
15874 NEED_CORESERVICES_TRUE
='#'
15875 NEED_CORESERVICES_FALSE
=
15878 if test x
$USE_NLS = xyes
; then
15880 COMPILE_NLS_FALSE
='#'
15882 COMPILE_NLS_TRUE
='#'
15886 if test x
$HAVE_FLEX_EXTENDED = xyes
; then
15887 GENERATE_FLEX_HEADER_TRUE
=
15888 GENERATE_FLEX_HEADER_FALSE
='#'
15890 GENERATE_FLEX_HEADER_TRUE
='#'
15891 GENERATE_FLEX_HEADER_FALSE
=
15894 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then
15895 INSTALL_SKINS_TRUE
=
15896 INSTALL_SKINS_FALSE
='#'
15898 INSTALL_SKINS_TRUE
='#'
15899 INSTALL_SKINS_FALSE
=
15902 if test ${enable_plasmamule:-no} = yes; then
15904 PLASMAMULE_FALSE
='#'
15906 PLASMAMULE_TRUE
='#'
15911 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then
15912 COMPILE_LIB_COMMON_TRUE
=
15913 COMPILE_LIB_COMMON_FALSE
='#'
15915 COMPILE_LIB_COMMON_TRUE
='#'
15916 COMPILE_LIB_COMMON_FALSE
=
15919 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_amule_gui:-no} = yes ; then
15920 COMPILE_LIB_EC_TRUE
=
15921 COMPILE_LIB_EC_FALSE
='#'
15923 COMPILE_LIB_EC_TRUE
='#'
15924 COMPILE_LIB_EC_FALSE
=
15928 ac_config_files
="$ac_config_files Makefile docs/Makefile docs/man/Makefile intl/Makefile po/Makefile.in src/Makefile src/pixmaps/Makefile src/pixmaps/flags_xpm/Makefile src/libs/Makefile src/libs/ec/Makefile src/libs/ec/cpp/Makefile src/libs/common/Makefile src/utils/Makefile src/utils/aLinkCreator/Makefile src/utils/aLinkCreator/docs/Makefile src/utils/aLinkCreator/src/Makefile src/utils/cas/Makefile src/utils/cas/docs/Makefile src/utils/fileview/Makefile src/utils/plasmamule/Makefile src/utils/wxCas/Makefile src/utils/wxCas/docs/Makefile src/utils/wxCas/src/Makefile src/utils/xas/Makefile src/utils/xas/autostart-xas src/utils/xas/docs/Makefile src/skins/Makefile src/webserver/Makefile src/webserver/src/Makefile src/webserver/default/Makefile unittests/Makefile unittests/muleunit/Makefile unittests/tests/Makefile"
15931 if test x
$SYS = xwin32
; then :
15932 ac_config_files
="$ac_config_files version.rc"
15935 cat >confcache
<<\_ACEOF
15936 # This file is a shell script that caches the results of configure
15937 # tests run on this system so they can be shared between configure
15938 # scripts and configure runs, see configure's option --config-cache.
15939 # It is not useful on other systems. If it contains results you don't
15940 # want to keep, you may remove or edit it.
15942 # config.status only pays attention to the cache file if you give it
15943 # the --recheck option to rerun configure.
15945 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15946 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15947 # following values.
15951 # The following way of writing the cache mishandles newlines in values,
15952 # but we know of no workaround that is simple, portable, and efficient.
15953 # So, we kill variables containing newlines.
15954 # Ultrix sh set writes to stderr and can't be redirected directly,
15955 # and sets the high bit in the cache file unless we assign to the vars.
15957 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15958 eval ac_val
=\$
$ac_var
15962 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15963 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15966 _ | IFS | as_nl
) ;; #(
15967 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15968 *) { eval $ac_var=; unset $ac_var;} ;;
15974 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15975 *${as_nl}ac_space
=\
*)
15976 # `set' does not quote correctly, so add quotes: double-quote
15977 # substitution turns \\\\ into \\, and sed turns \\ into \.
15980 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15983 # `set' quotes correctly as required by POSIX, so do not add quotes.
15984 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15993 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15995 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15997 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15998 if test -w "$cache_file"; then
15999 test "x$cache_file" != "x/dev/null" &&
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16001 $as_echo "$as_me: updating cache $cache_file" >&6;}
16002 cat confcache
>$cache_file
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16005 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16010 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16011 # Let make expand exec_prefix.
16012 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16014 DEFS
=-DHAVE_CONFIG_H
16018 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16019 # 1. Remove the extension, and $U if already installed.
16020 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
16021 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
16022 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16023 # will be set to the directory where LIBOBJS objects are built.
16024 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16025 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
16027 LIBOBJS
=$ac_libobjs
16029 LTLIBOBJS
=$ac_ltlibobjs
16032 if test -n "$EXEEXT"; then
16034 am__EXEEXT_FALSE
='#'
16036 am__EXEEXT_TRUE
='#'
16040 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16041 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
16042 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16044 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16045 as_fn_error
"conditional \"AMDEP\" was never defined.
16046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16048 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16049 as_fn_error
"conditional \"am__fastdepCXX\" was never defined.
16050 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16052 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16053 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
16054 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16056 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
16057 as_fn_error
"conditional \"MONOLITHIC\" was never defined.
16058 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16060 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
16061 as_fn_error
"conditional \"AMULE_DAEMON\" was never defined.
16062 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16064 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
16065 as_fn_error
"conditional \"COMPILE_CMD\" was never defined.
16066 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16068 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
16069 as_fn_error
"conditional \"WEB\" was never defined.
16070 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16072 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
16073 as_fn_error
"conditional \"AMULE_GUI\" was never defined.
16074 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16076 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
16077 as_fn_error
"conditional \"CAS\" was never defined.
16078 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16080 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
16081 as_fn_error
"conditional \"WXCAS\" was never defined.
16082 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16084 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
16085 as_fn_error
"conditional \"ED2K\" was never defined.
16086 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16088 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
16089 as_fn_error
"conditional \"ALC\" was never defined.
16090 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16092 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
16093 as_fn_error
"conditional \"ALCC\" was never defined.
16094 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16096 if test -z "${XAS_TRUE}" && test -z "${XAS_FALSE}"; then
16097 as_fn_error
"conditional \"XAS\" was never defined.
16098 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16100 if test -z "${FILEVIEW_TRUE}" && test -z "${FILEVIEW_FALSE}"; then
16101 as_fn_error
"conditional \"FILEVIEW\" was never defined.
16102 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16104 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
16105 as_fn_error
"conditional \"SYS_WIN32\" was never defined.
16106 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16108 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
16109 as_fn_error
"conditional \"NEED_RC\" was never defined.
16110 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16112 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
16113 as_fn_error
"conditional \"NEED_CORESERVICES\" was never defined.
16114 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16116 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
16117 as_fn_error
"conditional \"COMPILE_NLS\" was never defined.
16118 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16120 if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then
16121 as_fn_error
"conditional \"GENERATE_FLEX_HEADER\" was never defined.
16122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16124 if test -z "${INSTALL_SKINS_TRUE}" && test -z "${INSTALL_SKINS_FALSE}"; then
16125 as_fn_error
"conditional \"INSTALL_SKINS\" was never defined.
16126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16128 if test -z "${PLASMAMULE_TRUE}" && test -z "${PLASMAMULE_FALSE}"; then
16129 as_fn_error
"conditional \"PLASMAMULE\" was never defined.
16130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16132 if test -z "${COMPILE_LIB_COMMON_TRUE}" && test -z "${COMPILE_LIB_COMMON_FALSE}"; then
16133 as_fn_error
"conditional \"COMPILE_LIB_COMMON\" was never defined.
16134 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16136 if test -z "${COMPILE_LIB_EC_TRUE}" && test -z "${COMPILE_LIB_EC_FALSE}"; then
16137 as_fn_error
"conditional \"COMPILE_LIB_EC\" was never defined.
16138 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16141 : ${CONFIG_STATUS=./config.status}
16143 ac_clean_files_save
=$ac_clean_files
16144 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16146 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16148 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16150 # Generated by $as_me.
16151 # Run this file to recreate the current configuration.
16152 # Compiler output produced by configure, useful for debugging
16153 # configure, is in config.log if it exists.
16156 ac_cs_recheck=false
16159 SHELL=\${CONFIG_SHELL-$SHELL}
16162 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
16163 ## -------------------- ##
16164 ## M4sh Initialization. ##
16165 ## -------------------- ##
16167 # Be more Bourne compatible
16168 DUALCASE
=1; export DUALCASE
# for MKS sh
16169 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
16172 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16173 # is contrary to our usage. Disable this feature.
16174 alias -g '${1+"$@"}'='"$@"'
16175 setopt NO_GLOB_SUBST
16177 case `(set -o) 2>/dev/null` in #(
16189 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16190 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16191 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16192 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16193 # Prefer a ksh shell builtin over an external printf program on Solaris,
16194 # but without wasting forks for bash or zsh.
16195 if test -z "$BASH_VERSION$ZSH_VERSION" \
16196 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16197 as_echo='print
-r --'
16198 as_echo_n='print
-rn --'
16199 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16200 as_echo='printf %s
\n'
16201 as_echo_n='printf %s
'
16203 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16204 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
16205 as_echo_n='/usr
/ucb
/echo -n'
16207 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16208 as_echo_n_body='eval
16212 expr "X$arg" : "X\\(.*\\)$as_nl";
16213 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16215 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
16217 export as_echo_n_body
16218 as_echo_n='sh
-c $as_echo_n_body as_echo
'
16220 export as_echo_body
16221 as_echo='sh
-c $as_echo_body as_echo
'
16224 # The user is always right.
16225 if test "${PATH_SEPARATOR+set}" != set; then
16227 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16228 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16235 # We need space, tab and new line, in precisely that order. Quoting is
16236 # there to prevent editors from complaining about space-tab.
16237 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16238 # splitting by setting IFS to empty value.)
16241 # Find who we are. Look in the path if we contain no directory separator.
16243 *[\\/]* ) as_myself=$0 ;;
16244 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16245 for as_dir in $PATH
16248 test -z "$as_dir" && as_dir=.
16249 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16255 # We did not find ourselves, most probably we were run as `sh COMMAND'
16256 # in which case we are not to be found in the path.
16257 if test "x$as_myself" = x
; then
16260 if test ! -f "$as_myself"; then
16261 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16265 # Unset variables that we do not need and which cause bugs (e.g. in
16266 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16267 # suppresses any "Segmentation fault" message there. '((' could
16268 # trigger a bug in pdksh 5.2.14.
16269 for as_var
in BASH_ENV ENV MAIL MAILPATH
16270 do eval test x\
${$as_var+set} = xset \
16271 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
16284 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
16287 # as_fn_error ERROR [LINENO LOG_FD]
16288 # ---------------------------------
16289 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16290 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16291 # script with status $?, using 1 if that was 0.
16294 as_status
=$?
; test $as_status -eq 0 && as_status
=1
16296 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
16297 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16299 $as_echo "$as_me: error: $1" >&2
16300 as_fn_exit
$as_status
16304 # as_fn_set_status STATUS
16305 # -----------------------
16306 # Set $? to STATUS, without forking.
16307 as_fn_set_status
()
16310 } # as_fn_set_status
16312 # as_fn_exit STATUS
16313 # -----------------
16314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16318 as_fn_set_status
$1
16324 # Portably unset VAR.
16327 { eval $1=; unset $1;}
16329 as_unset
=as_fn_unset
16330 # as_fn_append VAR VALUE
16331 # ----------------------
16332 # Append the text in VALUE to the end of the definition contained in VAR. Take
16333 # advantage of any shell optimizations that allow amortized linear growth over
16334 # repeated appends, instead of the typical quadratic growth present in naive
16336 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
16337 eval 'as_fn_append ()
16348 # as_fn_arith ARG...
16349 # ------------------
16350 # Perform arithmetic evaluation on the ARGs, and store the result in the
16351 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16352 # must be portable across $(()) and expr.
16353 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
16354 eval 'as_fn_arith ()
16361 as_val
=`expr "$@" || test $? -eq 1`
16366 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
16367 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
16373 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16374 as_basename
=basename
16379 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
16385 as_me
=`$as_basename -- "$0" ||
16386 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16387 X"$0" : 'X\(//\)$' \| \
16388 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16390 sed '/^.*\/\([^/][^/]*\)\/*$/{
16404 # Avoid depending upon Character Ranges.
16405 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16406 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16407 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16408 as_cr_digits
='0123456789'
16409 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16411 ECHO_C
= ECHO_N
= ECHO_T
=
16412 case `echo -n x` in #(((((
16414 case `echo 'xy\c'` in
16415 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
16417 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
16424 rm -f conf$$ conf$$.exe conf$$.
file
16425 if test -d conf$$.dir
; then
16426 rm -f conf$$.dir
/conf$$.
file
16429 mkdir conf$$.dir
2>/dev
/null
16431 if (echo >conf$$.
file) 2>/dev
/null
; then
16432 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16434 # ... but there are two gotchas:
16435 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16436 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16437 # In both cases, we have to default to `cp -p'.
16438 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
16440 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16448 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
16449 rmdir conf$$.dir
2>/dev
/null
16454 # Create "$as_dir" as a directory, including parents if necessary.
16459 -*) as_dir
=.
/$as_dir;;
16461 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
16465 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16466 *) as_qdir
=$as_dir;;
16468 as_dirs
="'$as_qdir' $as_dirs"
16469 as_dir
=`$as_dirname -- "$as_dir" ||
16470 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16471 X"$as_dir" : 'X\(//\)[^/]' \| \
16472 X"$as_dir" : 'X\(//\)$' \| \
16473 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16474 $as_echo X"$as_dir" |
16475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16479 /^X\(\/\/\)[^/].*/{
16492 test -d "$as_dir" && break
16494 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
16495 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
16499 if mkdir
-p .
2>/dev
/null
; then
16500 as_mkdir_p
='mkdir -p "$as_dir"'
16502 test -d .
/-p && rmdir .
/-p
16506 if test -x / >/dev
/null
2>&1; then
16507 as_test_x
='test -x'
16509 if ls -dL / >/dev
/null
2>&1; then
16516 if test -d "$1"; then
16522 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16523 ???[sx]*):;;*)false;;esac;fi
16527 as_executable_p
=$as_test_x
16529 # Sed expression to map a string onto a valid CPP name.
16530 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16532 # Sed expression to map a string onto a valid variable name.
16533 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16537 ## ----------------------------------- ##
16538 ## Main body of $CONFIG_STATUS script. ##
16539 ## ----------------------------------- ##
16541 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
16543 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16544 # Save the log message, to keep $0 and so on meaningful, and to
16545 # report actual input values of CONFIG_FILES etc. instead of their
16546 # values after options handling.
16548 This file was extended by aMule $as_me SVN, which was
16549 generated by GNU Autoconf 2.65. Invocation command line was
16551 CONFIG_FILES = $CONFIG_FILES
16552 CONFIG_HEADERS = $CONFIG_HEADERS
16553 CONFIG_LINKS = $CONFIG_LINKS
16554 CONFIG_COMMANDS = $CONFIG_COMMANDS
16557 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16562 case $ac_config_files in *"
16563 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
16566 case $ac_config_headers in *"
16567 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
16571 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16572 # Files that config.status was made for.
16573 config_files="$ac_config_files"
16574 config_headers="$ac_config_headers"
16575 config_commands="$ac_config_commands"
16579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16581 \`$as_me' instantiates files and other configuration actions
16582 from templates according to the current configuration. Unless the files
16583 and actions are specified as TAGs, all are instantiated by default.
16585 Usage: $0 [OPTION]... [TAG]...
16587 -h, --help print this help, then exit
16588 -V, --version print version number and configuration settings, then exit
16589 --config print configuration, then exit
16590 -q, --quiet, --silent
16591 do not print progress messages
16592 -d, --debug don't remove temporary files
16593 --recheck update $as_me by reconfiguring in the same conditions
16594 --file=FILE[:TEMPLATE]
16595 instantiate the configuration file FILE
16596 --header=FILE[:TEMPLATE]
16597 instantiate the configuration header FILE
16599 Configuration files:
16602 Configuration headers:
16605 Configuration commands:
16608 Report bugs to <admin@amule.org>."
16611 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16612 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16614 aMule config.status SVN
16615 configured by $0, generated by GNU Autoconf 2.65,
16616 with options \\"\$ac_cs_config\\"
16618 Copyright (C) 2009 Free Software Foundation, Inc.
16619 This config.status script is free software; the Free Software Foundation
16620 gives unlimited permission to copy, distribute and modify it."
16627 test -n "\$AWK" || AWK=awk
16630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16631 # The default lists apply if the user does not specify any file.
16637 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16638 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
16649 # Handling of the options.
16650 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16652 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
16653 $as_echo "$ac_cs_version"; exit ;;
16654 --config |
--confi |
--conf |
--con |
--co |
--c )
16655 $as_echo "$ac_cs_config"; exit ;;
16656 --debug |
--debu |
--deb |
--de |
--d |
-d )
16658 --file |
--fil |
--fi |
--f )
16661 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16663 as_fn_append CONFIG_FILES
" '$ac_optarg'"
16664 ac_need_defaults
=false
;;
16665 --header |
--heade |
--head |
--hea )
16668 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16670 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
16671 ac_need_defaults
=false
;;
16673 # Conflict between --help and --header
16674 as_fn_error
"ambiguous option: \`$1'
16675 Try \`$0 --help' for more information.";;
16676 --help |
--hel |
-h )
16677 $as_echo "$ac_cs_usage"; exit ;;
16678 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16679 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16682 # This is an error.
16683 -*) as_fn_error
"unrecognized option: \`$1'
16684 Try \`$0 --help' for more information." ;;
16686 *) as_fn_append ac_config_targets
" $1"
16687 ac_need_defaults
=false
;;
16693 ac_configure_extra_args
=
16695 if $ac_cs_silent; then
16697 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16702 if \$ac_cs_recheck; then
16703 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16705 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16706 CONFIG_SHELL='$SHELL'
16707 export CONFIG_SHELL
16712 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16716 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16717 ## Running $as_me. ##
16723 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16727 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16728 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16729 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
16731 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
16732 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16733 LINGUAS="${LINGUAS-%UNSET%}"
16735 denoiserlevel=$with_denoise_level
16739 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16741 # Handling of arguments.
16742 for ac_config_target
in $ac_config_targets
16744 case $ac_config_target in
16745 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
16746 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
16747 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
16748 "denoiser") CONFIG_COMMANDS
="$CONFIG_COMMANDS denoiser" ;;
16749 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16750 "docs/Makefile") CONFIG_FILES
="$CONFIG_FILES docs/Makefile" ;;
16751 "docs/man/Makefile") CONFIG_FILES
="$CONFIG_FILES docs/man/Makefile" ;;
16752 "intl/Makefile") CONFIG_FILES
="$CONFIG_FILES intl/Makefile" ;;
16753 "po/Makefile.in") CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
16754 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
16755 "src/pixmaps/Makefile") CONFIG_FILES
="$CONFIG_FILES src/pixmaps/Makefile" ;;
16756 "src/pixmaps/flags_xpm/Makefile") CONFIG_FILES
="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
16757 "src/libs/Makefile") CONFIG_FILES
="$CONFIG_FILES src/libs/Makefile" ;;
16758 "src/libs/ec/Makefile") CONFIG_FILES
="$CONFIG_FILES src/libs/ec/Makefile" ;;
16759 "src/libs/ec/cpp/Makefile") CONFIG_FILES
="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
16760 "src/libs/common/Makefile") CONFIG_FILES
="$CONFIG_FILES src/libs/common/Makefile" ;;
16761 "src/utils/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/Makefile" ;;
16762 "src/utils/aLinkCreator/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
16763 "src/utils/aLinkCreator/docs/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
16764 "src/utils/aLinkCreator/src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
16765 "src/utils/cas/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/cas/Makefile" ;;
16766 "src/utils/cas/docs/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
16767 "src/utils/fileview/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/fileview/Makefile" ;;
16768 "src/utils/plasmamule/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/plasmamule/Makefile" ;;
16769 "src/utils/wxCas/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
16770 "src/utils/wxCas/docs/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
16771 "src/utils/wxCas/src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
16772 "src/utils/xas/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/xas/Makefile" ;;
16773 "src/utils/xas/autostart-xas") CONFIG_FILES
="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
16774 "src/utils/xas/docs/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
16775 "src/skins/Makefile") CONFIG_FILES
="$CONFIG_FILES src/skins/Makefile" ;;
16776 "src/webserver/Makefile") CONFIG_FILES
="$CONFIG_FILES src/webserver/Makefile" ;;
16777 "src/webserver/src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/webserver/src/Makefile" ;;
16778 "src/webserver/default/Makefile") CONFIG_FILES
="$CONFIG_FILES src/webserver/default/Makefile" ;;
16779 "unittests/Makefile") CONFIG_FILES
="$CONFIG_FILES unittests/Makefile" ;;
16780 "unittests/muleunit/Makefile") CONFIG_FILES
="$CONFIG_FILES unittests/muleunit/Makefile" ;;
16781 "unittests/tests/Makefile") CONFIG_FILES
="$CONFIG_FILES unittests/tests/Makefile" ;;
16782 "version.rc") CONFIG_FILES
="$CONFIG_FILES version.rc" ;;
16784 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16789 # If the user did not use the arguments to specify the items to instantiate,
16790 # then the envvar interface is used. Set only those that are not.
16791 # We use the long form for the default assignment because of an extremely
16792 # bizarre bug on SunOS 4.1.3.
16793 if $ac_need_defaults; then
16794 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16795 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16796 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16799 # Have a temporary directory for convenience. Make it in the build tree
16800 # simply because there is no reason against having it here, and in addition,
16801 # creating and moving files from /tmp can sometimes cause problems.
16802 # Hook for its removal unless debugging.
16803 # Note that there is a small window in which the directory will not be cleaned:
16804 # after its creation but before its name has been assigned to `$tmp'.
16808 trap 'exit_status=$?
16809 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16811 trap 'as_fn_exit 1' 1 2 13 15
16813 # Create a (secure) tmp directory for tmp files.
16816 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16817 test -n "$tmp" && test -d "$tmp"
16820 tmp
=.
/conf$$
-$RANDOM
16821 (umask 077 && mkdir
"$tmp")
16822 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
16824 # Set up the scripts for CONFIG_FILES section.
16825 # No need to generate them if there are no CONFIG_FILES.
16826 # This happens for instance with `./config.status config.h'.
16827 if test -n "$CONFIG_FILES"; then
16830 ac_cr
=`echo X | tr X '\015'`
16831 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16832 # But we know of no other shell where ac_cr would be empty at this
16833 # point, so we can use a bashism as a fallback.
16834 if test "x$ac_cr" = x
; then
16835 eval ac_cr
=\$
\'\\r
\'
16837 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16838 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16841 ac_cs_awk_cr
=$ac_cr
16844 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16849 echo "cat >conf$$subs.awk <<_ACEOF" &&
16850 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16852 } >conf$$subs.sh ||
16853 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16854 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16856 for ac_last_try in false false false false false :; do
16857 . ./conf$$subs.sh ||
16858 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16860 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
16861 if test $ac_delim_n = $ac_delim_num; then
16863 elif $ac_last_try; then
16864 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16866 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16869 rm -f conf$$subs.sh
16871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16872 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
16876 s/^/S["/; s
/!.
*/"]=/
16886 s/\(.\{148\}\)..*/\1/
16888 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16893 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16900 s/\(.\{148\}\)..*/\1/
16902 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
16906 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16911 ' <conf$$subs.awk | sed '
16916 ' >>$CONFIG_STATUS || ac_write_fail=1
16917 rm -f conf$$subs.awk
16918 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16920 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
16921 for (key in S) S_is_set[key] = 1
16927 nfields = split(line, field, "@
")
16929 len = length(field[1])
16930 for (i = 2; i < nfields; i++) {
16932 keylen = length(key)
16933 if (S_is_set[key]) {
16935 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16936 len += length(value) + length(field[++i])
16947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16948 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16949 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
16952 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
16953 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
16956 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16957 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
16958 # trailing colons and then remove the whole line if VPATH becomes empty
16959 # (actually we leave an empty line to preserve line numbers).
16960 if test "x
$srcdir" = x.; then
16961 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16962 s/:*\$(srcdir):*/:/
16963 s/:*\${srcdir}:*/:/
16965 s/^\([^=]*=[ ]*\):*/\1/
16971 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16972 fi # test -n "$CONFIG_FILES"
16974 # Set up the scripts for CONFIG_HEADERS section.
16975 # No need to generate them if there are no CONFIG_HEADERS.
16976 # This happens for instance with `./config.status Makefile'.
16977 if test -n "$CONFIG_HEADERS"; then
16978 cat >"$tmp/defines.
awk" <<\_ACAWK ||
16982 # Transform confdefs.h into an awk script `defines.awk', embedded as
16983 # here-document in config.status, that substitutes the proper values into
16984 # config.h.in to produce config.h.
16986 # Create a delimiter string that does not exist in confdefs.h, to ease
16987 # handling of long lines.
16989 for ac_last_try in false false :; do
16990 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
16991 if test -z "$ac_t"; then
16993 elif $ac_last_try; then
16994 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
16996 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17000 # For the awk script, D is an array of macro values keyed by name,
17001 # likewise P contains macro parameters if any. Preserve backslash
17002 # newline sequences.
17004 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17006 s/.\{148\}/&'"$ac_delim"'/g
17009 s/^[ ]*#[ ]*define[ ][ ]*/ /
17016 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
17018 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
17022 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
17023 D["\
1"]=" \
3\\\\\\n
"\\/p
17025 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
17030 s/.\{148\}/&'"$ac_delim"'/g
17035 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
17038 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
17040 ' <confdefs.h | sed '
17041 s/'"$ac_delim"'/"\\\
17042 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17044 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17045 for (key in D) D_is_set[key] = 1
17048 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17050 split(line, arg, " ")
17051 if (arg[1] == "#") {
17055 defundef
= substr
(arg
[1], 2)
17058 split(mac1
, mac2
, "(") #)
17060 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
17061 if (D_is_set
[macro
]) {
17062 # Preserve the white space surrounding the "#".
17063 print prefix
"define", macro P
[macro
] D
[macro
]
17066 # Replace #undef with comments. This is necessary, for example,
17067 # in the case of _POSIX_SOURCE, which is predefined and required
17068 # on some systems where configure will not decide to define it.
17069 if (defundef
== "undef") {
17070 print
"/*", prefix defundef
, macro
, "*/"
17078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17079 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
17080 fi # test -n "$CONFIG_HEADERS"
17083 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17088 :[FHLC
]) ac_mode
=$ac_tag; continue;;
17090 case $ac_mode$ac_tag in
17092 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
17093 :[FH
]-) ac_tag
=-:-;;
17094 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
17111 -) ac_f
="$tmp/stdin";;
17112 *) # Look for the file first in the build tree, then in the source tree
17113 # (if the path is not absolute). The absolute path cannot be DOS-style,
17114 # because $ac_f cannot contain `:'.
17118 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
17120 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
17122 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17123 as_fn_append ac_file_inputs
" '$ac_f'"
17126 # Let's still pretend it is `configure' which instantiates (i.e., don't
17127 # use $as_me), people would be surprised to read:
17128 # /* config.h. Generated by config.status. */
17129 configure_input
='Generated from '`
17130 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17132 if test x
"$ac_file" != x-
; then
17133 configure_input
="$ac_file. $configure_input"
17134 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17135 $as_echo "$as_me: creating $ac_file" >&6;}
17137 # Neutralize special characters interpreted by sed in replacement strings.
17138 case $configure_input in #(
17139 *\
&* |
*\|
* |
*\\* )
17140 ac_sed_conf_input
=`$as_echo "$configure_input" |
17141 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17142 *) ac_sed_conf_input
=$configure_input;;
17146 *:-:* |
*:-) cat >"$tmp/stdin" \
17147 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
17152 ac_dir
=`$as_dirname -- "$ac_file" ||
17153 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17154 X"$ac_file" : 'X\(//\)[^/]' \| \
17155 X"$ac_file" : 'X\(//\)$' \| \
17156 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17157 $as_echo X"$ac_file" |
17158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17162 /^X\(\/\/\)[^/].*/{
17175 as_dir
="$ac_dir"; as_fn_mkdir_p
17179 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17181 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17182 # A ".." for each directory in $ac_dir_suffix.
17183 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17184 case $ac_top_builddir_sub in
17185 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17186 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17189 ac_abs_top_builddir
=$ac_pwd
17190 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17191 # for backward compatibility:
17192 ac_top_builddir
=$ac_top_build_prefix
17195 .
) # We are building in place.
17197 ac_top_srcdir
=$ac_top_builddir_sub
17198 ac_abs_top_srcdir
=$ac_pwd ;;
17199 [\\/]* | ?
:[\\/]* ) # Absolute name.
17200 ac_srcdir
=$srcdir$ac_dir_suffix;
17201 ac_top_srcdir
=$srcdir
17202 ac_abs_top_srcdir
=$srcdir ;;
17203 *) # Relative name.
17204 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17205 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17206 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17208 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17218 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
17219 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
17221 ac_MKDIR_P
=$MKDIR_P
17223 [\\/$
]* | ?
:[\\/]* ) ;;
17224 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
17228 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17229 # If the template does not know about datarootdir, expand it.
17230 # FIXME: This hack should be removed a few years after 2.60.
17231 ac_datarootdir_hack
=; ac_datarootdir_seen
=
17242 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17243 *datarootdir
*) ac_datarootdir_seen
=yes;;
17244 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
17245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17246 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17248 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17249 ac_datarootdir_hack='
17250 s&@datadir@&$datadir&g
17251 s&@docdir@&$docdir&g
17252 s&@infodir@&$infodir&g
17253 s&@localedir@&$localedir&g
17254 s&@mandir@&$mandir&g
17255 s&\\\${datarootdir}&$datarootdir&g' ;;
17259 # Neutralize VPATH when `$srcdir' = `.'.
17260 # Shell code in configure.ac might set extrasub.
17261 # FIXME: do we really want to maintain this feature?
17262 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17263 ac_sed_extra="$ac_vpsub
17266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17268 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17269 s|@configure_input@|
$ac_sed_conf_input|
;t t
17270 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
17271 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
17272 s
&@srcdir@
&$ac_srcdir&;t t
17273 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
17274 s
&@top_srcdir@
&$ac_top_srcdir&;t t
17275 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
17276 s
&@builddir@
&$ac_builddir&;t t
17277 s
&@abs_builddir@
&$ac_abs_builddir&;t t
17278 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
17279 s
&@INSTALL@
&$ac_INSTALL&;t t
17280 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
17281 $ac_datarootdir_hack
17283 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
17284 || as_fn_error "could not create
$ac_file" "$LINENO" 5
17286 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17287 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
17288 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
17289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
17290 which seems to be undefined. Please make sure it is defined." >&5
17291 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
17292 which seems to be undefined. Please make sure it is defined." >&2;}
17296 -) cat "$tmp/out" && rm -f "$tmp/out";;
17297 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17299 || as_fn_error "could not create $ac_file" "$LINENO" 5
17305 if test x"$ac_file" != x-; then
17307 $as_echo "/* $configure_input */" \
17308 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17309 } >"$tmp/config.h" \
17310 || as_fn_error "could not create $ac_file" "$LINENO" 5
17311 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17312 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17313 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17316 mv "$tmp/config.h" "$ac_file" \
17317 || as_fn_error "could not create $ac_file" "$LINENO" 5
17320 $as_echo "/* $configure_input */" \
17321 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17322 || as_fn_error "could not create -" "$LINENO" 5
17324 # Compute "$ac_file"'s index
in $config_headers.
17327 for _am_header
in $config_headers :; do
17328 case $_am_header in
17329 $_am_arg |
$_am_arg:* )
17332 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
17335 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17336 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17337 X"$_am_arg" : 'X\(//\)[^/]' \| \
17338 X"$_am_arg" : 'X\(//\)$' \| \
17339 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17340 $as_echo X"$_am_arg" |
17341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17345 /^X\(\/\/\)[^/].*/{
17357 s/.*/./; q'`/stamp-h
$_am_stamp_count
17360 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17361 $as_echo "$as_me: executing $ac_file commands" >&6;}
17366 case $ac_file$ac_mode in
17367 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
17368 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17369 # are listed without --file. Let's play safe and only enable the eval
17370 # if we detect the quoting.
17371 case $CONFIG_FILES in
17372 *\'*) eval set x
"$CONFIG_FILES" ;;
17373 *) set x
$CONFIG_FILES ;;
17378 # Strip MF so we end up with the name of the file.
17379 mf
=`echo "$mf" | sed -e 's/:.*$//'`
17380 # Check whether this is an Automake generated Makefile or not.
17381 # We used to match only the files named `Makefile.in', but
17382 # some people rename them; so instead we look at the file content.
17383 # Grep'ing the first line is not enough: some people post-process
17384 # each Makefile.in and add a new line on top of each file to say so.
17385 # Grep'ing the whole file is not good either: AIX grep has a line
17386 # limit of 2048, but all sed's we know have understand at least 4000.
17387 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
17388 dirpart
=`$as_dirname -- "$mf" ||
17389 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17390 X"$mf" : 'X\(//\)[^/]' \| \
17391 X"$mf" : 'X\(//\)$' \| \
17392 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17398 /^X\(\/\/\)[^/].*/{
17414 # Extract the definition of DEPDIR, am__include, and am__quote
17415 # from the Makefile without running `make'.
17416 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
17417 test -z "$DEPDIR" && continue
17418 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
17419 test -z "am__include" && continue
17420 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
17421 # When using ansi2knr, U may be empty or an underscore; expand it
17422 U
=`sed -n 's/^U = //p' < "$mf"`
17423 # Find all dependency output files, they are included files with
17424 # $(DEPDIR) in their names. We invoke sed twice because it is the
17425 # simplest approach to changing $(DEPDIR) to its actual value in the
17427 for file in `sed -n "
17428 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17429 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17430 # Make sure the directory exists.
17431 test -f "$dirpart/$file" && continue
17432 fdir
=`$as_dirname -- "$file" ||
17433 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17434 X"$file" : 'X\(//\)[^/]' \| \
17435 X"$file" : 'X\(//\)$' \| \
17436 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17437 $as_echo X"$file" |
17438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17442 /^X\(\/\/\)[^/].*/{
17455 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
17456 # echo "creating $dirpart/$file"
17457 echo '# dummy' > "$dirpart/$file"
17463 for ac_file
in $CONFIG_FILES; do
17464 # Support "outfile[:infile[:infile...]]"
17466 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
17468 # PO directories have a Makefile.in generated from Makefile.in.in.
17469 case "$ac_file" in */Makefile.
in)
17470 # Adjust a relative srcdir.
17471 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17472 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
17473 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17474 # In autoconf-2.13 it is called $ac_given_srcdir.
17475 # In autoconf-2.50 it is called $srcdir.
17476 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
17477 case "$ac_given_srcdir" in
17478 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
17479 /*) top_srcdir
="$ac_given_srcdir" ;;
17480 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
17482 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17483 rm -f "$ac_dir/POTFILES"
17484 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
17485 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17486 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17487 # on $ac_dir but don't depend on user-specified configuration
17489 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17490 # The LINGUAS file contains the set of available languages.
17491 if test -n "$ALL_LINGUAS"; then
17492 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
17494 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17495 # Hide the ALL_LINGUAS assigment from automake.
17496 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17498 case "$ac_given_srcdir" in
17500 *) srcdirpre
='$(srcdir)/' ;;
17506 for lang
in $ALL_LINGUAS; do
17507 POFILES
="$POFILES $srcdirpre$lang.po"
17508 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
17509 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
17510 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
17512 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17513 # environment variable.
17515 if test -n "$ALL_LINGUAS"; then
17516 for presentlang
in $ALL_LINGUAS; do
17518 if test "%UNSET%" != "$LINGUAS"; then
17519 desiredlanguages
="$LINGUAS"
17521 desiredlanguages
="$ALL_LINGUAS"
17523 for desiredlang
in $desiredlanguages; do
17524 # Use the presentlang catalog if desiredlang is
17525 # a. equal to presentlang, or
17526 # b. a variant of presentlang (because in this case,
17527 # presentlang can be used as a fallback for messages
17528 # which are not translated in the desiredlang catalog).
17529 case "$desiredlang" in
17530 "$presentlang"*) useit
=yes;;
17533 if test $useit = yes; then
17534 INST_LINGUAS
="$INST_LINGUAS $presentlang"
17539 if test -n "$INST_LINGUAS"; then
17540 for lang
in $INST_LINGUAS; do
17541 CATALOGS
="$CATALOGS $lang.gmo"
17544 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
17545 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"
17546 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
17547 if test -f "$f"; then
17549 *.orig |
*.bak |
*~
) ;;
17550 *) cat "$f" >> "$ac_dir/Makefile" ;;
17558 "denoiser":C
) if test $denoiserlevel -gt 0; then
17559 if test ! -d src
/utils
/scripts
; then mkdir
-p src
/utils
/scripts
; fi
17560 sed -e "1{x;s/.*/1/;x;};/^[ ]*\$/d;/^#if /{/level.*$denoiserlevel/{x;s/^/1/;x;b0;};x;s/^/0/;x;:0;d;};/^#else/{x;/^1/{s/1/0/;b1;};s/0/1/;:1;x;d;};/^#endif/{x;s/.//;x;d;};/^[ ]*#/d;x;/^1/{x;b;};x;d" \
17561 $srcdir/src
/utils
/scripts
/denoiser.rules
> src
/utils
/scripts
/denoiser.
sed
17562 for i
in `find . -name 'Makefile' -print`; do
17563 if test -n "`head -n 1 $i | grep '^#'`"; then
17564 sed -f src
/utils
/scripts
/denoiser.
sed $i > $i.tmp
&& mv $i.tmp
$i
17575 ac_clean_files
=$ac_clean_files_save
17577 test $ac_write_fail = 0 ||
17578 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
17581 # configure is writing to config.log, and then calls config.status.
17582 # config.status does its own redirection, appending to config.log.
17583 # Unfortunately, on DOS this fails, as config.log is still kept open
17584 # by configure, so config.status won't be able to write to it; its
17585 # output is simply discarded. So we exec the FD to /dev/null,
17586 # effectively closing config.log, so it can be properly (re)opened and
17587 # appended to by config.status. When coming back to configure, we
17588 # need to make the FD available again.
17589 if test "$no_create" != yes; then
17591 ac_config_status_args
=
17592 test "$silent" = yes &&
17593 ac_config_status_args
="$ac_config_status_args --quiet"
17595 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17597 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17598 # would make configure fail if this is the last instruction.
17599 $ac_cs_success || as_fn_exit $?
17601 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17603 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17607 if test -n "$svndate"; then :
17608 SVN_REVISION
=" ($svndate)"
17615 echo " Configure script has finished system check."
17617 echo " Configured aMule ${PACKAGE_VERSION}${SVN_REVISION} for '${host}'."
17619 echo " aMule enabled options:"
17621 echo " **** aMule Core ****"
17622 echo " Prefix where aMule should be installed? ${prefix:-none}"
17623 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
17624 echo " Should aMule be compiled in debug mode? ${enable_debug:-yes}"
17625 echo " Should aMule be compiled with profiling? ${enable_profile:-no}"
17626 echo " Should aMule be compiled with optimizations? ${enable_optimize:-no}"
17627 echo " Should aMule be compiled with UPnP support? ${enable_upnp:-yes}"
17628 echo " Should aMule be compiled with IP2country support? ${enable_geoip:-no}"
17629 echo " Should aMule monolithic application be built? ${enable_monolithic:-yes}"
17630 echo " Should aMule daemon version be built? ${enable_amule_daemon:-no}"
17631 echo " Should aMule remote gui be built? ${enable_amule_gui:-no}"
17632 echo " Crypto++ library/headers style? ${CRYPTOPP_STYLE:-not found}"
17635 echo " **** aMule TextClient ****"
17636 echo " Should aMule Command Line Client be built? ${enable_amulecmd:-no}"
17638 echo " **** aMule WebServer ****"
17639 echo " Should aMule WebServer be built? ${enable_webserver:-no}"
17641 echo " **** aMule ED2K Links Handler ****"
17642 echo " Should aMule ED2K Links Handler be built? ${enable_ed2k:-yes}"
17644 echo " **** aMuleLinkCreator ****"
17645 echo " Should aMuleLinkCreator GUI version (alc) be built? ${enable_alc:-no}"
17646 echo " Should aMuleLinkCreator for console (alcc) be built? ${enable_alcc:-no}"
17648 echo " **** aMule Statistics ****"
17649 echo " Should C aMule Statistics (CAS) be built? ${enable_cas:-no}"
17650 echo " Should aMule GUI Statistics (wxCas) be built? ${enable_wxcas:-no}"
17651 echo " Should xas XChat2 plugin be installed? ${enable_xas:-no}"
17652 echo " Should plasmaMule plasma-applet be build? ${enable_plasmamule:-no}"
17655 echo " **** General Libraries and Tools ****"
17656 echo " Should ccache support be enabled? ${enable_ccache:-no}"
17657 echo " Libraries aMule will use to build:"
17658 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_alc:-no} = yes -o ${enable_alcc:-no} = yes -o ${enable_wxcas:-no} = yes -o ${enable_fileview:-no} = yes ; then :
17661 if test $WX_DEBUG -eq 1; then :
17662 wxinfo
="$wxinfo,debug"
17664 if test $WX_SHARED -eq 1; then :
17665 wxinfo
="$wxinfo,shared"
17667 wxinfo
="$wxinfo,static"
17669 echo " wxWidgets ${WX_VERSION_FULL} ($wxinfo)"
17672 if test ${with_boost:-no} != no
; then :
17673 if test ${with_boost:-no} = disabled
; then
17674 echo " boost Not detected"
17675 elif test ${boost_cv_inc_path:-yes} != yes; then
17676 echo " boost `echo ${boost_cv_lib_version} | sed -e 's/_/./g'` (in ${boost_cv_inc_path})"
17677 elif echo " boost `echo ${boost_cv_lib_version} | sed -e 's/_/./g'`"; then
17682 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then :
17683 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (${CRYPTOPP_STYLE}, in ${CRYPTOPP_PREFIX})"
17685 if test ${enable_upnp:-yes} = yes; then :
17687 if test -n "$with_libupnp_prefix"; then :
17688 libupnp_place
=" (in $with_libupnp_prefix)"
17690 echo " libupnp ${LIBUPNP_VERSION:-Not detected}${libupnp_place:-}"
17693 if test ${enable_nls:-yes} = yes; then
17694 if test x
$USE_NLS = xno
; then :
17695 libintl_found
="Not detected"
17697 if test x
$USE_INCLUDED_LIBINTL = xyes
; then :
17698 libintl_found
="included"
17700 libintl_found
="system"
17703 echo " libintl $libintl_found"
17705 if test ${enable_geoip:-no} = yes; then :
17706 if test -z "${with_geoip_headers:-}${with_geoip_lib:-}"; then :
17711 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
17712 echo " libGeoIP ${geoip_style}"
17715 if test ${enable_webserver:-no} = yes; then :
17716 echo " libpng ${LIBPNG_VERSION:-Not detected}"
17718 if test ${enable_cas:-no} = yes; then :
17719 echo " libgd ${GDLIB_VERSION:-Not detected}"
17721 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_amule_gui:-no} = yes ; then :
17722 echo " zlib ${ZLIB_VERSION:-Not detected}"
17724 if test ${enable_plasmamule:-no} = yes; then :
17725 echo " qt-moc ${QT_MOC} ${QT_MOC_VERSION}"
17726 echo " qt-core-libs ${QT_CORE_LIBS}"
17727 echo " qt-gui-libs ${QT_GUI_LIBS}"
17728 echo " kde4-config ${KDE4_CONFIG} (${KDE_CONF_VER})"
17729 echo " kde-headers ${KDE_HEADER_DIR}"
17730 echo " kde-services-path ${KDE_SERVICE_PATH}"
17731 echo " kde-module-path ${KDE_MODULE_PATH}"
17732 echo " kde-icon-path ${KDE_ICON_PATH}"
17733 echo " kde-mime-path ${KDE_MIME_PATH}"
17734 echo " kde-applinks-path ${KDE_APPLNK_PATH}"
17737 if test ${_mule_has_warnings:-no} = yes; then
17740 echo " *** Warnings during configuration ***"
17742 if test ${_mule_warning_0:-no} = yes; then
17745 * gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
17746 Please check that gdlib-config is in your default path, check out
17747 LD_LIBRARY_PATH or equivalent variable.
17748 Or this might also be that your gdlib-config has other name.
17749 Please try again with --with-gdlib-config=/usr/bin/gdlib-config (replace
17750 /usr/bin/gdlib-config with a valid path to your gdlib-config).
17751 If you use compiled packages check if you have devel pack installed.
17752 To download the latest version check http://www.boutell.com/gd for sources.
17755 if test ${_mule_warning_1:-no} = yes; then
17758 * libpng >= 1.2.0 not found.
17759 amuleweb will be compiled but file download progress bar images will NOT be
17763 if test ${_mule_warning_2:-no} = yes; then
17766 * File::Copy perl module is required by the mldonkey_importer script.
17767 If you want to use this script please install File::Copy from CPAN.
17770 if test ${_mule_warning_3:-no} = yes; then
17773 * Cannot link GeoIP statically, because your linker ($LD) does not support it.
17776 if test ${_mule_warning_4:-no} = yes; then
17779 * GeoIP support has been disabled because the GeoIP libraries were not found
17782 if test ${_mule_warning_5:-no} = yes; then
17785 * GeoIP support has been disabled because the GeoIP header files were not
17789 if test ${_mule_warning_6:-no} = yes; then
17792 * UPnP code has been disabled because ${libupnp_error}.
17795 if test ${_mule_warning_7:-no} = yes; then
17798 * Cross-compilation detected, so exception handling cannot be tested.
17799 Note that broken exception handling in your compiler may lead to unexpected
17803 if test ${_mule_warning_8:-no} = yes; then
17806 * Boost support has been disabled because Boost.System not found
17809 if test ${_mule_warning_9:-no} = yes; then
17812 * Boost support has been disabled because Boost.Asio not found
17815 if test ${_mule_warning_10:-no} = yes; then
17818 * Boost support has been disabled because Boost.Asio not found
17821 if test ${_mule_warning_11:-no} = yes; then
17824 * Boost support has been disabled because of insufficient Boost version.
17827 if test ${_mule_warning_12:-no} = yes; then
17830 * configure cannot check whether malloc() and realloc() are GNU libc
17831 compatible. You have to be ABSOLUTELY sure that they are, otherwise run
17832 configure with the --without-gnu-malloc switch.
17835 if test ${_mule_warning_13:-no} = yes; then
17838 * You need to install GNU gettext/gettext-tools to compile aMule with i18n
17842 if test ${_mule_warning_14:-no} = yes; then
17845 * bfd.h not found or unusable, please install binutils development package if
17846 you are a developer or want to help testing aMule