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
604 COMPILE_LIB_COMMON_FALSE
605 COMPILE_LIB_COMMON_TRUE
610 GENERATE_FLEX_HEADER_FALSE
611 GENERATE_FLEX_HEADER_TRUE
614 NEED_CORESERVICES_FALSE
615 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-zlib=PREFIX use zlib
in PREFIX
1605 --with-gdlib-prefix=PREFIX
1606 prefix where gdlib is installed
(optional
)
1607 --with-gdlib-config=CONFIG
1608 gdlib-config
script to use
(optional
)
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_try_run LINENO
1953 # ----------------------
1954 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1955 # that executables *can* be run.
1958 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1959 if { { ac_try="$ac_link"
1961 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1962 *) ac_try_echo
=$ac_try;;
1964 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1965 $as_echo "$ac_try_echo"; } >&5
1966 (eval "$ac_link") 2>&5
1968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1969 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1970 { { case "(($ac_try" in
1971 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1972 *) ac_try_echo=$ac_try;;
1974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1975 $as_echo "$ac_try_echo"; } >&5
1976 (eval "$ac_try") 2>&5
1978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1979 test $ac_status = 0; }; }; then :
1982 $as_echo "$as_me: program exited with status $ac_status" >&5
1983 $as_echo "$as_me: failed program was:" >&5
1984 sed 's/^/| /' conftest.$ac_ext >&5
1986 ac_retval=$ac_status
1988 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1989 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1990 as_fn_set_status $ac_retval
1994 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1995 # -------------------------------------------------------
1996 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1997 # the include files in INCLUDES and setting the cache variable VAR
1999 ac_fn_c_check_header_mongrel ()
2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2004 $as_echo_n "checking for $2... " >&6; }
2005 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2006 $as_echo_n "(cached) " >&6
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010 $as_echo "$ac_res" >&6; }
2012 # Is the header compilable?
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2014 $as_echo_n "checking $2 usability... " >&6; }
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016 /* end confdefs.h. */
2020 if ac_fn_c_try_compile "$LINENO"; then :
2021 ac_header_compiler=yes
2023 ac_header_compiler=no
2025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2027 $as_echo "$ac_header_compiler" >&6; }
2029 # Is the header present?
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2031 $as_echo_n "checking $2 presence... " >&6; }
2032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h. */
2036 if ac_fn_c_try_cpp "$LINENO"; then :
2037 ac_header_preproc=yes
2039 ac_header_preproc=no
2041 rm -f conftest.err conftest.$ac_ext
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2043 $as_echo "$ac_header_preproc" >&6; }
2045 # So? What about this header?
2046 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2049 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2051 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2055 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2057 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2059 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2061 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2063 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2065 ## ------------------------------ ##
2066 ## Report this to admin@amule.org ##
2067 ## ------------------------------ ##
2069 ) | sed "s/^/$as_me: WARNING: /" >&2
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2073 $as_echo_n "checking for $2... " >&6; }
2074 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2075 $as_echo_n "(cached) " >&6
2077 eval "$3=\$ac_header_compiler"
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2081 $as_echo "$ac_res" >&6; }
2083 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2085 } # ac_fn_c_check_header_mongrel
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_cxx_try_run LINENO
2119 # ------------------------
2120 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2121 # that executables *can* be run.
2122 ac_fn_cxx_try_run ()
2124 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2125 if { { ac_try="$ac_link"
2127 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2128 *) ac_try_echo
=$ac_try;;
2130 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2131 $as_echo "$ac_try_echo"; } >&5
2132 (eval "$ac_link") 2>&5
2134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2135 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2136 { { case "(($ac_try" in
2137 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2138 *) ac_try_echo=$ac_try;;
2140 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2141 $as_echo "$ac_try_echo"; } >&5
2142 (eval "$ac_try") 2>&5
2144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2145 test $ac_status = 0; }; }; then :
2148 $as_echo "$as_me: program exited with status $ac_status" >&5
2149 $as_echo "$as_me: failed program was:" >&5
2150 sed 's/^/| /' conftest.$ac_ext >&5
2152 ac_retval=$ac_status
2154 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2155 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2156 as_fn_set_status $ac_retval
2158 } # ac_fn_cxx_try_run
2160 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2161 # ---------------------------------------------------------
2162 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2163 # the include files in INCLUDES and setting the cache variable VAR
2165 ac_fn_cxx_check_header_mongrel ()
2167 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2168 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2170 $as_echo_n "checking for $2... " >&6; }
2171 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2172 $as_echo_n "(cached) " >&6
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2176 $as_echo "$ac_res" >&6; }
2178 # Is the header compilable?
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2180 $as_echo_n "checking $2 usability... " >&6; }
2181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182 /* end confdefs.h. */
2186 if ac_fn_cxx_try_compile "$LINENO"; then :
2187 ac_header_compiler=yes
2189 ac_header_compiler=no
2191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2193 $as_echo "$ac_header_compiler" >&6; }
2195 # Is the header present?
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2197 $as_echo_n "checking $2 presence... " >&6; }
2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199 /* end confdefs.h. */
2202 if ac_fn_cxx_try_cpp "$LINENO"; then :
2203 ac_header_preproc=yes
2205 ac_header_preproc=no
2207 rm -f conftest.err conftest.$ac_ext
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2209 $as_echo "$ac_header_preproc" >&6; }
2211 # So? What about this header?
2212 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2215 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2217 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2221 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2223 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2225 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2227 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2229 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2231 ## ------------------------------ ##
2232 ## Report this to admin@amule.org ##
2233 ## ------------------------------ ##
2235 ) | sed "s/^/$as_me: WARNING: /" >&2
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2239 $as_echo_n "checking for $2... " >&6; }
2240 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2241 $as_echo_n "(cached) " >&6
2243 eval "$3=\$ac_header_compiler"
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2247 $as_echo "$ac_res" >&6; }
2249 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2251 } # ac_fn_cxx_check_header_mongrel
2253 # ac_fn_cxx_try_link LINENO
2254 # -------------------------
2255 # Try to link conftest.$ac_ext, and return whether this succeeded.
2256 ac_fn_cxx_try_link ()
2258 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2259 rm -f conftest.$ac_objext conftest$ac_exeext
2260 if { { ac_try="$ac_link"
2262 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2263 *) ac_try_echo
=$ac_try;;
2265 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2266 $as_echo "$ac_try_echo"; } >&5
2267 (eval "$ac_link") 2>conftest.err
2269 if test -s conftest.err
; then
2270 grep -v '^ *+' conftest.err
>conftest.er1
2271 cat conftest.er1
>&5
2272 mv -f conftest.er1 conftest.err
2274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2275 test $ac_status = 0; } && {
2276 test -z "$ac_cxx_werror_flag" ||
2277 test ! -s conftest.err
2278 } && test -s conftest
$ac_exeext && {
2279 test "$cross_compiling" = yes ||
2280 $as_test_x conftest
$ac_exeext
2284 $as_echo "$as_me: failed program was:" >&5
2285 sed 's/^/| /' conftest.
$ac_ext >&5
2289 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2290 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2291 # interfere with the next link command; also delete a directory that is
2292 # left behind by Apple's compiler. We do this before executing the actions.
2293 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2294 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2295 as_fn_set_status
$ac_retval
2297 } # ac_fn_cxx_try_link
2299 # ac_fn_c_check_func LINENO FUNC VAR
2300 # ----------------------------------
2301 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2302 ac_fn_c_check_func
()
2304 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2306 $as_echo_n "checking for $2... " >&6; }
2307 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2308 $as_echo_n "(cached) " >&6
2310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2311 /* end confdefs.h. */
2312 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2314 #define $2 innocuous_$2
2316 /* System header to define __stub macros and hopefully few prototypes,
2317 which can conflict with char $2 (); below.
2318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2319 <limits.h> exists even on freestanding compilers. */
2322 # include <limits.h>
2324 # include <assert.h>
2329 /* Override any GCC internal prototype to avoid an error.
2330 Use char because int might match the return type of a GCC
2331 builtin and then its argument prototype would still apply. */
2336 /* The GNU C library defines this for functions which it implements
2337 to always fail with ENOSYS. Some functions are actually named
2338 something starting with __ and the normal name is an alias. */
2339 #if defined __stub_$2 || defined __stub___$2
2351 if ac_fn_c_try_link
"$LINENO"; then :
2356 rm -f core conftest.err conftest.
$ac_objext \
2357 conftest
$ac_exeext conftest.
$ac_ext
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2361 $as_echo "$ac_res" >&6; }
2362 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2364 } # ac_fn_c_check_func
2366 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2367 # -------------------------------------------
2368 # Tests whether TYPE exists after having included INCLUDES, setting cache
2369 # variable VAR accordingly.
2370 ac_fn_c_check_type
()
2372 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2374 $as_echo_n "checking for $2... " >&6; }
2375 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2376 $as_echo_n "(cached) " >&6
2379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2380 /* end confdefs.h. */
2391 if ac_fn_c_try_compile
"$LINENO"; then :
2392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2393 /* end confdefs.h. */
2404 if ac_fn_c_try_compile
"$LINENO"; then :
2409 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2411 rm -f core conftest.err conftest.
$ac_objext 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_c_check_type
2420 # ac_fn_c_check_decl LINENO SYMBOL VAR
2421 # ------------------------------------
2422 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2423 ac_fn_c_check_decl
()
2425 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2427 $as_echo_n "checking whether $2 is declared... " >&6; }
2428 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2429 $as_echo_n "(cached) " >&6
2431 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2432 /* end confdefs.h. */
2445 if ac_fn_c_try_compile
"$LINENO"; then :
2450 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2454 $as_echo "$ac_res" >&6; }
2455 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2457 } # ac_fn_c_check_decl
2458 cat >config.log
<<_ACEOF
2459 This file contains any messages produced by compilers while
2460 running configure, to aid debugging if configure makes a mistake.
2462 It was created by aMule $as_me SVN, which was
2463 generated by GNU Autoconf 2.65. Invocation command line was
2475 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2476 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2477 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2478 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2479 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2481 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2482 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2484 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2485 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2486 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2487 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2488 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2489 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2490 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2494 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2498 test -z "$as_dir" && as_dir
=.
2499 $as_echo "PATH: $as_dir"
2515 # Keep a trace of the command line.
2516 # Strip out --no-create and --no-recursion so they do not pile up.
2517 # Strip out --silent because we don't want to record it for future runs.
2518 # Also quote any args containing shell meta-characters.
2519 # Make two passes to allow for proper duplicate-argument suppression.
2523 ac_must_keep_next
=false
2529 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2530 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2531 |
-silent |
--silent |
--silen |
--sile |
--sil)
2534 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2537 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2539 as_fn_append ac_configure_args1
" '$ac_arg'"
2540 if test $ac_must_keep_next = true
; then
2541 ac_must_keep_next
=false
# Got value, back to normal.
2544 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2545 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2546 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2547 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2548 case "$ac_configure_args0 " in
2549 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2552 -* ) ac_must_keep_next
=true
;;
2555 as_fn_append ac_configure_args
" '$ac_arg'"
2560 { ac_configure_args0
=; unset ac_configure_args0
;}
2561 { ac_configure_args1
=; unset ac_configure_args1
;}
2563 # When interrupted or exit'd, cleanup temporary files, and complete
2564 # config.log. We remove comments because anyway the quotes in there
2565 # would cause problems or look ugly.
2566 # WARNING: Use '\'' to represent an apostrophe within the trap.
2567 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2568 trap 'exit_status=$?
2569 # Save into config.log some information that might help in debugging.
2574 ## ---------------- ##
2575 ## Cache variables. ##
2576 ## ---------------- ##
2579 # The following way of writing the cache mishandles newlines in values,
2581 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2582 eval ac_val=\$$ac_var
2586 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2587 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2590 _ | IFS | as_nl) ;; #(
2591 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2592 *) { eval $ac_var=; unset $ac_var;} ;;
2597 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2598 *${as_nl}ac_space=\ *)
2600 "s/'\''/'\''\\\\'\'''\''/g;
2601 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2604 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2612 ## ----------------- ##
2613 ## Output variables. ##
2614 ## ----------------- ##
2617 for ac_var in $ac_subst_vars
2619 eval ac_val=\$$ac_var
2621 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2623 $as_echo "$ac_var='\''$ac_val'\''"
2627 if test -n "$ac_subst_files"; then
2629 ## ------------------- ##
2630 ## File substitutions. ##
2631 ## ------------------- ##
2634 for ac_var
in $ac_subst_files
2636 eval ac_val
=\$
$ac_var
2638 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2640 $as_echo "$ac_var='\''$ac_val'\''"
2645 if test -s confdefs.h; then
2655 test "$ac_signal" != 0 &&
2656 $as_echo "$as_me: caught signal $ac_signal"
2657 $as_echo "$as_me: exit $exit_status"
2659 rm -f core *.core core.conftest.* &&
2660 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2663 for ac_signal
in 1 2 13 15; do
2664 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2668 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2669 rm -f -r conftest
* confdefs.h
2671 $as_echo "/* confdefs.h */" > confdefs.h
2673 # Predefined preprocessor variables.
2675 cat >>confdefs.h
<<_ACEOF
2676 #define PACKAGE_NAME "$PACKAGE_NAME"
2679 cat >>confdefs.h
<<_ACEOF
2680 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2683 cat >>confdefs.h
<<_ACEOF
2684 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2687 cat >>confdefs.h
<<_ACEOF
2688 #define PACKAGE_STRING "$PACKAGE_STRING"
2691 cat >>confdefs.h
<<_ACEOF
2692 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2695 cat >>confdefs.h
<<_ACEOF
2696 #define PACKAGE_URL "$PACKAGE_URL"
2700 # Let the site file select an alternate cache file if it wants to.
2701 # Prefer an explicitly selected file to automatically selected ones.
2704 if test -n "$CONFIG_SITE"; then
2705 ac_site_file1
=$CONFIG_SITE
2706 elif test "x$prefix" != xNONE
; then
2707 ac_site_file1
=$prefix/share
/config.site
2708 ac_site_file2
=$prefix/etc
/config.site
2710 ac_site_file1
=$ac_default_prefix/share
/config.site
2711 ac_site_file2
=$ac_default_prefix/etc
/config.site
2713 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2715 test "x$ac_site_file" = xNONE
&& continue
2716 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2718 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2719 sed 's/^/| /' "$ac_site_file" >&5
2724 if test -r "$cache_file"; then
2725 # Some versions of bash will fail to source /dev/null (special files
2726 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2727 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2729 $as_echo "$as_me: loading cache $cache_file" >&6;}
2731 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2732 *) .
"./$cache_file";;
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2737 $as_echo "$as_me: creating cache $cache_file" >&6;}
2741 as_fn_append ac_header_list
" stdlib.h"
2742 as_fn_append ac_header_list
" unistd.h"
2743 as_fn_append ac_header_list
" sys/param.h"
2744 # Check that the precious variables saved in the cache have kept the same
2746 ac_cache_corrupted
=false
2747 for ac_var
in $ac_precious_vars; do
2748 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2749 eval ac_new_set
=\
$ac_env_${ac_var}_set
2750 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2751 eval ac_new_val
=\
$ac_env_${ac_var}_value
2752 case $ac_old_set,$ac_new_set in
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2755 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2756 ac_cache_corrupted
=: ;;
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2759 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2760 ac_cache_corrupted
=: ;;
2763 if test "x$ac_old_val" != "x$ac_new_val"; then
2764 # differences in whitespace do not lead to failure.
2765 ac_old_val_w
=`echo x $ac_old_val`
2766 ac_new_val_w
=`echo x $ac_new_val`
2767 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2769 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2770 ac_cache_corrupted
=:
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2773 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2774 eval $ac_var=\
$ac_old_val
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2777 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2779 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2782 # Pass precious variables to config.status.
2783 if test "$ac_new_set" = set; then
2785 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2786 *) ac_arg
=$ac_var=$ac_new_val ;;
2788 case " $ac_configure_args " in
2789 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2790 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2794 if $ac_cache_corrupted; then
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2798 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2799 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2801 ## -------------------- ##
2802 ## Main body of script. ##
2803 ## -------------------- ##
2806 ac_cpp
='$CPP $CPPFLAGS'
2807 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2808 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2809 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2812 am__api_version
='1.11'
2815 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2816 for ac_t
in install-sh
install.sh shtool
; do
2817 if test -f "$ac_dir/$ac_t"; then
2819 ac_install_sh
="$ac_aux_dir/$ac_t -c"
2824 if test -z "$ac_aux_dir"; then
2825 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2828 # These three variables are undocumented and unsupported,
2829 # and are intended to be withdrawn in a future Autoconf release.
2830 # They can cause serious problems if a builder's source tree is in a directory
2831 # whose full name contains unusual characters.
2832 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2833 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2834 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2837 # Find a good install program. We prefer a C program (faster),
2838 # so one script is as good as another. But avoid the broken or
2839 # incompatible versions:
2840 # SysV /etc/install, /usr/sbin/install
2841 # SunOS /usr/etc/install
2842 # IRIX /sbin/install
2844 # AmigaOS /C/install, which installs bootblocks on floppy discs
2845 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2846 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2847 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2848 # OS/2's system install, which has a completely different semantic
2849 # ./install, which can be erroneously created by make from ./install.sh.
2850 # Reject install programs that cannot install multiple files.
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2852 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2853 if test -z "$INSTALL"; then
2854 if test "${ac_cv_path_install+set}" = set; then :
2855 $as_echo_n "(cached) " >&6
2857 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2861 test -z "$as_dir" && as_dir
=.
2862 # Account for people who put trailing slashes in PATH elements.
2863 case $as_dir/ in #((
2864 .
/ | .
// |
/[cC
]/* | \
2865 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2866 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2869 # OSF1 and SCO ODT 3.0 have their own names for install.
2870 # Don't use installbsd from OSF since it installs stuff as root
2872 for ac_prog
in ginstall scoinst
install; do
2873 for ac_exec_ext
in '' $ac_executable_extensions; do
2874 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2875 if test $ac_prog = install &&
2876 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2877 # AIX install. It has an incompatible calling convention.
2879 elif test $ac_prog = install &&
2880 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2881 # program-specific install script used by HP pwplus--don't use.
2884 rm -rf conftest.one conftest.two conftest.dir
2885 echo one
> conftest.one
2886 echo two
> conftest.two
2888 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2889 test -s conftest.one
&& test -s conftest.two
&&
2890 test -s conftest.dir
/conftest.one
&&
2891 test -s conftest.dir
/conftest.two
2893 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2906 rm -rf conftest.one conftest.two conftest.dir
2909 if test "${ac_cv_path_install+set}" = set; then
2910 INSTALL
=$ac_cv_path_install
2912 # As a last resort, use the slow shell script. Don't cache a
2913 # value for INSTALL within a source directory, because that will
2914 # break other packages using the cache if that directory is
2915 # removed, or if the value is a relative name.
2916 INSTALL
=$ac_install_sh
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2920 $as_echo "$INSTALL" >&6; }
2922 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2923 # It thinks the first close brace ends the variable substitution.
2924 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2926 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2928 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2931 $as_echo_n "checking whether build environment is sane... " >&6; }
2934 echo timestamp
> conftest.
file
2935 # Reject unsafe characters in $srcdir or the absolute working directory
2936 # name. Accept space and tab only in the latter.
2940 *[\\\"\
#\$\&\'\`$am_lf]*)
2941 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
2944 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2945 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2948 # Do `set' in a subshell so we don't clobber the current shell's
2949 # arguments. Must try -L first in case configure is actually a
2950 # symlink; some systems play weird games with the mod time of symlinks
2951 # (eg FreeBSD returns the mod time of the symlink's containing
2954 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2955 if test "$*" = "X"; then
2957 set X
`ls -t "$srcdir/configure" conftest.file`
2960 if test "$*" != "X $srcdir/configure conftest.file" \
2961 && test "$*" != "X conftest.file $srcdir/configure"; then
2963 # If neither matched, then we have a broken ls. This can happen
2964 # if, for instance, CONFIG_SHELL is bash and it inherits a
2965 # broken ls alias from the environment. This has actually
2966 # happened. Such a system could not be considered "sane".
2967 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
2968 alias in your environment" "$LINENO" 5
2971 test "$2" = conftest.
file
2977 as_fn_error
"newly created file is older than distributed files!
2978 Check your system clock" "$LINENO" 5
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2981 $as_echo "yes" >&6; }
2982 test "$program_prefix" != NONE
&&
2983 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2984 # Use a double $ so make ignores it.
2985 test "$program_suffix" != NONE
&&
2986 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2987 # Double any \ or $.
2988 # By default was `s,x,x', remove it if useless.
2989 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2990 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2992 # expand $ac_aux_dir to an absolute path
2993 am_aux_dir
=`cd $ac_aux_dir && pwd`
2995 if test x
"${MISSING+set}" != xset
; then
2998 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3000 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3003 # Use eval to expand $SHELL
3004 if eval "$MISSING --run true"; then
3005 am_missing_run
="$MISSING --run "
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3009 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3012 if test x
"${install_sh}" != xset
; then
3015 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3017 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3021 # Installed binaries are usually stripped using `strip' when the user
3022 # run `make install-strip'. However `strip' might not be the right
3023 # tool to use in cross-compilation environments, therefore Automake
3024 # will honor the `STRIP' environment variable to overrule this program.
3025 if test "$cross_compiling" != no
; then
3026 if test -n "$ac_tool_prefix"; then
3027 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3028 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3030 $as_echo_n "checking for $ac_word... " >&6; }
3031 if test "${ac_cv_prog_STRIP+set}" = set; then :
3032 $as_echo_n "(cached) " >&6
3034 if test -n "$STRIP"; then
3035 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3037 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3041 test -z "$as_dir" && as_dir
=.
3042 for ac_exec_ext
in '' $ac_executable_extensions; do
3043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3044 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3054 STRIP
=$ac_cv_prog_STRIP
3055 if test -n "$STRIP"; then
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3057 $as_echo "$STRIP" >&6; }
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3060 $as_echo "no" >&6; }
3065 if test -z "$ac_cv_prog_STRIP"; then
3067 # Extract the first word of "strip", so it can be a program name with args.
3068 set dummy strip
; ac_word
=$2
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3070 $as_echo_n "checking for $ac_word... " >&6; }
3071 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3072 $as_echo_n "(cached) " >&6
3074 if test -n "$ac_ct_STRIP"; then
3075 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3077 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3081 test -z "$as_dir" && as_dir
=.
3082 for ac_exec_ext
in '' $ac_executable_extensions; do
3083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3084 ac_cv_prog_ac_ct_STRIP
="strip"
3085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3095 if test -n "$ac_ct_STRIP"; then
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3097 $as_echo "$ac_ct_STRIP" >&6; }
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3100 $as_echo "no" >&6; }
3103 if test "x$ac_ct_STRIP" = x
; then
3106 case $cross_compiling:$ac_tool_warned in
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3110 ac_tool_warned
=yes ;;
3115 STRIP
="$ac_cv_prog_STRIP"
3119 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3122 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3123 if test -z "$MKDIR_P"; then
3124 if test "${ac_cv_path_mkdir+set}" = set; then :
3125 $as_echo_n "(cached) " >&6
3127 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3128 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3131 test -z "$as_dir" && as_dir
=.
3132 for ac_prog
in mkdir gmkdir
; do
3133 for ac_exec_ext
in '' $ac_executable_extensions; do
3134 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3135 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3136 'mkdir (GNU coreutils) '* | \
3137 'mkdir (coreutils) '* | \
3138 'mkdir (fileutils) '4.1*)
3139 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3149 test -d .
/--version && rmdir .
/--version
3150 if test "${ac_cv_path_mkdir+set}" = set; then
3151 MKDIR_P
="$ac_cv_path_mkdir -p"
3153 # As a last resort, use the slow shell script. Don't cache a
3154 # value for MKDIR_P within a source directory, because that will
3155 # break other packages using the cache if that directory is
3156 # removed, or if the value is a relative name.
3157 MKDIR_P
="$ac_install_sh -d"
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3161 $as_echo "$MKDIR_P" >&6; }
3165 [\\/$
]* | ?
:[\\/]*) ;;
3166 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3169 for ac_prog
in gawk mawk nawk
awk
3171 # Extract the first word of "$ac_prog", so it can be a program name with args.
3172 set dummy
$ac_prog; ac_word
=$2
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3174 $as_echo_n "checking for $ac_word... " >&6; }
3175 if test "${ac_cv_prog_AWK+set}" = set; then :
3176 $as_echo_n "(cached) " >&6
3178 if test -n "$AWK"; then
3179 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3181 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3185 test -z "$as_dir" && as_dir
=.
3186 for ac_exec_ext
in '' $ac_executable_extensions; do
3187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3188 ac_cv_prog_AWK
="$ac_prog"
3189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3199 if test -n "$AWK"; then
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3201 $as_echo "$AWK" >&6; }
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204 $as_echo "no" >&6; }
3208 test -n "$AWK" && break
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3212 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3214 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3215 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3216 $as_echo_n "(cached) " >&6
3218 cat >conftest.
make <<\_ACEOF
3221 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3223 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3224 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3226 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3228 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3232 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3234 $as_echo "yes" >&6; }
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3238 $as_echo "no" >&6; }
3239 SET_MAKE
="MAKE=${MAKE-make}"
3242 rm -rf .tst
2>/dev
/null
3243 mkdir .tst
2>/dev
/null
3244 if test -d .tst
; then
3249 rmdir .tst
2>/dev
/null
3251 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3252 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3253 # is not polluted with repeated "-I."
3254 am__isrc
=' -I$(srcdir)'
3255 # test to see if srcdir already configured
3256 if test -f $srcdir/config.status
; then
3257 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3261 # test whether we have cygpath
3262 if test -z "$CYGPATH_W"; then
3263 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3264 CYGPATH_W
='cygpath -w'
3271 # Define the identity of the package.
3276 cat >>confdefs.h
<<_ACEOF
3277 #define PACKAGE "$PACKAGE"
3281 cat >>confdefs.h
<<_ACEOF
3282 #define VERSION "$VERSION"
3285 # Some tools Automake needs.
3287 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3290 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3293 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3296 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3299 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3301 # We need awk for the "check" target. The system "awk" is bad on
3303 # Always define AMTAR for backward compatibility.
3305 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3307 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3313 # Check whether --enable-silent-rules was given.
3314 if test "${enable_silent_rules+set}" = set; then :
3315 enableval
=$enable_silent_rules;
3318 case $enable_silent_rules in
3319 yes) AM_DEFAULT_VERBOSITY
=0;;
3320 no
) AM_DEFAULT_VERBOSITY
=1;;
3321 *) AM_DEFAULT_VERBOSITY
=1;;
3329 ac_config_headers="$ac_config_headers config.h"
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3334 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3335 # Check whether --enable-maintainer-mode was given.
3336 if test "${enable_maintainer_mode+set}" = set; then :
3337 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3339 USE_MAINTAINER_MODE=no
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3343 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3344 if test $USE_MAINTAINER_MODE = yes; then
3345 MAINTAINER_MODE_TRUE=
3346 MAINTAINER_MODE_FALSE='#'
3348 MAINTAINER_MODE_TRUE
='#'
3349 MAINTAINER_MODE_FALSE
=
3352 MAINT
=$MAINTAINER_MODE_TRUE
3356 # Make sure we can run config.sub.
3357 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3358 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3361 $as_echo_n "checking build system type... " >&6; }
3362 if test "${ac_cv_build+set}" = set; then :
3363 $as_echo_n "(cached) " >&6
3365 ac_build_alias
=$build_alias
3366 test "x$ac_build_alias" = x
&&
3367 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3368 test "x$ac_build_alias" = x
&&
3369 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3370 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3371 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3375 $as_echo "$ac_cv_build" >&6; }
3376 case $ac_cv_build in
3378 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3381 ac_save_IFS
=$IFS; IFS
='-'
3387 # Remember, the first character of IFS is used to create $*,
3388 # except with old shells:
3391 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3395 $as_echo_n "checking host system type... " >&6; }
3396 if test "${ac_cv_host+set}" = set; then :
3397 $as_echo_n "(cached) " >&6
3399 if test "x$host_alias" = x
; then
3400 ac_cv_host
=$ac_cv_build
3402 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3403 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3408 $as_echo "$ac_cv_host" >&6; }
3411 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3414 ac_save_IFS
=$IFS; IFS
='-'
3420 # Remember, the first character of IFS is used to create $*,
3421 # except with old shells:
3424 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3428 case "${host_os}" in
3431 MULECPPFLAGS
="-no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH";
3432 MULELDFLAGS
="-bind_at_load"
3433 touch src
/Scanner.cpp
3437 LIBS
="$LIBS -L/usr/local/lib"
3438 MULECPPFLAGS
="-D__OPENBSD__"
3440 *cygwin
* |
*mingw32
*)
3442 MULECPPFLAGS
="-DNOMINMAX"
3446 RESOLV_LIB
="-lresolv -lnsl"
3451 # Now this is against autoconf recommendation that configure should not modify CPPFLAGS and LDFLAGS
3452 # However, these values in NetBSD are required even to run the tests, and this is the easiest way to do it.
3453 # Still, we prepend them, instead of adding, so the user may override them.
3454 CPPFLAGS
="-I/usr/pkg/include $CPPFLAGS"
3455 LDFLAGS
="-R/usr/pkg/lib -L/usr/pkg/lib $LDFLAGS"
3459 MULECPPFLAGS
="-D__IRIX__"
3466 # -lpthread is needed by Debian but FreeBSD < 5 doesn't support it
3467 if test ${SYS:-unknown} != win32
; then :
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if this is a FreeBSD 4 or earlier system" >&5
3470 $as_echo_n "checking if this is a FreeBSD 4 or earlier system... " >&6; }
3471 if test x
"`uname -s`" = xFreeBSD
&& test 0`uname -r | cut -c 1` -lt 5; then :
3473 MULELDFLAGS
="$MULELDFLAGS -pthread"
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3475 $as_echo "yes" >&6; }
3479 MULELDFLAGS
="$MULELDFLAGS -lpthread"
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3481 $as_echo "no" >&6; }
3489 mule_backup_CFLAGS
="$CFLAGS"
3490 mule_backup_CXXFLAGS
="$CXXFLAGS"
3491 mule_backup_BUILD_CFLAGS
="$BUILD_CFLAGS"
3493 ac_cpp
='$CXXCPP $CPPFLAGS'
3494 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3495 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3496 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3497 if test -z "$CXX"; then
3498 if test -n "$CCC"; then
3501 if test -n "$ac_tool_prefix"; then
3502 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
3504 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3505 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3507 $as_echo_n "checking for $ac_word... " >&6; }
3508 if test "${ac_cv_prog_CXX+set}" = set; then :
3509 $as_echo_n "(cached) " >&6
3511 if test -n "$CXX"; then
3512 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3514 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3518 test -z "$as_dir" && as_dir
=.
3519 for ac_exec_ext
in '' $ac_executable_extensions; do
3520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3521 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
3522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3532 if test -n "$CXX"; then
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3534 $as_echo "$CXX" >&6; }
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3537 $as_echo "no" >&6; }
3541 test -n "$CXX" && break
3544 if test -z "$CXX"; then
3546 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
3548 # Extract the first word of "$ac_prog", so it can be a program name with args.
3549 set dummy
$ac_prog; ac_word
=$2
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3551 $as_echo_n "checking for $ac_word... " >&6; }
3552 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3553 $as_echo_n "(cached) " >&6
3555 if test -n "$ac_ct_CXX"; then
3556 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
3558 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3562 test -z "$as_dir" && as_dir
=.
3563 for ac_exec_ext
in '' $ac_executable_extensions; do
3564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3565 ac_cv_prog_ac_ct_CXX
="$ac_prog"
3566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3575 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
3576 if test -n "$ac_ct_CXX"; then
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3578 $as_echo "$ac_ct_CXX" >&6; }
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3581 $as_echo "no" >&6; }
3585 test -n "$ac_ct_CXX" && break
3588 if test "x$ac_ct_CXX" = x
; then
3591 case $cross_compiling:$ac_tool_warned in
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3595 ac_tool_warned
=yes ;;
3603 # Provide some information about the compiler.
3604 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3607 for ac_option
in --version -v -V -qversion; do
3608 { { ac_try
="$ac_compiler $ac_option >&5"
3610 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3614 $as_echo "$ac_try_echo"; } >&5
3615 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3617 if test -s conftest.err; then
3619 ... rest of stderr output deleted ...
3620 10q' conftest.err >conftest.er1
3621 cat conftest.er1 >&5
3623 rm -f conftest.er1 conftest.err
3624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3625 test $ac_status = 0; }
3628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629 /* end confdefs.h. */
3639 ac_clean_files_save=$ac_clean_files
3640 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3641 # Try to create an executable without -o first, disregard a.out.
3642 # It will help us diagnose broken compilers, and finding out an intuition
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3645 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3646 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3648 # The possible output files:
3649 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3652 for ac_file in $ac_files
3655 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3656 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3661 if { { ac_try="$ac_link_default"
3663 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3664 *) ac_try_echo
=$ac_try;;
3666 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3667 $as_echo "$ac_try_echo"; } >&5
3668 (eval "$ac_link_default") 2>&5
3670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3671 test $ac_status = 0; }; then :
3672 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3673 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3674 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3675 # so that the user can short-circuit this test for compilers unknown to
3677 for ac_file
in $ac_files ''
3679 test -f "$ac_file" ||
continue
3681 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3684 # We found the default executable, but exeext='' is most
3688 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3690 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3692 # We set ac_cv_exeext here because the later test for it is not
3693 # safe: cross compilers may not add the suffix if given an `-o'
3694 # argument, so we may need to know it at that point already.
3695 # Even if this section looks crufty: it has the advantage of
3702 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3707 if test -z "$ac_file"; then :
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3709 $as_echo "no" >&6; }
3710 $as_echo "$as_me: failed program was:" >&5
3711 sed 's/^/| /' conftest.
$ac_ext >&5
3713 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3714 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3715 { as_fn_set_status
77
3716 as_fn_error
"C++ compiler cannot create executables
3717 See \`config.log' for more details." "$LINENO" 5; }; }
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3720 $as_echo "yes" >&6; }
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3723 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3725 $as_echo "$ac_file" >&6; }
3726 ac_exeext
=$ac_cv_exeext
3728 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3729 ac_clean_files
=$ac_clean_files_save
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3731 $as_echo_n "checking for suffix of executables... " >&6; }
3732 if { { ac_try
="$ac_link"
3734 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3735 *) ac_try_echo=$ac_try;;
3737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3738 $as_echo "$ac_try_echo"; } >&5
3739 (eval "$ac_link") 2>&5
3741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3742 test $ac_status = 0; }; then :
3743 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3744 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3745 # work properly (i.e., refer to `conftest.exe'), while it won't with
3747 for ac_file
in conftest.exe conftest conftest.
*; do
3748 test -f "$ac_file" ||
continue
3750 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3751 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3757 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3758 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3759 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3760 See \`config.log' for more details." "$LINENO" 5; }
3762 rm -f conftest conftest
$ac_cv_exeext
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3764 $as_echo "$ac_cv_exeext" >&6; }
3766 rm -f conftest.
$ac_ext
3767 EXEEXT
=$ac_cv_exeext
3769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3770 /* end confdefs.h. */
3775 FILE *f = fopen ("conftest.out", "w");
3776 return ferror (f) || fclose (f) != 0;
3782 ac_clean_files
="$ac_clean_files conftest.out"
3783 # Check that the compiler produces executables we can run. If not, either
3784 # the compiler is broken, or we cross compile.
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3786 $as_echo_n "checking whether we are cross compiling... " >&6; }
3787 if test "$cross_compiling" != yes; then
3788 { { ac_try
="$ac_link"
3790 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3791 *) ac_try_echo=$ac_try;;
3793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3794 $as_echo "$ac_try_echo"; } >&5
3795 (eval "$ac_link") 2>&5
3797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3798 test $ac_status = 0; }
3799 if { ac_try='./conftest$ac_cv_exeext'
3800 { { case "(($ac_try" in
3801 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3802 *) ac_try_echo
=$ac_try;;
3804 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3805 $as_echo "$ac_try_echo"; } >&5
3806 (eval "$ac_try") 2>&5
3808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3809 test $ac_status = 0; }; }; then
3812 if test "$cross_compiling" = maybe
; then
3815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3817 as_fn_error
"cannot run C++ compiled programs.
3818 If you meant to cross compile, use \`--host'.
3819 See \`config.log' for more details." "$LINENO" 5; }
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3824 $as_echo "$cross_compiling" >&6; }
3826 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3827 ac_clean_files
=$ac_clean_files_save
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3829 $as_echo_n "checking for suffix of object files... " >&6; }
3830 if test "${ac_cv_objext+set}" = set; then :
3831 $as_echo_n "(cached) " >&6
3833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3834 /* end confdefs.h. */
3844 rm -f conftest.o conftest.obj
3845 if { { ac_try
="$ac_compile"
3847 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3848 *) ac_try_echo=$ac_try;;
3850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3851 $as_echo "$ac_try_echo"; } >&5
3852 (eval "$ac_compile") 2>&5
3854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3855 test $ac_status = 0; }; then :
3856 for ac_file in conftest.o conftest.obj conftest.*; do
3857 test -f "$ac_file" || continue;
3859 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3860 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3865 $as_echo "$as_me: failed program was:" >&5
3866 sed 's/^/| /' conftest.$ac_ext >&5
3868 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3869 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3870 as_fn_error "cannot compute suffix of object files
: cannot compile
3871 See \
`config.log' for more details." "$LINENO" 5; }
3873 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3876 $as_echo "$ac_cv_objext" >&6; }
3877 OBJEXT=$ac_cv_objext
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3880 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3881 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3882 $as_echo_n "(cached) " >&6
3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h. */
3898 if ac_fn_cxx_try_compile "$LINENO"; then :
3903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3904 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3908 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3909 if test $ac_compiler_gnu = yes; then
3914 ac_test_CXXFLAGS=${CXXFLAGS+set}
3915 ac_save_CXXFLAGS=$CXXFLAGS
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3917 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3918 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3919 $as_echo_n "(cached) " >&6
3921 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3922 ac_cxx_werror_flag=yes
3925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926 /* end confdefs.h. */
3936 if ac_fn_cxx_try_compile "$LINENO"; then :
3937 ac_cv_prog_cxx_g=yes
3940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3941 /* end confdefs.h. */
3951 if ac_fn_cxx_try_compile "$LINENO"; then :
3954 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3957 /* end confdefs.h. */
3967 if ac_fn_cxx_try_compile "$LINENO"; then :
3968 ac_cv_prog_cxx_g=yes
3970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3975 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3978 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3979 if test "$ac_test_CXXFLAGS" = set; then
3980 CXXFLAGS=$ac_save_CXXFLAGS
3981 elif test $ac_cv_prog_cxx_g = yes; then
3982 if test "$GXX" = yes; then
3988 if test "$GXX" = yes; then
3995 ac_cpp='$CPP $CPPFLAGS'
3996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3999 DEPDIR="${am__leading_dot}deps"
4001 ac_config_commands="$ac_config_commands depfiles"
4004 am_make=${MAKE-make}
4005 cat > confinc << 'END'
4007 @echo this is the am__doit target
4010 # If we don't find an include directive, just comment out the code.
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4012 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4016 # First try GNU make style include.
4017 echo "include confinc" > confmf
4018 # Ignore all kinds of additional output from `make'.
4019 case `$am_make -s -f confmf 2> /dev/null` in #(
4020 *the\ am__doit\ target*)
4026 # Now try BSD make style include.
4027 if test "$am__include" = "#"; then
4028 echo '.include
"confinc"' > confmf
4029 case `$am_make -s -f confmf 2> /dev/null` in #(
4030 *the\ am__doit\ target*)
4031 am__include=.include
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4040 $as_echo "$_am_result" >&6; }
4041 rm -f confinc confmf
4043 # Check whether --enable-dependency-tracking was given.
4044 if test "${enable_dependency_tracking+set}" = set; then :
4045 enableval=$enable_dependency_tracking;
4048 if test "x$enable_dependency_tracking" != xno; then
4049 am_depcomp="$ac_aux_dir/depcomp"
4052 if test "x$enable_dependency_tracking" != xno
; then
4062 depcc
="$CXX" am_compiler_list
=
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4065 $as_echo_n "checking dependency style of $depcc... " >&6; }
4066 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4067 $as_echo_n "(cached) " >&6
4069 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4070 # We make a subdir and do the tests there. Otherwise we can end up
4071 # making bogus files that we don't know about and never remove. For
4072 # instance it was reported that on HP-UX the gcc test will end up
4073 # making a dummy file named `D' -- because `-MD' means `put the output
4076 # Copy depcomp to subdir because otherwise we won't find it if we're
4077 # using a relative directory.
4078 cp "$am_depcomp" conftest.dir
4080 # We will build objects and dependencies in a subdirectory because
4081 # it helps to detect inapplicable dependency modes. For instance
4082 # both Tru64's cc and ICC support -MD to output dependencies as a
4083 # side effect of compilation, but ICC will put the dependencies in
4084 # the current directory while Tru64 will put them in the object
4088 am_cv_CXX_dependencies_compiler_type
=none
4089 if test "$am_compiler_list" = ""; then
4090 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4093 case " $depcc " in #(
4094 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4097 for depmode
in $am_compiler_list; do
4098 # Setup a source with many dependencies, because some compilers
4099 # like to wrap large dependency lists on column 80 (with \), and
4100 # we should not choose a depcomp mode which is confused by this.
4102 # We need to recreate these files for each test, as the compiler may
4103 # overwrite some of them when testing with obscure command lines.
4104 # This happens at least with the AIX C compiler.
4106 for i
in 1 2 3 4 5 6; do
4107 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4108 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4109 # Solaris 8's {/usr,}/bin/sh.
4110 touch sub
/conftst
$i.h
4112 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4114 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4115 # mode. It turns out that the SunPro C++ compiler does not properly
4116 # handle `-M -o', and we need to detect this. Also, some Intel
4117 # versions had trouble with output in subdirs
4118 am__obj
=sub
/conftest.
${OBJEXT-o}
4119 am__minus_obj
="-o $am__obj"
4122 # This depmode causes a compiler race in universal mode.
4123 test "$am__universal" = false ||
continue
4126 # after this tag, mechanisms are not by side-effect, so they'll
4127 # only be used when explicitly requested
4128 if test "x$enable_dependency_tracking" = xyes
; then
4134 msvisualcpp | msvcmsys
)
4135 # This compiler won't grok `-c -o', but also, the minuso test has
4136 # not run yet. These depmodes are late enough in the game, and
4137 # so weak that their functioning should not be impacted.
4138 am__obj
=conftest.
${OBJEXT-o}
4143 if depmode
=$depmode \
4144 source=sub
/conftest.c object
=$am__obj \
4145 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4146 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4147 >/dev
/null
2>conftest.err
&&
4148 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4149 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4150 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4151 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4152 # icc doesn't choke on unknown options, it will just issue warnings
4153 # or remarks (even with -Werror). So we grep stderr for any message
4154 # that says an option was ignored or not supported.
4155 # When given -MP, icc 7.0 and 7.1 complain thusly:
4156 # icc: Command line warning: ignoring option '-M'; no argument required
4157 # The diagnosis changed in icc 8.0:
4158 # icc: Command line remark: option '-MP' not supported
4159 if (grep 'ignoring option' conftest.err ||
4160 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4161 am_cv_CXX_dependencies_compiler_type
=$depmode
4170 am_cv_CXX_dependencies_compiler_type
=none
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4175 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4176 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
4179 test "x$enable_dependency_tracking" != xno \
4180 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
4181 am__fastdepCXX_TRUE
=
4182 am__fastdepCXX_FALSE
='#'
4184 am__fastdepCXX_TRUE
='#'
4185 am__fastdepCXX_FALSE
=
4190 ac_cpp
='$CXXCPP $CPPFLAGS'
4191 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4192 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4193 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4195 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4196 if test -z "$CXXCPP"; then
4197 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
4198 $as_echo_n "(cached) " >&6
4200 # Double quotes because CXXCPP needs to be expanded
4201 for CXXCPP
in "$CXX -E" "/lib/cpp"
4204 for ac_cxx_preproc_warn_flag
in '' yes
4206 # Use a header file that comes with gcc, so configuring glibc
4207 # with a fresh cross-compiler works.
4208 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4209 # <limits.h> exists even on freestanding compilers.
4210 # On the NeXT, cc -E runs the code through the compiler's parser,
4211 # not just through cpp. "Syntax error" is here to catch this case.
4212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4213 /* end confdefs.h. */
4215 # include <limits.h>
4217 # include <assert.h>
4221 if ac_fn_cxx_try_cpp
"$LINENO"; then :
4224 # Broken: fails on valid input.
4227 rm -f conftest.err conftest.
$ac_ext
4229 # OK, works on sane cases. Now check whether nonexistent headers
4230 # can be detected and how.
4231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4232 /* end confdefs.h. */
4233 #include <ac_nonexistent.h>
4235 if ac_fn_cxx_try_cpp
"$LINENO"; then :
4236 # Broken: success on invalid input.
4239 # Passes both tests.
4243 rm -f conftest.err conftest.
$ac_ext
4246 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4247 rm -f conftest.err conftest.
$ac_ext
4248 if $ac_preproc_ok; then :
4253 ac_cv_prog_CXXCPP
=$CXXCPP
4256 CXXCPP
=$ac_cv_prog_CXXCPP
4258 ac_cv_prog_CXXCPP
=$CXXCPP
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4261 $as_echo "$CXXCPP" >&6; }
4263 for ac_cxx_preproc_warn_flag
in '' yes
4265 # Use a header file that comes with gcc, so configuring glibc
4266 # with a fresh cross-compiler works.
4267 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4268 # <limits.h> exists even on freestanding compilers.
4269 # On the NeXT, cc -E runs the code through the compiler's parser,
4270 # not just through cpp. "Syntax error" is here to catch this case.
4271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4272 /* end confdefs.h. */
4274 # include <limits.h>
4276 # include <assert.h>
4280 if ac_fn_cxx_try_cpp
"$LINENO"; then :
4283 # Broken: fails on valid input.
4286 rm -f conftest.err conftest.
$ac_ext
4288 # OK, works on sane cases. Now check whether nonexistent headers
4289 # can be detected and how.
4290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4291 /* end confdefs.h. */
4292 #include <ac_nonexistent.h>
4294 if ac_fn_cxx_try_cpp
"$LINENO"; then :
4295 # Broken: success on invalid input.
4298 # Passes both tests.
4302 rm -f conftest.err conftest.
$ac_ext
4305 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4306 rm -f conftest.err conftest.
$ac_ext
4307 if $ac_preproc_ok; then :
4310 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4312 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
4313 See \`config.log' for more details." "$LINENO" 5; }
4317 ac_cpp
='$CPP $CPPFLAGS'
4318 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4319 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4320 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4323 ac_cpp
='$CPP $CPPFLAGS'
4324 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4325 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4326 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4327 if test -n "$ac_tool_prefix"; then
4328 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4329 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4331 $as_echo_n "checking for $ac_word... " >&6; }
4332 if test "${ac_cv_prog_CC+set}" = set; then :
4333 $as_echo_n "(cached) " >&6
4335 if test -n "$CC"; then
4336 ac_cv_prog_CC
="$CC" # Let the user override the test.
4338 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4342 test -z "$as_dir" && as_dir
=.
4343 for ac_exec_ext
in '' $ac_executable_extensions; do
4344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4345 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4356 if test -n "$CC"; then
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4358 $as_echo "$CC" >&6; }
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4361 $as_echo "no" >&6; }
4366 if test -z "$ac_cv_prog_CC"; then
4368 # Extract the first word of "gcc", so it can be a program name with args.
4369 set dummy gcc
; ac_word
=$2
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4371 $as_echo_n "checking for $ac_word... " >&6; }
4372 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4373 $as_echo_n "(cached) " >&6
4375 if test -n "$ac_ct_CC"; then
4376 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4378 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4382 test -z "$as_dir" && as_dir
=.
4383 for ac_exec_ext
in '' $ac_executable_extensions; do
4384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4385 ac_cv_prog_ac_ct_CC
="gcc"
4386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4395 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4396 if test -n "$ac_ct_CC"; then
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4398 $as_echo "$ac_ct_CC" >&6; }
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4401 $as_echo "no" >&6; }
4404 if test "x$ac_ct_CC" = x
; then
4407 case $cross_compiling:$ac_tool_warned in
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4411 ac_tool_warned
=yes ;;
4419 if test -z "$CC"; then
4420 if test -n "$ac_tool_prefix"; then
4421 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4422 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4424 $as_echo_n "checking for $ac_word... " >&6; }
4425 if test "${ac_cv_prog_CC+set}" = set; then :
4426 $as_echo_n "(cached) " >&6
4428 if test -n "$CC"; then
4429 ac_cv_prog_CC
="$CC" # Let the user override the test.
4431 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4435 test -z "$as_dir" && as_dir
=.
4436 for ac_exec_ext
in '' $ac_executable_extensions; do
4437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4438 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4449 if test -n "$CC"; then
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4451 $as_echo "$CC" >&6; }
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4454 $as_echo "no" >&6; }
4460 if test -z "$CC"; then
4461 # Extract the first word of "cc", so it can be a program name with args.
4462 set dummy cc
; ac_word
=$2
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4464 $as_echo_n "checking for $ac_word... " >&6; }
4465 if test "${ac_cv_prog_CC+set}" = set; then :
4466 $as_echo_n "(cached) " >&6
4468 if test -n "$CC"; then
4469 ac_cv_prog_CC
="$CC" # Let the user override the test.
4472 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4476 test -z "$as_dir" && as_dir
=.
4477 for ac_exec_ext
in '' $ac_executable_extensions; do
4478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4479 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4480 ac_prog_rejected
=yes
4484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4491 if test $ac_prog_rejected = yes; then
4492 # We found a bogon in the path, so make sure we never use it.
4493 set dummy
$ac_cv_prog_CC
4495 if test $# != 0; then
4496 # We chose a different compiler from the bogus one.
4497 # However, it has the same basename, so the bogon will be chosen
4498 # first if we set CC to just the basename; use the full file name.
4500 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4506 if test -n "$CC"; then
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4508 $as_echo "$CC" >&6; }
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4511 $as_echo "no" >&6; }
4516 if test -z "$CC"; then
4517 if test -n "$ac_tool_prefix"; then
4518 for ac_prog
in cl.exe
4520 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4521 set dummy
$ac_tool_prefix$ac_prog; 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_CC+set}" = set; then :
4525 $as_echo_n "(cached) " >&6
4527 if test -n "$CC"; then
4528 ac_cv_prog_CC
="$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_CC
="$ac_tool_prefix$ac_prog"
4538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4548 if test -n "$CC"; then
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4550 $as_echo "$CC" >&6; }
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4553 $as_echo "no" >&6; }
4557 test -n "$CC" && break
4560 if test -z "$CC"; then
4562 for ac_prog
in cl.exe
4564 # Extract the first word of "$ac_prog", so it can be a program name with args.
4565 set dummy
$ac_prog; ac_word
=$2
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4567 $as_echo_n "checking for $ac_word... " >&6; }
4568 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4569 $as_echo_n "(cached) " >&6
4571 if test -n "$ac_ct_CC"; then
4572 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4574 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4578 test -z "$as_dir" && as_dir
=.
4579 for ac_exec_ext
in '' $ac_executable_extensions; do
4580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4581 ac_cv_prog_ac_ct_CC
="$ac_prog"
4582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4591 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4592 if test -n "$ac_ct_CC"; then
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4594 $as_echo "$ac_ct_CC" >&6; }
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4597 $as_echo "no" >&6; }
4601 test -n "$ac_ct_CC" && break
4604 if test "x$ac_ct_CC" = x
; then
4607 case $cross_compiling:$ac_tool_warned in
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4610 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4611 ac_tool_warned
=yes ;;
4620 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4622 as_fn_error
"no acceptable C compiler found in \$PATH
4623 See \`config.log' for more details." "$LINENO" 5; }
4625 # Provide some information about the compiler.
4626 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4629 for ac_option
in --version -v -V -qversion; do
4630 { { ac_try
="$ac_compiler $ac_option >&5"
4632 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4633 *) ac_try_echo=$ac_try;;
4635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4636 $as_echo "$ac_try_echo"; } >&5
4637 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4639 if test -s conftest.err; then
4641 ... rest of stderr output deleted ...
4642 10q' conftest.err >conftest.er1
4643 cat conftest.er1 >&5
4645 rm -f conftest.er1 conftest.err
4646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4647 test $ac_status = 0; }
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4651 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4652 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4653 $as_echo_n "(cached) " >&6
4655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4656 /* end confdefs.h. */
4669 if ac_fn_c_try_compile "$LINENO"; then :
4674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4675 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4679 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4680 if test $ac_compiler_gnu = yes; then
4685 ac_test_CFLAGS=${CFLAGS+set}
4686 ac_save_CFLAGS=$CFLAGS
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4688 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4689 if test "${ac_cv_prog_cc_g+set}" = set; then :
4690 $as_echo_n "(cached) " >&6
4692 ac_save_c_werror_flag=$ac_c_werror_flag
4693 ac_c_werror_flag=yes
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h. */
4707 if ac_fn_c_try_compile "$LINENO"; then :
4711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712 /* end confdefs.h. */
4722 if ac_fn_c_try_compile "$LINENO"; then :
4725 ac_c_werror_flag=$ac_save_c_werror_flag
4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h. */
4738 if ac_fn_c_try_compile "$LINENO"; then :
4741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4746 ac_c_werror_flag=$ac_save_c_werror_flag
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4749 $as_echo "$ac_cv_prog_cc_g" >&6; }
4750 if test "$ac_test_CFLAGS" = set; then
4751 CFLAGS=$ac_save_CFLAGS
4752 elif test $ac_cv_prog_cc_g = yes; then
4753 if test "$GCC" = yes; then
4759 if test "$GCC" = yes; then
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4766 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4767 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4768 $as_echo_n "(cached) " >&6
4770 ac_cv_prog_cc_c89=no
4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773 /* end confdefs.h. */
4776 #include <sys/types.h>
4777 #include <sys/stat.h>
4778 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4779 struct buf { int x; };
4780 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4781 static char *e (p, i)
4787 static char *f (char * (*g) (char **, int), char **p, ...)
4792 s = g (p, va_arg (v,int));
4797 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4798 function prototypes and stuff, but not '\xHH' hex character constants.
4799 These don't provoke an error unfortunately, instead are silently treated
4800 as 'x'. The following induces an error, until -std is added to get
4801 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4802 array size at least. It's necessary to write '\x00'==0 to get something
4803 that's true only with -std. */
4804 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4806 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4807 inside strings and character constants. */
4809 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4811 int test (int i, double x);
4812 struct s1 {int (*f) (int a);};
4813 struct s2 {int (*f) (double a);};
4814 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4820 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4825 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4826 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4828 CC="$ac_save_CC $ac_arg"
4829 if ac_fn_c_try_compile "$LINENO"; then :
4830 ac_cv_prog_cc_c89=$ac_arg
4832 rm -f core conftest.err conftest.$ac_objext
4833 test "x$ac_cv_prog_cc_c89" != "xno" && break
4835 rm -f conftest.$ac_ext
4840 case "x$ac_cv_prog_cc_c89" in
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4843 $as_echo "none needed" >&6; } ;;
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4846 $as_echo "unsupported" >&6; } ;;
4848 CC="$CC $ac_cv_prog_cc_c89"
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4850 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4852 if test "x$ac_cv_prog_cc_c89" != xno; then :
4857 ac_cpp='$CPP $CPPFLAGS'
4858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4862 depcc="$CC" am_compiler_list=
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4865 $as_echo_n "checking dependency style of $depcc... " >&6; }
4866 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4867 $as_echo_n "(cached) " >&6
4869 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4870 # We make a subdir and do the tests there. Otherwise we can end up
4871 # making bogus files that we don't know about and never remove. For
4872 # instance it was reported that on HP-UX the gcc test will end up
4873 # making a dummy file named `D
' -- because `-MD' means
`put the output
4876 # Copy depcomp to subdir because otherwise we won't find it if we're
4877 # using a relative directory.
4878 cp "$am_depcomp" conftest.dir
4880 # We will build objects and dependencies in a subdirectory because
4881 # it helps to detect inapplicable dependency modes. For instance
4882 # both Tru64's cc and ICC support -MD to output dependencies as a
4883 # side effect of compilation, but ICC will put the dependencies in
4884 # the current directory while Tru64 will put them in the object
4888 am_cv_CC_dependencies_compiler_type=none
4889 if test "$am_compiler_list" = ""; then
4890 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4893 case " $depcc " in #(
4894 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4897 for depmode in $am_compiler_list; do
4898 # Setup a source with many dependencies, because some compilers
4899 # like to wrap large dependency lists on column 80 (with \), and
4900 # we should not choose a depcomp mode which is confused by this.
4902 # We need to recreate these files for each test, as the compiler may
4903 # overwrite some of them when testing with obscure command lines.
4904 # This happens at least with the AIX C compiler.
4906 for i in 1 2 3 4 5 6; do
4907 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4908 # Using `: > sub
/conftst
$i.h
' creates only sub/conftst1.h with
4909 # Solaris 8's
{/usr
,}/bin
/sh.
4910 touch sub
/conftst
$i.h
4912 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4914 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4915 # mode. It turns out that the SunPro C++ compiler does not properly
4916 # handle `-M -o', and we need to detect this. Also, some Intel
4917 # versions had trouble with output in subdirs
4918 am__obj
=sub
/conftest.
${OBJEXT-o}
4919 am__minus_obj
="-o $am__obj"
4922 # This depmode causes a compiler race in universal mode.
4923 test "$am__universal" = false ||
continue
4926 # after this tag, mechanisms are not by side-effect, so they'll
4927 # only be used when explicitly requested
4928 if test "x$enable_dependency_tracking" = xyes
; then
4934 msvisualcpp | msvcmsys
)
4935 # This compiler won't grok `-c -o', but also, the minuso test has
4936 # not run yet. These depmodes are late enough in the game, and
4937 # so weak that their functioning should not be impacted.
4938 am__obj
=conftest.
${OBJEXT-o}
4943 if depmode
=$depmode \
4944 source=sub
/conftest.c object
=$am__obj \
4945 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4946 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4947 >/dev
/null
2>conftest.err
&&
4948 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4949 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4950 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4951 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4952 # icc doesn't choke on unknown options, it will just issue warnings
4953 # or remarks (even with -Werror). So we grep stderr for any message
4954 # that says an option was ignored or not supported.
4955 # When given -MP, icc 7.0 and 7.1 complain thusly:
4956 # icc: Command line warning: ignoring option '-M'; no argument required
4957 # The diagnosis changed in icc 8.0:
4958 # icc: Command line remark: option '-MP' not supported
4959 if (grep 'ignoring option' conftest.err ||
4960 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4961 am_cv_CC_dependencies_compiler_type
=$depmode
4970 am_cv_CC_dependencies_compiler_type
=none
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4975 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4976 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4979 test "x$enable_dependency_tracking" != xno \
4980 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4982 am__fastdepCC_FALSE
='#'
4984 am__fastdepCC_TRUE
='#'
4985 am__fastdepCC_FALSE
=
4990 ac_cpp
='$CPP $CPPFLAGS'
4991 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4992 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4993 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4995 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4996 # On Suns, sometimes $CPP names a directory.
4997 if test -n "$CPP" && test -d "$CPP"; then
5000 if test -z "$CPP"; then
5001 if test "${ac_cv_prog_CPP+set}" = set; then :
5002 $as_echo_n "(cached) " >&6
5004 # Double quotes because CPP needs to be expanded
5005 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5008 for ac_c_preproc_warn_flag
in '' yes
5010 # Use a header file that comes with gcc, so configuring glibc
5011 # with a fresh cross-compiler works.
5012 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5013 # <limits.h> exists even on freestanding compilers.
5014 # On the NeXT, cc -E runs the code through the compiler's parser,
5015 # not just through cpp. "Syntax error" is here to catch this case.
5016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5017 /* end confdefs.h. */
5019 # include <limits.h>
5021 # include <assert.h>
5025 if ac_fn_c_try_cpp
"$LINENO"; then :
5028 # Broken: fails on valid input.
5031 rm -f conftest.err conftest.
$ac_ext
5033 # OK, works on sane cases. Now check whether nonexistent headers
5034 # can be detected and how.
5035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5036 /* end confdefs.h. */
5037 #include <ac_nonexistent.h>
5039 if ac_fn_c_try_cpp
"$LINENO"; then :
5040 # Broken: success on invalid input.
5043 # Passes both tests.
5047 rm -f conftest.err conftest.
$ac_ext
5050 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5051 rm -f conftest.err conftest.
$ac_ext
5052 if $ac_preproc_ok; then :
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5065 $as_echo "$CPP" >&6; }
5067 for ac_c_preproc_warn_flag
in '' yes
5069 # Use a header file that comes with gcc, so configuring glibc
5070 # with a fresh cross-compiler works.
5071 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5072 # <limits.h> exists even on freestanding compilers.
5073 # On the NeXT, cc -E runs the code through the compiler's parser,
5074 # not just through cpp. "Syntax error" is here to catch this case.
5075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5076 /* end confdefs.h. */
5078 # include <limits.h>
5080 # include <assert.h>
5084 if ac_fn_c_try_cpp
"$LINENO"; then :
5087 # Broken: fails on valid input.
5090 rm -f conftest.err conftest.
$ac_ext
5092 # OK, works on sane cases. Now check whether nonexistent headers
5093 # can be detected and how.
5094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5095 /* end confdefs.h. */
5096 #include <ac_nonexistent.h>
5098 if ac_fn_c_try_cpp
"$LINENO"; then :
5099 # Broken: success on invalid input.
5102 # Passes both tests.
5106 rm -f conftest.err conftest.
$ac_ext
5109 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5110 rm -f conftest.err conftest.
$ac_ext
5111 if $ac_preproc_ok; then :
5114 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5115 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5116 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5117 See \`config.log' for more details." "$LINENO" 5; }
5121 ac_cpp
='$CPP $CPPFLAGS'
5122 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5123 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5124 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5127 test -n "$build_alias" && ac_build_prefix
=$build_alias-
5129 if test "$cross_compiling" = yes; then :
5131 # Even if we're cross-compiling, we want a compiler here
5132 # that is not a cross-compiler.
5133 saved_cross
=$cross_compiling
5137 ac_cpp
='$CPP $BUILD_CPPFLAGS'
5138 ac_compile
='$BUILD_CC -c $BUILD_CFLAGS $BUILD_CPPFLAGS conftest.$ac_ext >&5'
5139 ac_link
='$BUILD_CC -o conftest$ac_build_exeext $BUILD_CFLAGS $BUILD_CPPFLAGS $BUILD_LDFLAGS conftest.$ac_ext $BUILD_LIBS >&5'
5140 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5141 if test -n "$ac_build_prefix"; then
5142 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5143 set dummy
${ac_build_prefix}gcc
; ac_word
=$2
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5145 $as_echo_n "checking for $ac_word... " >&6; }
5146 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5147 $as_echo_n "(cached) " >&6
5149 if test -n "$BUILD_CC"; then
5150 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
5152 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5156 test -z "$as_dir" && as_dir
=.
5157 for ac_exec_ext
in '' $ac_executable_extensions; do
5158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5159 ac_cv_prog_BUILD_CC
="${ac_build_prefix}gcc"
5160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5169 BUILD_CC
=$ac_cv_prog_BUILD_CC
5170 if test -n "$BUILD_CC"; then
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5172 $as_echo "$BUILD_CC" >&6; }
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5175 $as_echo "no" >&6; }
5180 if test -z "$ac_cv_prog_BUILD_CC"; then
5181 ac_ct_BUILD_CC
=$BUILD_CC
5182 # Extract the first word of "gcc", so it can be a program name with args.
5183 set dummy gcc
; ac_word
=$2
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5185 $as_echo_n "checking for $ac_word... " >&6; }
5186 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then :
5187 $as_echo_n "(cached) " >&6
5189 if test -n "$ac_ct_BUILD_CC"; then
5190 ac_cv_prog_ac_ct_BUILD_CC
="$ac_ct_BUILD_CC" # Let the user override the test.
5192 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5196 test -z "$as_dir" && as_dir
=.
5197 for ac_exec_ext
in '' $ac_executable_extensions; do
5198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5199 ac_cv_prog_ac_ct_BUILD_CC
="gcc"
5200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5209 ac_ct_BUILD_CC
=$ac_cv_prog_ac_ct_BUILD_CC
5210 if test -n "$ac_ct_BUILD_CC"; then
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5212 $as_echo "$ac_ct_BUILD_CC" >&6; }
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5215 $as_echo "no" >&6; }
5218 if test "x$ac_ct_BUILD_CC" = x
; then
5221 case $cross_compiling:$ac_tool_warned in
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5225 ac_tool_warned
=yes ;;
5227 BUILD_CC
=$ac_ct_BUILD_CC
5230 BUILD_CC
="$ac_cv_prog_BUILD_CC"
5233 if test -z "$BUILD_CC"; then
5234 if test -n "$ac_build_prefix"; then
5235 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5236 set dummy
${ac_build_prefix}cc
; ac_word
=$2
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5238 $as_echo_n "checking for $ac_word... " >&6; }
5239 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5240 $as_echo_n "(cached) " >&6
5242 if test -n "$BUILD_CC"; then
5243 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
5245 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5249 test -z "$as_dir" && as_dir
=.
5250 for ac_exec_ext
in '' $ac_executable_extensions; do
5251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5252 ac_cv_prog_BUILD_CC
="${ac_build_prefix}cc"
5253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5262 BUILD_CC
=$ac_cv_prog_BUILD_CC
5263 if test -n "$BUILD_CC"; then
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5265 $as_echo "$BUILD_CC" >&6; }
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5268 $as_echo "no" >&6; }
5273 if test -z "$ac_cv_prog_BUILD_CC"; then
5274 ac_ct_BUILD_CC
=$BUILD_CC
5275 # Extract the first word of "cc", so it can be a program name with args.
5276 set dummy cc
; ac_word
=$2
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5278 $as_echo_n "checking for $ac_word... " >&6; }
5279 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then :
5280 $as_echo_n "(cached) " >&6
5282 if test -n "$ac_ct_BUILD_CC"; then
5283 ac_cv_prog_ac_ct_BUILD_CC
="$ac_ct_BUILD_CC" # Let the user override the test.
5285 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5289 test -z "$as_dir" && as_dir
=.
5290 for ac_exec_ext
in '' $ac_executable_extensions; do
5291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5292 ac_cv_prog_ac_ct_BUILD_CC
="cc"
5293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5302 ac_ct_BUILD_CC
=$ac_cv_prog_ac_ct_BUILD_CC
5303 if test -n "$ac_ct_BUILD_CC"; then
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5305 $as_echo "$ac_ct_BUILD_CC" >&6; }
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5308 $as_echo "no" >&6; }
5311 if test "x$ac_ct_BUILD_CC" = x
; then
5314 case $cross_compiling:$ac_tool_warned in
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5318 ac_tool_warned
=yes ;;
5320 BUILD_CC
=$ac_ct_BUILD_CC
5323 BUILD_CC
="$ac_cv_prog_BUILD_CC"
5327 if test -z "$BUILD_CC"; then
5328 # Extract the first word of "cc", so it can be a program name with args.
5329 set dummy cc
; ac_word
=$2
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5331 $as_echo_n "checking for $ac_word... " >&6; }
5332 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5333 $as_echo_n "(cached) " >&6
5335 if test -n "$BUILD_CC"; then
5336 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
5339 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5343 test -z "$as_dir" && as_dir
=.
5344 for ac_exec_ext
in '' $ac_executable_extensions; do
5345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5346 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5347 ac_prog_rejected
=yes
5350 ac_cv_prog_BUILD_CC
="cc"
5351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5358 if test $ac_prog_rejected = yes; then
5359 # We found a bogon in the path, so make sure we never use it.
5360 set dummy
$ac_cv_prog_BUILD_CC
5362 if test $# != 0; then
5363 # We chose a different compiler from the bogus one.
5364 # However, it has the same basename, so the bogon will be chosen
5365 # first if we set BUILD_CC to just the basename; use the full file name.
5367 ac_cv_prog_BUILD_CC
="$as_dir/$ac_word${1+' '}$@"
5372 BUILD_CC
=$ac_cv_prog_BUILD_CC
5373 if test -n "$BUILD_CC"; then
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5375 $as_echo "$BUILD_CC" >&6; }
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5378 $as_echo "no" >&6; }
5383 if test -z "$BUILD_CC"; then
5384 if test -n "$ac_build_prefix"; then
5387 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5388 set dummy
$ac_build_prefix$ac_prog; 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$ac_prog"
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; }
5424 test -n "$BUILD_CC" && break
5427 if test -z "$BUILD_CC"; then
5428 ac_ct_BUILD_CC
=$BUILD_CC
5431 # Extract the first word of "$ac_prog", so it can be a program name with args.
5432 set dummy
$ac_prog; ac_word
=$2
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5434 $as_echo_n "checking for $ac_word... " >&6; }
5435 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then :
5436 $as_echo_n "(cached) " >&6
5438 if test -n "$ac_ct_BUILD_CC"; then
5439 ac_cv_prog_ac_ct_BUILD_CC
="$ac_ct_BUILD_CC" # Let the user override the test.
5441 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5445 test -z "$as_dir" && as_dir
=.
5446 for ac_exec_ext
in '' $ac_executable_extensions; do
5447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5448 ac_cv_prog_ac_ct_BUILD_CC
="$ac_prog"
5449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5458 ac_ct_BUILD_CC
=$ac_cv_prog_ac_ct_BUILD_CC
5459 if test -n "$ac_ct_BUILD_CC"; then
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5461 $as_echo "$ac_ct_BUILD_CC" >&6; }
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5464 $as_echo "no" >&6; }
5468 test -n "$ac_ct_BUILD_CC" && break
5471 if test "x$ac_ct_BUILD_CC" = x
; then
5474 case $cross_compiling:$ac_tool_warned in
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5478 ac_tool_warned
=yes ;;
5480 BUILD_CC
=$ac_ct_BUILD_CC
5487 test -z "$BUILD_CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5489 as_fn_error
"no acceptable C compiler found in \$PATH
5490 See \`config.log' for more details." "$LINENO" 5; }
5492 # Provide some information about the compiler.
5493 echo "$as_me:$LINENO:" \
5494 "checking for C compiler version" >&5
5495 ac_compiler
=`set X $ac_compile; echo $2`
5496 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler --version </dev/null >&5\""; } >&5
5497 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
5499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5500 test $ac_status = 0; }
5501 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler -v </dev/null >&5\""; } >&5
5502 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
5504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5505 test $ac_status = 0; }
5506 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler -V </dev/null >&5\""; } >&5
5507 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
5509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5510 test $ac_status = 0; }
5512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5513 /* end confdefs.h. */
5523 ac_clean_files_save
=$ac_clean_files
5524 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5525 # Try to create an executable without -o first, disregard a.out.
5526 # It will help us diagnose broken compilers, and finding out an intuition
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5529 $as_echo_n "checking whether the C compiler works... " >&6; }
5530 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5532 # The possible output files:
5533 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5536 for ac_file
in $ac_files
5539 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5540 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
5545 if { { ac_try
="$ac_link_default"
5547 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5548 *) ac_try_echo=$ac_try;;
5550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5551 $as_echo "$ac_try_echo"; } >&5
5552 (eval "$ac_link_default") 2>&5
5554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5555 test $ac_status = 0; }; then :
5556 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
5557 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
5558 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5559 # so that the user can short-circuit this test for compilers unknown to
5561 for ac_file in $ac_files ''
5563 test -f "$ac_file" || continue
5565 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5568 # We found the default executable, but exeext='' is most
5572 if test "${ac_cv_build_exeext+set}" = set && test "$ac_cv_build_exeext" != no;
5574 ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5576 # We set ac_cv_exeext here because the later test for it is not
5577 # safe: cross compilers may not add the suffix if given an `-o'
5578 # argument, so we may need to know it at that point already.
5579 # Even if this section looks crufty: it has the advantage of
5586 test "$ac_cv_build_exeext" = no && ac_cv_build_exeext=
5591 if test -z "$ac_file"; then :
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5593 $as_echo "no" >&6; }
5594 $as_echo "$as_me: failed program was:" >&5
5595 sed 's
/^
/|
/' conftest.$ac_ext >&5
5597 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5598 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
5599 { as_fn_set_status 77
5600 as_fn_error "C compiler cannot create executables
5601 See \`config.log
' for more details." "$LINENO" 5; }; }
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5604 $as_echo "yes" >&6; }
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5607 $as_echo_n "checking for C compiler default output file name... " >&6; }
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5609 $as_echo "$ac_file" >&6; }
5610 ac_build_exeext=$ac_cv_build_exeext
5612 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_build_exeext b.out
5613 ac_clean_files=$ac_clean_files_save
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5615 $as_echo_n "checking for suffix of executables... " >&6; }
5616 if { { ac_try="$ac_link"
5618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5619 *) ac_try_echo=$ac_try;;
5621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5622 $as_echo "$ac_try_echo"; } >&5
5623 (eval "$ac_link") 2>&5
5625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5626 test $ac_status = 0; }; then :
5627 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
5628 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
5629 # work properly (i.e., refer to `conftest.exe
'), while it won't with
5631 for ac_file
in conftest.exe conftest conftest.
*; do
5632 test -f "$ac_file" ||
continue
5634 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5635 *.
* ) ac_cv_build_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5641 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5643 as_fn_error
"cannot compute suffix of executables: cannot compile and link
5644 See \`config.log' for more details." "$LINENO" 5; }
5646 rm -f conftest conftest
$ac_cv_build_exeext
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_exeext" >&5
5648 $as_echo "$ac_cv_build_exeext" >&6; }
5650 rm -f conftest.
$ac_ext
5651 BUILD_EXEEXT
=$ac_cv_build_exeext
5652 ac_build_exeext
=$BUILD_EXEEXT
5653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5654 /* end confdefs.h. */
5659 FILE *f = fopen ("conftest.out", "w");
5660 return ferror (f) || fclose (f) != 0;
5666 ac_clean_files
="$ac_clean_files conftest.out"
5667 # Check that the compiler produces executables we can run. If not, either
5668 # the compiler is broken, or we cross compile.
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5670 $as_echo_n "checking whether we are cross compiling... " >&6; }
5671 if test "$cross_compiling" != yes; then
5672 { { ac_try
="$ac_link"
5674 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5675 *) ac_try_echo=$ac_try;;
5677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5678 $as_echo "$ac_try_echo"; } >&5
5679 (eval "$ac_link") 2>&5
5681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5682 test $ac_status = 0; }
5683 if { ac_try='./conftest$ac_cv_build_exeext'
5684 { { case "(($ac_try" in
5685 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5686 *) ac_try_echo
=$ac_try;;
5688 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5689 $as_echo "$ac_try_echo"; } >&5
5690 (eval "$ac_try") 2>&5
5692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5693 test $ac_status = 0; }; }; then
5696 if test "$cross_compiling" = maybe
; then
5699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5701 as_fn_error
"cannot run C compiled programs.
5702 If you meant to cross compile, use \`--host'.
5703 See \`config.log' for more details." "$LINENO" 5; }
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5708 $as_echo "$cross_compiling" >&6; }
5710 rm -f conftest.
$ac_ext conftest
$ac_cv_build_exeext conftest.out
5711 ac_clean_files
=$ac_clean_files_save
5714 # Restore configuration environment
5715 cross_compiling
=$saved_cross
5718 ac_cpp
='$CPP $CPPFLAGS'
5719 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5720 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5721 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5724 BUILD_CC
="$CC" ; BUILD_EXEEXT
=$EXEEXT
5726 CFLAGS
="$mule_backup_CFLAGS"
5727 CXXFLAGS
="$mule_backup_CXXFLAGS"
5728 BUILD_CFLAGS
="$mule_backup_BUILD_CFLAGS"
5729 for ac_prog
in gawk mawk nawk
awk
5731 # Extract the first word of "$ac_prog", so it can be a program name with args.
5732 set dummy
$ac_prog; ac_word
=$2
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5734 $as_echo_n "checking for $ac_word... " >&6; }
5735 if test "${ac_cv_prog_AWK+set}" = set; then :
5736 $as_echo_n "(cached) " >&6
5738 if test -n "$AWK"; then
5739 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
5741 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5745 test -z "$as_dir" && as_dir
=.
5746 for ac_exec_ext
in '' $ac_executable_extensions; do
5747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5748 ac_cv_prog_AWK
="$ac_prog"
5749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5759 if test -n "$AWK"; then
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5761 $as_echo "$AWK" >&6; }
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5764 $as_echo "no" >&6; }
5768 test -n "$AWK" && break
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5772 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5773 if test "${ac_cv_path_GREP+set}" = set; then :
5774 $as_echo_n "(cached) " >&6
5776 if test -z "$GREP"; then
5777 ac_path_GREP_found
=false
5778 # Loop through the user's path and test for each of PROGNAME-LIST
5779 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5780 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5783 test -z "$as_dir" && as_dir
=.
5784 for ac_prog
in grep ggrep
; do
5785 for ac_exec_ext
in '' $ac_executable_extensions; do
5786 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5787 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5788 # Check for GNU ac_path_GREP and select it if it is found.
5789 # Check for GNU $ac_path_GREP
5790 case `"$ac_path_GREP" --version 2>&1` in
5792 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5795 $as_echo_n 0123456789 >"conftest.in"
5798 cat "conftest.in" "conftest.in" >"conftest.tmp"
5799 mv "conftest.tmp" "conftest.in"
5800 cp "conftest.in" "conftest.nl"
5801 $as_echo 'GREP' >> "conftest.nl"
5802 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5803 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5804 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5805 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5806 # Best one so far, save it but keep looking for a better one
5807 ac_cv_path_GREP
="$ac_path_GREP"
5808 ac_path_GREP_max
=$ac_count
5810 # 10*(2^10) chars as input seems more than enough
5811 test $ac_count -gt 10 && break
5813 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5816 $ac_path_GREP_found && break 3
5821 if test -z "$ac_cv_path_GREP"; then
5822 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5825 ac_cv_path_GREP
=$GREP
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5830 $as_echo "$ac_cv_path_GREP" >&6; }
5831 GREP
="$ac_cv_path_GREP"
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5835 $as_echo_n "checking for egrep... " >&6; }
5836 if test "${ac_cv_path_EGREP+set}" = set; then :
5837 $as_echo_n "(cached) " >&6
5839 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5840 then ac_cv_path_EGREP
="$GREP -E"
5842 if test -z "$EGREP"; then
5843 ac_path_EGREP_found
=false
5844 # Loop through the user's path and test for each of PROGNAME-LIST
5845 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5846 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5849 test -z "$as_dir" && as_dir
=.
5850 for ac_prog
in egrep; do
5851 for ac_exec_ext
in '' $ac_executable_extensions; do
5852 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5853 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5854 # Check for GNU ac_path_EGREP and select it if it is found.
5855 # Check for GNU $ac_path_EGREP
5856 case `"$ac_path_EGREP" --version 2>&1` in
5858 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5861 $as_echo_n 0123456789 >"conftest.in"
5864 cat "conftest.in" "conftest.in" >"conftest.tmp"
5865 mv "conftest.tmp" "conftest.in"
5866 cp "conftest.in" "conftest.nl"
5867 $as_echo 'EGREP' >> "conftest.nl"
5868 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5869 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5870 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5871 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5872 # Best one so far, save it but keep looking for a better one
5873 ac_cv_path_EGREP
="$ac_path_EGREP"
5874 ac_path_EGREP_max
=$ac_count
5876 # 10*(2^10) chars as input seems more than enough
5877 test $ac_count -gt 10 && break
5879 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5882 $ac_path_EGREP_found && break 3
5887 if test -z "$ac_cv_path_EGREP"; then
5888 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5891 ac_cv_path_EGREP
=$EGREP
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5897 $as_echo "$ac_cv_path_EGREP" >&6; }
5898 EGREP
="$ac_cv_path_EGREP"
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5902 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5904 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5905 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5906 $as_echo_n "(cached) " >&6
5908 cat >conftest.
make <<\_ACEOF
5911 @
echo '@@@%%%=$(MAKE)=@@@%%%'
5913 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5914 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5916 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
5918 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
5922 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5924 $as_echo "yes" >&6; }
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5928 $as_echo "no" >&6; }
5929 SET_MAKE
="MAKE=${MAKE-make}"
5933 for ac_prog
in flex
lex
5935 # Extract the first word of "$ac_prog", so it can be a program name with args.
5936 set dummy
$ac_prog; ac_word
=$2
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5938 $as_echo_n "checking for $ac_word... " >&6; }
5939 if test "${ac_cv_prog_LEX+set}" = set; then :
5940 $as_echo_n "(cached) " >&6
5942 if test -n "$LEX"; then
5943 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
5945 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5949 test -z "$as_dir" && as_dir
=.
5950 for ac_exec_ext
in '' $ac_executable_extensions; do
5951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5952 ac_cv_prog_LEX
="$ac_prog"
5953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5963 if test -n "$LEX"; then
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5965 $as_echo "$LEX" >&6; }
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5968 $as_echo "no" >&6; }
5972 test -n "$LEX" && break
5974 test -n "$LEX" || LEX
=":"
5976 if test "x$LEX" != "x:"; then
5977 cat >conftest.l
<<_ACEOF
5983 e { yyless (input () != 0); }
5984 f { unput (yytext[0]); }
5985 . { BEGIN INITIAL; }
5987 #ifdef YYTEXT_POINTER
5988 extern char *yytext;
5993 return ! yylex () + ! yywrap ();
5996 { { ac_try
="$LEX conftest.l"
5998 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5999 *) ac_try_echo=$ac_try;;
6001 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6002 $as_echo "$ac_try_echo"; } >&5
6003 (eval "$LEX conftest.l") 2>&5
6005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6006 test $ac_status = 0; }
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
6008 $as_echo_n "checking lex output file root... " >&6; }
6009 if test "${ac_cv_prog_lex_root+set}" = set; then :
6010 $as_echo_n "(cached) " >&6
6013 if test -f lex.yy.c; then
6014 ac_cv_prog_lex_root=lex.yy
6015 elif test -f lexyy.c; then
6016 ac_cv_prog_lex_root=lexyy
6018 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6022 $as_echo "$ac_cv_prog_lex_root" >&6; }
6023 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6025 if test -z "${LEXLIB+set}"; then
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6027 $as_echo_n "checking lex library... " >&6; }
6028 if test "${ac_cv_lib_lex+set}" = set; then :
6029 $as_echo_n "(cached) " >&6
6033 ac_cv_lib_lex='none needed'
6034 for ac_lib in '' -lfl -ll; do
6035 LIBS="$ac_lib $ac_save_LIBS"
6036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6037 /* end confdefs.h. */
6038 `cat $LEX_OUTPUT_ROOT.c
`
6040 if ac_fn_c_try_link "$LINENO"; then :
6041 ac_cv_lib_lex=$ac_lib
6043 rm -f core conftest.err conftest.$ac_objext \
6044 conftest$ac_exeext conftest.$ac_ext
6045 test "$ac_cv_lib_lex" != 'none needed' && break
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6051 $as_echo "$ac_cv_lib_lex" >&6; }
6052 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6057 $as_echo_n "checking whether yytext is a pointer... " >&6; }
6058 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
6059 $as_echo_n "(cached) " >&6
6061 # POSIX says lex can declare yytext either as a pointer or an array; the
6062 # default is implementation-dependent. Figure out which it is, since
6063 # not all implementations provide the %pointer and %array declarations.
6064 ac_cv_prog_lex_yytext_pointer=no
6066 LIBS="$LEXLIB $ac_save_LIBS"
6067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6068 /* end confdefs.h. */
6069 #define YYTEXT_POINTER 1
6070 `cat $LEX_OUTPUT_ROOT.c
`
6072 if ac_fn_c_try_link "$LINENO"; then :
6073 ac_cv_prog_lex_yytext_pointer=yes
6075 rm -f core conftest.err conftest.$ac_objext \
6076 conftest$ac_exeext conftest.$ac_ext
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6081 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6082 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6084 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6087 rm -f conftest.l $LEX_OUTPUT_ROOT.c
6091 if test -n "$ac_tool_prefix"; then
6092 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6093 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6095 $as_echo_n "checking for $ac_word... " >&6; }
6096 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6097 $as_echo_n "(cached) " >&6
6099 if test -n "$RANLIB"; then
6100 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6106 test -z "$as_dir" && as_dir=.
6107 for ac_exec_ext in '' $ac_executable_extensions; do
6108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6109 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6119 RANLIB=$ac_cv_prog_RANLIB
6120 if test -n "$RANLIB"; then
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6122 $as_echo "$RANLIB" >&6; }
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6125 $as_echo "no" >&6; }
6130 if test -z "$ac_cv_prog_RANLIB"; then
6131 ac_ct_RANLIB=$RANLIB
6132 # Extract the first word of "ranlib", so it can be a program name with args.
6133 set dummy ranlib; ac_word=$2
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6135 $as_echo_n "checking for $ac_word... " >&6; }
6136 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6137 $as_echo_n "(cached) " >&6
6139 if test -n "$ac_ct_RANLIB"; then
6140 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6146 test -z "$as_dir" && as_dir=.
6147 for ac_exec_ext in '' $ac_executable_extensions; do
6148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6149 ac_cv_prog_ac_ct_RANLIB="ranlib"
6150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6159 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6160 if test -n "$ac_ct_RANLIB"; then
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6162 $as_echo "$ac_ct_RANLIB" >&6; }
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6165 $as_echo "no" >&6; }
6168 if test "x$ac_ct_RANLIB" = x; then
6171 case $cross_compiling:$ac_tool_warned in
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6174 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6175 ac_tool_warned=yes ;;
6177 RANLIB=$ac_ct_RANLIB
6180 RANLIB="$ac_cv_prog_RANLIB"
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6184 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6185 if test "${ac_cv_path_SED+set}" = set; then :
6186 $as_echo_n "(cached) " >&6
6188 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6189 for ac_i in 1 2 3 4 5 6 7; do
6190 ac_script="$ac_script$as_nl$ac_script"
6192 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6193 { ac_script=; unset ac_script;}
6194 if test -z "$SED"; then
6195 ac_path_SED_found=false
6196 # Loop through the user's path and test for each of PROGNAME-LIST
6197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201 test -z "$as_dir" && as_dir=.
6202 for ac_prog in sed gsed; do
6203 for ac_exec_ext in '' $ac_executable_extensions; do
6204 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6205 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6206 # Check for GNU ac_path_SED and select it if it is found.
6207 # Check for GNU $ac_path_SED
6208 case `"$ac_path_SED" --version 2>&1` in
6210 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6213 $as_echo_n 0123456789 >"conftest.in"
6216 cat "conftest.in" "conftest.in" >"conftest.tmp"
6217 mv "conftest.tmp" "conftest.in"
6218 cp "conftest.in" "conftest.nl"
6219 $as_echo '' >> "conftest.nl"
6220 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6221 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6222 as_fn_arith $ac_count + 1 && ac_count=$as_val
6223 if test $ac_count -gt ${ac_path_SED_max-0}; then
6224 # Best one so far, save it but keep looking for a better one
6225 ac_cv_path_SED="$ac_path_SED"
6226 ac_path_SED_max=$ac_count
6228 # 10*(2^10) chars as input seems more than enough
6229 test $ac_count -gt 10 && break
6231 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6234 $ac_path_SED_found && break 3
6239 if test -z "$ac_cv_path_SED"; then
6240 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6248 $as_echo "$ac_cv_path_SED" >&6; }
6249 SED="$ac_cv_path_SED"
6252 for ac_prog in 'bison -y' byacc
6254 # Extract the first word of "$ac_prog", so it can be a program name with args.
6255 set dummy $ac_prog; ac_word=$2
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6257 $as_echo_n "checking for $ac_word... " >&6; }
6258 if test "${ac_cv_prog_YACC+set}" = set; then :
6259 $as_echo_n "(cached) " >&6
6261 if test -n "$YACC"; then
6262 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268 test -z "$as_dir" && as_dir=.
6269 for ac_exec_ext in '' $ac_executable_extensions; do
6270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6271 ac_cv_prog_YACC="$ac_prog"
6272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6281 YACC=$ac_cv_prog_YACC
6282 if test -n "$YACC"; then
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6284 $as_echo "$YACC" >&6; }
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6287 $as_echo "no" >&6; }
6291 test -n "$YACC" && break
6293 test -n "$YACC" || YACC="yacc"
6296 if test -n "$ac_tool_prefix"; then
6297 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6298 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6300 $as_echo_n "checking for $ac_word... " >&6; }
6301 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6302 $as_echo_n "(cached) " >&6
6304 if test -n "$RANLIB"; then
6305 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311 test -z "$as_dir" && as_dir=.
6312 for ac_exec_ext in '' $ac_executable_extensions; do
6313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6314 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6324 RANLIB=$ac_cv_prog_RANLIB
6325 if test -n "$RANLIB"; then
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6327 $as_echo "$RANLIB" >&6; }
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6330 $as_echo "no" >&6; }
6335 if test -z "$ac_cv_prog_RANLIB"; then
6336 ac_ct_RANLIB=$RANLIB
6337 # Extract the first word of "ranlib", so it can be a program name with args.
6338 set dummy ranlib; ac_word=$2
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6340 $as_echo_n "checking for $ac_word... " >&6; }
6341 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6342 $as_echo_n "(cached) " >&6
6344 if test -n "$ac_ct_RANLIB"; then
6345 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351 test -z "$as_dir" && as_dir=.
6352 for ac_exec_ext in '' $ac_executable_extensions; do
6353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6354 ac_cv_prog_ac_ct_RANLIB="ranlib"
6355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6364 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6365 if test -n "$ac_ct_RANLIB"; then
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6367 $as_echo "$ac_ct_RANLIB" >&6; }
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6370 $as_echo "no" >&6; }
6373 if test "x$ac_ct_RANLIB" = x; then
6376 case $cross_compiling:$ac_tool_warned in
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6379 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6380 ac_tool_warned=yes ;;
6382 RANLIB=$ac_ct_RANLIB
6385 RANLIB="$ac_cv_prog_RANLIB"
6388 if test -n "$ac_tool_prefix"; then
6389 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6390 set dummy ${ac_tool_prefix}strip; ac_word=$2
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6392 $as_echo_n "checking for $ac_word... " >&6; }
6393 if test "${ac_cv_prog_STRIP+set}" = set; then :
6394 $as_echo_n "(cached) " >&6
6396 if test -n "$STRIP"; then
6397 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403 test -z "$as_dir" && as_dir=.
6404 for ac_exec_ext in '' $ac_executable_extensions; do
6405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6406 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6416 STRIP=$ac_cv_prog_STRIP
6417 if test -n "$STRIP"; then
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6419 $as_echo "$STRIP" >&6; }
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6422 $as_echo "no" >&6; }
6427 if test -z "$ac_cv_prog_STRIP"; then
6429 # Extract the first word of "strip", so it can be a program name with args.
6430 set dummy strip; ac_word=$2
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6432 $as_echo_n "checking for $ac_word... " >&6; }
6433 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6434 $as_echo_n "(cached) " >&6
6436 if test -n "$ac_ct_STRIP"; then
6437 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6443 test -z "$as_dir" && as_dir=.
6444 for ac_exec_ext in '' $ac_executable_extensions; do
6445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6446 ac_cv_prog_ac_ct_STRIP="strip"
6447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6456 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6457 if test -n "$ac_ct_STRIP"; then
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6459 $as_echo "$ac_ct_STRIP" >&6; }
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6462 $as_echo "no" >&6; }
6465 if test "x$ac_ct_STRIP" = x; then
6468 case $cross_compiling:$ac_tool_warned in
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6472 ac_tool_warned=yes ;;
6477 STRIP="$ac_cv_prog_STRIP"
6480 if test -n "$ac_tool_prefix"; then
6481 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6482 set dummy ${ac_tool_prefix}ar; ac_word=$2
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6484 $as_echo_n "checking for $ac_word... " >&6; }
6485 if test "${ac_cv_prog_AR+set}" = set; then :
6486 $as_echo_n "(cached) " >&6
6488 if test -n "$AR"; then
6489 ac_cv_prog_AR="$AR" # Let the user override the test.
6491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495 test -z "$as_dir" && as_dir=.
6496 for ac_exec_ext in '' $ac_executable_extensions; do
6497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6498 ac_cv_prog_AR="${ac_tool_prefix}ar"
6499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6509 if test -n "$AR"; then
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6511 $as_echo "$AR" >&6; }
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6514 $as_echo "no" >&6; }
6519 if test -z "$ac_cv_prog_AR"; then
6521 # Extract the first word of "ar", so it can be a program name with args.
6522 set dummy ar; ac_word=$2
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6524 $as_echo_n "checking for $ac_word... " >&6; }
6525 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6526 $as_echo_n "(cached) " >&6
6528 if test -n "$ac_ct_AR"; then
6529 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535 test -z "$as_dir" && as_dir=.
6536 for ac_exec_ext in '' $ac_executable_extensions; do
6537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6538 ac_cv_prog_ac_ct_AR="ar"
6539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6548 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6549 if test -n "$ac_ct_AR"; then
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6551 $as_echo "$ac_ct_AR" >&6; }
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6554 $as_echo "no" >&6; }
6557 if test "x$ac_ct_AR" = x; then
6560 case $cross_compiling:$ac_tool_warned in
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6564 ac_tool_warned=yes ;;
6572 if test -n "$ac_tool_prefix"; then
6573 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
6574 set dummy ${ac_tool_prefix}ld; ac_word=$2
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6576 $as_echo_n "checking for $ac_word... " >&6; }
6577 if test "${ac_cv_prog_LD+set}" = set; then :
6578 $as_echo_n "(cached) " >&6
6580 if test -n "$LD"; then
6581 ac_cv_prog_LD="$LD" # Let the user override the test.
6583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6587 test -z "$as_dir" && as_dir=.
6588 for ac_exec_ext in '' $ac_executable_extensions; do
6589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6590 ac_cv_prog_LD="${ac_tool_prefix}ld"
6591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6601 if test -n "$LD"; then
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6603 $as_echo "$LD" >&6; }
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6606 $as_echo "no" >&6; }
6611 if test -z "$ac_cv_prog_LD"; then
6613 # Extract the first word of "ld", so it can be a program name with args.
6614 set dummy ld; ac_word=$2
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6616 $as_echo_n "checking for $ac_word... " >&6; }
6617 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
6618 $as_echo_n "(cached) " >&6
6620 if test -n "$ac_ct_LD"; then
6621 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
6623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627 test -z "$as_dir" && as_dir=.
6628 for ac_exec_ext in '' $ac_executable_extensions; do
6629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6630 ac_cv_prog_ac_ct_LD="ld"
6631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6640 ac_ct_LD=$ac_cv_prog_ac_ct_LD
6641 if test -n "$ac_ct_LD"; then
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
6643 $as_echo "$ac_ct_LD" >&6; }
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6646 $as_echo "no" >&6; }
6649 if test "x$ac_ct_LD" = x; then
6652 case $cross_compiling:$ac_tool_warned in
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6655 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6656 ac_tool_warned=yes ;;
6665 # Check whether --enable-monolithic was given.
6666 if test "${enable_monolithic+set}" = set; then :
6667 enableval=$enable_monolithic;
6670 if test ${enable_monolithic:-yes} = yes; then
6672 MONOLITHIC_FALSE='#'
6679 # Check whether --enable-amule-daemon was given.
6680 if test "${enable_amule_daemon+set}" = set; then :
6681 enableval=$enable_amule_daemon;
6684 if test ${enable_amule_daemon:-no} = yes; then
6686 AMULE_DAEMON_FALSE='#'
6688 AMULE_DAEMON_TRUE='#'
6693 # Check whether --enable-amulecmd was given.
6694 if test "${enable_amulecmd+set}" = set; then :
6695 enableval=$enable_amulecmd;
6698 if test ${enable_amulecmd:-no} = yes; then
6700 COMPILE_CMD_FALSE='#'
6702 COMPILE_CMD_TRUE='#'
6707 # Check whether --enable-webserver was given.
6708 if test "${enable_webserver+set}" = set; then :
6709 enableval=$enable_webserver;
6712 if test ${enable_webserver:-no} = yes; then
6721 # Check whether --enable-amule-gui was given.
6722 if test "${enable_amule_gui+set}" = set; then :
6723 enableval=$enable_amule_gui;
6726 if test ${enable_amule_gui:-no} = yes; then
6735 # Check whether --enable-cas was given.
6736 if test "${enable_cas+set}" = set; then :
6737 enableval=$enable_cas;
6740 if test ${enable_cas:-no} = yes; then
6749 # Check whether --enable-wxcas was given.
6750 if test "${enable_wxcas+set}" = set; then :
6751 enableval=$enable_wxcas;
6754 if test ${enable_wxcas:-no} = yes; then
6763 # Check whether --enable-ed2k was given.
6764 if test "${enable_ed2k+set}" = set; then :
6765 enableval=$enable_ed2k;
6768 if test ${enable_ed2k:-yes} = yes; then
6777 # Check whether --enable-alc was given.
6778 if test "${enable_alc+set}" = set; then :
6779 enableval=$enable_alc;
6782 if test ${enable_alc:-no} = yes; then
6791 # Check whether --enable-alcc was given.
6792 if test "${enable_alcc+set}" = set; then :
6793 enableval=$enable_alcc;
6796 if test ${enable_alcc:-no} = yes; then
6805 # Check whether --enable-xas was given.
6806 if test "${enable_xas+set}" = set; then :
6807 enableval=$enable_xas;
6810 if test ${enable_xas:-no} = yes; then
6819 # Check whether --enable-fileview was given.
6820 if test "${enable_fileview+set}" = set; then :
6821 enableval=$enable_fileview;
6824 if test ${enable_fileview:-no} = yes; then
6833 # Check whether --enable-plasmamule was given.
6834 if test "${enable_plasmamule+set}" = set; then :
6835 enableval=$enable_plasmamule;
6840 # Run all the tests with static linkage if we want a statically linked binary
6841 # Check whether --enable-static was given.
6842 if test "${enable_static+set}" = set; then :
6843 enableval=$enable_static;
6847 if test ${enable_static:-no} = yes; then :
6848 LDFLAGS="$LDFLAGS -static"
6853 # Check whether --with-kde4-config was given.
6854 if test "${with_kde4_config+set}" = set; then :
6855 withval=$with_kde4_config; KDE4_CONFIG=$withval
6860 # Check whether --enable-kde-in-home was given.
6861 if test "${enable_kde_in_home+set}" = set; then :
6862 enableval=$enable_kde_in_home; KDE_IN_HOME=$enableval
6870 # Check whether --with-moc was given.
6871 if test "${with_moc+set}" = set; then :
6872 withval=$with_moc; QT_MOC=$withval
6879 # Default is yes, because they're most likely compatible.
6880 # However, this is only used when cross-compiling.
6882 # Check whether --with-gnu-malloc was given.
6883 if test "${with_gnu_malloc+set}" = set; then :
6884 withval=$with_gnu_malloc; gnumalloc=$withval
6891 # Checking for libs before all other stuff to break
6892 # configure as soon as possible in case of a missing one
6893 # to avoid losing too much time
6896 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 :
6899 # Check whether --with-zlib was given.
6900 if test "${with_zlib+set}" = set; then :
6905 case "${with_zlib:-yes}" in
6907 as_fn_error "zlib >= 1.1.4 is required for aMule" "$LINENO" 5
6912 zlib_prefix="$with_zlib"
6915 mule_backup_CPPFLAGS="$CPPFLAGS"
6916 mule_backup_LDFLAGS="$LDFLAGS"
6917 mule_backup_LIBS="$LIBS"
6918 if test -n "$zlib_prefix"; then :
6920 ZLIB_CPPFLAGS="-I$zlib_prefix/include"
6921 ZLIB_LDFLAGS="-L$zlib_prefix/lib"
6922 CPPFLAGS="$CPPFLAGS $ZLIB_CPPFLAGS"
6923 LDFLAGS="$LDFLAGS $ZLIB_LDFLAGS"
6932 LIBS="$ZLIB_LIBS $LIBS"
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib >= 1.1.4" >&5
6935 $as_echo_n "checking for zlib >= 1.1.4... " >&6; }
6936 if test "$cross_compiling" = yes; then :
6940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6941 /* end confdefs.h. */
6951 printf("\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n\n");
6959 if ac_fn_c_try_link "$LINENO"; then :
6961 ZLIB_VERSION=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest
$ac_exeext |
sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'`
6962 cross_zver_max="`echo $ZLIB_VERSION | cut
-d.
-f1`"
6963 cross_zver_mid="`echo $ZLIB_VERSION | cut
-d.
-f2`"
6964 cross_zver_min="`echo $ZLIB_VERSION | cut
-d.
-f3`"
6965 if test "$cross_zver_max" -gt "1"; then
6967 elif test "$cross_zver_max" -eq "1"; then
6969 if test "$cross_zver_mid" -gt "1"; then
6971 elif test "$cross_zver_mid" -eq "1"; then
6972 if test "$cross_zver_min" -ge "4"; then
6981 if test ${result:-no} = yes; then :
6982 z_version=" (version $ZLIB_VERSION)"
6986 rm -f core conftest.err conftest.$ac_objext \
6987 conftest$ac_exeext conftest.$ac_ext
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$z_version" >&5
6989 $as_echo "$result$z_version" >&6; }
6992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6993 /* end confdefs.h. */
7002 char *zver = zlibVersion();
7003 FILE *f=fopen("conftestval", "w");
7010 zver[4] >= '4'))) ? "yes" : "no");
7012 f=fopen("conftestver", "w");
7014 fprintf(f, "%s", ZLIB_VERSION);
7023 if ac_fn_c_try_run "$LINENO"; then :
7025 if test -f conftestval; then :
7026 result=`cat conftestval
`
7030 if test ${result:-no} = yes; then :
7032 if test -f conftestver; then :
7034 ZLIB_VERSION=`cat conftestver
`
7035 z_version=" (version $ZLIB_VERSION)"
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$z_version" >&5
7043 $as_echo "$result$z_version" >&6; }
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7049 $as_echo "$result" >&6; }
7052 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7053 conftest.$ac_objext conftest.beam conftest.$ac_ext
7057 CPPFLAGS="$mule_backup_CPPFLAGS"
7058 LDFLAGS="$mule_backup_LDFLAGS"
7059 LIBS="$mule_backup_LIBS"
7061 if test ${result:-no} = no; then :
7066 as_fn_error "zlib >= 1.1.4 is required for aMule" "$LINENO" 5
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7075 $as_echo_n "checking for ANSI C header files... " >&6; }
7076 if test "${ac_cv_header_stdc+set}" = set; then :
7077 $as_echo_n "(cached) " >&6
7079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7080 /* end confdefs.h. */
7094 if ac_fn_c_try_compile "$LINENO"; then :
7095 ac_cv_header_stdc=yes
7097 ac_cv_header_stdc=no
7099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7101 if test $ac_cv_header_stdc = yes; then
7102 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7104 /* end confdefs.h. */
7108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7109 $EGREP "memchr" >/dev/null 2>&1; then :
7112 ac_cv_header_stdc=no
7118 if test $ac_cv_header_stdc = yes; then
7119 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7121 /* end confdefs.h. */
7125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7126 $EGREP "free" >/dev/null 2>&1; then :
7129 ac_cv_header_stdc=no
7135 if test $ac_cv_header_stdc = yes; then
7136 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7137 if test "$cross_compiling" = yes; then :
7140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7141 /* end confdefs.h. */
7144 #if ((' ' & 0x0FF) == 0x020)
7145 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7146 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7148 # define ISLOWER(c) \
7149 (('a' <= (c) && (c) <= 'i') \
7150 || ('j' <= (c) && (c) <= 'r') \
7151 || ('s' <= (c) && (c) <= 'z'))
7152 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7155 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7160 for (i = 0; i < 256; i++)
7161 if (XOR (islower (i), ISLOWER (i))
7162 || toupper (i) != TOUPPER (i))
7167 if ac_fn_c_try_run "$LINENO"; then :
7170 ac_cv_header_stdc=no
7172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7173 conftest.$ac_objext conftest.beam conftest.$ac_ext
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7179 $as_echo "$ac_cv_header_stdc" >&6; }
7180 if test $ac_cv_header_stdc = yes; then
7182 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7186 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7187 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7188 inttypes.h stdint.h unistd.h
7190 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
7191 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7193 eval as_val=\$$as_ac_Header
7194 if test "x$as_val" = x""yes; then :
7195 cat >>confdefs.h <<_ACEOF
7196 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7204 if test ${enable_cas:-no} = yes; then :
7209 # Check whether --with-gdlib-prefix was given.
7210 if test "${with_gdlib_prefix+set}" = set; then :
7211 withval=$with_gdlib_prefix;
7215 # Check whether --with-gdlib-config was given.
7216 if test "${with_gdlib_config+set}" = set; then :
7217 withval=$with_gdlib_config;
7223 # do we have gdlib-config name: it can be gdlib-config or gd-config or ...
7224 if test x${GDLIB_CONFIG_NAME+set} != xset; then :
7225 GDLIB_CONFIG_NAME=gdlib-config
7227 if test -n "$with_gdlib_config"; then :
7228 GDLIB_CONFIG_NAME="$with_gdlib_config"
7231 # deal with optional prefix
7232 if test -n "$with_gdlib_prefix"; then :
7233 GDLIB_LOOKUP_PATH="$with_gdlib_prefix/bin"
7236 # don't search the PATH if GDLIB_CONFIG_NAME is absolute filename
7237 if test -x "$GDLIB_CONFIG_NAME"; then :
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib-config" >&5
7240 $as_echo_n "checking for gdlib-config... " >&6; }
7241 GDLIB_CONFIG_PATH="$GDLIB_CONFIG_NAME"
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG_PATH" >&5
7243 $as_echo "$GDLIB_CONFIG_PATH" >&6; }
7246 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args.
7247 set dummy $GDLIB_CONFIG_NAME; ac_word=$2
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7249 $as_echo_n "checking for $ac_word... " >&6; }
7250 if test "${ac_cv_path_GDLIB_CONFIG_PATH+set}" = set; then :
7251 $as_echo_n "(cached) " >&6
7253 case $GDLIB_CONFIG_PATH in
7255 ac_cv_path_GDLIB_CONFIG_PATH="$GDLIB_CONFIG_PATH" # Let the user override the test with a path.
7258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7259 as_dummy="$GDLIB_LOOKUP_PATH:$PATH"
7260 for as_dir in $as_dummy
7263 test -z "$as_dir" && as_dir=.
7264 for ac_exec_ext in '' $ac_executable_extensions; do
7265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7266 ac_cv_path_GDLIB_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7274 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH="no"
7278 GDLIB_CONFIG_PATH=$ac_cv_path_GDLIB_CONFIG_PATH
7279 if test -n "$GDLIB_CONFIG_PATH"; then
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG_PATH" >&5
7281 $as_echo "$GDLIB_CONFIG_PATH" >&6; }
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7284 $as_echo "no" >&6; }
7290 if test ${GDLIB_CONFIG_PATH:-no} != no; then :
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib version >= 2.0.0" >&5
7293 $as_echo_n "checking for gdlib version >= 2.0.0... " >&6; }
7294 GDLIB_CONFIG_WITH_ARGS="$GDLIB_CONFIG_PATH $gdlib_config_args"
7296 GDLIB_VERSION=`$GDLIB_CONFIG_WITH_ARGS --version`
7297 gdlib_config_major_version=`echo $GDLIB_VERSION |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
7298 gdlib_config_minor_version=`echo $GDLIB_VERSION |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
7299 gdlib_config_micro_version=`echo $GDLIB_VERSION |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
7302 if test $gdlib_config_major_version -gt 2; then
7304 elif test $gdlib_config_major_version -eq 2; then
7306 if test $gdlib_config_minor_version -gt 0; then
7308 elif test $gdlib_config_minor_version -eq 0; then
7309 if test $gdlib_config_micro_version -ge 0; then
7319 if test -z "$gdlib_ver_ok"; then :
7321 if test -z "$GDLIB_VERSION"; then :
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7323 $as_echo "no" >&6; }
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $GDLIB_VERSION is not new enough)" >&5
7327 $as_echo "no (version $GDLIB_VERSION is not new enough)" >&6; }
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $GDLIB_VERSION)" >&5
7335 $as_echo "yes (version $GDLIB_VERSION)" >&6; }
7336 GDLIB_CFLAGS="`$GDLIB_CONFIG_WITH_ARGS --cflags`"
7337 GDLIB_LDFLAGS="`$GDLIB_CONFIG_WITH_ARGS --ldflags`"
7338 GDLIB_LIBS="`$GDLIB_CONFIG_WITH_ARGS --libs`"
7339 mule_backup_CFLAGS="$CFLAGS"
7340 CFLAGS="$CFLAGS $GDLIB_CFLAGS"
7341 ac_fn_c_check_header_mongrel "$LINENO" "gd.h" "ac_cv_header_gd_h" "$ac_includes_default"
7342 if test "x$ac_cv_header_gd_h" = x""yes; then :
7349 CFLAGS="$mule_backup_CFLAGS"
7355 if test -n "$GDLIB_VERSION"; then :
7358 GDLIB_LIBS="-lgd $GDLIB_LIBS"
7366 if test -z "$CAS_DEFS"; then :
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7368 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
7369 Please check that gdlib-config is in your default path, check out
7370 LD_LIBRARY_PATH or equivalent variable.
7371 Or this might also be that your gdlib-config has other name.
7372 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
7373 (replace /usr/bin/gdlib-config with a valid path to your
7375 If you use compiled packages check if you have devel pack installed.
7376 To download the latest version check http://www.boutell.com/gd for
7378 $as_echo "$as_me: WARNING:
7379 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
7380 Please check that gdlib-config is in your default path, check out
7381 LD_LIBRARY_PATH or equivalent variable.
7382 Or this might also be that your gdlib-config has other name.
7383 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
7384 (replace /usr/bin/gdlib-config with a valid path to your
7386 If you use compiled packages check if you have devel pack installed.
7387 To download the latest version check http://www.boutell.com/gd for
7390 _mule_has_warnings=yes
7396 if test ${enable_webserver:-no} = yes; then :
7399 # Check whether --with-libpng-prefix was given.
7400 if test "${with_libpng_prefix+set}" = set; then :
7401 withval=$with_libpng_prefix;
7405 # Check whether --with-libpng-config was given.
7406 if test "${with_libpng_config+set}" = set; then :
7407 withval=$with_libpng_config;
7413 # do we have libpng-config name: it can be libpng-config or libpng12-config or ...
7414 if test x${LIBPNG_CONFIG_NAME+set} != xset; then :
7415 LIBPNG_CONFIG_NAME=libpng-config
7417 if test -n "$with_libpng_config"; then :
7418 LIBPNG_CONFIG_NAME="$with_libpng_config"
7421 # deal with optional prefix
7422 if test -n "$with_libpng_prefix"; then :
7423 LIBPNG_LOOKUP_PATH="$with_libpng_prefix/bin"
7426 # don't search the PATH if LIBPNG_CONFIG_NAME is absolute filename
7427 if test -x "$LIBPNG_CONFIG_NAME"; then :
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng-config" >&5
7430 $as_echo_n "checking for libpng-config... " >&6; }
7431 LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_NAME"
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG_PATH" >&5
7433 $as_echo "$LIBPNG_CONFIG_PATH" >&6; }
7436 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
7437 set dummy $LIBPNG_CONFIG_NAME; ac_word=$2
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7439 $as_echo_n "checking for $ac_word... " >&6; }
7440 if test "${ac_cv_path_LIBPNG_CONFIG_PATH+set}" = set; then :
7441 $as_echo_n "(cached) " >&6
7443 case $LIBPNG_CONFIG_PATH in
7445 ac_cv_path_LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
7448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7449 as_dummy="$LIBPNG_LOOKUP_PATH:$PATH"
7450 for as_dir in $as_dummy
7453 test -z "$as_dir" && as_dir=.
7454 for ac_exec_ext in '' $ac_executable_extensions; do
7455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7456 ac_cv_path_LIBPNG_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7464 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH="no"
7468 LIBPNG_CONFIG_PATH=$ac_cv_path_LIBPNG_CONFIG_PATH
7469 if test -n "$LIBPNG_CONFIG_PATH"; then
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG_PATH" >&5
7471 $as_echo "$LIBPNG_CONFIG_PATH" >&6; }
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7474 $as_echo "no" >&6; }
7480 if test ${LIBPNG_CONFIG_PATH:-no} != no; then :
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng version >= 1.2.0" >&5
7483 $as_echo_n "checking for libpng version >= 1.2.0... " >&6; }
7485 LIBPNG_CONFIG_WITH_ARGS="$LIBPNG_CONFIG_PATH $libpng_config_args"
7487 LIBPNG_VERSION=`$LIBPNG_CONFIG_WITH_ARGS --version`
7488 libpng_config_major_version=`echo $LIBPNG_VERSION |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
7489 libpng_config_minor_version=`echo $LIBPNG_VERSION |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
7490 libpng_config_micro_version=`echo $LIBPNG_VERSION |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
7493 if test $libpng_config_major_version -gt 1; then
7495 elif test $libpng_config_major_version -eq 1; then
7497 if test $libpng_config_minor_version -gt 2; then
7499 elif test $libpng_config_minor_version -eq 2; then
7500 if test $libpng_config_micro_version -ge 0; then
7510 if test -z "$libpng_ver_ok"; then :
7512 if test -z "$LIBPNG_VERSION"; then :
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7514 $as_echo "no" >&6; }
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $LIBPNG_VERSION is not new enough)" >&5
7518 $as_echo "no (version $LIBPNG_VERSION is not new enough)" >&6; }
7525 LIBPNG_LIBS=`$LIBPNG_CONFIG_WITH_ARGS --libs`
7526 LIBPNG_LDFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --ldflags |
sed -e "s/ *${LIBPNG_LIBS}$//"`
7527 LIBPNG_CFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $LIBPNG_VERSION)" >&5
7529 $as_echo "yes (version $LIBPNG_VERSION)" >&6; }
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libpng is usable" >&5
7532 $as_echo_n "checking if libpng is usable... " >&6; }
7534 SAVED_CFLAGS=$CFLAGS
7535 SAVED_LDFLAGS=$LDFLAGS
7538 CFLAGS="$CFLAGS $LIBPNG_CFLAGS"
7539 LDFLAGS="$LDFLAGS $LIBPNG_LDFLAGS"
7540 LIBS="$LIBS $LIBPNG_LIBS"
7542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7543 /* end confdefs.h. */
7553 png_uint_32 libpng_vn = png_access_version_number();
7554 printf("\nlibpng version %i\n\n", libpng_vn);
7561 if ac_fn_c_try_link "$LINENO"; then :
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7564 $as_echo "yes" >&6; }
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (failed to compile and link test program)" >&5
7569 $as_echo "no (failed to compile and link test program)" >&6; }
7576 rm -f core conftest.err conftest.$ac_objext \
7577 conftest$ac_exeext conftest.$ac_ext
7579 CFLAGS=$SAVED_CFLAGS
7580 LDFLAGS=$SAVED_LDFLAGS
7587 if test -n "$LIBPNG_VERSION"; then :
7588 AMULEWEB_DEFS="-DWITH_LIBPNG"
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7592 libpng >= 1.2.0 not found.
7593 amuleweb will be compiled but file download progress bar images will
7594 NOT be generated." >&5
7595 $as_echo "$as_me: WARNING:
7596 libpng >= 1.2.0 not found.
7597 amuleweb will be compiled but file download progress bar images will
7598 NOT be generated." >&2;}
7600 _mule_has_warnings=yes
7610 # Check for perl File::Copy
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for File::Copy" >&5
7612 $as_echo_n "checking for File::Copy... " >&6; }
7613 if perl -e "require File::Copy" 2>/dev/null; then :
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7615 $as_echo "ok" >&6; }
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7618 File::Copy perl module is required by the mldonkey_importer script.
7619 If you want to use this script please install File::Copy from CPAN." >&5
7620 $as_echo "$as_me: WARNING:
7621 File::Copy perl module is required by the mldonkey_importer script.
7622 If you want to use this script please install File::Copy from CPAN." >&2;}
7624 _mule_has_warnings=yes
7628 # Check for GeoIP (required for IP2Country capability)
7629 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
7631 # Check whether --enable-geoip was given.
7632 if test "${enable_geoip+set}" = set; then :
7633 enableval=$enable_geoip;
7638 if test ${enable_geoip:-no} = yes; then :
7641 # Check whether --with-geoip-headers was given.
7642 if test "${with_geoip_headers+set}" = set; then :
7643 withval=$with_geoip_headers; GEOIP_CPPFLAGS="-I$withval"
7647 # Check whether --with-geoip-lib was given.
7648 if test "${with_geoip_lib+set}" = set; then :
7649 withval=$with_geoip_lib; GEOIP_LDFLAGS="-L$withval"
7653 mule_backup_CPPFLAGS="$CPPFLAGS"
7654 CPPFLAGS="$CPPFLAGS $GEOIP_CPPFLAGS"
7655 mule_backup_LDFLAGS="$LDFLAGS"
7656 LDFLAGS="$LDFLAGS $GEOIP_LDFLAGS"
7658 ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
7659 if test "x$ac_cv_header_GeoIP_h" = x""yes; then :
7661 if test x$SYS = xwin32; then :
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WinSock library needed by GeoIP" >&5
7664 $as_echo_n "checking for WinSock library needed by GeoIP... " >&6; }
7665 # Actually, we might not need any if GeoIP is linked as a .dll
7666 # - but that's even harder to check for
7667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7668 /* end confdefs.h. */
7672 #if (defined _WINSOCK2API_ || defined _WINSOCK2_H)
7673 I do know it's not the best approach, but at least works with MinGW stock headers.
7674 (tested with w32api-3.12)
7686 if ac_fn_c_try_compile "$LINENO"; then :
7688 GEOIP_WINSOCK_LIB="-lwsock32"
7692 GEOIP_WINSOCK_LIB="-lws2_32"
7695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GEOIP_WINSOCK_LIB" >&5
7697 $as_echo "$GEOIP_WINSOCK_LIB" >&6; }
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP_open in -lGeoIP" >&5
7701 $as_echo_n "checking for GeoIP_open in -lGeoIP... " >&6; }
7702 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then :
7703 $as_echo_n "(cached) " >&6
7705 ac_check_lib_save_LIBS=$LIBS
7706 LIBS="-lGeoIP ${GEOIP_WINSOCK_LIB:-} $LIBS"
7707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7708 /* end confdefs.h. */
7710 /* Override any GCC internal prototype to avoid an error.
7711 Use char because int might match the return type of a GCC
7712 builtin and then its argument prototype would still apply. */
7720 return GeoIP_open ();
7725 if ac_fn_c_try_link "$LINENO"; then :
7726 ac_cv_lib_GeoIP_GeoIP_open=yes
7728 ac_cv_lib_GeoIP_GeoIP_open=no
7730 rm -f core conftest.err conftest.$ac_objext \
7731 conftest$ac_exeext conftest.$ac_ext
7732 LIBS=$ac_check_lib_save_LIBS
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
7735 $as_echo "$ac_cv_lib_GeoIP_GeoIP_open" >&6; }
7736 if test "x$ac_cv_lib_GeoIP_GeoIP_open" = x""yes; then :
7739 $as_echo "#define SUPPORT_GEOIP 1" >>confdefs.h
7741 GEOIP_LIBS="-lGeoIP"
7742 if test x$SYS = xwin32; then :
7743 GEOIP_LIBS="$GEOIP_LIBS $GEOIP_WINSOCK_LIB"
7745 GEOIP_CPPFLAGS="$GEOIP_CPPFLAGS -DENABLE_IP2COUNTRY=1"
7747 # Check whether --with-geoip-static was given.
7748 if test "${with_geoip_static+set}" = set; then :
7749 withval=$with_geoip_static;
7750 if test "$withval" != "no" -a ${enable_static:-no} = no; then :
7752 mule_backup_LIBS="$LIBS"
7753 LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic $LIBS"
7754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7755 /* end confdefs.h. */
7764 GeoIP *g = GeoIP_new(GEOIP_STANDARD);
7771 if ac_fn_c_try_link "$LINENO"; then :
7773 GEOIP_LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic"
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7778 Cannot link GeoIP statically, because your linker ($LD) does not
7780 $as_echo "$as_me: WARNING:
7781 Cannot link GeoIP statically, because your linker ($LD) does not
7784 _mule_has_warnings=yes
7788 rm -f core conftest.err conftest.$ac_objext \
7789 conftest$ac_exeext conftest.$ac_ext
7790 LIBS="$mule_backup_LIBS"
7799 enable_geoip=disabled
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7801 GeoIP support has been disabled because the GeoIP libraries were not
7803 $as_echo "$as_me: WARNING:
7804 GeoIP support has been disabled because the GeoIP libraries were not
7807 _mule_has_warnings=yes
7815 enable_geoip=disabled
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7817 GeoIP support has been disabled because the GeoIP header files were
7819 $as_echo "$as_me: WARNING:
7820 GeoIP support has been disabled because the GeoIP header files were
7823 _mule_has_warnings=yes
7830 CPPFLAGS="$mule_backup_CPPFLAGS"
7831 LDFLAGS="$mule_backup_LDFLAGS"
7838 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 :
7841 # Check whether --with-wxdir was given.
7842 if test "${with_wxdir+set}" = set; then :
7843 withval=$with_wxdir; wx_config_name="$withval/wx-config"
7844 wx_config_args="--inplace"
7848 # Check whether --with-wx-config was given.
7849 if test "${with_wx_config+set}" = set; then :
7850 withval=$with_wx_config; wx_config_name="$withval"
7854 # Check whether --with-wx-prefix was given.
7855 if test "${with_wx_prefix+set}" = set; then :
7856 withval=$with_wx_prefix; wx_config_prefix="$withval"
7862 # Check whether --with-wx-exec-prefix was given.
7863 if test "${with_wx_exec_prefix+set}" = set; then :
7864 withval=$with_wx_exec_prefix; wx_config_exec_prefix="$withval"
7866 wx_config_exec_prefix=""
7881 # Check whether --with-toolkit was given.
7882 if test "${with_toolkit+set}" = set; then :
7883 withval=$with_toolkit;
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-toolkit option" >&5
7890 $as_echo_n "checking for the --with-toolkit option... " >&6; }
7891 if test "$withval" = "auto" ; then
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
7893 $as_echo "will be automatically detected" >&6; }
7898 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a \
7899 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
7900 "$TOOLKIT" != "x11" -a "$TOOLKIT" != "mac" -a \
7901 "$TOOLKIT" != "mgl" -a "$TOOLKIT" != "dfb" -a \
7902 "$TOOLKIT" != "base" -a "$TOOLKIT" != "cocoa" -a \
7903 "$TOOLKIT" != "osx_cocoa"; then
7905 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa, osx_cocoa)
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLKIT" >&5
7910 $as_echo "$TOOLKIT" >&6; }
7917 # Check whether --with-wxshared was given.
7918 if test "${with_wxshared+set}" = set; then :
7919 withval=$with_wxshared;
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxshared option" >&5
7926 $as_echo_n "checking for the --with-wxshared option... " >&6; }
7927 if test "$withval" = "yes" ; then
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7929 $as_echo "yes" >&6; }
7932 elif test "1" = "1" -a "$withval" = "no" ; then
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7934 $as_echo "no" >&6; }
7936 elif test "$withval" = "auto" ; then
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
7938 $as_echo "will be automatically detected" >&6; }
7942 Unrecognized option value (allowed values: yes, auto)
7950 # Check whether --with-wxdebug was given.
7951 if test "${with_wxdebug+set}" = set; then :
7952 withval=$with_wxdebug;
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxdebug option" >&5
7959 $as_echo_n "checking for the --with-wxdebug option... " >&6; }
7960 if test "$withval" = "yes" ; then
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7962 $as_echo "yes" >&6; }
7965 elif test "1" = "1" -a "$withval" = "no" ; then
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7967 $as_echo "no" >&6; }
7969 elif test "$withval" = "auto" ; then
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
7971 $as_echo "will be automatically detected" >&6; }
7975 Unrecognized option value (allowed values: yes, auto)
7983 # Check whether --with-wxversion was given.
7984 if test "${with_wxversion+set}" = set; then :
7985 withval=$with_wxversion;
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxversion option" >&5
7992 $as_echo_n "checking for the --with-wxversion option... " >&6; }
7993 if test "$withval" = "auto" ; then
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
7995 $as_echo "will be automatically detected" >&6; }
7999 wx_requested_major_version=`echo $withval | \
8000 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
8001 wx_requested_minor_version=`echo $withval | \
8002 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
8004 if test "${#wx_requested_major_version}" != "1" -o \
8005 "${#wx_requested_minor_version}" != "1" ; then
8007 Unrecognized option value (allowed values: auto, 2.8, 2.9)
8011 WX_VERSION="$wx_requested_major_version"".""$wx_requested_minor_version"
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_VERSION" >&5
8013 $as_echo "$WX_VERSION" >&6; }
8017 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8018 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
8019 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
8020 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
8021 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
8022 echo "[dbg] VERSION: $VERSION, WX_VERSION: $WX_VERSION"
8025 # Force using a static wxWidgets library if the executable is to be linked statically.
8026 if test ${enable_static:-no} = yes; then :
8029 # Force using a unicode build of the library
8030 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 :
8035 if test "$WX_SHARED" = "1" ; then
8036 WXCONFIG_FLAGS="--static=no "
8037 elif test "$WX_SHARED" = "0" ; then
8038 WXCONFIG_FLAGS="--static=yes "
8041 if test "$WX_DEBUG" = "1" ; then
8042 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=yes "
8043 elif test "$WX_DEBUG" = "0" ; then
8044 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=no "
8047 if test "$WX_UNICODE" = "1" ; then
8048 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=yes "
8049 elif test "$WX_UNICODE" = "0" ; then
8050 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=no "
8053 if test "$TOOLKIT" != "auto" ; then
8054 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
8057 if test "$WX_VERSION" != "auto" ; then
8058 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--version=$WX_VERSION "
8061 WXCONFIG_FLAGS=${WXCONFIG_FLAGS% }
8063 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8064 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
8068 if test x${WX_CONFIG_NAME+set} != xset ; then
8069 WX_CONFIG_NAME=wx-config
8072 if test "x$wx_config_name" != x ; then
8073 WX_CONFIG_NAME="$wx_config_name"
8076 if test x$wx_config_exec_prefix != x ; then
8077 wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
8078 WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
8080 if test x$wx_config_prefix != x ; then
8081 wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
8082 WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
8084 if test "$cross_compiling" = "yes"; then
8085 wx_config_args="$wx_config_args --host=$host_alias"
8088 if test -x "$WX_CONFIG_NAME" ; then
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wx-config" >&5
8090 $as_echo_n "checking for wx-config... " >&6; }
8091 WX_CONFIG_PATH="$WX_CONFIG_NAME"
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
8093 $as_echo "$WX_CONFIG_PATH" >&6; }
8095 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
8096 set dummy $WX_CONFIG_NAME; ac_word=$2
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8098 $as_echo_n "checking for $ac_word... " >&6; }
8099 if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then :
8100 $as_echo_n "(cached) " >&6
8102 case $WX_CONFIG_PATH in
8104 ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path.
8107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8108 as_dummy=""$WX_LOOKUP_PATH:$PATH""
8109 for as_dir in $as_dummy
8112 test -z "$as_dir" && as_dir=.
8113 for ac_exec_ext in '' $ac_executable_extensions; do
8114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8115 ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
8116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8123 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no"
8127 WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH
8128 if test -n "$WX_CONFIG_PATH"; then
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
8130 $as_echo "$WX_CONFIG_PATH" >&6; }
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8133 $as_echo "no" >&6; }
8139 if test "$WX_CONFIG_PATH" != "no" ; then
8142 min_wx_version=2.8.12
8143 if test -z "$WXCONFIG_FLAGS" ; then
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version" >&5
8145 $as_echo_n "checking for wxWidgets version >= $min_wx_version... " >&6; }
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
8148 $as_echo_n "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... " >&6; }
8151 WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS "
8153 WX_VERSION_FULL=`$WX_CONFIG_WITH_ARGS --version 2>/dev
/null
`
8154 wx_config_major_version=`echo $WX_VERSION_FULL | \
8155 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8156 wx_config_minor_version=`echo $WX_VERSION_FULL | \
8157 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8158 wx_config_micro_version=`echo $WX_VERSION_FULL | \
8159 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8161 wx_requested_major_version=`echo $min_wx_version | \
8162 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8163 wx_requested_minor_version=`echo $min_wx_version | \
8164 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8165 wx_requested_micro_version=`echo $min_wx_version | \
8166 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8170 if test "x$WX_VERSION_FULL" != x ; then
8171 if test $wx_config_major_version -gt $wx_requested_major_version; then
8174 if test $wx_config_major_version -eq $wx_requested_major_version; then
8175 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
8178 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
8179 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
8189 if test -n "$wx_ver_ok"; then
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $WX_VERSION_FULL)" >&5
8192 $as_echo "yes (version $WX_VERSION_FULL)" >&6; }
8193 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs`
8195 WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
8197 WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags`
8198 WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags`
8199 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
8201 WX_CFLAGS_ONLY=`echo $WX_CFLAGS |
sed "s@^$WX_CPPFLAGS *@@"`
8202 WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS |
sed "s@^$WX_CFLAGS *@@"`
8208 if test "x$WX_VERSION_FULL" = x; then
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8210 $as_echo "no" >&6; }
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $WX_VERSION_FULL is not new enough)" >&5
8213 $as_echo "no (version $WX_VERSION_FULL is not new enough)" >&6; }
8222 if test ! -z "$WXCONFIG_FLAGS"; then
8225 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
8226 build with the following settings:
8228 but such build is not available.
8230 To see the wxWidgets builds available on this system, please use
8231 'wx-config --list' command. To use the default build, returned by
8232 'wx-config --selected-config', use the options with their 'auto'
8238 The requested wxWidgets build couldn't be found.
8241 If you still get this error, then check that 'wx-config' is
8242 in path, the directory where wxWidgets libraries are installed
8243 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
8244 or equivalent variable and wxWidgets version is 2.8.12 or above."
8246 as_fn_error "$wx_error_message" "$LINENO" 5
8270 WX_VERSION_MAJOR="$wx_config_major_version"
8271 WX_VERSION_MINOR="$wx_config_minor_version"
8275 if test "$wxWin" != 1; then :
8277 wxWidgets must be installed on your system but wx-config
8278 script couldn't be found. Please check that wx-config is
8279 in path or specified by --with-wx-config=path flag, the
8280 directory where wxWidgets libraries are installed (returned
8281 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
8282 equivalent variable and wxWidgets version is 2.8.12 or above.
8286 if test "${WX_VERSION_FULL}" = "2.9.0"; then :
8288 This version of wxWidgets is known to not work with aMule.
8289 Please upgrade to a newer version.
8294 WX_VERSION="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
8296 WX_SELECTEDCONFIG=$($WX_CONFIG_WITH_ARGS --selected_config)
8298 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8299 echo "[dbg] Using wx-config --selected-config"
8300 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
8304 if test $WX_SHARED = "1"; then
8306 elif test $WX_SHARED = "0"; then
8308 elif test $WX_SHARED = "auto"; then
8313 if test "$UNICODE" = "auto" ; then
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built with UNICODE enabled" >&5
8316 $as_echo_n "checking if wxWidgets was built with UNICODE enabled... " >&6; }
8318 WX_UNICODE=$(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
8320 if test "$WX_UNICODE" != "0"; then
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8323 $as_echo "yes" >&6; }
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8328 $as_echo "no" >&6; }
8337 if test "$DEBUG" = "auto" ; then
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built in DEBUG mode" >&5
8340 $as_echo_n "checking if wxWidgets was built in DEBUG mode... " >&6; }
8342 WX_DEBUG=$(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
8344 if test "$WX_DEBUG" != "0"; then
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8347 $as_echo "yes" >&6; }
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8352 $as_echo "no" >&6; }
8361 if test "$STATIC" = "auto" ; then
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built in STATIC mode" >&5
8364 $as_echo_n "checking if wxWidgets was built in STATIC mode... " >&6; }
8366 WX_STATIC=$(expr "$WX_SELECTEDCONFIG" : ".*static.*")
8368 if test "$WX_STATIC" != "0"; then
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8371 $as_echo "yes" >&6; }
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8376 $as_echo "no" >&6; }
8385 if test "$WX_STATIC" != "0"; then
8395 if test "$TOOLKIT" = "auto" ; then
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which wxWidgets toolkit was selected" >&5
8398 $as_echo_n "checking which wxWidgets toolkit was selected... " >&6; }
8400 WX_GTKPORT1=$(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
8401 WX_GTKPORT2=$(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
8402 WX_MSWPORT=$(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
8403 WX_MOTIFPORT=$(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
8404 WX_MACPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
8405 WX_X11PORT=$(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
8406 WX_MGLPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mgl.*")
8407 WX_DFBPORT=$(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
8408 WX_BASEPORT=$(expr "$WX_SELECTEDCONFIG" : ".*base.*")
8409 WX_COCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*cocoa.*")
8410 WX_OSXCOCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*osx_cocoa.*")
8413 if test "$WX_GTKPORT1" != "0"; then WX_PORT="gtk1"; fi
8414 if test "$WX_GTKPORT2" != "0"; then WX_PORT="gtk2"; fi
8415 if test "$WX_MSWPORT" != "0"; then WX_PORT="msw"; fi
8416 if test "$WX_MOTIFPORT" != "0"; then WX_PORT="motif"; fi
8417 if test "$WX_MACPORT" != "0"; then WX_PORT="mac"; fi
8418 if test "$WX_X11PORT" != "0"; then WX_PORT="x11"; fi
8419 if test "$WX_MGLPORT" != "0"; then WX_PORT="mgl"; fi
8420 if test "$WX_DFBPORT" != "0"; then WX_PORT="dfb"; fi
8421 if test "$WX_BASEPORT" != "0"; then WX_PORT="base"; fi
8422 if test "$WX_COCOAPORT" != "0"; then WX_PORT="cocoa"; fi
8423 if test "$WX_OSXCOCOAPORT" != "0"; then WX_PORT="osx_cocoa"; fi
8426 if test "$WX_PORT" = "unknown" ; then
8428 Cannot detect the currently installed wxWidgets port !
8429 Please check your 'wx-config --cxxflags'...
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_PORT" >&5
8434 $as_echo "$WX_PORT" >&6; }
8437 if test -n "$TOOLKIT" ; then
8446 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8447 echo "[dbg] Values of all WX_* options after final detection:"
8448 echo "[dbg] WX_DEBUG: $WX_DEBUG"
8449 echo "[dbg] WX_UNICODE: $WX_UNICODE"
8450 echo "[dbg] WX_SHARED: $WX_SHARED"
8451 echo "[dbg] WX_VERSION: $WX_VERSION"
8452 echo "[dbg] WX_PORT: $WX_PORT"
8455 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
8457 Cannot build shared library against a static build of wxWidgets !
8458 This error happens because the wxWidgets build which was selected
8459 has been detected as static while you asked to build $PACKAGE_NAME
8460 as shared library and this is not possible.
8461 Use the '--disable-shared' option to build $PACKAGE_NAME
8462 as static library or '--with-wxshared' to use wxWidgets as shared library.
8466 if test "$DEBUG" = "auto"; then
8469 if test "$DEBUG" = "1"; then
8471 elif test "$DEBUG" = ""; then
8475 if test "$UNICODE" = "auto"; then
8478 if test "$SHARED" = "auto"; then
8481 if test "$TOOLKIT" = "auto"; then
8486 # We also need wxBase
8487 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs adv
,core
,net
`
8488 WXBASE_LIBS=`$WX_CONFIG_WITH_ARGS --libs net
`
8489 WXBASE_CPPFLAGS="$WX_CPPFLAGS -DwxUSE_GUI=0"
8491 MULERCFLAGS=`$WX_CONFIG_WITH_ARGS --cflags |
$AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
8495 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_wxcas:-no} = yes -o ${enable_alc:-no} = yes ; then :
8496 if test "${WX_PORT}" = base; then :
8498 The selected components need a wxWidgets library with GUI,
8499 but your installation is base-only. Please install a GUI
8500 enabled version of wxWidgets and then retry.
8506 if test ${SYS:-unknown} = win32; then :
8507 if test -n "$ac_tool_prefix"; then
8508 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8509 set dummy ${ac_tool_prefix}windres; ac_word=$2
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8511 $as_echo_n "checking for $ac_word... " >&6; }
8512 if test "${ac_cv_prog_RC+set}" = set; then :
8513 $as_echo_n "(cached) " >&6
8515 if test -n "$RC"; then
8516 ac_cv_prog_RC="$RC" # Let the user override the test.
8518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8522 test -z "$as_dir" && as_dir=.
8523 for ac_exec_ext in '' $ac_executable_extensions; do
8524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8525 ac_cv_prog_RC="${ac_tool_prefix}windres"
8526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8536 if test -n "$RC"; then
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
8538 $as_echo "$RC" >&6; }
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8541 $as_echo "no" >&6; }
8546 if test -z "$ac_cv_prog_RC"; then
8548 # Extract the first word of "windres", so it can be a program name with args.
8549 set dummy windres; ac_word=$2
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8551 $as_echo_n "checking for $ac_word... " >&6; }
8552 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then :
8553 $as_echo_n "(cached) " >&6
8555 if test -n "$ac_ct_RC"; then
8556 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
8558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8562 test -z "$as_dir" && as_dir=.
8563 for ac_exec_ext in '' $ac_executable_extensions; do
8564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8565 ac_cv_prog_ac_ct_RC="windres"
8566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8575 ac_ct_RC=$ac_cv_prog_ac_ct_RC
8576 if test -n "$ac_ct_RC"; then
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
8578 $as_echo "$ac_ct_RC" >&6; }
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8581 $as_echo "no" >&6; }
8584 if test "x$ac_ct_RC" = x; then
8587 case $cross_compiling:$ac_tool_warned in
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8591 ac_tool_warned=yes ;;
8603 # Check whether --enable-upnp was given.
8604 if test "${enable_upnp+set}" = set; then :
8605 enableval=$enable_upnp;
8609 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
8616 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8617 if test -n "$ac_tool_prefix"; then
8618 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8619 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8621 $as_echo_n "checking for $ac_word... " >&6; }
8622 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8623 $as_echo_n "(cached) " >&6
8627 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8634 test -z "$as_dir" && as_dir=.
8635 for ac_exec_ext in '' $ac_executable_extensions; do
8636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8637 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8648 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8649 if test -n "$PKG_CONFIG"; then
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8651 $as_echo "$PKG_CONFIG" >&6; }
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8654 $as_echo "no" >&6; }
8659 if test -z "$ac_cv_path_PKG_CONFIG"; then
8660 ac_pt_PKG_CONFIG=$PKG_CONFIG
8661 # Extract the first word of "pkg-config", so it can be a program name with args.
8662 set dummy pkg-config; ac_word=$2
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8664 $as_echo_n "checking for $ac_word... " >&6; }
8665 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
8666 $as_echo_n "(cached) " >&6
8668 case $ac_pt_PKG_CONFIG in
8670 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8677 test -z "$as_dir" && as_dir=.
8678 for ac_exec_ext in '' $ac_executable_extensions; do
8679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8680 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8691 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8692 if test -n "$ac_pt_PKG_CONFIG"; then
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8694 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8697 $as_echo "no" >&6; }
8700 if test "x$ac_pt_PKG_CONFIG" = x; then
8703 case $cross_compiling:$ac_tool_warned in
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8706 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8707 ac_tool_warned=yes ;;
8709 PKG_CONFIG=$ac_pt_PKG_CONFIG
8712 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8716 if test -n "$PKG_CONFIG"; then
8717 _pkg_min_version=0.9.0
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8719 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8720 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8722 $as_echo "yes" >&6; }
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8725 $as_echo "no" >&6; }
8730 if test ${enable_upnp:-yes} = yes; then :
8734 # Check whether --with-libupnp-prefix was given.
8735 if test "${with_libupnp_prefix+set}" = set; then :
8736 withval=$with_libupnp_prefix; export PKG_CONFIG_PATH=$withval/lib/pkgconfig
8740 if test $cross_compiling = no; then :
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libupnp version >= 1.6.6" >&5
8743 $as_echo_n "checking for libupnp version >= 1.6.6... " >&6; }
8744 if test -n "$PKG_CONFIG"; then :
8746 if $PKG_CONFIG libupnp --exists; then :
8748 LIBUPNP_VERSION=`$PKG_CONFIG libupnp
--modversion`
8749 if $PKG_CONFIG libupnp --atleast-version=1.6.6; then :
8752 resultstr=" (version $LIBUPNP_VERSION)"
8753 LIBUPNP_CPPFLAGS=`$PKG_CONFIG libupnp
--cflags-only-I`
8754 LIBUPNP_CFLAGS=`$PKG_CONFIG libupnp
--cflags-only-other`
8755 LIBUPNP_LDFLAGS=`$PKG_CONFIG libupnp
--libs-only-L`
8756 LIBUPNP_LIBS=`$PKG_CONFIG libupnp
--libs-only-other`
8757 LIBUPNP_LIBS="$LIBUPNP_LIBS `$PKG_CONFIG libupnp
--libs-only-l`"
8762 resultstr=" (version $LIBUPNP_VERSION is not new enough)"
8769 resultstr=" (try to use --with-libupnp-prefix=PREFIX)"
8776 resultstr=" (pkg-config not found)"
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5
8780 $as_echo "$result$resultstr" >&6; }
8781 libupnp_error="libupnp >= 1.6.6 not found$resultstr"
8786 libupnp_error="cross compiling"
8790 if test ${result:-no} = yes; then :
8791 LIBUPNP_CPPFLAGS="$LIBUPNP_CPPFLAGS -DENABLE_UPNP=1"
8793 enable_upnp=disabled
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8795 UPnP code has been disabled because ${libupnp_error}." >&5
8796 $as_echo "$as_me: WARNING:
8797 UPnP code has been disabled because ${libupnp_error}." >&2;}
8799 _mule_has_warnings=yes
8808 # Check for Crypto++
8809 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then :
8812 # Check whether --with-crypto-prefix was given.
8813 if test "${with_crypto_prefix+set}" = set; then :
8814 withval=$with_crypto_prefix;
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto++ version >= 5.1" >&5
8819 $as_echo_n "checking for crypto++ version >= 5.1... " >&6; }
8821 cryptopp_file_with_version="cryptlib.h"
8823 CRYPTOPP_STYLE="unknown"
8824 CRYPTOPP_LIB_NAME="unknown"
8825 cryptopp_includedir="unknown"
8826 CRYPTOPP_INCLUDE_PREFIX="unknown"
8827 cryptopp_libdir="unknown"
8829 if test -n "$with_crypto_prefix"; then :
8831 CRYPTOPP_PREFIX="$with_crypto_prefix"
8832 # Find the Cryptopp header in the user-provided location
8833 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8835 CRYPTOPP_STYLE="sources"
8836 CRYPTOPP_LIB_NAME="cryptopp"
8837 cryptopp_includedir=
8838 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
8841 elif test -f $CRYPTOPP_PREFIX/include/cryptopp/$cryptopp_file_with_version; then
8843 CRYPTOPP_STYLE="installed"
8844 CRYPTOPP_LIB_NAME="cryptopp"
8845 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8846 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8847 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8849 elif test -f $CRYPTOPP_PREFIX/include/crypto++/$cryptopp_file_with_version; then
8851 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8852 CRYPTOPP_STYLE="gentoo_debian"
8853 CRYPTOPP_LIB_NAME="crypto++"
8854 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8855 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8856 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8863 for CRYPTOPP_PREFIX in /usr /usr/local /opt /opt/local /usr/pkg /mingw ; do
8864 # Find the Cryptopp header in system locations
8865 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8867 CRYPTOPP_STYLE="sources"
8868 CRYPTOPP_LIB_NAME="cryptopp"
8869 cryptopp_includedir=
8870 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
8874 elif test -f $CRYPTOPP_PREFIX/include/cryptopp/$cryptopp_file_with_version; then
8876 CRYPTOPP_STYLE="installed"
8877 CRYPTOPP_LIB_NAME="cryptopp"
8878 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8879 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8880 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8883 elif test -f $CRYPTOPP_PREFIX/include/crypto++/$cryptopp_file_with_version; then
8885 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8886 CRYPTOPP_STYLE="gentoo_debian"
8887 CRYPTOPP_LIB_NAME="crypto++"
8888 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8889 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8890 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8899 if test $CRYPTOPP_STYLE = "unknown"; then :
8900 result=no; resultstr=""
8903 # Find out the crypto++ version and check against the minimum required
8904 cryptopp_header_path="${cryptopp_includedir+$cryptopp_includedir/}$CRYPTOPP_INCLUDE_PREFIX/$cryptopp_file_with_version"
8905 CRYPTOPP_VERSION_STRING=`$EGREP "Reference Manual|API Reference" $cryptopp_header_path |
sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
8906 CRYPTOPP_VERSION_NUMBER=`echo $CRYPTOPP_VERSION_STRING |
$AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8907 minvers=`echo 5.1 |
$AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8909 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then :
8912 resultstr=" (version $CRYPTOPP_VERSION_STRING, $CRYPTOPP_STYLE)"
8913 if test -n "$cryptopp_includedir"; then :
8914 CRYPTOPP_CPPFLAGS="-I$cryptopp_includedir"
8918 if test -n "$cryptopp_libdir"; then :
8920 CRYPTOPP_LDFLAGS="-L$cryptopp_libdir"
8921 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME"
8926 CRYPTOPP_LIBS="${CRYPTOPP_INCLUDE_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a"
8930 cat >>confdefs.h <<_ACEOF
8931 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX
8938 resultstr=" (version $CRYPTOPP_VERSION_STRING is not new enough)"
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5
8945 $as_echo "$result$resultstr" >&6; }
8947 if test ${result:-no} = yes; then :
8949 # Check for CryptoPP >= 5.5
8950 if test $CRYPTOPP_VERSION_NUMBER -ge "5005000"; then :
8951 CRYPTOPP_CPPFLAGS="$CRYPTOPP_CPPFLAGS -D__WEAK_CRYPTO__"
8957 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8958 Please try again with --with-crypto-prefix=/my_crypto_prefix
8959 (replace /my_crypto_prefix with a valid path to your crypto++
8960 installation directory)." "$LINENO" 5
8968 # Check whether --enable-debug was given.
8969 if test "${enable_debug+set}" = set; then :
8970 enableval=$enable_debug;
8974 # Check whether --enable-profile was given.
8975 if test "${enable_profile+set}" = set; then :
8976 enableval=$enable_profile;
8980 # Check whether --enable-optimize was given.
8981 if test "${enable_optimize+set}" = set; then :
8982 enableval=$enable_optimize;
8987 if test ${enable_debug:-yes} = yes; then :
8989 MULECPPFLAGS="$MULECPPFLAGS -D__DEBUG__"
8991 MULECFLAGS="$MULECFLAGS -g"
8992 MULECXXFLAGS="$MULECXXFLAGS -g"
8994 if test ${GCC:-no} = yes; then :
8996 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
8997 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
9000 if test ${SYS:-unknown} = win32; then :
9001 MULERCFLAGS="$MULERCFLAGS -D__DEBUG__"
9006 if test ${GCC:-no} = yes; then :
9008 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef"
9009 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef"
9015 if test ${enable_profile:-no} = yes; then :
9018 MULECFLAGS="$MULECFLAGS -pg"
9019 MULECXXFLAGS="$MULECXXFLAGS -pg"
9021 MULELDFLAGS="$MULELDFLAGS -pg"
9025 if test ${enable_optimize:-no} = yes; then :
9027 MULECFLAGS="$MULECFLAGS -O2"
9028 MULECXXFLAGS="$MULECXXFLAGS -O2"
9032 MULECPPFLAGS="$MULECPPFLAGS -DUSE_WX_EXTENSIONS"
9037 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 :
9039 ac_cpp='$CXXCPP $CPPFLAGS'
9040 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9041 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9042 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9047 if test ${GCC:-no} = yes; then :
9049 mule_backup_CXXFLAGS="$CXXFLAGS"
9050 CXXFLAGS="$CXXFLAGS $MULECPPFLAGS $MULECFLAGS $MULECXXFLAGS -Werror"
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler ($CXX) uses strict aliasing" >&5
9053 $as_echo_n "checking whether the C++ compiler ($CXX) uses strict aliasing... " >&6; }
9054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9055 /* end confdefs.h. */
9063 short *b = (short*)&a;
9073 if ac_fn_cxx_try_compile "$LINENO"; then :
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9076 $as_echo "no" >&6; }
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9081 $as_echo "yes" >&6; }
9082 $as_echo "#define GCC_USES_STRICT_ALIASING 1" >>confdefs.h
9086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9088 CXXFLAGS="$mule_backup_CXXFLAGS"
9092 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_alc:-no} = yes -o ${enable_alcc:-no} = yes ; then :
9094 mule_backup_CPPFLAGS="$CPPFLAGS"
9095 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that wxWidgets has support for large files" >&5
9098 $as_echo_n "checking that wxWidgets has support for large files... " >&6; }
9099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9100 /* end confdefs.h. */
9104 #include <wx/filefn.h>
9105 #ifndef wxHAS_LARGE_FILES
9106 #error No LargeFile support!
9111 if ac_fn_cxx_try_cpp "$LINENO"; then :
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9114 $as_echo "yes" >&6; }
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9119 $as_echo "no" >&6; }
9121 Support for large files in wxWidgets is required by aMule.
9122 To continue you must recompile wxWidgets with support for
9123 large files enabled." "$LINENO" 5
9126 rm -f conftest.err conftest.$ac_ext
9128 CPPFLAGS="$mule_backup_CPPFLAGS"
9132 # Check if the compiler is broken, wrt. exceptions.
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception-handling" >&5
9135 $as_echo_n "checking for exception-handling... " >&6; }
9136 if test "$cross_compiling" = yes; then :
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: undeterminable" >&5
9139 $as_echo "undeterminable" >&6; }
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9141 Cross-compilation detected, so exception handling cannot be tested.
9142 Note that broken exception handling in your compiler may lead to
9143 unexpected crashes." >&5
9144 $as_echo "$as_me: WARNING:
9145 Cross-compilation detected, so exception handling cannot be tested.
9146 Note that broken exception handling in your compiler may lead to
9147 unexpected crashes." >&2;}
9149 _mule_has_warnings=yes
9153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9154 /* end confdefs.h. */
9173 if ac_fn_cxx_try_run "$LINENO"; then :
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9176 $as_echo "yes" >&6; }
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9181 $as_echo "no" >&6; }
9182 as_fn_error "Exception handling does not work. Broken compiler?" "$LINENO" 5
9185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9186 conftest.$ac_objext conftest.beam conftest.$ac_ext
9192 for ac_header in typeinfo
9194 ac_fn_cxx_check_header_mongrel "$LINENO" "typeinfo" "ac_cv_header_typeinfo" "$ac_includes_default"
9195 if test "x$ac_cv_header_typeinfo" = x""yes; then :
9196 cat >>confdefs.h <<_ACEOF
9197 #define HAVE_TYPEINFO 1
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <cxxabi.h> and __cxa_demangle()" >&5
9205 $as_echo_n "checking for <cxxabi.h> and __cxa_demangle()... " >&6; }
9206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9207 /* end confdefs.h. */
9210 #ifdef HAVE_TYPEINFO
9211 # include <typeinfo>
9220 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
9221 std::type_info *ti = abi::__cxa_current_exception_type();
9228 if ac_fn_cxx_try_link "$LINENO"; then :
9231 $as_echo "#define HAVE_CXXABI 1" >>confdefs.h
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9234 $as_echo "yes" >&6; }
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9239 $as_echo "no" >&6; }
9242 rm -f core conftest.err conftest.$ac_objext \
9243 conftest$ac_exeext conftest.$ac_ext
9246 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 :
9249 # Check whether --with-boost was given.
9250 if test "${with_boost+set}" = set; then :
9251 withval=$with_boost; with_boost=${withval:-yes}
9257 if test ${with_boost:-no} != no; then :
9259 echo "$as_me: this is boost.m4 serial 16" >&5
9261 boost_version_req=1.47
9263 set x $boost_version_req 0 0 0
9266 boost_version_req=`expr "$1" '*' 100000 + "$2" '*' 100 + "$3"`
9267 boost_version_req_string=$1.$2.$3
9268 # If BOOST_ROOT is set and the user has not provided a value to
9269 # --with-boost, then treat BOOST_ROOT as if it the user supplied it.
9270 if test x"$BOOST_ROOT" != x; then
9271 if test x"$with_boost" = x; then
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&5
9273 $as_echo "$as_me: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&6;}
9274 with_boost=$BOOST_ROOT
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&5
9277 $as_echo "$as_me: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&6;}
9280 DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS '--with-boost=$with_boost'"
9281 boost_save_CPPFLAGS=$CPPFLAGS
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost headers version >= $boost_version_req_string" >&5
9283 $as_echo_n "checking for Boost headers version >= $boost_version_req_string... " >&6; }
9284 if test "${boost_cv_inc_path+set}" = set; then :
9285 $as_echo_n "(cached) " >&6
9287 boost_cv_inc_path=no
9288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9289 /* end confdefs.h. */
9290 #include <boost/version.hpp>
9291 #if !defined BOOST_VERSION
9292 # error BOOST_VERSION is not defined
9293 #elif BOOST_VERSION < $boost_version_req
9294 # error Boost headers version < $boost_version_req
9305 # If the user provided a value to --with-boost, use it and only it.
9306 case $with_boost in #(
9307 ''|yes) set x '' /opt/local/include /usr/local/include /opt/include \
9308 /usr/include C:/Boost/include;; #(
9309 *) set x "$with_boost/include" "$with_boost";;
9314 # Without --layout=system, Boost (or at least some versions) installs
9315 # itself in <prefix>/include/boost-<version>. This inner loop helps to
9316 # find headers in such directories.
9318 # Any ${boost_dir}/boost-x_xx directories are searched in reverse version
9319 # order followed by ${boost_dir}. The final '.' is a sentinel for
9320 # searching $boost_dir" itself. Entries are whitespace separated.
9322 # I didn't indent this loop on purpose (to avoid over-indented code)
9323 boost_layout_system_search_list=`cd "$boost_dir" 2>/dev
/null \
9324 && ls -1 |
"${GREP}" '^boost-' |
sort -rn -t- -k2 \
9326 for boost_inc in $boost_layout_system_search_list
9328 if test x"$boost_inc" != x.; then
9329 boost_inc="$boost_dir/$boost_inc"
9331 boost_inc="$boost_dir" # Uses sentinel in boost_layout_system_search_list
9333 if test x"$boost_inc" != x; then
9334 # We are going to check whether the version of Boost installed
9335 # in $boost_inc is usable by running a compilation that
9336 # #includes it. But if we pass a -I/some/path in which Boost
9337 # is not installed, the compiler will just skip this -I and
9338 # use other locations (either from CPPFLAGS, or from its list
9339 # of system include directories). As a result we would use
9340 # header installed on the machine instead of the /some/path
9341 # specified by the user. So in that precise case (trying
9342 # $boost_inc), make sure the version.hpp exists.
9344 # Use test -e as there can be symlinks.
9345 test -e "$boost_inc/boost/version.hpp" || continue
9346 CPPFLAGS="$CPPFLAGS -I$boost_inc"
9348 if ac_fn_cxx_try_compile "$LINENO"; then :
9349 boost_cv_inc_path=yes
9353 rm -f core conftest.err conftest.$ac_objext
9354 if test x"$boost_cv_inc_path" = xyes; then
9355 if test x"$boost_inc" != x; then
9356 boost_cv_inc_path=$boost_inc
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_inc_path" >&5
9365 $as_echo "$boost_cv_inc_path" >&6; }
9366 case $boost_cv_inc_path in #(
9368 boost_errmsg="cannot find Boost headers version >= $boost_version_req_string"
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: $boost_errmsg" >&5
9370 $as_echo "$as_me: $boost_errmsg" >&6;}
9377 BOOST_CPPFLAGS="-I$boost_cv_inc_path"
9380 if test x"$boost_cv_inc_path" != xno; then
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost's header version" >&5
9382 $as_echo_n "checking for Boost's header version... " >&6; }
9383 if test "${boost_cv_lib_version+set}" = set; then :
9384 $as_echo_n "(cached) " >&6
9386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9387 /* end confdefs.h. */
9388 #include <boost/version.hpp>
9389 boost-lib-version = BOOST_LIB_VERSION
9391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9393 $SED -n -e "/^boost-lib-version = /{s///;s/\"//g;p;q;}" >conftest.i 2>&1; then :
9394 boost_cv_lib_version=`cat conftest.i
`
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_version" >&5
9400 $as_echo "$boost_cv_lib_version" >&6; }
9401 # e.g. "134" for 1_34_1 or "135" for 1_35
9402 boost_major_version=`echo "$boost_cv_lib_version" |
sed 's/_//;s/_.*//'`
9403 case $boost_major_version in #(
9405 as_fn_error "invalid value: boost_major_version=$boost_major_version" "$LINENO" 5
9409 CPPFLAGS=$boost_save_CPPFLAGS
9411 if test ${with_boost:-no} != disabled; then :
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the toolset name used by Boost for $CXX" >&5
9414 $as_echo_n "checking for the toolset name used by Boost for $CXX... " >&6; }
9415 if test "${boost_cv_lib_tag+set}" = set; then :
9416 $as_echo_n "(cached) " >&6
9418 boost_cv_lib_tag=unknown
9419 if test x$boost_cv_inc_path != xno; then
9420 # The following tests are mostly inspired by boost/config/auto_link.hpp
9421 # The list is sorted to most recent/common to oldest compiler (in order
9422 # to increase the likelihood of finding the right compiler with the
9423 # least number of compilation attempt).
9424 # Beware that some tests are sensible to the order (for instance, we must
9425 # look for MinGW before looking for GCC3).
9426 # I used one compilation test per compiler with a #error to recognize
9427 # each compiler so that it works even when cross-compiling (let me know
9428 # if you know a better approach).
9429 # Known missing tags (known from Boost's tools/build/v2/tools/common.jam):
9430 # como, edg, kcc, bck, mp, sw, tru, xlc
9431 # I'm not sure about my test for `il
' (be careful: Intel's ICC pre-defines
9432 # the same defines as GCC's).
9434 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC @ gcc46" \
9435 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC @ gcc45" \
9436 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc44" \
9437 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc43" \
9438 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc42" \
9439 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc41" \
9440 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc40" \
9441 "defined __GNUC__ && __GNUC__ == 3 && !defined __ICC \
9442 && (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
9443 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw" \
9444 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc34" \
9445 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc33" \
9446 "defined _MSC_VER && _MSC_VER >= 1500 @ vc90" \
9447 "defined _MSC_VER && _MSC_VER == 1400 @ vc80" \
9448 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc32" \
9449 "defined _MSC_VER && _MSC_VER == 1310 @ vc71" \
9450 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc31" \
9451 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc30" \
9452 "defined __BORLANDC__ @ bcb" \
9453 "defined __ICC && (defined __unix || defined ) @ il" \
9454 "defined __ICL @ iw" \
9455 "defined _MSC_VER && _MSC_VER == 1300 @ vc7" \
9456 "defined __GNUC__ && __GNUC__ == 2 && __GNUC_MINOR__ == 95 && !defined __ICC @ gcc295" \
9457 "defined __MWERKS__ && __MWERKS__ <= 0x32FF @ cw9" \
9458 "defined _MSC_VER && _MSC_VER < 1300 && !defined UNDER_CE @ vc6" \
9459 "defined _MSC_VER && _MSC_VER < 1300 && defined UNDER_CE @ evc4" \
9460 "defined __MWERKS__ && __MWERKS__ <= 0x31FF @ cw8"
9462 boost_tag_test
=`expr "X$i" : 'X\([^@]*\) @ '`
9463 boost_tag
=`expr "X$i" : 'X[^@]* @ \(.*\)'`
9464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9465 /* end confdefs.h. */
9470 # error $boost_tag_test
9481 if ac_fn_cxx_try_compile
"$LINENO"; then :
9482 boost_cv_lib_tag
=$boost_tag; break
9484 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9486 case $boost_cv_lib_tag in #(
9487 # Some newer (>= 1.35?) versions of Boost seem to only use "gcc" as opposed
9488 # to "gcc41" for instance.
9489 *-gcc |
*'-gcc ') :;; #( Don't re-add -gcc: it's already in there.
9494 if test $boost_major_version -ge 136; then
9495 # The `x' added in r46793 of Boost.
9499 # We can specify multiple tags in this variable because it's used by
9500 # BOOST_FIND_LIB that does a `for tag in -$boost_cv_lib_tag' ...
9501 boost_cv_lib_tag
="$boost_tag_x$boost_cv_lib_tag -${boost_tag_x}gcc"
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not figure out which toolset name to use for $CXX" >&5
9505 $as_echo "$as_me: WARNING: could not figure out which toolset name to use for $CXX" >&2;}
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_tag" >&5
9512 $as_echo "$boost_cv_lib_tag" >&6; }
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost sources" >&5
9514 $as_echo_n "checking for Boost sources... " >&6; }
9515 mule_backup_CPPFLAGS
="$CPPFLAGS"
9516 CPPFLAGS
="$CPPFLAGS $BOOST_CPPFLAGS"
9517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9518 /* end confdefs.h. */
9520 #include <boost/../libs/system/src/error_code.cpp>
9530 if ac_fn_cxx_try_compile
"$LINENO"; then :
9533 $as_echo "#define HAVE_BOOST_SOURCES 1" >>confdefs.h
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9536 $as_echo "yes" >&6; }
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9541 $as_echo "no" >&6; }
9542 if test x
"$boost_cv_inc_path" = xno
; then
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost system library" >&5
9544 $as_echo "$as_me: Boost not available, not searching for the Boost system library" >&6;}
9546 if test x
"$boost_cv_inc_path" = xno
; then
9549 boost_save_CPPFLAGS
=$CPPFLAGS
9550 CPPFLAGS
="$CPPFLAGS $BOOST_CPPFLAGS"
9551 ac_fn_cxx_check_header_mongrel
"$LINENO" "boost/system/error_code.hpp" "ac_cv_header_boost_system_error_code_hpp" "$ac_includes_default"
9552 if test "x$ac_cv_header_boost_system_error_code_hpp" = x
""yes; then :
9559 CPPFLAGS
=$boost_save_CPPFLAGS
9562 boost_save_CPPFLAGS
=$CPPFLAGS
9563 CPPFLAGS
="$CPPFLAGS $BOOST_CPPFLAGS"
9564 # Now let's try to find the library. The algorithm is as follows: first look
9565 # for a given library name according to the user's PREFERRED-RT-OPT. For each
9566 # library name, we prefer to use the ones that carry the tag (toolset name).
9567 # Each library is searched through the various standard paths were Boost is
9568 # usually installed. If we can't find the standard variants, we try to
9569 # enforce -mt (for instance on MacOSX, libboost_threads.dylib doesn't exist
9570 # but there's -obviously- libboost_threads-mt.dylib).
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost system library" >&5
9572 $as_echo_n "checking for the Boost system library... " >&6; }
9573 if test "${boost_cv_lib_system+set}" = set; then :
9574 $as_echo_n "(cached) " >&6
9576 boost_cv_lib_system
=no
9579 boost_save_ac_objext
=$ac_objext
9580 # Generate the test file.
9581 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9582 /* end confdefs.h. */
9583 #include <boost/system/error_code.hpp>
9588 boost::system::error_code e; e.clear();
9593 if ac_fn_cxx_try_compile
"$LINENO"; then :
9594 ac_objext
=do_not_rm_me_plz
9596 as_fn_error
"cannot compile a test that uses Boost system" "$LINENO" 5
9598 rm -f core conftest.err conftest.
$ac_objext
9599 ac_objext
=$boost_save_ac_objext
9601 # Don't bother to ident the 6 nested for loops, only the 2 innermost ones
9603 for boost_tag_
in -$boost_cv_lib_tag ''; do
9604 for boost_ver_
in -$boost_cv_lib_version ''; do
9605 for boost_mt_
in $boost_mt -mt ''; do
9606 for boost_rtopt_
in $boost_rtopt '' -d; do
9608 boost_system
$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
9609 boost_system
$boost_tag_$boost_rtopt_$boost_ver_ \
9610 boost_system
$boost_tag_$boost_mt_$boost_ver_ \
9611 boost_system
$boost_tag_$boost_ver_
9613 # Avoid testing twice the same lib
9614 case $boost_failed_libs in #(
9615 *@
$boost_lib@
*) continue;;
9617 # If with_boost is empty, we'll search in /lib first, which is not quite
9618 # right so instead we'll try to a location based on where the headers are.
9619 boost_tmp_lib
=$with_boost
9620 test x
"$with_boost" = x
&& boost_tmp_lib
=${boost_cv_inc_path%/include}
9621 for boost_ldpath
in "$boost_tmp_lib/lib" '' \
9622 /opt
/local
/lib
* /usr
/local
/lib
* /opt
/lib
* /usr
/lib
* \
9623 "$with_boost" C
:/Boost
/lib
/lib
*
9625 test -e "$boost_ldpath" ||
continue
9626 boost_save_LDFLAGS
=$LDFLAGS
9627 boost_cv_lib_system_LIBS
="-l$boost_lib"
9628 boost_save_LIBS
=$LIBS
9629 LIBS
="$boost_cv_lib_system_LIBS $LIBS"
9630 test x
"$boost_ldpath" != x
&& LDFLAGS
="$LDFLAGS -L$boost_ldpath"
9631 rm -f conftest
$ac_exeext
9632 boost_save_ac_ext
=$ac_ext
9634 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
9635 # tries to link the existing object file instead of compiling from source.
9636 test -f conftest.
$ac_objext && ac_ext
=$ac_objext && boost_use_source
=false
&&
9637 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
9638 if { { ac_try
="$ac_link"
9640 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9641 *) ac_try_echo=$ac_try;;
9643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9644 $as_echo "$ac_try_echo"; } >&5
9645 (eval "$ac_link") 2>conftest.err
9647 if test -s conftest.err; then
9648 grep -v '^ *+' conftest.err >conftest.er1
9649 cat conftest.er1 >&5
9650 mv -f conftest.er1 conftest.err
9652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9653 test $ac_status = 0; } && {
9654 test -z "$ac_cxx_werror_flag" ||
9655 test ! -s conftest.err
9656 } && test -s conftest$ac_exeext && {
9657 test "$cross_compiling" = yes ||
9658 $as_executable_p conftest$ac_exeext
9660 boost_cv_lib_system=yes
9662 if $boost_use_source; then
9663 $as_echo "$as_me: failed program was:" >&5
9664 sed 's/^/| /' conftest.$ac_ext >&5
9667 boost_cv_lib_system=no
9669 ac_objext=$boost_save_ac_objext
9670 ac_ext=$boost_save_ac_ext
9671 rm -f core conftest.err conftest_ipa8_conftest.oo \
9673 ac_objext=$boost_save_ac_objext
9674 LDFLAGS=$boost_save_LDFLAGS
9675 LIBS=$boost_save_LIBS
9676 if test x"$boost_cv_lib_system" = xyes; then
9677 boost_cv_lib_system_LDFLAGS="-L$boost_ldpath -Wl,-R$boost_ldpath"
9678 boost_cv_lib_system_LDPATH="$boost_ldpath"
9681 boost_failed_libs="$boost_failed_libs@$boost_lib@"
9682 boost_cv_lib_system_LDFLAGS=
9683 boost_cv_lib_system_LDPATH=
9684 boost_cv_lib_system_LIBS=
9692 rm -f conftest.$ac_objext
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_system" >&5
9696 $as_echo "$boost_cv_lib_system" >&6; }
9697 BOOST_SYSTEM_LDFLAGS=$boost_cv_lib_system_LDFLAGS
9698 BOOST_SYSTEM_LDPATH=$boost_cv_lib_system_LDPATH
9699 BOOST_LDPATH=$boost_cv_lib_system_LDPATH
9700 BOOST_SYSTEM_LIBS=$boost_cv_lib_system_LIBS
9701 CPPFLAGS=$boost_save_CPPFLAGS
9706 if test ${boost_cv_lib_system:-no} != yes; then :
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9709 Boost support has been disabled because Boost.System not found" >&5
9710 $as_echo "$as_me: WARNING:
9711 Boost support has been disabled because Boost.System not found" >&2;}
9713 _mule_has_warnings=yes
9720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9721 CPPFLAGS="$mule_backup_CPPFLAGS"
9722 if test x"$boost_cv_inc_path" = xno; then
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9725 Boost support has been disabled because Boost.Asio not found" >&5
9726 $as_echo "$as_me: WARNING:
9727 Boost support has been disabled because Boost.Asio not found" >&2;}
9729 _mule_has_warnings=yes
9734 boost_save_CPPFLAGS=$CPPFLAGS
9735 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
9736 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/asio.hpp" "ac_cv_header_boost_asio_hpp" "$ac_includes_default"
9737 if test "x$ac_cv_header_boost_asio_hpp" = x""yes; then :
9739 $as_echo "#define ASIO_SOCKETS 1" >>confdefs.h
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9744 Boost support has been disabled because Boost.Asio not found" >&5
9745 $as_echo "$as_me: WARNING:
9746 Boost support has been disabled because Boost.Asio not found" >&2;}
9747 _mule_warning_10=yes
9748 _mule_has_warnings=yes
9755 CPPFLAGS=$boost_save_CPPFLAGS
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9761 Boost support has been disabled because of insufficient Boost version." >&5
9762 $as_echo "$as_me: WARNING:
9763 Boost support has been disabled because of insufficient Boost version." >&2;}
9764 _mule_warning_11=yes
9765 _mule_has_warnings=yes
9773 ac_cpp='$CPP $CPPFLAGS'
9774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9781 # Ok, we have all needed libs, now checking for other stuff
9782 if test "$LEX" = "flex"; then :
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended flex capabilities" >&5
9785 $as_echo_n "checking for extended flex capabilities... " >&6; }
9787 extended_flex=`flex
--help |
grep header-file
`
9788 if test -n "$extended_flex"; then :
9789 HAVE_FLEX_EXTENDED=yes
9791 HAVE_FLEX_EXTENDED=no
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_FLEX_EXTENDED" >&5
9794 $as_echo "$HAVE_FLEX_EXTENDED" >&6; }
9796 if test $HAVE_FLEX_EXTENDED = no; then :
9797 { $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
9798 $as_echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&6;}
9802 HAVE_FLEX_EXTENDED=no
9805 # Flush standard test results for speeding cache
9806 cat >confcache <<\_ACEOF
9807 # This file is a shell script that caches the results of configure
9808 # tests run on this system so they can be shared between configure
9809 # scripts and configure runs, see configure's option --config-cache.
9810 # It is not useful on other systems. If it contains results you don't
9811 # want to keep, you may remove or edit it.
9813 # config.status only pays attention to the cache file if you give it
9814 # the --recheck option to rerun configure.
9816 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
9817 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9822 # The following way of writing the cache mishandles newlines in values,
9823 # but we know of no workaround that is simple, portable, and efficient.
9824 # So, we kill variables containing newlines.
9825 # Ultrix sh set writes to stderr and can't be redirected directly,
9826 # and sets the high bit in the cache file unless we assign to the vars.
9828 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9829 eval ac_val
=\$
$ac_var
9833 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9834 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9837 _ | IFS | as_nl
) ;; #(
9838 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
9839 *) { eval $ac_var=; unset $ac_var;} ;;
9845 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9846 *${as_nl}ac_space
=\
*)
9847 # `set' does not quote correctly, so add quotes: double-quote
9848 # substitution turns \\\\ into \\, and sed turns \\ into \.
9851 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9854 # `set' quotes correctly as required by POSIX, so do not add quotes.
9855 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9864 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9866 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9868 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
9869 if test -w "$cache_file"; then
9870 test "x$cache_file" != "x/dev/null" &&
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9872 $as_echo "$as_me: updating cache $cache_file" >&6;}
9873 cat confcache
>$cache_file
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9876 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9881 # Checks for header files.
9882 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9883 # for constant arguments. Useless!
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9885 $as_echo_n "checking for working alloca.h... " >&6; }
9886 if test "${ac_cv_working_alloca_h+set}" = set; then :
9887 $as_echo_n "(cached) " >&6
9889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9890 /* end confdefs.h. */
9895 char *p = (char *) alloca (2 * sizeof (int));
9901 if ac_fn_c_try_link
"$LINENO"; then :
9902 ac_cv_working_alloca_h
=yes
9904 ac_cv_working_alloca_h
=no
9906 rm -f core conftest.err conftest.
$ac_objext \
9907 conftest
$ac_exeext conftest.
$ac_ext
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9910 $as_echo "$ac_cv_working_alloca_h" >&6; }
9911 if test $ac_cv_working_alloca_h = yes; then
9913 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9918 $as_echo_n "checking for alloca... " >&6; }
9919 if test "${ac_cv_func_alloca_works+set}" = set; then :
9920 $as_echo_n "(cached) " >&6
9922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9923 /* end confdefs.h. */
9925 # define alloca __builtin_alloca
9928 # include <malloc.h>
9929 # define alloca _alloca
9931 # ifdef HAVE_ALLOCA_H
9932 # include <alloca.h>
9937 # ifndef alloca /* predefined by HP cc +Olibcalls */
9948 char *p = (char *) alloca (1);
9954 if ac_fn_c_try_link
"$LINENO"; then :
9955 ac_cv_func_alloca_works
=yes
9957 ac_cv_func_alloca_works
=no
9959 rm -f core conftest.err conftest.
$ac_objext \
9960 conftest
$ac_exeext conftest.
$ac_ext
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
9963 $as_echo "$ac_cv_func_alloca_works" >&6; }
9965 if test $ac_cv_func_alloca_works = yes; then
9967 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9970 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9971 # that cause trouble. Some versions do not even contain alloca or
9972 # contain a buggy version. If you still want to use their alloca,
9973 # use ar to extract alloca.o from them instead of compiling alloca.c.
9975 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
9977 $as_echo "#define C_ALLOCA 1" >>confdefs.h
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
9981 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
9982 if test "${ac_cv_os_cray+set}" = set; then :
9983 $as_echo_n "(cached) " >&6
9985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9986 /* end confdefs.h. */
9987 #if defined CRAY && ! defined CRAY2
9994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9995 $EGREP "webecray" >/dev
/null
2>&1; then :
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10004 $as_echo "$ac_cv_os_cray" >&6; }
10005 if test $ac_cv_os_cray = yes; then
10006 for ac_func
in _getb67 GETB67 getb67
; do
10007 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10008 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10009 eval as_val
=\$
$as_ac_var
10010 if test "x$as_val" = x
""yes; then :
10012 cat >>confdefs.h
<<_ACEOF
10013 #define CRAY_STACKSEG_END $ac_func
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10023 $as_echo_n "checking stack direction for C alloca... " >&6; }
10024 if test "${ac_cv_c_stack_direction+set}" = set; then :
10025 $as_echo_n "(cached) " >&6
10027 if test "$cross_compiling" = yes; then :
10028 ac_cv_c_stack_direction
=0
10030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10031 /* end confdefs.h. */
10032 $ac_includes_default
10034 find_stack_direction ()
10036 static char *addr = 0;
10041 return find_stack_direction ();
10044 return (&dummy > addr) ? 1 : -1;
10050 return find_stack_direction () < 0;
10053 if ac_fn_c_try_run
"$LINENO"; then :
10054 ac_cv_c_stack_direction
=1
10056 ac_cv_c_stack_direction
=-1
10058 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10059 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10064 $as_echo "$ac_cv_c_stack_direction" >&6; }
10065 cat >>confdefs.h
<<_ACEOF
10066 #define STACK_DIRECTION $ac_cv_c_stack_direction
10072 ac_header_dirent
=no
10073 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
10074 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
10076 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10077 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
10078 $as_echo_n "(cached) " >&6
10080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10081 /* end confdefs.h. */
10082 #include <sys/types.h>
10094 if ac_fn_c_try_compile
"$LINENO"; then :
10095 eval "$as_ac_Header=yes"
10097 eval "$as_ac_Header=no"
10099 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10101 eval ac_res
=\$
$as_ac_Header
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10103 $as_echo "$ac_res" >&6; }
10104 eval as_val
=\$
$as_ac_Header
10105 if test "x$as_val" = x
""yes; then :
10106 cat >>confdefs.h
<<_ACEOF
10107 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10110 ac_header_dirent
=$ac_hdr; break
10114 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10115 if test $ac_header_dirent = dirent.h
; then
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10117 $as_echo_n "checking for library containing opendir... " >&6; }
10118 if test "${ac_cv_search_opendir+set}" = set; then :
10119 $as_echo_n "(cached) " >&6
10121 ac_func_search_save_LIBS
=$LIBS
10122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10123 /* end confdefs.h. */
10125 /* Override any GCC internal prototype to avoid an error.
10126 Use char because int might match the return type of a GCC
10127 builtin and then its argument prototype would still apply. */
10140 for ac_lib
in '' dir
; do
10141 if test -z "$ac_lib"; then
10142 ac_res
="none required"
10145 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10147 if ac_fn_c_try_link
"$LINENO"; then :
10148 ac_cv_search_opendir
=$ac_res
10150 rm -f core conftest.err conftest.
$ac_objext \
10152 if test "${ac_cv_search_opendir+set}" = set; then :
10156 if test "${ac_cv_search_opendir+set}" = set; then :
10159 ac_cv_search_opendir
=no
10161 rm conftest.
$ac_ext
10162 LIBS
=$ac_func_search_save_LIBS
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10165 $as_echo "$ac_cv_search_opendir" >&6; }
10166 ac_res
=$ac_cv_search_opendir
10167 if test "$ac_res" != no
; then :
10168 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10174 $as_echo_n "checking for library containing opendir... " >&6; }
10175 if test "${ac_cv_search_opendir+set}" = set; then :
10176 $as_echo_n "(cached) " >&6
10178 ac_func_search_save_LIBS
=$LIBS
10179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10180 /* end confdefs.h. */
10182 /* Override any GCC internal prototype to avoid an error.
10183 Use char because int might match the return type of a GCC
10184 builtin and then its argument prototype would still apply. */
10197 for ac_lib
in '' x
; do
10198 if test -z "$ac_lib"; then
10199 ac_res
="none required"
10202 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10204 if ac_fn_c_try_link
"$LINENO"; then :
10205 ac_cv_search_opendir
=$ac_res
10207 rm -f core conftest.err conftest.
$ac_objext \
10209 if test "${ac_cv_search_opendir+set}" = set; then :
10213 if test "${ac_cv_search_opendir+set}" = set; then :
10216 ac_cv_search_opendir
=no
10218 rm conftest.
$ac_ext
10219 LIBS
=$ac_func_search_save_LIBS
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10222 $as_echo "$ac_cv_search_opendir" >&6; }
10223 ac_res
=$ac_cv_search_opendir
10224 if test "$ac_res" != no
; then :
10225 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10232 $as_echo_n "checking for ANSI C header files... " >&6; }
10233 if test "${ac_cv_header_stdc+set}" = set; then :
10234 $as_echo_n "(cached) " >&6
10236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10237 /* end confdefs.h. */
10238 #include <stdlib.h>
10239 #include <stdarg.h>
10240 #include <string.h>
10251 if ac_fn_c_try_compile
"$LINENO"; then :
10252 ac_cv_header_stdc
=yes
10254 ac_cv_header_stdc
=no
10256 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10258 if test $ac_cv_header_stdc = yes; then
10259 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10261 /* end confdefs.h. */
10262 #include <string.h>
10265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10266 $EGREP "memchr" >/dev
/null
2>&1; then :
10269 ac_cv_header_stdc
=no
10275 if test $ac_cv_header_stdc = yes; then
10276 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10278 /* end confdefs.h. */
10279 #include <stdlib.h>
10282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10283 $EGREP "free" >/dev
/null
2>&1; then :
10286 ac_cv_header_stdc
=no
10292 if test $ac_cv_header_stdc = yes; then
10293 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10294 if test "$cross_compiling" = yes; then :
10297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10298 /* end confdefs.h. */
10300 #include <stdlib.h>
10301 #if ((' ' & 0x0FF) == 0x020)
10302 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10303 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10305 # define ISLOWER(c) \
10306 (('a' <= (c) && (c) <= 'i') \
10307 || ('j' <= (c) && (c) <= 'r') \
10308 || ('s' <= (c) && (c) <= 'z'))
10309 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10312 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10317 for (i = 0; i < 256; i++)
10318 if (XOR (islower (i), ISLOWER (i))
10319 || toupper (i) != TOUPPER (i))
10324 if ac_fn_c_try_run
"$LINENO"; then :
10327 ac_cv_header_stdc
=no
10329 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10330 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10336 $as_echo "$ac_cv_header_stdc" >&6; }
10337 if test $ac_cv_header_stdc = yes; then
10339 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10343 for ac_header
in argz.h arpa
/inet.h fcntl.h inttypes.h langinfo.h libintl.h limits.h locale.h malloc.h mntent.h netdb.h netinet
/in.h stddef.h nl_types.h stdint.h stdio_ext.h stdlib.h string.h
strings.h sys
/ioctl.h sys
/mntent.h sys
/mnttab.h sys
/mount.h sys
/param.h sys
/resource.h sys
/select.h sys
/socket.h sys
/statvfs.h sys
/time.h sys
/timeb.h sys
/types.h unistd.h errno.h signal.h
10345 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10346 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10347 eval as_val
=\$
$as_ac_Header
10348 if test "x$as_val" = x
""yes; then :
10349 cat >>confdefs.h
<<_ACEOF
10350 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
10358 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
10359 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
10360 $as_echo_n "(cached) " >&6
10362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10363 /* end confdefs.h. */
10364 #include <sys/types.h>
10365 #include <sys/wait.h>
10366 #ifndef WEXITSTATUS
10367 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
10370 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10378 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10383 if ac_fn_c_try_compile
"$LINENO"; then :
10384 ac_cv_header_sys_wait_h
=yes
10386 ac_cv_header_sys_wait_h
=no
10388 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
10391 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
10392 if test $ac_cv_header_sys_wait_h = yes; then
10394 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
10399 # Checks for typedefs, structures, and compiler characteristics.
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
10401 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
10402 if test "${ac_cv_header_stdbool_h+set}" = set; then :
10403 $as_echo_n "(cached) " >&6
10405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10406 /* end confdefs.h. */
10408 #include <stdbool.h>
10410 "error: bool is not defined"
10413 "error: false is not defined"
10416 "error: false is not 0"
10419 "error: true is not defined"
10422 "error: true is not 1"
10424 #ifndef __bool_true_false_are_defined
10425 "error: __bool_true_false_are_defined is not defined"
10428 struct s { _Bool s: 1; _Bool t; } s;
10430 char a[true == 1 ? 1 : -1];
10431 char b[false == 0 ? 1 : -1];
10432 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10433 char d[(bool) 0.5 == true ? 1 : -1];
10435 char f[(_Bool) 0.0 == false ? 1 : -1];
10437 char h[sizeof (_Bool)];
10438 char i[sizeof s.t];
10439 enum { j = false, k = true, l = false * true, m = true * 256 };
10440 /* The following fails for
10441 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
10443 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
10444 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
10445 # if defined __xlc__ || defined __GNUC__
10446 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
10447 reported by James Lemley on 2005-10-05; see
10448 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
10449 This test is not quite right, since xlc is allowed to
10450 reject this program, as the initializer for xlcbug is
10451 not one of the forms that C requires support for.
10452 However, doing the test right would require a runtime
10453 test, and that would make cross-compilation harder.
10454 Let us hope that IBM fixes the xlc bug, and also adds
10455 support for this kind of constant expression. In the
10456 meantime, this test will reject xlc, which is OK, since
10457 our stdbool.h substitute should suffice. We also test
10458 this with GCC, where it should work, to detect more
10459 quickly whether someone messes up the test in the
10461 char digs[] = "0123456789";
10462 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
10464 /* Catch a bug in an HP-UX C compiler. See
10465 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
10466 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
10477 /* Refer to every declared value, to avoid compiler optimizations. */
10478 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
10479 + !m + !n + !o + !p + !q + !pq);
10485 if ac_fn_c_try_compile
"$LINENO"; then :
10486 ac_cv_header_stdbool_h
=yes
10488 ac_cv_header_stdbool_h
=no
10490 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
10493 $as_echo "$ac_cv_header_stdbool_h" >&6; }
10494 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
10495 if test "x$ac_cv_type__Bool" = x
""yes; then :
10497 cat >>confdefs.h
<<_ACEOF
10498 #define HAVE__BOOL 1
10504 if test $ac_cv_header_stdbool_h = yes; then
10506 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
10511 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
10512 if test "${ac_cv_c_const+set}" = set; then :
10513 $as_echo_n "(cached) " >&6
10515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10516 /* end confdefs.h. */
10521 /* FIXME: Include the comments suggested by Paul. */
10522 #ifndef __cplusplus
10523 /* Ultrix mips cc rejects this. */
10524 typedef int charset[2];
10526 /* SunOS 4.1.1 cc rejects this. */
10527 char const *const *pcpcc;
10529 /* NEC SVR4.0.2 mips cc rejects this. */
10530 struct point {int x, y;};
10531 static struct point const zero = {0,0};
10532 /* AIX XL C 1.02.0.0 rejects this.
10533 It does not let you subtract one const X* pointer from another in
10534 an arm of an if-expression whose if-part is not a constant
10536 const char *g = "string";
10537 pcpcc = &g + (g ? g-g : 0);
10538 /* HPUX 7.0 cc rejects these. */
10540 ppc = (char**) pcpcc;
10541 pcpcc = (char const *const *) ppc;
10542 { /* SCO 3.2v4 cc rejects this. */
10544 char const *s = 0 ? (char *) 0 : (char const *) 0;
10549 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10550 int x[] = {25, 17};
10551 const int *foo = &x[0];
10554 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10555 typedef const int *iptr;
10559 { /* AIX XL C 1.02.0.0 rejects this saying
10560 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10561 struct s { int j; const int *ap[3]; };
10562 struct s *b; b->j = 5;
10564 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10565 const int foo = 10;
10566 if (!foo) return 0;
10568 return !cs[0] && !zero.x;
10575 if ac_fn_c_try_compile
"$LINENO"; then :
10580 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
10583 $as_echo "$ac_cv_c_const" >&6; }
10584 if test $ac_cv_c_const = no
; then
10586 $as_echo "#define const /**/" >>confdefs.h
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
10591 $as_echo_n "checking for inline... " >&6; }
10592 if test "${ac_cv_c_inline+set}" = set; then :
10593 $as_echo_n "(cached) " >&6
10596 for ac_kw
in inline __inline__ __inline
; do
10597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10598 /* end confdefs.h. */
10599 #ifndef __cplusplus
10601 static $ac_kw foo_t static_foo () {return 0; }
10602 $ac_kw foo_t foo () {return 0; }
10606 if ac_fn_c_try_compile
"$LINENO"; then :
10607 ac_cv_c_inline
=$ac_kw
10609 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10610 test "$ac_cv_c_inline" != no
&& break
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
10615 $as_echo "$ac_cv_c_inline" >&6; }
10617 case $ac_cv_c_inline in
10620 case $ac_cv_c_inline in
10622 *) ac_val
=$ac_cv_c_inline;;
10624 cat >>confdefs.h
<<_ACEOF
10625 #ifndef __cplusplus
10626 #define inline $ac_val
10632 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
10633 if test "x$ac_cv_type_mode_t" = x
""yes; then :
10637 cat >>confdefs.h
<<_ACEOF
10643 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
10644 if test "x$ac_cv_type_off_t" = x
""yes; then :
10648 cat >>confdefs.h
<<_ACEOF
10649 #define off_t long int
10654 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
10655 if test "x$ac_cv_type_size_t" = x
""yes; then :
10659 cat >>confdefs.h
<<_ACEOF
10660 #define size_t unsigned int
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
10666 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
10667 if test "${ac_cv_header_time+set}" = set; then :
10668 $as_echo_n "(cached) " >&6
10670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10671 /* end confdefs.h. */
10672 #include <sys/types.h>
10673 #include <sys/time.h>
10679 if ((struct tm *) 0)
10685 if ac_fn_c_try_compile
"$LINENO"; then :
10686 ac_cv_header_time
=yes
10688 ac_cv_header_time
=no
10690 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
10693 $as_echo "$ac_cv_header_time" >&6; }
10694 if test $ac_cv_header_time = yes; then
10696 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
10701 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
10702 if test "${ac_cv_struct_tm+set}" = set; then :
10703 $as_echo_n "(cached) " >&6
10705 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10706 /* end confdefs.h. */
10707 #include <sys/types.h>
10714 int *p = &tm.tm_sec;
10720 if ac_fn_c_try_compile
"$LINENO"; then :
10721 ac_cv_struct_tm
=time.h
10723 ac_cv_struct_tm
=sys
/time.h
10725 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
10728 $as_echo "$ac_cv_struct_tm" >&6; }
10729 if test $ac_cv_struct_tm = sys
/time.h
; then
10731 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
10736 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
10737 if test "${ac_cv_type_uid_t+set}" = set; then :
10738 $as_echo_n "(cached) " >&6
10740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10741 /* end confdefs.h. */
10742 #include <sys/types.h>
10745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10746 $EGREP "uid_t" >/dev
/null
2>&1; then :
10747 ac_cv_type_uid_t
=yes
10749 ac_cv_type_uid_t
=no
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
10755 $as_echo "$ac_cv_type_uid_t" >&6; }
10756 if test $ac_cv_type_uid_t = no
; then
10758 $as_echo "#define uid_t int" >>confdefs.h
10761 $as_echo "#define gid_t int" >>confdefs.h
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
10766 $as_echo_n "checking for working volatile... " >&6; }
10767 if test "${ac_cv_c_volatile+set}" = set; then :
10768 $as_echo_n "(cached) " >&6
10770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10771 /* end confdefs.h. */
10778 int * volatile y = (int *) 0;
10784 if ac_fn_c_try_compile
"$LINENO"; then :
10785 ac_cv_c_volatile
=yes
10787 ac_cv_c_volatile
=no
10789 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
10792 $as_echo "$ac_cv_c_volatile" >&6; }
10793 if test $ac_cv_c_volatile = no
; then
10795 $as_echo "#define volatile /**/" >>confdefs.h
10799 ac_fn_c_check_type
"$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10800 if test "x$ac_cv_type_ptrdiff_t" = x
""yes; then :
10802 cat >>confdefs.h
<<_ACEOF
10803 #define HAVE_PTRDIFF_T 1
10810 # Checks for library functions.
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
10812 $as_echo_n "checking whether closedir returns void... " >&6; }
10813 if test "${ac_cv_func_closedir_void+set}" = set; then :
10814 $as_echo_n "(cached) " >&6
10816 if test "$cross_compiling" = yes; then :
10817 ac_cv_func_closedir_void
=yes
10819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10820 /* end confdefs.h. */
10821 $ac_includes_default
10822 #include <$ac_header_dirent>
10823 #ifndef __cplusplus
10830 return closedir (opendir (".")) != 0;
10835 if ac_fn_c_try_run
"$LINENO"; then :
10836 ac_cv_func_closedir_void
=no
10838 ac_cv_func_closedir_void
=yes
10840 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10841 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
10846 $as_echo "$ac_cv_func_closedir_void" >&6; }
10847 if test $ac_cv_func_closedir_void = yes; then
10849 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
10853 if test $ac_cv_c_compiler_gnu = yes; then
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
10855 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
10856 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
10857 $as_echo_n "(cached) " >&6
10859 ac_pattern
="Autoconf.*'x'"
10860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10861 /* end confdefs.h. */
10865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10866 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
10867 ac_cv_prog_gcc_traditional
=yes
10869 ac_cv_prog_gcc_traditional
=no
10874 if test $ac_cv_prog_gcc_traditional = no
; then
10875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10876 /* end confdefs.h. */
10877 #include <termio.h>
10880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10881 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
10882 ac_cv_prog_gcc_traditional
=yes
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
10889 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
10890 if test $ac_cv_prog_gcc_traditional = yes; then
10891 CC
="$CC -traditional"
10895 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10896 if test "x$ac_cv_type_pid_t" = x
""yes; then :
10900 cat >>confdefs.h
<<_ACEOF
10906 for ac_header
in vfork.h
10908 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
10909 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
10910 cat >>confdefs.h
<<_ACEOF
10911 #define HAVE_VFORK_H 1
10918 for ac_func
in fork vfork
10920 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10921 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10922 eval as_val
=\$
$as_ac_var
10923 if test "x$as_val" = x
""yes; then :
10924 cat >>confdefs.h
<<_ACEOF
10925 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10931 if test "x$ac_cv_func_fork" = xyes
; then
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10933 $as_echo_n "checking for working fork... " >&6; }
10934 if test "${ac_cv_func_fork_works+set}" = set; then :
10935 $as_echo_n "(cached) " >&6
10937 if test "$cross_compiling" = yes; then :
10938 ac_cv_func_fork_works
=cross
10940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10941 /* end confdefs.h. */
10942 $ac_includes_default
10947 /* By Ruediger Kuhlmann. */
10948 return fork () < 0;
10954 if ac_fn_c_try_run
"$LINENO"; then :
10955 ac_cv_func_fork_works
=yes
10957 ac_cv_func_fork_works
=no
10959 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10960 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10965 $as_echo "$ac_cv_func_fork_works" >&6; }
10968 ac_cv_func_fork_works
=$ac_cv_func_fork
10970 if test "x$ac_cv_func_fork_works" = xcross
; then
10972 *-*-amigaos* |
*-*-msdosdjgpp*)
10973 # Override, as these systems have only a dummy fork() stub
10974 ac_cv_func_fork_works
=no
10977 ac_cv_func_fork_works
=yes
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10981 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10983 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10984 if test "x$ac_cv_func_vfork" = xyes
; then
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10986 $as_echo_n "checking for working vfork... " >&6; }
10987 if test "${ac_cv_func_vfork_works+set}" = set; then :
10988 $as_echo_n "(cached) " >&6
10990 if test "$cross_compiling" = yes; then :
10991 ac_cv_func_vfork_works
=cross
10993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10994 /* end confdefs.h. */
10995 /* Thanks to Paul Eggert for this test. */
10996 $ac_includes_default
10997 #include <sys/wait.h>
10998 #ifdef HAVE_VFORK_H
10999 # include <vfork.h>
11001 /* On some sparc systems, changes by the child to local and incoming
11002 argument registers are propagated back to the parent. The compiler
11003 is told about this with #include <vfork.h>, but some compilers
11004 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11005 static variable whose address is put into a register that is
11006 clobbered by the vfork. */
11009 sparc_address_test (int arg)
11011 sparc_address_test (arg) int arg;
11014 static pid_t child;
11032 pid_t parent = getpid ();
11035 sparc_address_test (0);
11040 /* Here is another test for sparc vfork register problems. This
11041 test uses lots of local variables, at least as many local
11042 variables as main has allocated so far including compiler
11043 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11044 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11045 reuse the register of parent for one of the local variables,
11046 since it will think that parent can't possibly be used any more
11047 in this routine. Assigning to the local variable will thus
11048 munge parent in the parent process. */
11050 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11051 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11052 /* Convince the compiler that p..p7 are live; otherwise, it might
11053 use the same hardware register for all 8 local variables. */
11054 if (p != p1 || p != p2 || p != p3 || p != p4
11055 || p != p5 || p != p6 || p != p7)
11058 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11059 from child file descriptors. If the child closes a descriptor
11060 before it execs or exits, this munges the parent's descriptor
11061 as well. Test for this by closing stdout in the child. */
11062 _exit(close(fileno(stdout)) != 0);
11067 while (wait(&status) != child)
11070 /* Was there some problem with vforking? */
11073 /* Did the child fail? (This shouldn't happen.) */
11076 /* Did the vfork/compiler bug occur? */
11077 || parent != getpid()
11079 /* Did the file descriptor bug occur? */
11080 || fstat(fileno(stdout), &st) != 0
11085 if ac_fn_c_try_run
"$LINENO"; then :
11086 ac_cv_func_vfork_works
=yes
11088 ac_cv_func_vfork_works
=no
11090 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11091 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11096 $as_echo "$ac_cv_func_vfork_works" >&6; }
11099 if test "x$ac_cv_func_fork_works" = xcross
; then
11100 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11102 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11105 if test "x$ac_cv_func_vfork_works" = xyes
; then
11107 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11111 $as_echo "#define vfork fork" >>confdefs.h
11114 if test "x$ac_cv_func_fork_works" = xyes
; then
11116 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
11121 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
11122 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
11123 $as_echo_n "(cached) " >&6
11125 rm -f conftest.sym conftest.
file
11126 echo >conftest.
file
11127 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
11128 if test "$cross_compiling" = yes; then :
11129 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11132 /* end confdefs.h. */
11133 $ac_includes_default
11138 /* Linux will dereference the symlink and fail, as required by POSIX.
11139 That is better in the sense that it means we will not
11140 have to compile and use the lstat wrapper. */
11141 return lstat ("conftest.sym/", &sbuf) == 0;
11146 if ac_fn_c_try_run
"$LINENO"; then :
11147 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
11149 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11151 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11152 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11156 # If the `ln -s' command failed, then we probably don't even
11157 # have an lstat function.
11158 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11160 rm -f conftest.sym conftest.
file
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11164 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
11166 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11168 cat >>confdefs.h
<<_ACEOF
11169 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11173 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno
; then
11174 case " $LIBOBJS " in
11175 *" lstat.$ac_objext "* ) ;;
11176 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext"
11182 if test x
$SYS != xwin32
; then :
11184 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
11185 # -lseq on Dynix/PTX, -lgen on Unixware.
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
11187 $as_echo_n "checking for library containing getmntent... " >&6; }
11188 if test "${ac_cv_search_getmntent+set}" = set; then :
11189 $as_echo_n "(cached) " >&6
11191 ac_func_search_save_LIBS
=$LIBS
11192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11193 /* end confdefs.h. */
11195 /* Override any GCC internal prototype to avoid an error.
11196 Use char because int might match the return type of a GCC
11197 builtin and then its argument prototype would still apply. */
11205 return getmntent ();
11210 for ac_lib
in '' sun
seq gen
; do
11211 if test -z "$ac_lib"; then
11212 ac_res
="none required"
11215 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11217 if ac_fn_c_try_link
"$LINENO"; then :
11218 ac_cv_search_getmntent
=$ac_res
11220 rm -f core conftest.err conftest.
$ac_objext \
11222 if test "${ac_cv_search_getmntent+set}" = set; then :
11226 if test "${ac_cv_search_getmntent+set}" = set; then :
11229 ac_cv_search_getmntent
=no
11231 rm conftest.
$ac_ext
11232 LIBS
=$ac_func_search_save_LIBS
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
11235 $as_echo "$ac_cv_search_getmntent" >&6; }
11236 ac_res
=$ac_cv_search_getmntent
11237 if test "$ac_res" != no
; then :
11238 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11239 ac_cv_func_getmntent
=yes
11241 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
11244 ac_cv_func_getmntent
=no
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
11249 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
11250 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
11251 $as_echo_n "(cached) " >&6
11253 if test "$cross_compiling" = yes; then :
11254 ac_cv_func_lstat_empty_string_bug
=yes
11256 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11257 /* end confdefs.h. */
11258 $ac_includes_default
11263 return lstat ("", &sbuf) == 0;
11268 if ac_fn_c_try_run
"$LINENO"; then :
11269 ac_cv_func_lstat_empty_string_bug
=no
11271 ac_cv_func_lstat_empty_string_bug
=yes
11273 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11274 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
11279 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
11280 if test $ac_cv_func_lstat_empty_string_bug = yes; then
11281 case " $LIBOBJS " in
11282 *" lstat.$ac_objext "* ) ;;
11283 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext"
11288 cat >>confdefs.h
<<_ACEOF
11289 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
11295 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
11296 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
11297 $as_echo_n "(cached) " >&6
11299 rm -f conftest.sym conftest.
file
11300 echo >conftest.
file
11301 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
11302 if test "$cross_compiling" = yes; then :
11303 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11306 /* end confdefs.h. */
11307 $ac_includes_default
11312 /* Linux will dereference the symlink and fail, as required by POSIX.
11313 That is better in the sense that it means we will not
11314 have to compile and use the lstat wrapper. */
11315 return lstat ("conftest.sym/", &sbuf) == 0;
11320 if ac_fn_c_try_run
"$LINENO"; then :
11321 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
11323 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11325 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11326 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11330 # If the `ln -s' command failed, then we probably don't even
11331 # have an lstat function.
11332 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11334 rm -f conftest.sym conftest.
file
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11338 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
11340 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11342 cat >>confdefs.h
<<_ACEOF
11343 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11347 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno
; then
11348 case " $LIBOBJS " in
11349 *" lstat.$ac_objext "* ) ;;
11350 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext"
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
11359 $as_echo_n "checking for working memcmp... " >&6; }
11360 if test "${ac_cv_func_memcmp_working+set}" = set; then :
11361 $as_echo_n "(cached) " >&6
11363 if test "$cross_compiling" = yes; then :
11364 ac_cv_func_memcmp_working
=no
11366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11367 /* end confdefs.h. */
11368 $ac_includes_default
11373 /* Some versions of memcmp are not 8-bit clean. */
11374 char c0 = '\100', c1 = '\200', c2 = '\201';
11375 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11378 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11379 or more and with at least one buffer not starting on a 4-byte boundary.
11380 William Lewis provided this test program. */
11385 for (i = 0; i < 4; i++)
11389 strcpy (a, "--------01111111");
11390 strcpy (b, "--------10000000");
11391 if (memcmp (a, b, 16) >= 0)
11401 if ac_fn_c_try_run
"$LINENO"; then :
11402 ac_cv_func_memcmp_working
=yes
11404 ac_cv_func_memcmp_working
=no
11406 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11407 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
11412 $as_echo "$ac_cv_func_memcmp_working" >&6; }
11413 test $ac_cv_func_memcmp_working = no
&& case " $LIBOBJS " in
11414 *" memcmp.$ac_objext "* ) ;;
11415 *) LIBOBJS
="$LIBOBJS memcmp.$ac_objext"
11420 for ac_header
in sys
/select.h sys
/socket.h
11422 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11423 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11424 eval as_val
=\$
$as_ac_Header
11425 if test "x$as_val" = x
""yes; then :
11426 cat >>confdefs.h
<<_ACEOF
11427 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
11435 $as_echo_n "checking types of arguments for select... " >&6; }
11436 if test "${ac_cv_func_select_args+set}" = set; then :
11437 $as_echo_n "(cached) " >&6
11439 for ac_arg234
in 'fd_set *' 'int *' 'void *'; do
11440 for ac_arg1
in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
11441 for ac_arg5
in 'struct timeval *' 'const struct timeval *'; do
11442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11443 /* end confdefs.h. */
11444 $ac_includes_default
11445 #ifdef HAVE_SYS_SELECT_H
11446 # include <sys/select.h>
11448 #ifdef HAVE_SYS_SOCKET_H
11449 # include <sys/socket.h>
11455 extern int select ($ac_arg1,
11456 $ac_arg234, $ac_arg234, $ac_arg234,
11462 if ac_fn_c_try_compile
"$LINENO"; then :
11463 ac_cv_func_select_args
="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
11465 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11469 # Provide a safe default value.
11470 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
11474 $as_echo "$ac_cv_func_select_args" >&6; }
11475 ac_save_IFS
=$IFS; IFS
=','
11476 set dummy
`echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
11480 cat >>confdefs.h
<<_ACEOF
11481 #define SELECT_TYPE_ARG1 $1
11485 cat >>confdefs.h
<<_ACEOF
11486 #define SELECT_TYPE_ARG234 ($2)
11490 cat >>confdefs.h
<<_ACEOF
11491 #define SELECT_TYPE_ARG5 ($3)
11496 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
11497 $as_echo_n "(cached) " >&6
11499 ac_cv_func_setvbuf_reversed
=no
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11504 $as_echo_n "checking return type of signal handlers... " >&6; }
11505 if test "${ac_cv_type_signal+set}" = set; then :
11506 $as_echo_n "(cached) " >&6
11508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11509 /* end confdefs.h. */
11510 #include <sys/types.h>
11511 #include <signal.h>
11516 return *(signal (0, 0)) (0) == 1;
11521 if ac_fn_c_try_compile
"$LINENO"; then :
11522 ac_cv_type_signal
=int
11524 ac_cv_type_signal
=void
11526 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11529 $as_echo "$ac_cv_type_signal" >&6; }
11531 cat >>confdefs.h
<<_ACEOF
11532 #define RETSIGTYPE $ac_cv_type_signal
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
11537 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
11538 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
11539 $as_echo_n "(cached) " >&6
11541 if test "$cross_compiling" = yes; then :
11542 ac_cv_func_stat_empty_string_bug
=yes
11544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11545 /* end confdefs.h. */
11546 $ac_includes_default
11551 return stat ("", &sbuf) == 0;
11556 if ac_fn_c_try_run
"$LINENO"; then :
11557 ac_cv_func_stat_empty_string_bug
=no
11559 ac_cv_func_stat_empty_string_bug
=yes
11561 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11562 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
11567 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
11568 if test $ac_cv_func_stat_empty_string_bug = yes; then
11569 case " $LIBOBJS " in
11570 *" stat.$ac_objext "* ) ;;
11571 *) LIBOBJS
="$LIBOBJS stat.$ac_objext"
11576 cat >>confdefs.h
<<_ACEOF
11577 #define HAVE_STAT_EMPTY_STRING_BUG 1
11582 for ac_func
in strftime
11584 ac_fn_c_check_func
"$LINENO" "strftime" "ac_cv_func_strftime"
11585 if test "x$ac_cv_func_strftime" = x
""yes; then :
11586 cat >>confdefs.h
<<_ACEOF
11587 #define HAVE_STRFTIME 1
11591 # strftime is in -lintl on SCO UNIX.
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
11593 $as_echo_n "checking for strftime in -lintl... " >&6; }
11594 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
11595 $as_echo_n "(cached) " >&6
11597 ac_check_lib_save_LIBS
=$LIBS
11598 LIBS
="-lintl $LIBS"
11599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11600 /* end confdefs.h. */
11602 /* Override any GCC internal prototype to avoid an error.
11603 Use char because int might match the return type of a GCC
11604 builtin and then its argument prototype would still apply. */
11612 return strftime ();
11617 if ac_fn_c_try_link
"$LINENO"; then :
11618 ac_cv_lib_intl_strftime
=yes
11620 ac_cv_lib_intl_strftime
=no
11622 rm -f core conftest.err conftest.
$ac_objext \
11623 conftest
$ac_exeext conftest.
$ac_ext
11624 LIBS
=$ac_check_lib_save_LIBS
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
11627 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
11628 if test "x$ac_cv_lib_intl_strftime" = x
""yes; then :
11629 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
11631 LIBS
="-lintl $LIBS"
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
11638 $as_echo_n "checking for working strtod... " >&6; }
11639 if test "${ac_cv_func_strtod+set}" = set; then :
11640 $as_echo_n "(cached) " >&6
11642 if test "$cross_compiling" = yes; then :
11643 ac_cv_func_strtod
=no
11645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11646 /* end confdefs.h. */
11648 $ac_includes_default
11656 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
11657 char *string = " +69";
11660 value = strtod (string, &term);
11661 if (value != 69 || term != (string + 4))
11666 /* Under Solaris 2.4, strtod returns the wrong value for the
11667 terminating character under some conditions. */
11668 char *string = "NaN";
11670 strtod (string, &term);
11671 if (term != string && *(term - 1) == 0)
11678 if ac_fn_c_try_run
"$LINENO"; then :
11679 ac_cv_func_strtod
=yes
11681 ac_cv_func_strtod
=no
11683 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11684 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
11689 $as_echo "$ac_cv_func_strtod" >&6; }
11690 if test $ac_cv_func_strtod = no
; then
11691 case " $LIBOBJS " in
11692 *" strtod.$ac_objext "* ) ;;
11693 *) LIBOBJS
="$LIBOBJS strtod.$ac_objext"
11697 ac_fn_c_check_func
"$LINENO" "pow" "ac_cv_func_pow"
11698 if test "x$ac_cv_func_pow" = x
""yes; then :
11702 if test $ac_cv_func_pow = no
; then
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
11704 $as_echo_n "checking for pow in -lm... " >&6; }
11705 if test "${ac_cv_lib_m_pow+set}" = set; then :
11706 $as_echo_n "(cached) " >&6
11708 ac_check_lib_save_LIBS
=$LIBS
11710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11711 /* end confdefs.h. */
11713 /* Override any GCC internal prototype to avoid an error.
11714 Use char because int might match the return type of a GCC
11715 builtin and then its argument prototype would still apply. */
11728 if ac_fn_c_try_link
"$LINENO"; then :
11729 ac_cv_lib_m_pow
=yes
11733 rm -f core conftest.err conftest.
$ac_objext \
11734 conftest
$ac_exeext conftest.
$ac_ext
11735 LIBS
=$ac_check_lib_save_LIBS
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
11738 $as_echo "$ac_cv_lib_m_pow" >&6; }
11739 if test "x$ac_cv_lib_m_pow" = x
""yes; then :
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
11743 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
11750 for ac_func
in vprintf
11752 ac_fn_c_check_func
"$LINENO" "vprintf" "ac_cv_func_vprintf"
11753 if test "x$ac_cv_func_vprintf" = x
""yes; then :
11754 cat >>confdefs.h
<<_ACEOF
11755 #define HAVE_VPRINTF 1
11758 ac_fn_c_check_func
"$LINENO" "_doprnt" "ac_cv_func__doprnt"
11759 if test "x$ac_cv_func__doprnt" = x
""yes; then :
11761 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
11769 if test $cross_compiling = yes -a $gnumalloc = yes; then :
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11772 configure cannot check whether malloc() and realloc() are GNU libc
11773 compatible. You have to be ABSOLUTELY sure that they are, otherwise
11774 run configure with the --without-gnu-malloc switch." >&5
11775 $as_echo "$as_me: WARNING:
11776 configure cannot check whether malloc() and realloc() are GNU libc
11777 compatible. You have to be ABSOLUTELY sure that they are, otherwise
11778 run configure with the --without-gnu-malloc switch." >&2;}
11779 _mule_warning_12
=yes
11780 _mule_has_warnings
=yes
11782 ac_cv_func_malloc_0_nonnull
=yes
11783 ac_cv_func_realloc_0_nonnull
=yes
11786 for ac_header
in stdlib.h
11788 ac_fn_c_check_header_mongrel
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
11789 if test "x$ac_cv_header_stdlib_h" = x
""yes; then :
11790 cat >>confdefs.h
<<_ACEOF
11791 #define HAVE_STDLIB_H 1
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
11799 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
11800 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
11801 $as_echo_n "(cached) " >&6
11803 if test "$cross_compiling" = yes; then :
11804 ac_cv_func_malloc_0_nonnull
=no
11806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11807 /* end confdefs.h. */
11808 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
11809 # include <stdlib.h>
11817 return ! malloc (0);
11822 if ac_fn_c_try_run
"$LINENO"; then :
11823 ac_cv_func_malloc_0_nonnull
=yes
11825 ac_cv_func_malloc_0_nonnull
=no
11827 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11828 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
11833 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
11834 if test $ac_cv_func_malloc_0_nonnull = yes; then :
11836 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
11839 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
11841 case " $LIBOBJS " in
11842 *" malloc.$ac_objext "* ) ;;
11843 *) LIBOBJS
="$LIBOBJS malloc.$ac_objext"
11848 $as_echo "#define malloc rpl_malloc" >>confdefs.h
11853 for ac_header
in stdlib.h
11855 ac_fn_c_check_header_mongrel
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
11856 if test "x$ac_cv_header_stdlib_h" = x
""yes; then :
11857 cat >>confdefs.h
<<_ACEOF
11858 #define HAVE_STDLIB_H 1
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
11866 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
11867 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
11868 $as_echo_n "(cached) " >&6
11870 if test "$cross_compiling" = yes; then :
11871 ac_cv_func_realloc_0_nonnull
=no
11873 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11874 /* end confdefs.h. */
11875 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
11876 # include <stdlib.h>
11884 return ! realloc (0, 0);
11889 if ac_fn_c_try_run
"$LINENO"; then :
11890 ac_cv_func_realloc_0_nonnull
=yes
11892 ac_cv_func_realloc_0_nonnull
=no
11894 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11895 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
11900 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
11901 if test $ac_cv_func_realloc_0_nonnull = yes; then :
11903 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
11906 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
11908 case " $LIBOBJS " in
11909 *" realloc.$ac_objext "* ) ;;
11910 *) LIBOBJS
="$LIBOBJS realloc.$ac_objext"
11915 $as_echo "#define realloc rpl_realloc" >>confdefs.h
11920 for ac_func
in __argz_count __argz_next __argz_stringify endpwent floor ftruncate getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday inet_ntoa localeconv memmove mempcpy memset nl_langinfo pow
select setlocale socket sqrt stpcpy strcasecmp strchr strcspn strdup strerror strncasecmp strstr strtoul sigaction
11922 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11923 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11924 eval as_val
=\$
$as_ac_var
11925 if test "x$as_val" = x
""yes; then :
11926 cat >>confdefs.h
<<_ACEOF
11927 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11933 #-------------------------------------------------------------------------------
11934 # End of autoscan stuff
11935 #-------------------------------------------------------------------------------
11937 for ac_func
in mkdir getrlimit setrlimit getopt_long
11939 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11940 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11941 eval as_val
=\$
$as_ac_var
11942 if test "x$as_val" = x
""yes; then :
11943 cat >>confdefs.h
<<_ACEOF
11944 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11954 for ac_header
in $ac_header_list
11956 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11957 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
11959 eval as_val
=\$
$as_ac_Header
11960 if test "x$as_val" = x
""yes; then :
11961 cat >>confdefs.h
<<_ACEOF
11962 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11975 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
11977 # Check whether --enable-mmap was given.
11978 if test "${enable_mmap+set}" = set; then :
11979 enableval
=$enable_mmap;
11984 if test ${enable_mmap:-no} = yes; then :
11986 for ac_header
in sys
/mman.h
11988 ac_fn_c_check_header_mongrel
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11989 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
11990 cat >>confdefs.h
<<_ACEOF
11991 #define HAVE_SYS_MMAN_H 1
11999 for ac_func
in getpagesize
12001 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12002 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
12003 cat >>confdefs.h
<<_ACEOF
12004 #define HAVE_GETPAGESIZE 1
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12011 $as_echo_n "checking for working mmap... " >&6; }
12012 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
12013 $as_echo_n "(cached) " >&6
12015 if test "$cross_compiling" = yes; then :
12016 ac_cv_func_mmap_fixed_mapped
=no
12018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12019 /* end confdefs.h. */
12020 $ac_includes_default
12021 /* malloc might have been renamed as rpl_malloc. */
12024 /* Thanks to Mike Haertel and Jim Avera for this test.
12025 Here is a matrix of mmap possibilities:
12026 mmap private not fixed
12027 mmap private fixed at somewhere currently unmapped
12028 mmap private fixed at somewhere already mapped
12029 mmap shared not fixed
12030 mmap shared fixed at somewhere currently unmapped
12031 mmap shared fixed at somewhere already mapped
12032 For private mappings, we should verify that changes cannot be read()
12033 back from the file, nor mmap's back from the file at a different
12034 address. (There have been systems where private was not correctly
12035 implemented like the infamous i386 svr4.0, and systems where the
12036 VM page cache was not coherent with the file system buffer cache
12037 like early versions of FreeBSD and possibly contemporary NetBSD.)
12038 For shared mappings, we should conversely verify that changes get
12039 propagated back to all the places they're supposed to be.
12041 Grep wants private fixed already mapped.
12042 The main things grep needs to know about mmap are:
12043 * does it exist and is it safe to write into the mmap'd area
12044 * how to use it (BSD variants) */
12047 #include <sys/mman.h>
12049 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12053 /* This mess was copied from the GNU getpagesize.h. */
12054 #ifndef HAVE_GETPAGESIZE
12055 # ifdef _SC_PAGESIZE
12056 # define getpagesize() sysconf(_SC_PAGESIZE)
12057 # else /* no _SC_PAGESIZE */
12058 # ifdef HAVE_SYS_PARAM_H
12059 # include <sys/param.h>
12060 # ifdef EXEC_PAGESIZE
12061 # define getpagesize() EXEC_PAGESIZE
12062 # else /* no EXEC_PAGESIZE */
12064 # define getpagesize() NBPG * CLSIZE
12067 # endif /* no CLSIZE */
12068 # else /* no NBPG */
12070 # define getpagesize() NBPC
12071 # else /* no NBPC */
12073 # define getpagesize() PAGESIZE
12074 # endif /* PAGESIZE */
12075 # endif /* no NBPC */
12076 # endif /* no NBPG */
12077 # endif /* no EXEC_PAGESIZE */
12078 # else /* no HAVE_SYS_PARAM_H */
12079 # define getpagesize() 8192 /* punt totally */
12080 # endif /* no HAVE_SYS_PARAM_H */
12081 # endif /* no _SC_PAGESIZE */
12083 #endif /* no HAVE_GETPAGESIZE */
12088 char *data, *data2, *data3;
12092 pagesize = getpagesize ();
12094 /* First, make a file with some known garbage in it. */
12095 data = (char *) malloc (pagesize);
12098 for (i = 0; i < pagesize; ++i)
12099 *(data + i) = rand ();
12101 fd = creat ("conftest.mmap", 0600);
12104 if (write (fd, data, pagesize) != pagesize)
12108 /* Next, check that the tail of a page is zero-filled. File must have
12109 non-zero length, otherwise we risk SIGBUS for entire page. */
12110 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
12114 if (write (fd2, data2, 1) != 1)
12116 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
12117 if (data2 == MAP_FAILED)
12119 for (i = 0; i < pagesize; ++i)
12123 if (munmap (data2, pagesize))
12126 /* Next, try to mmap the file at a fixed address which already has
12127 something else allocated at it. If we can, also make sure that
12128 we see the same garbage. */
12129 fd = open ("conftest.mmap", O_RDWR);
12132 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12133 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12135 for (i = 0; i < pagesize; ++i)
12136 if (*(data + i) != *(data2 + i))
12139 /* Finally, make sure that changes to the mapped area do not
12140 percolate back to the file as seen by read(). (This is a bug on
12141 some variants of i386 svr4.0.) */
12142 for (i = 0; i < pagesize; ++i)
12143 *(data2 + i) = *(data2 + i) + 1;
12144 data3 = (char *) malloc (pagesize);
12147 if (read (fd, data3, pagesize) != pagesize)
12149 for (i = 0; i < pagesize; ++i)
12150 if (*(data + i) != *(data3 + i))
12156 if ac_fn_c_try_run
"$LINENO"; then :
12157 ac_cv_func_mmap_fixed_mapped
=yes
12159 ac_cv_func_mmap_fixed_mapped
=no
12161 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12162 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12167 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12168 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12170 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12173 rm -f conftest.mmap conftest.txt
12175 for ac_func
in munmap sysconf
12177 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12178 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12179 eval as_val
=\$
$as_ac_var
12180 if test "x$as_val" = x
""yes; then :
12181 cat >>confdefs.h
<<_ACEOF
12182 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12188 if test $ac_cv_func_sysconf = yes; then :
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pagesize constant for sysconf" >&5
12191 $as_echo_n "checking for pagesize constant for sysconf... " >&6; }
12192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12193 /* end confdefs.h. */
12196 #include <unistd.h>
12202 return sysconf(_SC_PAGESIZE);
12209 if ac_fn_c_try_link
"$LINENO"; then :
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: _SC_PAGESIZE" >&5
12212 $as_echo "_SC_PAGESIZE" >&6; }
12214 $as_echo "#define HAVE__SC_PAGESIZE 1" >>confdefs.h
12219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12220 /* end confdefs.h. */
12223 #include <unistd.h>
12229 return sysconf(_SC_PAGE_SIZE);
12236 if ac_fn_c_try_link
"$LINENO"; then :
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: _SC_PAGE_SIZE" >&5
12239 $as_echo "_SC_PAGE_SIZE" >&6; }
12241 $as_echo "#define HAVE__SC_PAGE_SIZE 1" >>confdefs.h
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12247 $as_echo "none" >&6; }
12250 rm -f core conftest.err conftest.
$ac_objext \
12251 conftest
$ac_exeext conftest.
$ac_ext
12254 rm -f core conftest.err conftest.
$ac_objext \
12255 conftest
$ac_exeext conftest.
$ac_ext
12261 # fake the result of the test for munmap() for the gettext macros
12262 ac_cv_func_munmap
=no
12268 mule_backup_CPPFLAGS
="$CPPFLAGS"
12269 CPPFLAGS
="$CPPFLAGS -D_XOPEN_SOURCE=600"
12270 ac_fn_c_check_decl
"$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
12271 if test "x$ac_cv_have_decl_strerror_r" = x
""yes; then :
12277 cat >>confdefs.h
<<_ACEOF
12278 #define HAVE_DECL_STRERROR_R $ac_have_decl
12281 for ac_func
in strerror_r
12283 ac_fn_c_check_func
"$LINENO" "strerror_r" "ac_cv_func_strerror_r"
12284 if test "x$ac_cv_func_strerror_r" = x
""yes; then :
12285 cat >>confdefs.h
<<_ACEOF
12286 #define HAVE_STRERROR_R 1
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
12293 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
12294 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then :
12295 $as_echo_n "(cached) " >&6
12298 ac_cv_func_strerror_r_char_p
=no
12299 if test $ac_cv_have_decl_strerror_r = yes; then
12300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12301 /* end confdefs.h. */
12302 $ac_includes_default
12308 char x = *strerror_r (0, buf, sizeof buf);
12309 char *p = strerror_r (0, buf, sizeof buf);
12316 if ac_fn_c_try_compile
"$LINENO"; then :
12317 ac_cv_func_strerror_r_char_p
=yes
12319 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12321 # strerror_r is not declared. Choose between
12322 # systems that have relatively inaccessible declarations for the
12323 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
12324 # former has a strerror_r that returns char*, while the latter
12325 # has a strerror_r that returns `int'.
12326 # This test should segfault on the DEC system.
12327 if test "$cross_compiling" = yes; then :
12330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12331 /* end confdefs.h. */
12332 $ac_includes_default
12333 extern char *strerror_r ();
12338 char x = *strerror_r (0, buf, sizeof buf);
12339 return ! isalpha (x);
12344 if ac_fn_c_try_run
"$LINENO"; then :
12345 ac_cv_func_strerror_r_char_p
=yes
12347 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12348 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
12355 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
12356 if test $ac_cv_func_strerror_r_char_p = yes; then
12358 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
12362 CPPFLAGS
="$mule_backup_CPPFLAGS"
12364 # Look for a way to preallocate disk space for files.
12365 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
12368 $as_echo_n "checking for fallocate... " >&6; }
12369 mule_backup_CPPFLAGS
="$CPPFLAGS"
12370 CPPFLAGS
="$CPPFLAGS $WX_CPPFLAGS"
12371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12372 /* end confdefs.h. */
12375 #define _GNU_SOURCE
12376 #ifdef HAVE_FCNTL_H
12377 # include <fcntl.h>
12379 #include <linux/falloc.h>
12385 fallocate(0, 0, 0, 0);
12392 if ac_fn_c_try_link
"$LINENO"; then :
12395 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12398 $as_echo "yes" >&6; }
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12403 $as_echo "no" >&6; }
12406 rm -f core conftest.err conftest.
$ac_objext \
12407 conftest
$ac_exeext conftest.
$ac_ext
12408 CPPFLAGS
="$mule_backup_CPPFLAGS"
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYS_fallocate" >&5
12412 $as_echo_n "checking for SYS_fallocate... " >&6; }
12413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12414 /* end confdefs.h. */
12417 #include <sys/syscall.h>
12418 #include <sys/types.h>
12419 #include <unistd.h>
12425 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0);
12432 if ac_fn_c_try_link
"$LINENO"; then :
12435 $as_echo "#define HAVE_SYS_FALLOCATE 1" >>confdefs.h
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12438 $as_echo "yes" >&6; }
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12443 $as_echo "no" >&6; }
12446 rm -f core conftest.err conftest.
$ac_objext \
12447 conftest
$ac_exeext conftest.
$ac_ext
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fallocate" >&5
12450 $as_echo_n "checking for posix_fallocate... " >&6; }
12451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12452 /* end confdefs.h. */
12455 #define _XOPEN_SOURCE 600
12456 #include <stdlib.h>
12457 #ifdef HAVE_FCNTL_H
12458 # include <fcntl.h>
12465 posix_fallocate(0, 0, 0);
12472 if ac_fn_c_try_link
"$LINENO"; then :
12475 $as_echo "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12478 $as_echo "yes" >&6; }
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12483 $as_echo "no" >&6; }
12486 rm -f core conftest.err conftest.
$ac_objext \
12487 conftest
$ac_exeext conftest.
$ac_ext
12491 # Checking Native Language Support
12495 if test -n "$ac_aux_dir"; then
12496 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
12498 if test -z "$MKINSTALLDIRS"; then
12499 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
12506 # Extract the first word of "msgfmt", so it can be a program name with args.
12507 set dummy msgfmt
; ac_word
=$2
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12509 $as_echo_n "checking for $ac_word... " >&6; }
12510 if test "${ac_cv_path_MSGFMT+set}" = set; then :
12511 $as_echo_n "(cached) " >&6
12515 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
12518 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
12519 for ac_dir
in $PATH; do
12520 test -z "$ac_dir" && ac_dir
=.
12521 if test -f $ac_dir/$ac_word; then
12522 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
12523 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
12524 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
12530 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
12534 MSGFMT
="$ac_cv_path_MSGFMT"
12535 if test "$MSGFMT" != ":"; then
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12537 $as_echo "$MSGFMT" >&6; }
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12540 $as_echo "no" >&6; }
12543 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12544 set dummy gmsgfmt
; ac_word
=$2
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12546 $as_echo_n "checking for $ac_word... " >&6; }
12547 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
12548 $as_echo_n "(cached) " >&6
12552 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
12555 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12556 for as_dir
in $PATH
12559 test -z "$as_dir" && as_dir
=.
12560 for ac_exec_ext
in '' $ac_executable_extensions; do
12561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12562 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
12563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12570 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
12574 GMSGFMT
=$ac_cv_path_GMSGFMT
12575 if test -n "$GMSGFMT"; then
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12577 $as_echo "$GMSGFMT" >&6; }
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12580 $as_echo "no" >&6; }
12585 # Extract the first word of "xgettext", so it can be a program name with args.
12586 set dummy xgettext
; ac_word
=$2
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12588 $as_echo_n "checking for $ac_word... " >&6; }
12589 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12590 $as_echo_n "(cached) " >&6
12592 case "$XGETTEXT" in
12594 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
12597 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
12598 for ac_dir
in $PATH; do
12599 test -z "$ac_dir" && ac_dir
=.
12600 if test -f $ac_dir/$ac_word; then
12601 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev
/null
>/dev
/null
2>&1 &&
12602 (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
12603 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
12609 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
12613 XGETTEXT
="$ac_cv_path_XGETTEXT"
12614 if test "$XGETTEXT" != ":"; then
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12616 $as_echo "$XGETTEXT" >&6; }
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12619 $as_echo "no" >&6; }
12624 # Extract the first word of "msgmerge", so it can be a program name with args.
12625 set dummy msgmerge
; ac_word
=$2
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12627 $as_echo_n "checking for $ac_word... " >&6; }
12628 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12629 $as_echo_n "(cached) " >&6
12631 case "$MSGMERGE" in
12633 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
12636 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
12637 for ac_dir
in $PATH; do
12638 test -z "$ac_dir" && ac_dir
=.
12639 if test -f $ac_dir/$ac_word; then
12640 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
12641 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word"
12647 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
12651 MSGMERGE
="$ac_cv_path_MSGMERGE"
12652 if test "$MSGMERGE" != ":"; then
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12654 $as_echo "$MSGMERGE" >&6; }
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12657 $as_echo "no" >&6; }
12661 if test "$GMSGFMT" != ":"; then
12662 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
12663 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
12666 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12668 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12673 if test "$XGETTEXT" != ":"; then
12674 if $XGETTEXT --omit-header --copyright-holder= /dev
/null
>/dev
/null
2>&1 &&
12675 (if $XGETTEXT --omit-header --copyright-holder= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12679 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12685 ac_config_commands
="$ac_config_commands default-1"
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
12690 $as_echo_n "checking for strerror in -lcposix... " >&6; }
12691 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
12692 $as_echo_n "(cached) " >&6
12694 ac_check_lib_save_LIBS
=$LIBS
12695 LIBS
="-lcposix $LIBS"
12696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12697 /* end confdefs.h. */
12699 /* Override any GCC internal prototype to avoid an error.
12700 Use char because int might match the return type of a GCC
12701 builtin and then its argument prototype would still apply. */
12709 return strerror ();
12714 if ac_fn_c_try_link
"$LINENO"; then :
12715 ac_cv_lib_cposix_strerror
=yes
12717 ac_cv_lib_cposix_strerror
=no
12719 rm -f core conftest.err conftest.
$ac_objext \
12720 conftest
$ac_exeext conftest.
$ac_ext
12721 LIBS
=$ac_check_lib_save_LIBS
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
12724 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
12725 if test "x$ac_cv_lib_cposix_strerror" = x
""yes; then :
12726 LIBS
="$LIBS -lcposix"
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
12733 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
12734 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
12735 $as_echo_n "(cached) " >&6
12737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12738 /* end confdefs.h. */
12740 #include <features.h>
12741 #ifdef __GNU_LIBRARY__
12742 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
12748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12749 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then :
12750 ac_cv_gnu_library_2_1
=yes
12752 ac_cv_gnu_library_2_1
=no
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
12760 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
12762 GLIBC21
="$ac_cv_gnu_library_2_1"
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
12768 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
12769 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
12770 $as_echo_n "(cached) " >&6
12773 if test "$cross_compiling" = yes; then :
12775 # Guess based on the CPU.
12776 case "$host_cpu" in
12777 alpha
* | i3456786 | m68k | s390
*)
12778 gt_cv_int_divbyzero_sigfpe
="guessing yes";;
12780 gt_cv_int_divbyzero_sigfpe
="guessing no";;
12784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12785 /* end confdefs.h. */
12787 #include <stdlib.h>
12788 #include <signal.h>
12792 sigfpe_handler (int sig)
12794 sigfpe_handler (sig) int sig;
12797 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
12798 exit (sig != SIGFPE);
12808 signal (SIGFPE, sigfpe_handler);
12809 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
12810 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
12811 signal (SIGTRAP, sigfpe_handler);
12813 /* Linux/SPARC yields signal SIGILL. */
12814 #if defined (__sparc__) && defined (__linux__)
12815 signal (SIGILL, sigfpe_handler);
12824 if ac_fn_c_try_run
"$LINENO"; then :
12825 gt_cv_int_divbyzero_sigfpe
=yes
12827 gt_cv_int_divbyzero_sigfpe
=no
12829 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12830 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
12836 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
12837 case "$gt_cv_int_divbyzero_sigfpe" in
12842 cat >>confdefs.h
<<_ACEOF
12843 #define INTDIV0_RAISES_SIGFPE $value
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
12849 $as_echo_n "checking for inttypes.h... " >&6; }
12850 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then :
12851 $as_echo_n "(cached) " >&6
12853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12854 /* end confdefs.h. */
12855 #include <sys/types.h>
12856 #include <inttypes.h>
12860 uintmax_t i = (uintmax_t) -1;
12865 if ac_fn_c_try_compile
"$LINENO"; then :
12866 jm_ac_cv_header_inttypes_h
=yes
12868 jm_ac_cv_header_inttypes_h
=no
12870 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
12873 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
12874 if test $jm_ac_cv_header_inttypes_h = yes; then
12876 cat >>confdefs.h
<<_ACEOF
12877 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
12884 $as_echo_n "checking for stdint.h... " >&6; }
12885 if test "${jm_ac_cv_header_stdint_h+set}" = set; then :
12886 $as_echo_n "(cached) " >&6
12888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12889 /* end confdefs.h. */
12890 #include <sys/types.h>
12891 #include <stdint.h>
12895 uintmax_t i = (uintmax_t) -1;
12900 if ac_fn_c_try_compile
"$LINENO"; then :
12901 jm_ac_cv_header_stdint_h
=yes
12903 jm_ac_cv_header_stdint_h
=no
12905 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
12908 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
12909 if test $jm_ac_cv_header_stdint_h = yes; then
12911 cat >>confdefs.h
<<_ACEOF
12912 #define HAVE_STDINT_H_WITH_UINTMAX 1
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
12919 $as_echo_n "checking for unsigned long long... " >&6; }
12920 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
12921 $as_echo_n "(cached) " >&6
12923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12924 /* end confdefs.h. */
12925 unsigned long long ull = 1; int i = 63;
12929 unsigned long long ullmax = (unsigned long long) -1;
12930 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
12935 if ac_fn_c_try_link
"$LINENO"; then :
12936 ac_cv_type_unsigned_long_long
=yes
12938 ac_cv_type_unsigned_long_long
=no
12940 rm -f core conftest.err conftest.
$ac_objext \
12941 conftest
$ac_exeext conftest.
$ac_ext
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
12944 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
12945 if test $ac_cv_type_unsigned_long_long = yes; then
12947 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
12954 if test $jm_ac_cv_header_inttypes_h = no
&& test $jm_ac_cv_header_stdint_h = no
; then
12956 test $ac_cv_type_unsigned_long_long = yes \
12957 && ac_type
='unsigned long long' \
12958 || ac_type
='unsigned long'
12960 cat >>confdefs.h
<<_ACEOF
12961 #define uintmax_t $ac_type
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
12968 $as_echo_n "checking for inttypes.h... " >&6; }
12969 if test "${gt_cv_header_inttypes_h+set}" = set; then :
12970 $as_echo_n "(cached) " >&6
12973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12974 /* end confdefs.h. */
12975 #include <sys/types.h>
12976 #include <inttypes.h>
12985 if ac_fn_c_try_compile
"$LINENO"; then :
12986 gt_cv_header_inttypes_h
=yes
12988 gt_cv_header_inttypes_h
=no
12990 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
12994 $as_echo "$gt_cv_header_inttypes_h" >&6; }
12995 if test $gt_cv_header_inttypes_h = yes; then
12997 cat >>confdefs.h
<<_ACEOF
12998 #define HAVE_INTTYPES_H 1
13005 if test $gt_cv_header_inttypes_h = yes; then
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
13007 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
13008 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
13009 $as_echo_n "(cached) " >&6
13012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13013 /* end confdefs.h. */
13014 #include <inttypes.h>
13027 if ac_fn_c_try_compile
"$LINENO"; then :
13028 gt_cv_inttypes_pri_broken
=no
13030 gt_cv_inttypes_pri_broken
=yes
13032 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
13036 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
13038 if test "$gt_cv_inttypes_pri_broken" = yes; then
13040 cat >>confdefs.h
<<_ACEOF
13041 #define PRI_MACROS_BROKEN 1
13047 if test "X$prefix" = "XNONE"; then
13048 acl_final_prefix
="$ac_default_prefix"
13050 acl_final_prefix
="$prefix"
13052 if test "X$exec_prefix" = "XNONE"; then
13053 acl_final_exec_prefix
='${prefix}'
13055 acl_final_exec_prefix
="$exec_prefix"
13057 acl_save_prefix
="$prefix"
13058 prefix
="$acl_final_prefix"
13059 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
13060 prefix
="$acl_save_prefix"
13063 # Check whether --with-gnu-ld was given.
13064 if test "${with_gnu_ld+set}" = set; then :
13065 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
13071 if test "$GCC" = yes; then
13072 # Check if gcc -print-prog-name=ld gives a path.
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13074 $as_echo_n "checking for ld used by GCC... " >&6; }
13077 # gcc leaves a trailing carriage return which upsets mingw
13078 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13080 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
13083 # Accept absolute paths.
13084 [\\/]* |
[A-Za-z
]:[\\/]*)
13085 re_direlt
='/[^/][^/]*/\.\./'
13086 # Canonicalize the path of ld
13087 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
13088 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
13089 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
13091 test -z "$LD" && LD
="$ac_prog"
13094 # If it fails, then pretend we aren't using GCC.
13098 # If it is relative, then search for the first ld in PATH.
13099 with_gnu_ld
=unknown
13102 elif test "$with_gnu_ld" = yes; then
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13104 $as_echo_n "checking for GNU ld... " >&6; }
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13107 $as_echo_n "checking for non-GNU ld... " >&6; }
13109 if test "${acl_cv_path_LD+set}" = set; then :
13110 $as_echo_n "(cached) " >&6
13112 if test -z "$LD"; then
13113 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13114 for ac_dir
in $PATH; do
13115 test -z "$ac_dir" && ac_dir
=.
13116 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
13117 acl_cv_path_LD
="$ac_dir/$ac_prog"
13118 # Check to see if the program is GNU ld. I'd rather use --version,
13119 # but apparently some GNU ld's only accept -v.
13120 # Break only if it was the GNU/non-GNU ld that we prefer.
13121 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
13122 test "$with_gnu_ld" != no
&& break
13124 test "$with_gnu_ld" != yes && break
13130 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
13134 LD
="$acl_cv_path_LD"
13135 if test -n "$LD"; then
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13137 $as_echo "$LD" >&6; }
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13140 $as_echo "no" >&6; }
13142 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13144 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13145 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
13146 $as_echo_n "(cached) " >&6
13148 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13149 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
13150 acl_cv_prog_gnu_ld
=yes
13152 acl_cv_prog_gnu_ld
=no
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13156 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13157 with_gnu_ld
=$acl_cv_prog_gnu_ld
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13162 $as_echo_n "checking for shared library run path origin... " >&6; }
13163 if test "${acl_cv_rpath+set}" = set; then :
13164 $as_echo_n "(cached) " >&6
13167 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
13168 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13170 rm -f .
/conftest.sh
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13175 $as_echo "$acl_cv_rpath" >&6; }
13177 libext
="$acl_cv_libext"
13178 shlibext
="$acl_cv_shlibext"
13179 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
13180 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
13181 hardcode_direct
="$acl_cv_hardcode_direct"
13182 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
13183 sys_lib_search_path_spec
="$acl_cv_sys_lib_search_path_spec"
13184 sys_lib_dlsearch_path_spec
="$acl_cv_sys_lib_dlsearch_path_spec"
13185 # Check whether --enable-rpath was given.
13186 if test "${enable_rpath+set}" = set; then :
13187 enableval
=$enable_rpath; :
13201 acl_save_prefix
="$prefix"
13202 prefix
="$acl_final_prefix"
13203 acl_save_exec_prefix
="$exec_prefix"
13204 exec_prefix
="$acl_final_exec_prefix"
13206 eval additional_includedir
=\"$includedir\"
13207 eval additional_libdir
=\"$libdir\"
13209 exec_prefix
="$acl_save_exec_prefix"
13210 prefix
="$acl_save_prefix"
13213 # Check whether --with-libiconv-prefix was given.
13214 if test "${with_libiconv_prefix+set}" = set; then :
13215 withval
=$with_libiconv_prefix;
13216 if test "X$withval" = "Xno"; then
13219 if test "X$withval" = "X"; then
13221 acl_save_prefix
="$prefix"
13222 prefix
="$acl_final_prefix"
13223 acl_save_exec_prefix
="$exec_prefix"
13224 exec_prefix
="$acl_final_exec_prefix"
13226 eval additional_includedir
=\"$includedir\"
13227 eval additional_libdir
=\"$libdir\"
13229 exec_prefix
="$acl_save_exec_prefix"
13230 prefix
="$acl_save_prefix"
13233 additional_includedir
="$withval/include"
13234 additional_libdir
="$withval/lib"
13245 names_already_handled
=
13246 names_next_round
='iconv '
13247 while test -n "$names_next_round"; do
13248 names_this_round
="$names_next_round"
13250 for name
in $names_this_round; do
13252 for n
in $names_already_handled; do
13253 if test "$n" = "$name"; then
13254 already_handled
=yes
13258 if test -z "$already_handled"; then
13259 names_already_handled
="$names_already_handled $name"
13260 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13261 eval value
=\"\
$HAVE_LIB$uppername\"
13262 if test -n "$value"; then
13263 if test "$value" = yes; then
13264 eval value
=\"\
$LIB$uppername\"
13265 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
13266 eval value
=\"\
$LTLIB$uppername\"
13267 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
13276 if test $use_additional = yes; then
13277 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13278 found_dir
="$additional_libdir"
13279 found_so
="$additional_libdir/lib$name.$shlibext"
13280 if test -f "$additional_libdir/lib$name.la"; then
13281 found_la
="$additional_libdir/lib$name.la"
13284 if test -f "$additional_libdir/lib$name.$libext"; then
13285 found_dir
="$additional_libdir"
13286 found_a
="$additional_libdir/lib$name.$libext"
13287 if test -f "$additional_libdir/lib$name.la"; then
13288 found_la
="$additional_libdir/lib$name.la"
13293 if test "X$found_dir" = "X"; then
13294 for x
in $LDFLAGS $LTLIBICONV; do
13296 acl_save_prefix
="$prefix"
13297 prefix
="$acl_final_prefix"
13298 acl_save_exec_prefix
="$exec_prefix"
13299 exec_prefix
="$acl_final_exec_prefix"
13301 exec_prefix
="$acl_save_exec_prefix"
13302 prefix
="$acl_save_prefix"
13306 dir
=`echo "X$x" | sed -e 's/^X-L//'`
13307 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13309 found_so
="$dir/lib$name.$shlibext"
13310 if test -f "$dir/lib$name.la"; then
13311 found_la
="$dir/lib$name.la"
13314 if test -f "$dir/lib$name.$libext"; then
13316 found_a
="$dir/lib$name.$libext"
13317 if test -f "$dir/lib$name.la"; then
13318 found_la
="$dir/lib$name.la"
13324 if test "X$found_dir" != "X"; then
13329 if test "X$found_dir" != "X"; then
13330 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13331 if test "X$found_so" != "X"; then
13332 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
13333 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
13336 for x
in $ltrpathdirs; do
13337 if test "X$x" = "X$found_dir"; then
13342 if test -z "$haveit"; then
13343 ltrpathdirs
="$ltrpathdirs $found_dir"
13345 if test "$hardcode_direct" = yes; then
13346 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
13348 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
13349 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
13351 for x
in $rpathdirs; do
13352 if test "X$x" = "X$found_dir"; then
13357 if test -z "$haveit"; then
13358 rpathdirs
="$rpathdirs $found_dir"
13362 for x
in $LDFLAGS $LIBICONV; do
13364 acl_save_prefix
="$prefix"
13365 prefix
="$acl_final_prefix"
13366 acl_save_exec_prefix
="$exec_prefix"
13367 exec_prefix
="$acl_final_exec_prefix"
13369 exec_prefix
="$acl_save_exec_prefix"
13370 prefix
="$acl_save_prefix"
13372 if test "X$x" = "X-L$found_dir"; then
13377 if test -z "$haveit"; then
13378 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13380 if test "$hardcode_minus_L" != no
; then
13381 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
13383 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
13389 if test "X$found_a" != "X"; then
13390 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
13392 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13395 additional_includedir
=
13396 case "$found_dir" in
13398 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13399 additional_includedir
="$basedir/include"
13402 if test "X$additional_includedir" != "X"; then
13403 if test "X$additional_includedir" != "X/usr/include"; then
13405 if test "X$additional_includedir" = "X/usr/local/include"; then
13406 if test -n "$GCC"; then
13408 linux
*) haveit
=yes;;
13412 if test -z "$haveit"; then
13413 for x
in $CPPFLAGS $INCICONV; do
13415 acl_save_prefix
="$prefix"
13416 prefix
="$acl_final_prefix"
13417 acl_save_exec_prefix
="$exec_prefix"
13418 exec_prefix
="$acl_final_exec_prefix"
13420 exec_prefix
="$acl_save_exec_prefix"
13421 prefix
="$acl_save_prefix"
13423 if test "X$x" = "X-I$additional_includedir"; then
13428 if test -z "$haveit"; then
13429 if test -d "$additional_includedir"; then
13430 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13436 if test -n "$found_la"; then
13437 save_libdir
="$libdir"
13438 case "$found_la" in
13439 */* |
*\\*) .
"$found_la" ;;
13440 *) .
"./$found_la" ;;
13442 libdir
="$save_libdir"
13443 for dep
in $dependency_libs; do
13446 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
13447 if test "X$additional_libdir" != "X/usr/lib"; then
13449 if test "X$additional_libdir" = "X/usr/local/lib"; then
13450 if test -n "$GCC"; then
13452 linux
*) haveit
=yes;;
13456 if test -z "$haveit"; then
13458 for x
in $LDFLAGS $LIBICONV; do
13460 acl_save_prefix
="$prefix"
13461 prefix
="$acl_final_prefix"
13462 acl_save_exec_prefix
="$exec_prefix"
13463 exec_prefix
="$acl_final_exec_prefix"
13465 exec_prefix
="$acl_save_exec_prefix"
13466 prefix
="$acl_save_prefix"
13468 if test "X$x" = "X-L$additional_libdir"; then
13473 if test -z "$haveit"; then
13474 if test -d "$additional_libdir"; then
13475 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13479 for x
in $LDFLAGS $LTLIBICONV; do
13481 acl_save_prefix
="$prefix"
13482 prefix
="$acl_final_prefix"
13483 acl_save_exec_prefix
="$exec_prefix"
13484 exec_prefix
="$acl_final_exec_prefix"
13486 exec_prefix
="$acl_save_exec_prefix"
13487 prefix
="$acl_save_prefix"
13489 if test "X$x" = "X-L$additional_libdir"; then
13494 if test -z "$haveit"; then
13495 if test -d "$additional_libdir"; then
13496 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13503 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
13504 if test "$enable_rpath" != no
; then
13506 for x
in $rpathdirs; do
13507 if test "X$x" = "X$dir"; then
13512 if test -z "$haveit"; then
13513 rpathdirs
="$rpathdirs $dir"
13516 for x
in $ltrpathdirs; do
13517 if test "X$x" = "X$dir"; then
13522 if test -z "$haveit"; then
13523 ltrpathdirs
="$ltrpathdirs $dir"
13528 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13531 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13534 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
13535 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13541 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
13542 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13548 if test "X$rpathdirs" != "X"; then
13549 if test -n "$hardcode_libdir_separator"; then
13551 for found_dir
in $rpathdirs; do
13552 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13554 acl_save_libdir
="$libdir"
13556 eval flag
=\"$hardcode_libdir_flag_spec\"
13557 libdir
="$acl_save_libdir"
13558 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
13560 for found_dir
in $rpathdirs; do
13561 acl_save_libdir
="$libdir"
13562 libdir
="$found_dir"
13563 eval flag
=\"$hardcode_libdir_flag_spec\"
13564 libdir
="$acl_save_libdir"
13565 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
13569 if test "X$ltrpathdirs" != "X"; then
13570 for found_dir
in $ltrpathdirs; do
13571 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13578 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
13579 stdlib.h string.h unistd.h sys
/param.h
13581 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13582 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13583 eval as_val
=\$
$as_ac_Header
13584 if test "x$as_val" = x
""yes; then :
13585 cat >>confdefs.h
<<_ACEOF
13586 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13593 for ac_func
in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
13594 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
13595 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
13597 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13598 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13599 eval as_val
=\$
$as_ac_var
13600 if test "x$as_val" = x
""yes; then :
13601 cat >>confdefs.h
<<_ACEOF
13602 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13614 am_save_CPPFLAGS
="$CPPFLAGS"
13616 for element
in $INCICONV; do
13618 for x
in $CPPFLAGS; do
13620 acl_save_prefix
="$prefix"
13621 prefix
="$acl_final_prefix"
13622 acl_save_exec_prefix
="$exec_prefix"
13623 exec_prefix
="$acl_final_exec_prefix"
13625 exec_prefix
="$acl_save_exec_prefix"
13626 prefix
="$acl_save_prefix"
13628 if test "X$x" = "X$element"; then
13633 if test -z "$haveit"; then
13634 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13640 $as_echo_n "checking for iconv... " >&6; }
13641 if test "${am_cv_func_iconv+set}" = set; then :
13642 $as_echo_n "(cached) " >&6
13645 am_cv_func_iconv
="no, consider installing GNU libiconv"
13647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13648 /* end confdefs.h. */
13649 #include <stdlib.h>
13654 iconv_t cd = iconv_open("","");
13655 iconv(cd,NULL,NULL,NULL,NULL);
13661 if ac_fn_c_try_link
"$LINENO"; then :
13662 am_cv_func_iconv
=yes
13664 rm -f core conftest.err conftest.
$ac_objext \
13665 conftest
$ac_exeext conftest.
$ac_ext
13666 if test "$am_cv_func_iconv" != yes; then
13667 am_save_LIBS
="$LIBS"
13668 LIBS
="$LIBS $LIBICONV"
13669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13670 /* end confdefs.h. */
13671 #include <stdlib.h>
13676 iconv_t cd = iconv_open("","");
13677 iconv(cd,NULL,NULL,NULL,NULL);
13683 if ac_fn_c_try_link
"$LINENO"; then :
13684 am_cv_lib_iconv
=yes
13685 am_cv_func_iconv
=yes
13687 rm -f core conftest.err conftest.
$ac_objext \
13688 conftest
$ac_exeext conftest.
$ac_ext
13689 LIBS
="$am_save_LIBS"
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13694 $as_echo "$am_cv_func_iconv" >&6; }
13695 if test "$am_cv_func_iconv" = yes; then
13697 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13700 if test "$am_cv_lib_iconv" = yes; then
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13702 $as_echo_n "checking how to link with libiconv... " >&6; }
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13704 $as_echo "$LIBICONV" >&6; }
13706 CPPFLAGS
="$am_save_CPPFLAGS"
13713 if test "$am_cv_func_iconv" = yes; then
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
13715 $as_echo_n "checking for iconv declaration... " >&6; }
13716 if test "${am_cv_proto_iconv+set}" = set; then :
13717 $as_echo_n "(cached) " >&6
13720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13721 /* end confdefs.h. */
13723 #include <stdlib.h>
13729 #if defined(__STDC__) || defined(__cplusplus)
13730 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13743 if ac_fn_c_try_compile
"$LINENO"; then :
13744 am_cv_proto_iconv_arg1
=""
13746 am_cv_proto_iconv_arg1
="const"
13748 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13749 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);"
13752 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
13754 }$am_cv_proto_iconv" >&5
13756 }$am_cv_proto_iconv" >&6; }
13758 cat >>confdefs.h
<<_ACEOF
13759 #define ICONV_CONST $am_cv_proto_iconv_arg1
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13766 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13767 if test "${am_cv_langinfo_codeset+set}" = set; then :
13768 $as_echo_n "(cached) " >&6
13770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13771 /* end confdefs.h. */
13772 #include <langinfo.h>
13776 char* cs = nl_langinfo(CODESET);
13781 if ac_fn_c_try_link
"$LINENO"; then :
13782 am_cv_langinfo_codeset
=yes
13784 am_cv_langinfo_codeset
=no
13786 rm -f core conftest.err conftest.
$ac_objext \
13787 conftest
$ac_exeext conftest.
$ac_ext
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13791 $as_echo "$am_cv_langinfo_codeset" >&6; }
13792 if test $am_cv_langinfo_codeset = yes; then
13794 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13798 if test $ac_cv_header_locale_h = yes; then
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13801 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13802 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
13803 $as_echo_n "(cached) " >&6
13805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13806 /* end confdefs.h. */
13807 #include <locale.h>
13816 if ac_fn_c_try_link
"$LINENO"; then :
13817 am_cv_val_LC_MESSAGES
=yes
13819 am_cv_val_LC_MESSAGES
=no
13821 rm -f core conftest.err conftest.
$ac_objext \
13822 conftest
$ac_exeext conftest.
$ac_ext
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13825 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13826 if test $am_cv_val_LC_MESSAGES = yes; then
13828 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13834 for ac_prog
in bison
13836 # Extract the first word of "$ac_prog", so it can be a program name with args.
13837 set dummy
$ac_prog; ac_word
=$2
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13839 $as_echo_n "checking for $ac_word... " >&6; }
13840 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
13841 $as_echo_n "(cached) " >&6
13843 if test -n "$INTLBISON"; then
13844 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
13846 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13847 for as_dir
in $PATH
13850 test -z "$as_dir" && as_dir
=.
13851 for ac_exec_ext
in '' $ac_executable_extensions; do
13852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13853 ac_cv_prog_INTLBISON
="$ac_prog"
13854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13863 INTLBISON
=$ac_cv_prog_INTLBISON
13864 if test -n "$INTLBISON"; then
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
13866 $as_echo "$INTLBISON" >&6; }
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13869 $as_echo "no" >&6; }
13873 test -n "$INTLBISON" && break
13876 if test -z "$INTLBISON"; then
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
13880 $as_echo_n "checking version of bison... " >&6; }
13881 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
13882 case $ac_prog_version in
13883 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
13884 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
13885 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
13886 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
13889 $as_echo "$ac_prog_version" >&6; }
13891 if test $ac_verc_fail = yes; then
13897 # Check whether --with-language was given.
13898 if test "${with_language+set}" = set; then :
13899 withval
=$with_language; if test "$withval" != "all"; then :
13900 LINGUAS
="`echo $withval | sed -e 's/,/ /g'`"
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13920 $as_echo_n "checking whether NLS is requested... " >&6; }
13921 # Check whether --enable-nls was given.
13922 if test "${enable_nls+set}" = set; then :
13923 enableval
=$enable_nls; USE_NLS
=$enableval
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13929 $as_echo "$USE_NLS" >&6; }
13933 BUILD_INCLUDED_LIBINTL
=no
13934 USE_INCLUDED_LIBINTL
=no
13940 if test "$USE_NLS" = "yes"; then
13941 gt_use_preinstalled_gnugettext
=no
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
13944 $as_echo_n "checking whether included gettext is requested... " >&6; }
13946 # Check whether --with-included-gettext was given.
13947 if test "${with_included_gettext+set}" = set; then :
13948 withval
=$with_included_gettext; nls_cv_force_use_gnu_gettext
=$withval
13950 nls_cv_force_use_gnu_gettext
=no
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
13954 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
13956 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
13957 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
13965 $as_echo_n "checking for GNU gettext in libc... " >&6; }
13966 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then :
13967 $as_echo_n "(cached) " >&6
13969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13970 /* end confdefs.h. */
13971 #include <libintl.h>
13972 extern int _nl_msg_cat_cntr;
13973 extern int *_nl_domain_bindings;
13977 bindtextdomain ("", "");
13978 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
13983 if ac_fn_c_try_link
"$LINENO"; then :
13984 gt_cv_func_gnugettext2_libc
=yes
13986 gt_cv_func_gnugettext2_libc
=no
13988 rm -f core conftest.err conftest.
$ac_objext \
13989 conftest
$ac_exeext conftest.
$ac_ext
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5
13992 $as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
13994 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
14000 acl_save_prefix
="$prefix"
14001 prefix
="$acl_final_prefix"
14002 acl_save_exec_prefix
="$exec_prefix"
14003 exec_prefix
="$acl_final_exec_prefix"
14005 eval additional_includedir
=\"$includedir\"
14006 eval additional_libdir
=\"$libdir\"
14008 exec_prefix
="$acl_save_exec_prefix"
14009 prefix
="$acl_save_prefix"
14012 # Check whether --with-libintl-prefix was given.
14013 if test "${with_libintl_prefix+set}" = set; then :
14014 withval
=$with_libintl_prefix;
14015 if test "X$withval" = "Xno"; then
14018 if test "X$withval" = "X"; then
14020 acl_save_prefix
="$prefix"
14021 prefix
="$acl_final_prefix"
14022 acl_save_exec_prefix
="$exec_prefix"
14023 exec_prefix
="$acl_final_exec_prefix"
14025 eval additional_includedir
=\"$includedir\"
14026 eval additional_libdir
=\"$libdir\"
14028 exec_prefix
="$acl_save_exec_prefix"
14029 prefix
="$acl_save_prefix"
14032 additional_includedir
="$withval/include"
14033 additional_libdir
="$withval/lib"
14044 names_already_handled
=
14045 names_next_round
='intl '
14046 while test -n "$names_next_round"; do
14047 names_this_round
="$names_next_round"
14049 for name
in $names_this_round; do
14051 for n
in $names_already_handled; do
14052 if test "$n" = "$name"; then
14053 already_handled
=yes
14057 if test -z "$already_handled"; then
14058 names_already_handled
="$names_already_handled $name"
14059 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14060 eval value
=\"\
$HAVE_LIB$uppername\"
14061 if test -n "$value"; then
14062 if test "$value" = yes; then
14063 eval value
=\"\
$LIB$uppername\"
14064 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
14065 eval value
=\"\
$LTLIB$uppername\"
14066 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
14075 if test $use_additional = yes; then
14076 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14077 found_dir
="$additional_libdir"
14078 found_so
="$additional_libdir/lib$name.$shlibext"
14079 if test -f "$additional_libdir/lib$name.la"; then
14080 found_la
="$additional_libdir/lib$name.la"
14083 if test -f "$additional_libdir/lib$name.$libext"; then
14084 found_dir
="$additional_libdir"
14085 found_a
="$additional_libdir/lib$name.$libext"
14086 if test -f "$additional_libdir/lib$name.la"; then
14087 found_la
="$additional_libdir/lib$name.la"
14092 if test "X$found_dir" = "X"; then
14093 for x
in $LDFLAGS $LTLIBINTL; do
14095 acl_save_prefix
="$prefix"
14096 prefix
="$acl_final_prefix"
14097 acl_save_exec_prefix
="$exec_prefix"
14098 exec_prefix
="$acl_final_exec_prefix"
14100 exec_prefix
="$acl_save_exec_prefix"
14101 prefix
="$acl_save_prefix"
14105 dir
=`echo "X$x" | sed -e 's/^X-L//'`
14106 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14108 found_so
="$dir/lib$name.$shlibext"
14109 if test -f "$dir/lib$name.la"; then
14110 found_la
="$dir/lib$name.la"
14113 if test -f "$dir/lib$name.$libext"; then
14115 found_a
="$dir/lib$name.$libext"
14116 if test -f "$dir/lib$name.la"; then
14117 found_la
="$dir/lib$name.la"
14123 if test "X$found_dir" != "X"; then
14128 if test "X$found_dir" != "X"; then
14129 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14130 if test "X$found_so" != "X"; then
14131 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
14132 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
14135 for x
in $ltrpathdirs; do
14136 if test "X$x" = "X$found_dir"; then
14141 if test -z "$haveit"; then
14142 ltrpathdirs
="$ltrpathdirs $found_dir"
14144 if test "$hardcode_direct" = yes; then
14145 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
14147 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
14148 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
14150 for x
in $rpathdirs; do
14151 if test "X$x" = "X$found_dir"; then
14156 if test -z "$haveit"; then
14157 rpathdirs
="$rpathdirs $found_dir"
14161 for x
in $LDFLAGS $LIBINTL; do
14163 acl_save_prefix
="$prefix"
14164 prefix
="$acl_final_prefix"
14165 acl_save_exec_prefix
="$exec_prefix"
14166 exec_prefix
="$acl_final_exec_prefix"
14168 exec_prefix
="$acl_save_exec_prefix"
14169 prefix
="$acl_save_prefix"
14171 if test "X$x" = "X-L$found_dir"; then
14176 if test -z "$haveit"; then
14177 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14179 if test "$hardcode_minus_L" != no
; then
14180 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
14182 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
14188 if test "X$found_a" != "X"; then
14189 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
14191 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14194 additional_includedir
=
14195 case "$found_dir" in
14197 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14198 additional_includedir
="$basedir/include"
14201 if test "X$additional_includedir" != "X"; then
14202 if test "X$additional_includedir" != "X/usr/include"; then
14204 if test "X$additional_includedir" = "X/usr/local/include"; then
14205 if test -n "$GCC"; then
14207 linux
*) haveit
=yes;;
14211 if test -z "$haveit"; then
14212 for x
in $CPPFLAGS $INCINTL; do
14214 acl_save_prefix
="$prefix"
14215 prefix
="$acl_final_prefix"
14216 acl_save_exec_prefix
="$exec_prefix"
14217 exec_prefix
="$acl_final_exec_prefix"
14219 exec_prefix
="$acl_save_exec_prefix"
14220 prefix
="$acl_save_prefix"
14222 if test "X$x" = "X-I$additional_includedir"; then
14227 if test -z "$haveit"; then
14228 if test -d "$additional_includedir"; then
14229 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14235 if test -n "$found_la"; then
14236 save_libdir
="$libdir"
14237 case "$found_la" in
14238 */* |
*\\*) .
"$found_la" ;;
14239 *) .
"./$found_la" ;;
14241 libdir
="$save_libdir"
14242 for dep
in $dependency_libs; do
14245 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
14246 if test "X$additional_libdir" != "X/usr/lib"; then
14248 if test "X$additional_libdir" = "X/usr/local/lib"; then
14249 if test -n "$GCC"; then
14251 linux
*) haveit
=yes;;
14255 if test -z "$haveit"; then
14257 for x
in $LDFLAGS $LIBINTL; do
14259 acl_save_prefix
="$prefix"
14260 prefix
="$acl_final_prefix"
14261 acl_save_exec_prefix
="$exec_prefix"
14262 exec_prefix
="$acl_final_exec_prefix"
14264 exec_prefix
="$acl_save_exec_prefix"
14265 prefix
="$acl_save_prefix"
14267 if test "X$x" = "X-L$additional_libdir"; then
14272 if test -z "$haveit"; then
14273 if test -d "$additional_libdir"; then
14274 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14278 for x
in $LDFLAGS $LTLIBINTL; do
14280 acl_save_prefix
="$prefix"
14281 prefix
="$acl_final_prefix"
14282 acl_save_exec_prefix
="$exec_prefix"
14283 exec_prefix
="$acl_final_exec_prefix"
14285 exec_prefix
="$acl_save_exec_prefix"
14286 prefix
="$acl_save_prefix"
14288 if test "X$x" = "X-L$additional_libdir"; then
14293 if test -z "$haveit"; then
14294 if test -d "$additional_libdir"; then
14295 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14302 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
14303 if test "$enable_rpath" != no
; then
14305 for x
in $rpathdirs; do
14306 if test "X$x" = "X$dir"; then
14311 if test -z "$haveit"; then
14312 rpathdirs
="$rpathdirs $dir"
14315 for x
in $ltrpathdirs; do
14316 if test "X$x" = "X$dir"; then
14321 if test -z "$haveit"; then
14322 ltrpathdirs
="$ltrpathdirs $dir"
14327 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14330 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14333 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
14334 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14340 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
14341 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14347 if test "X$rpathdirs" != "X"; then
14348 if test -n "$hardcode_libdir_separator"; then
14350 for found_dir
in $rpathdirs; do
14351 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14353 acl_save_libdir
="$libdir"
14355 eval flag
=\"$hardcode_libdir_flag_spec\"
14356 libdir
="$acl_save_libdir"
14357 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
14359 for found_dir
in $rpathdirs; do
14360 acl_save_libdir
="$libdir"
14361 libdir
="$found_dir"
14362 eval flag
=\"$hardcode_libdir_flag_spec\"
14363 libdir
="$acl_save_libdir"
14364 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
14368 if test "X$ltrpathdirs" != "X"; then
14369 for found_dir
in $ltrpathdirs; do
14370 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14375 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14376 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then :
14377 $as_echo_n "(cached) " >&6
14379 gt_save_CPPFLAGS
="$CPPFLAGS"
14380 CPPFLAGS
="$CPPFLAGS $INCINTL"
14381 gt_save_LIBS
="$LIBS"
14382 LIBS
="$LIBS $LIBINTL"
14383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14384 /* end confdefs.h. */
14385 #include <libintl.h>
14386 extern int _nl_msg_cat_cntr;
14391 const char *_nl_expand_alias ();
14395 bindtextdomain ("", "");
14396 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
14401 if ac_fn_c_try_link
"$LINENO"; then :
14402 gt_cv_func_gnugettext2_libintl
=yes
14404 gt_cv_func_gnugettext2_libintl
=no
14406 rm -f core conftest.err conftest.
$ac_objext \
14407 conftest
$ac_exeext conftest.
$ac_ext
14408 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
14409 LIBS
="$LIBS $LIBICONV"
14410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14411 /* end confdefs.h. */
14412 #include <libintl.h>
14413 extern int _nl_msg_cat_cntr;
14418 const char *_nl_expand_alias ();
14422 bindtextdomain ("", "");
14423 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
14428 if ac_fn_c_try_link
"$LINENO"; then :
14429 LIBINTL
="$LIBINTL $LIBICONV"
14430 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
14431 gt_cv_func_gnugettext2_libintl
=yes
14434 rm -f core conftest.err conftest.
$ac_objext \
14435 conftest
$ac_exeext conftest.
$ac_ext
14437 CPPFLAGS
="$gt_save_CPPFLAGS"
14438 LIBS
="$gt_save_LIBS"
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5
14441 $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
14444 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
14445 ||
{ test "$gt_cv_func_gnugettext2_libintl" = "yes" \
14446 && test "$PACKAGE" != gettext; }; then
14447 gt_use_preinstalled_gnugettext
=yes
14455 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
14456 nls_cv_use_gnu_gettext
=yes
14460 if test "$nls_cv_use_gnu_gettext" = "yes"; then
14461 INTLOBJS
="\$(GETTOBJS)"
14462 BUILD_INCLUDED_LIBINTL
=yes
14463 USE_INCLUDED_LIBINTL
=yes
14464 LIBINTL
="\${top_builddir}/intl/libintl.a $LIBICONV"
14465 LTLIBINTL
="\${top_builddir}/intl/libintl.a $LTLIBICONV"
14466 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
14469 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14470 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
14475 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14476 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
14478 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14485 if test "$USE_NLS" = "yes"; then
14487 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14488 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14490 $as_echo_n "checking how to link with libintl... " >&6; }
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14492 $as_echo "$LIBINTL" >&6; }
14494 for element
in $INCINTL; do
14496 for x
in $CPPFLAGS; do
14498 acl_save_prefix
="$prefix"
14499 prefix
="$acl_final_prefix"
14500 acl_save_exec_prefix
="$exec_prefix"
14501 exec_prefix
="$acl_final_exec_prefix"
14503 exec_prefix
="$acl_save_exec_prefix"
14504 prefix
="$acl_save_prefix"
14506 if test "X$x" = "X$element"; then
14511 if test -z "$haveit"; then
14512 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
14519 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14522 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
14530 if test "$PACKAGE" = gettext; then
14531 BUILD_INCLUDED_LIBINTL
=yes
14539 nls_cv_header_intl
=
14540 nls_cv_header_libgt
=
14551 INTL_LIBTOOL_SUFFIX_PREFIX
=
14555 INTLLIBS
="$LIBINTL"
14562 if test $USE_INCLUDED_LIBINTL = yes; then :
14563 INCINTL
=-I\
${top_builddir}/intl
14566 if test x
$USE_NLS = xyes
; then :
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for autopoint" >&5
14569 $as_echo_n "checking for autopoint... " >&6; }
14570 autopoint_version
=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
14571 if test -n "$autopoint_version"; then :
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($autopoint_version)" >&5
14574 $as_echo "yes ($autopoint_version)" >&6; }
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14580 $as_echo "no" >&6; }
14586 if test x
$USE_NLS = xno
-a x
${enable_nls:-yes} = xyes
; then :
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14588 You need to install GNU gettext/gettext-tools to compile aMule with
14590 $as_echo "$as_me: WARNING:
14591 You need to install GNU gettext/gettext-tools to compile aMule with
14592 i18n support." >&2;}
14593 _mule_warning_13
=yes
14594 _mule_has_warnings
=yes
14598 if test ${USE_NLS:-no} = yes; then :
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for requested languages" >&5
14601 $as_echo_n "checking for requested languages... " >&6; }
14602 Generate_Langs
=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
14604 if test ${enable_amule_daemon:-no} = yes; then :
14606 if test -z "$LINGUAS"; then :
14607 AMULE_DAEMON_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
14610 AMULE_DAEMON_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs`
14611 AMULE_DAEMON_MANPAGES
="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
14614 AMULE_DAEMON_MANPAGES
=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
14617 AMULE_DAEMON_MANPAGES
=
14622 if test ${enable_amulecmd:-no} = yes; then :
14624 if test -z "$LINGUAS"; then :
14625 AMULECMD_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
14628 AMULECMD_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs`
14629 AMULECMD_MANPAGES
="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
14632 AMULECMD_MANPAGES
=`echo $AMULECMD_MANPAGES | tr -d '\n'`
14640 if test ${enable_webserver:-no} = yes; then :
14642 if test -z "$LINGUAS"; then :
14643 WEBSERVER_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
14646 WEBSERVER_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs`
14647 WEBSERVER_MANPAGES
="`basename docs/man/amuleweb.1` $WEBSERVER_MANPAGES"
14650 WEBSERVER_MANPAGES
=`echo $WEBSERVER_MANPAGES | tr -d '\n'`
14653 WEBSERVER_MANPAGES
=
14658 if test ${enable_amule_gui:-no} = yes; then :
14660 if test -z "$LINGUAS"; then :
14661 AMULE_GUI_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
14664 AMULE_GUI_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs`
14665 AMULE_GUI_MANPAGES
="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
14668 AMULE_GUI_MANPAGES
=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
14671 AMULE_GUI_MANPAGES
=
14676 if test ${enable_cas:-no} = yes; then :
14678 if test -z "$LINGUAS"; then :
14679 CAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
14682 CAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
14683 CAS_MANPAGES
="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
14686 CAS_MANPAGES
=`echo $CAS_MANPAGES | tr -d '\n'`
14694 if test ${enable_wxcas:-no} = yes; then :
14696 if test -z "$LINGUAS"; then :
14697 WXCAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
14700 WXCAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
14701 WXCAS_MANPAGES
="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
14704 WXCAS_MANPAGES
=`echo $WXCAS_MANPAGES | tr -d '\n'`
14712 if test ${enable_ed2k:-yes} = yes; then :
14714 if test -z "$LINGUAS"; then :
14715 ED2K_MANPAGES
=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
14718 ED2K_MANPAGES
=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs`
14719 ED2K_MANPAGES
="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
14722 ED2K_MANPAGES
=`echo $ED2K_MANPAGES | tr -d '\n'`
14730 if test ${enable_alc:-no} = yes; then :
14732 if test -z "$LINGUAS"; then :
14733 ALC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
14736 ALC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
14737 ALC_MANPAGES
="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
14740 ALC_MANPAGES
=`echo $ALC_MANPAGES | tr -d '\n'`
14748 if test ${enable_alcc:-no} = yes; then :
14750 if test -z "$LINGUAS"; then :
14751 ALCC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
14754 ALCC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
14755 ALCC_MANPAGES
="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
14758 ALCC_MANPAGES
=`echo $ALCC_MANPAGES | tr -d '\n'`
14766 if test ${enable_monolithic:-yes} = yes; then :
14768 if test -z "$LINGUAS"; then :
14769 MONOLITHIC_MANPAGES
=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
14772 MONOLITHIC_MANPAGES
=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs`
14773 MONOLITHIC_MANPAGES
="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
14776 MONOLITHIC_MANPAGES
=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
14779 MONOLITHIC_MANPAGES
=
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LINGUAS:-all}" >&5
14784 $as_echo "${LINGUAS:-all}" >&6; }
14790 # Check for bfd.h (to have proper backtraces without using wxExecute)
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bfd" >&5
14793 $as_echo_n "checking for bfd... " >&6; }
14795 for bfd_ldadd
in "" "${LIBINTL}" "-ldl" "-ldl ${LIBINTL}"; do
14796 mule_backup_LIBS
="$LIBS"
14797 mule_backup_LDFLAGS
="$LDFLAGS"
14798 LIBS
="-lbfd -liberty ${bfd_ldadd} ${ZLIB_LIBS} $LIBS"
14799 LDFLAGS
="$LDFLAGS ${ZLIB_LDFLAGS}"
14800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14801 /* end confdefs.h. */
14804 #include <ansidecl.h>
14811 char *dummy = bfd_errmsg(bfd_get_error());
14818 if ac_fn_c_try_link
"$LINENO"; then :
14821 BFD_CPPFLAGS
="-DHAVE_BFD"
14822 BFD_LIBS
="-lbfd -liberty ${bfd_ldadd}"
14823 LIBS
="$mule_backup_LIBS"
14824 LDFLAGS
="$mule_backup_LDFLAGS"
14828 rm -f core conftest.err conftest.
$ac_objext \
14829 conftest
$ac_exeext conftest.
$ac_ext
14830 LIBS
="$mule_backup_LIBS"
14831 LDFLAGS
="$mule_backup_LDFLAGS"
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
14835 $as_echo "$result" >&6; }
14837 if test $result = no
; then :
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14839 bfd.h not found or unusable, please install binutils development
14840 package if you are a developer or want to help testing aMule" >&5
14841 $as_echo "$as_me: WARNING:
14842 bfd.h not found or unusable, please install binutils development
14843 package if you are a developer or want to help testing aMule" >&2;}
14844 _mule_warning_14
=yes
14845 _mule_has_warnings
=yes
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <execinfo.h> and backtrace()" >&5
14852 $as_echo_n "checking for <execinfo.h> and backtrace()... " >&6; }
14853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14854 /* end confdefs.h. */
14857 #include <execinfo.h>
14864 int n = backtrace(&bt, 1);
14865 const char **bt_syms = backtrace_symbols(bt, n);
14872 if ac_fn_c_try_link
"$LINENO"; then :
14875 $as_echo "#define HAVE_EXECINFO 1" >>confdefs.h
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14878 $as_echo "yes" >&6; }
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14883 $as_echo "no" >&6; }
14886 rm -f core conftest.err conftest.
$ac_objext \
14887 conftest
$ac_exeext conftest.
$ac_ext
14890 # Flush standard test results for speeding cache
14891 cat >confcache
<<\_ACEOF
14892 # This file is a shell script that caches the results of configure
14893 # tests run on this system so they can be shared between configure
14894 # scripts and configure runs, see configure's option --config-cache.
14895 # It is not useful on other systems. If it contains results you don't
14896 # want to keep, you may remove or edit it.
14898 # config.status only pays attention to the cache file if you give it
14899 # the --recheck option to rerun configure.
14901 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14902 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14903 # following values.
14907 # The following way of writing the cache mishandles newlines in values,
14908 # but we know of no workaround that is simple, portable, and efficient.
14909 # So, we kill variables containing newlines.
14910 # Ultrix sh set writes to stderr and can't be redirected directly,
14911 # and sets the high bit in the cache file unless we assign to the vars.
14913 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14914 eval ac_val
=\$
$ac_var
14918 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14919 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14922 _ | IFS | as_nl
) ;; #(
14923 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
14924 *) { eval $ac_var=; unset $ac_var;} ;;
14930 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14931 *${as_nl}ac_space
=\
*)
14932 # `set' does not quote correctly, so add quotes: double-quote
14933 # substitution turns \\\\ into \\, and sed turns \\ into \.
14936 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14939 # `set' quotes correctly as required by POSIX, so do not add quotes.
14940 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14949 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14951 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14953 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
14954 if test -w "$cache_file"; then
14955 test "x$cache_file" != "x/dev/null" &&
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14957 $as_echo "$as_me: updating cache $cache_file" >&6;}
14958 cat confcache
>$cache_file
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14961 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14968 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for docdir" >&5
14970 $as_echo_n "checking for docdir... " >&6; }
14971 if test -z "$docdir"; then :
14972 docdir
="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}"
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
14975 $as_echo "$docdir" >&6; }
14977 # Try to set the SVN checkout-date
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVNDATE" >&5
14979 $as_echo_n "checking for SVNDATE... " >&6; }
14980 if test -f "$srcdir/.svn-revision" # SVNDATE for tarballs
14982 svndate
="rev. `cat $srcdir/.svn-revision`"
14983 elif test -d $srcdir/.svn
# SVNDATE for svn
14985 svndate
="rev. `svnversion $srcdir | sed -e 's/[0-9][0-9]*:\(.*\)/\1/' -e 's/\([0-9][0-9]*\).*/\1/'`"
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svndate:-None required}" >&5
14988 $as_echo "${svndate:-None required}" >&6; }
14989 if test -n "$svndate"; then :
14992 cat >>confdefs.h
<<_ACEOF
14993 #define SVNDATE "$svndate"
14996 MULERCFLAGS
="$MULERCFLAGS -D__PRERELEASE__"
15003 # Check whether --with-denoise-level was given.
15004 if test "${with_denoise_level+set}" = set; then :
15005 withval
=$with_denoise_level;
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking denoising level" >&5
15010 $as_echo_n "checking denoising level... " >&6; }
15011 if test ${with_denoise_level:-5} = yes; then :
15012 with_denoise_level
=5
15014 if test ${with_denoise_level:-5} = no
; then :
15015 with_denoise_level
=0
15017 if test ${with_denoise_level:-5} -gt 4; then :
15018 if test "${svndate:+set}" = "set"; then :
15019 with_denoise_level
=0
15021 with_denoise_level
=4
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_denoise_level" >&5
15025 $as_echo "$with_denoise_level" >&6; }
15027 ac_config_commands
="$ac_config_commands denoiser"
15031 if test ${enable_plasmamule:-no} = yes; then :
15034 if test -z ${QT_MOC}; then :
15036 for ac_prog
in moc-qt4 moc
15038 # Extract the first word of "$ac_prog", so it can be a program name with args.
15039 set dummy
$ac_prog; ac_word
=$2
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15041 $as_echo_n "checking for $ac_word... " >&6; }
15042 if test "${ac_cv_path_QT_MOC+set}" = set; then :
15043 $as_echo_n "(cached) " >&6
15047 ac_cv_path_QT_MOC
="$QT_MOC" # Let the user override the test with a path.
15050 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15051 for as_dir
in $PATH
15054 test -z "$as_dir" && as_dir
=.
15055 for ac_exec_ext
in '' $ac_executable_extensions; do
15056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15057 ac_cv_path_QT_MOC
="$as_dir/$ac_word$ac_exec_ext"
15058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15068 QT_MOC
=$ac_cv_path_QT_MOC
15069 if test -n "$QT_MOC"; then
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_MOC" >&5
15071 $as_echo "$QT_MOC" >&6; }
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15074 $as_echo "no" >&6; }
15078 test -n "$QT_MOC" && break
15081 if test -z ${QT_MOC}; then :
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc" >&5
15091 $as_echo_n "checking for moc... " >&6; }
15092 if test -x ${QT_MOC}; then :
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${QT_MOC}" >&5
15095 $as_echo "${QT_MOC}" >&6; }
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
15101 $as_echo "\"not found\"" >&6; }
15110 if test "${QT_MOC}" != "not found"; then :
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc version >= 4" >&5
15113 $as_echo_n "checking for moc version >= 4... " >&6; }
15114 QT_MOC_VERSION
=`${QT_MOC} -v 2>&1 | sed -e 's/^.* (/(/'`
15115 if test `echo ${QT_MOC_VERSION} | sed -e 's/^.* //' -e 's/\..*$//'` = 4; then :
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${QT_MOC_VERSION}" >&5
15118 $as_echo "found ${QT_MOC_VERSION}" >&6; }
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ${QT_MOC_VERSION} is too old" >&5
15123 $as_echo "not found ${QT_MOC_VERSION} is too old" >&6; }
15131 if test "${QT_MOC}" = "not found"; then :
15132 enable_plasmamule
=disabled
15135 if test ${enable_plasmamule:-no} = yes; then :
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt" >&5
15140 $as_echo_n "checking for qt... " >&6; }
15141 if test `${PKG_CONFIG} QtCore` --exists && `${PKG_CONFIG} QtGui --exists`; then :
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15144 $as_echo "found" >&6; }
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core cflags" >&5
15146 $as_echo_n "checking for qt core cflags... " >&6; }
15147 QT_CORE_CXXFLAGS
=`${PKG_CONFIG} --cflags QtCore`
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_CFLAGS" >&5
15149 $as_echo "$QT_CORE_CFLAGS" >&6; }
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core libs" >&5
15151 $as_echo_n "checking for qt core libs... " >&6; }
15152 QT_CORE_LIBS
=`${PKG_CONFIG} --libs QtCore`
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_LIBS" >&5
15154 $as_echo "$QT_CORE_LIBS" >&6; }
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui cflags" >&5
15156 $as_echo_n "checking for qt gui cflags... " >&6; }
15157 QT_GUI_CXXFLAGS
=`${PKG_CONFIG} --cflags QtGui`
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_CFLAGS" >&5
15159 $as_echo "$QT_GUI_CFLAGS" >&6; }
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui libs" >&5
15161 $as_echo_n "checking for qt gui libs... " >&6; }
15162 QT_GUI_LIBS
=`${PKG_CONFIG} --libs QtGui`
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_LIBS" >&5
15164 $as_echo "$QT_GUI_LIBS" >&6; }
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15168 $as_echo "not found" >&6; }
15173 if test `${PKG_CONFIG} QtDBus --modversion | sed -e 's/\.//g'` -ge 470 ; then :
15175 QT_DBUS_LDFLAGS
="-lQtDBus"
15185 if test -z "${QT_CORE_CXXFLAGS}"; then :
15186 enable_plasmamule
=disabled
15191 if test ${enable_plasmamule:-no} = yes; then :
15194 if test -z ${KDE4_CONFIG}; then :
15196 # Extract the first word of "kde4-config", so it can be a program name with args.
15197 set dummy kde4-config
; ac_word
=$2
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15199 $as_echo_n "checking for $ac_word... " >&6; }
15200 if test "${ac_cv_path_KDE4_CONFIG+set}" = set; then :
15201 $as_echo_n "(cached) " >&6
15203 case $KDE4_CONFIG in
15205 ac_cv_path_KDE4_CONFIG
="$KDE4_CONFIG" # Let the user override the test with a path.
15208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15209 for as_dir
in $PATH
15212 test -z "$as_dir" && as_dir
=.
15213 for ac_exec_ext
in '' $ac_executable_extensions; do
15214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15215 ac_cv_path_KDE4_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
15216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15226 KDE4_CONFIG
=$ac_cv_path_KDE4_CONFIG
15227 if test -n "$KDE4_CONFIG"; then
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE4_CONFIG" >&5
15229 $as_echo "$KDE4_CONFIG" >&6; }
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15232 $as_echo "no" >&6; }
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4-config" >&5
15240 $as_echo_n "checking for kde4-config... " >&6; }
15241 if test ! -x KDE4_CONFIG
; then :
15243 KDE4_CONFIG
="not found"
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15245 $as_echo "not found" >&6; }
15252 if test "${KDE4_CONFIG}" != "not found"; then :
15254 KDE_CONF_VER
=`${KDE4_CONFIG} --version | grep KDE | sed -e 's/^.*: //' -e 's/ (.*$//'`
15255 if test `echo ${KDE_CONF_VER} | sed -e 's/\..*$//'` = 4; then :
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&5
15258 $as_echo "found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&6; }
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: at least version
4 required
" >&5
15263 $as_echo "at least version
4 required
" >&6; }
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: not found
" >&5
15271 $as_echo "not found
" >&6; }
15277 if test "${KDE4_CONFIG}" = "not found
"; then :
15278 enable_plasmamule=disabled
15283 if test ${enable_plasmamule:-no} = yes; then :
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for kde4 headers
" >&5
15287 $as_echo_n "checking
for kde4 headers...
" >&6; }
15288 KDE_HEADER_DIR=`${KDE4_CONFIG} --path include`
15290 if test -f ${KDE_HEADER_DIR}kdirwatch.h; then :
15292 if test -f ${KDE_HEADER_DIR}plasma/dataengine.h; then :
15294 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${KDE_HEADER_DIR}" >&5
15295 $as_echo "${KDE_HEADER_DIR}" >&6; }
15299 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: dataengine.h not found
" >&5
15300 $as_echo "dataengine.h not found
" >&6; }
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: kdirwatch.h not found
" >&5
15308 $as_echo "kdirwatch.h not found
" >&6; }
15314 if test -z ${KDE_HEADER_DIR}; then :
15315 enable_plasmamule=disabled
15320 if test ${enable_plasmamule:-no} = yes; then :
15322 if test -e `$BUILD_CC -print-file-name=libplasma.so` &&
15323 test -e `$BUILD_CC -print-file-name=libkdecore.so`; then :
15327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for kde4 applinks Path
" >&5
15328 $as_echo_n "checking
for kde4 applinks Path...
" >&6; }
15329 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15334 if test ${KDE_IN_HOME} = "yes"; then :
15336 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15340 if test -n ${prefix}; then :
15342 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep ${prefix} | head -1`
15343 if test -n ${KDE_APPLNK_PATH}; then :
15345 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
15351 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${KDE_APPLNK_PATH}" >&5
15357 $as_echo "${KDE_APPLNK_PATH}" >&6; }
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for kde4 services Path
" >&5
15363 $as_echo_n "checking
for kde4 services Path...
" >&6; }
15364 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15369 if test ${KDE_IN_HOME} = "yes"; then :
15371 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15375 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | grep /usr | head -1`
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${KDE_SERVICE_PATH}" >&5
15379 $as_echo "${KDE_SERVICE_PATH}" >&6; }
15384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for kde4 plugins Path
" >&5
15385 $as_echo_n "checking
for kde4 plugins Path...
" >&6; }
15386 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15391 if test ${KDE_IN_HOME} = "yes"; then :
15393 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15397 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | grep /usr | head -1`
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${KDE_MODULE_PATH}" >&5
15401 $as_echo "${KDE_MODULE_PATH}" >&6; }
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for kde4 icons Path
" >&5
15407 $as_echo_n "checking
for kde4 icons Path...
" >&6; }
15408 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15413 if test ${KDE_IN_HOME} = "yes"; then :
15415 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15419 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | grep /usr | head -1`
15422 KDE_ICON_PATH=${KDE_ICON_PATH}hicolor/scalable/mimetypes/
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${KDE_ICON_PATH}" >&5
15424 $as_echo "${KDE_ICON_PATH}" >&6; }
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for location
for mime-type installation
" >&5
15430 $as_echo_n "checking
for location
for mime-type installation...
" >&6; }
15431 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15436 if test ${KDE_IN_HOME} = "yes"; then :
15438 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15442 if test -n ${prefix}; then :
15444 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | grep ${prefix} | head -1`
15445 if test -n ${KDE_MIME_PATH}; then :
15447 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
15453 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${KDE_MIME_PATH}" >&5
15459 $as_echo "${KDE_MIME_PATH}" >&6; }
15464 enable_plasmamule=disabled
15469 if test ${enable_debug:-yes} = yes; then :
15471 DEBUGFLAG="-D__DEBUG__"
15478 if test x$SYS = xwin32; then
15480 SYS_WIN32_FALSE='#'
15486 if test x$SYS = xwin32 -a "$RC" != ":"; then
15494 if test x$SYS = xdarwin; then
15495 NEED_CORESERVICES_TRUE=
15496 NEED_CORESERVICES_FALSE='#'
15498 NEED_CORESERVICES_TRUE='#'
15499 NEED_CORESERVICES_FALSE=
15502 if test x$USE_NLS = xyes; then
15504 COMPILE_NLS_FALSE='#'
15506 COMPILE_NLS_TRUE='#'
15510 if test x$HAVE_FLEX_EXTENDED = xyes; then
15511 GENERATE_FLEX_HEADER_TRUE=
15512 GENERATE_FLEX_HEADER_FALSE='#'
15514 GENERATE_FLEX_HEADER_TRUE='#'
15515 GENERATE_FLEX_HEADER_FALSE=
15518 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then
15519 INSTALL_SKINS_TRUE=
15520 INSTALL_SKINS_FALSE='#'
15522 INSTALL_SKINS_TRUE='#'
15523 INSTALL_SKINS_FALSE=
15526 if test ${enable_plasmamule:-no} = yes; then
15528 PLASMAMULE_FALSE='#'
15530 PLASMAMULE_TRUE='#'
15535 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
15536 COMPILE_LIB_COMMON_TRUE=
15537 COMPILE_LIB_COMMON_FALSE='#'
15539 COMPILE_LIB_COMMON_TRUE='#'
15540 COMPILE_LIB_COMMON_FALSE=
15543 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
15544 COMPILE_LIB_EC_TRUE=
15545 COMPILE_LIB_EC_FALSE='#'
15547 COMPILE_LIB_EC_TRUE='#'
15548 COMPILE_LIB_EC_FALSE=
15552 # Check for readline library
15553 if test ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes ; then :
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a readline compatible library
" >&5
15556 $as_echo_n "checking
for a readline compatible library...
" >&6; }
15557 if test "${vl_cv_lib_readline+set}" = set; then :
15558 $as_echo_n "(cached
) " >&6
15562 for readline_lib in readline edit editline; do
15563 for termcap_lib in "" termcap curses ncurses; do
15564 if test -z "$termcap_lib"; then
15565 TRY_LIB="-l$readline_lib"
15567 TRY_LIB="-l$readline_lib -l$termcap_lib"
15569 LIBS="$ORIG_LIBS $TRY_LIB"
15570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15571 /* end confdefs.h. */
15573 /* Override any GCC internal prototype to avoid an error.
15574 Use char because int might match the return type of a GCC
15575 builtin and then its argument prototype would still apply. */
15583 return readline ();
15588 if ac_fn_c_try_link "$LINENO"; then :
15589 vl_cv_lib_readline="$TRY_LIB"
15591 rm -f core conftest.err conftest.$ac_objext \
15592 conftest$ac_exeext conftest.$ac_ext
15593 if test -n "$vl_cv_lib_readline"; then
15597 if test -n "$vl_cv_lib_readline"; then
15601 if test -z "$vl_cv_lib_readline"; then
15602 vl_cv_lib_readline="no
"
15606 READLINE_LIBS="$vl_cv_lib_readline"
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $vl_cv_lib_readline" >&5
15611 $as_echo "$vl_cv_lib_readline" >&6; }
15613 if test "$vl_cv_lib_readline" != "no
"; then
15615 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
15617 for ac_header
in readline.h readline
/readline.h
15619 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15620 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15621 eval as_val
=\$
$as_ac_Header
15622 if test "x$as_val" = x
""yes; then :
15623 cat >>confdefs.h
<<_ACEOF
15624 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
15632 $as_echo_n "checking whether readline supports history... " >&6; }
15633 if test "${vl_cv_lib_readline_history+set}" = set; then :
15634 $as_echo_n "(cached) " >&6
15637 vl_cv_lib_readline_history
="no"
15638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15639 /* end confdefs.h. */
15641 /* Override any GCC internal prototype to avoid an error.
15642 Use char because int might match the return type of a GCC
15643 builtin and then its argument prototype would still apply. */
15647 char add_history ();
15651 return add_history ();
15656 if ac_fn_c_try_link
"$LINENO"; then :
15657 vl_cv_lib_readline_history
="yes"
15659 rm -f core conftest.err conftest.
$ac_objext \
15660 conftest
$ac_exeext conftest.
$ac_ext
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
15664 $as_echo "$vl_cv_lib_readline_history" >&6; }
15665 if test "$vl_cv_lib_readline_history" = "yes"; then
15667 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
15669 for ac_header
in history.h readline
/history.h
15671 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15672 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15673 eval as_val
=\$
$as_ac_Header
15674 if test "x$as_val" = x
""yes; then :
15675 cat >>confdefs.h
<<_ACEOF
15676 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15690 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
15693 # Check whether --enable-ccache was given.
15694 if test "${enable_ccache+set}" = set; then :
15695 enableval
=$enable_ccache;
15701 # Check whether --with-ccache-prefix was given.
15702 if test "${with_ccache_prefix+set}" = set; then :
15703 withval
=$with_ccache_prefix;
15707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ccache support should be added" >&5
15708 $as_echo_n "checking whether ccache support should be added... " >&6; }
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_ccache:-no}" >&5
15710 $as_echo "${enable_ccache:-no}" >&6; }
15712 if test ${enable_ccache:-no} = yes; then :
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccache presence" >&5
15715 $as_echo_n "checking for ccache presence... " >&6; }
15716 if test -z "$with_ccache_prefix"; then :
15718 ccache_full
=`which ccache`
15719 with_ccache_prefix
=`dirname ${ccache_full}`
15722 if $with_ccache_prefix/ccache
-V >/dev
/null
2>&1; then :
15724 CC
="$with_ccache_prefix/ccache $CC"
15725 CXX
="$with_ccache_prefix/ccache $CXX"
15726 BUILD_CC
="$with_ccache_prefix/ccache $BUILD_CC"
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_ccache:-no}" >&5
15732 $as_echo "${enable_ccache:-no}" >&6; }
15737 ac_config_files
="$ac_config_files Makefile docs/Makefile docs/man/Makefile intl/Makefile src/Makefile src/pixmaps/Makefile src/pixmaps/flags_xpm/Makefile src/libs/Makefile src/libs/ec/Makefile src/libs/ec/cpp/Makefile src/libs/common/Makefile src/utils/Makefile src/utils/aLinkCreator/Makefile src/utils/aLinkCreator/docs/Makefile src/utils/aLinkCreator/src/Makefile src/utils/cas/Makefile src/utils/cas/docs/Makefile src/utils/fileview/Makefile src/utils/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"
15739 ac_config_files
="$ac_config_files po/Makefile.in Compilation.flags"
15741 if test x
$SYS = xwin32
; then :
15742 ac_config_files
="$ac_config_files version.rc"
15745 cat >confcache
<<\_ACEOF
15746 # This file is a shell script that caches the results of configure
15747 # tests run on this system so they can be shared between configure
15748 # scripts and configure runs, see configure's option --config-cache.
15749 # It is not useful on other systems. If it contains results you don't
15750 # want to keep, you may remove or edit it.
15752 # config.status only pays attention to the cache file if you give it
15753 # the --recheck option to rerun configure.
15755 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15756 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15757 # following values.
15761 # The following way of writing the cache mishandles newlines in values,
15762 # but we know of no workaround that is simple, portable, and efficient.
15763 # So, we kill variables containing newlines.
15764 # Ultrix sh set writes to stderr and can't be redirected directly,
15765 # and sets the high bit in the cache file unless we assign to the vars.
15767 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15768 eval ac_val
=\$
$ac_var
15772 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15773 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15776 _ | IFS | as_nl
) ;; #(
15777 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15778 *) { eval $ac_var=; unset $ac_var;} ;;
15784 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15785 *${as_nl}ac_space
=\
*)
15786 # `set' does not quote correctly, so add quotes: double-quote
15787 # substitution turns \\\\ into \\, and sed turns \\ into \.
15790 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15793 # `set' quotes correctly as required by POSIX, so do not add quotes.
15794 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15803 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15805 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15807 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15808 if test -w "$cache_file"; then
15809 test "x$cache_file" != "x/dev/null" &&
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15811 $as_echo "$as_me: updating cache $cache_file" >&6;}
15812 cat confcache
>$cache_file
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15815 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15820 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15821 # Let make expand exec_prefix.
15822 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15824 DEFS
=-DHAVE_CONFIG_H
15828 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15829 # 1. Remove the extension, and $U if already installed.
15830 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15831 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15832 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15833 # will be set to the directory where LIBOBJS objects are built.
15834 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15835 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15837 LIBOBJS
=$ac_libobjs
15839 LTLIBOBJS
=$ac_ltlibobjs
15842 if test -n "$EXEEXT"; then
15844 am__EXEEXT_FALSE
='#'
15846 am__EXEEXT_TRUE
='#'
15850 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15851 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
15852 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15854 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15855 as_fn_error
"conditional \"AMDEP\" was never defined.
15856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15858 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15859 as_fn_error
"conditional \"am__fastdepCXX\" was never defined.
15860 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15862 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15863 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
15864 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15866 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
15867 as_fn_error
"conditional \"MONOLITHIC\" was never defined.
15868 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15870 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
15871 as_fn_error
"conditional \"AMULE_DAEMON\" was never defined.
15872 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15874 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
15875 as_fn_error
"conditional \"COMPILE_CMD\" was never defined.
15876 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15878 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
15879 as_fn_error
"conditional \"WEB\" was never defined.
15880 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15882 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
15883 as_fn_error
"conditional \"AMULE_GUI\" was never defined.
15884 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15886 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
15887 as_fn_error
"conditional \"CAS\" was never defined.
15888 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15890 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
15891 as_fn_error
"conditional \"WXCAS\" was never defined.
15892 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15894 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
15895 as_fn_error
"conditional \"ED2K\" was never defined.
15896 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15898 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
15899 as_fn_error
"conditional \"ALC\" was never defined.
15900 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15902 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
15903 as_fn_error
"conditional \"ALCC\" was never defined.
15904 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15906 if test -z "${XAS_TRUE}" && test -z "${XAS_FALSE}"; then
15907 as_fn_error
"conditional \"XAS\" was never defined.
15908 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15910 if test -z "${FILEVIEW_TRUE}" && test -z "${FILEVIEW_FALSE}"; then
15911 as_fn_error
"conditional \"FILEVIEW\" was never defined.
15912 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15914 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
15915 as_fn_error
"conditional \"SYS_WIN32\" was never defined.
15916 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15918 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
15919 as_fn_error
"conditional \"NEED_RC\" was never defined.
15920 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15922 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
15923 as_fn_error
"conditional \"NEED_CORESERVICES\" was never defined.
15924 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15926 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
15927 as_fn_error
"conditional \"COMPILE_NLS\" was never defined.
15928 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15930 if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then
15931 as_fn_error
"conditional \"GENERATE_FLEX_HEADER\" was never defined.
15932 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15934 if test -z "${INSTALL_SKINS_TRUE}" && test -z "${INSTALL_SKINS_FALSE}"; then
15935 as_fn_error
"conditional \"INSTALL_SKINS\" was never defined.
15936 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15938 if test -z "${PLASMAMULE_TRUE}" && test -z "${PLASMAMULE_FALSE}"; then
15939 as_fn_error
"conditional \"PLASMAMULE\" was never defined.
15940 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15942 if test -z "${COMPILE_LIB_COMMON_TRUE}" && test -z "${COMPILE_LIB_COMMON_FALSE}"; then
15943 as_fn_error
"conditional \"COMPILE_LIB_COMMON\" was never defined.
15944 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15946 if test -z "${COMPILE_LIB_EC_TRUE}" && test -z "${COMPILE_LIB_EC_FALSE}"; then
15947 as_fn_error
"conditional \"COMPILE_LIB_EC\" was never defined.
15948 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15951 : ${CONFIG_STATUS=./config.status}
15953 ac_clean_files_save
=$ac_clean_files
15954 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15955 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15956 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15958 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15960 # Generated by $as_me.
15961 # Run this file to recreate the current configuration.
15962 # Compiler output produced by configure, useful for debugging
15963 # configure, is in config.log if it exists.
15966 ac_cs_recheck=false
15969 SHELL=\${CONFIG_SHELL-$SHELL}
15972 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
15973 ## -------------------- ##
15974 ## M4sh Initialization. ##
15975 ## -------------------- ##
15977 # Be more Bourne compatible
15978 DUALCASE
=1; export DUALCASE
# for MKS sh
15979 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
15982 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15983 # is contrary to our usage. Disable this feature.
15984 alias -g '${1+"$@"}'='"$@"'
15985 setopt NO_GLOB_SUBST
15987 case `(set -o) 2>/dev/null` in #(
15999 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16000 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16001 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16002 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16003 # Prefer a ksh shell builtin over an external printf program on Solaris,
16004 # but without wasting forks for bash or zsh.
16005 if test -z "$BASH_VERSION$ZSH_VERSION" \
16006 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16007 as_echo='print
-r --'
16008 as_echo_n='print
-rn --'
16009 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16010 as_echo='printf %s
\n'
16011 as_echo_n='printf %s
'
16013 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16014 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
16015 as_echo_n='/usr
/ucb
/echo -n'
16017 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16018 as_echo_n_body='eval
16022 expr "X$arg" : "X\\(.*\\)$as_nl";
16023 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16025 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
16027 export as_echo_n_body
16028 as_echo_n='sh
-c $as_echo_n_body as_echo
'
16030 export as_echo_body
16031 as_echo='sh
-c $as_echo_body as_echo
'
16034 # The user is always right.
16035 if test "${PATH_SEPARATOR+set}" != set; then
16037 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16038 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16045 # We need space, tab and new line, in precisely that order. Quoting is
16046 # there to prevent editors from complaining about space-tab.
16047 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16048 # splitting by setting IFS to empty value.)
16051 # Find who we are. Look in the path if we contain no directory separator.
16053 *[\\/]* ) as_myself=$0 ;;
16054 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16055 for as_dir in $PATH
16058 test -z "$as_dir" && as_dir=.
16059 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16065 # We did not find ourselves, most probably we were run as `sh COMMAND'
16066 # in which case we are not to be found in the path.
16067 if test "x$as_myself" = x
; then
16070 if test ! -f "$as_myself"; then
16071 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16075 # Unset variables that we do not need and which cause bugs (e.g. in
16076 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16077 # suppresses any "Segmentation fault" message there. '((' could
16078 # trigger a bug in pdksh 5.2.14.
16079 for as_var
in BASH_ENV ENV MAIL MAILPATH
16080 do eval test x\
${$as_var+set} = xset \
16081 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
16094 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
16097 # as_fn_error ERROR [LINENO LOG_FD]
16098 # ---------------------------------
16099 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16100 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16101 # script with status $?, using 1 if that was 0.
16104 as_status
=$?
; test $as_status -eq 0 && as_status
=1
16106 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
16107 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16109 $as_echo "$as_me: error: $1" >&2
16110 as_fn_exit
$as_status
16114 # as_fn_set_status STATUS
16115 # -----------------------
16116 # Set $? to STATUS, without forking.
16117 as_fn_set_status
()
16120 } # as_fn_set_status
16122 # as_fn_exit STATUS
16123 # -----------------
16124 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16128 as_fn_set_status
$1
16134 # Portably unset VAR.
16137 { eval $1=; unset $1;}
16139 as_unset
=as_fn_unset
16140 # as_fn_append VAR VALUE
16141 # ----------------------
16142 # Append the text in VALUE to the end of the definition contained in VAR. Take
16143 # advantage of any shell optimizations that allow amortized linear growth over
16144 # repeated appends, instead of the typical quadratic growth present in naive
16146 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
16147 eval 'as_fn_append ()
16158 # as_fn_arith ARG...
16159 # ------------------
16160 # Perform arithmetic evaluation on the ARGs, and store the result in the
16161 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16162 # must be portable across $(()) and expr.
16163 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
16164 eval 'as_fn_arith ()
16171 as_val
=`expr "$@" || test $? -eq 1`
16176 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
16177 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
16183 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16184 as_basename
=basename
16189 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
16195 as_me
=`$as_basename -- "$0" ||
16196 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16197 X"$0" : 'X\(//\)$' \| \
16198 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16200 sed '/^.*\/\([^/][^/]*\)\/*$/{
16214 # Avoid depending upon Character Ranges.
16215 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16216 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16217 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16218 as_cr_digits
='0123456789'
16219 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16221 ECHO_C
= ECHO_N
= ECHO_T
=
16222 case `echo -n x` in #(((((
16224 case `echo 'xy\c'` in
16225 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
16227 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
16234 rm -f conf$$ conf$$.exe conf$$.
file
16235 if test -d conf$$.dir
; then
16236 rm -f conf$$.dir
/conf$$.
file
16239 mkdir conf$$.dir
2>/dev
/null
16241 if (echo >conf$$.
file) 2>/dev
/null
; then
16242 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16244 # ... but there are two gotchas:
16245 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16246 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16247 # In both cases, we have to default to `cp -p'.
16248 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
16250 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16258 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
16259 rmdir conf$$.dir
2>/dev
/null
16264 # Create "$as_dir" as a directory, including parents if necessary.
16269 -*) as_dir
=.
/$as_dir;;
16271 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
16275 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16276 *) as_qdir
=$as_dir;;
16278 as_dirs
="'$as_qdir' $as_dirs"
16279 as_dir
=`$as_dirname -- "$as_dir" ||
16280 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16281 X"$as_dir" : 'X\(//\)[^/]' \| \
16282 X"$as_dir" : 'X\(//\)$' \| \
16283 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16284 $as_echo X"$as_dir" |
16285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16289 /^X\(\/\/\)[^/].*/{
16302 test -d "$as_dir" && break
16304 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
16305 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
16309 if mkdir
-p .
2>/dev
/null
; then
16310 as_mkdir_p
='mkdir -p "$as_dir"'
16312 test -d .
/-p && rmdir .
/-p
16316 if test -x / >/dev
/null
2>&1; then
16317 as_test_x
='test -x'
16319 if ls -dL / >/dev
/null
2>&1; then
16326 if test -d "$1"; then
16332 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16333 ???[sx]*):;;*)false;;esac;fi
16337 as_executable_p
=$as_test_x
16339 # Sed expression to map a string onto a valid CPP name.
16340 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16342 # Sed expression to map a string onto a valid variable name.
16343 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16347 ## ----------------------------------- ##
16348 ## Main body of $CONFIG_STATUS script. ##
16349 ## ----------------------------------- ##
16351 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
16353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16354 # Save the log message, to keep $0 and so on meaningful, and to
16355 # report actual input values of CONFIG_FILES etc. instead of their
16356 # values after options handling.
16358 This file was extended by aMule $as_me SVN, which was
16359 generated by GNU Autoconf 2.65. Invocation command line was
16361 CONFIG_FILES = $CONFIG_FILES
16362 CONFIG_HEADERS = $CONFIG_HEADERS
16363 CONFIG_LINKS = $CONFIG_LINKS
16364 CONFIG_COMMANDS = $CONFIG_COMMANDS
16367 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16372 case $ac_config_files in *"
16373 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
16376 case $ac_config_headers in *"
16377 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
16381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16382 # Files that config.status was made for.
16383 config_files="$ac_config_files"
16384 config_headers="$ac_config_headers"
16385 config_commands="$ac_config_commands"
16389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16391 \`$as_me' instantiates files and other configuration actions
16392 from templates according to the current configuration. Unless the files
16393 and actions are specified as TAGs, all are instantiated by default.
16395 Usage: $0 [OPTION]... [TAG]...
16397 -h, --help print this help, then exit
16398 -V, --version print version number and configuration settings, then exit
16399 --config print configuration, then exit
16400 -q, --quiet, --silent
16401 do not print progress messages
16402 -d, --debug don't remove temporary files
16403 --recheck update $as_me by reconfiguring in the same conditions
16404 --file=FILE[:TEMPLATE]
16405 instantiate the configuration file FILE
16406 --header=FILE[:TEMPLATE]
16407 instantiate the configuration header FILE
16409 Configuration files:
16412 Configuration headers:
16415 Configuration commands:
16418 Report bugs to <admin@amule.org>."
16421 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16422 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16424 aMule config.status SVN
16425 configured by $0, generated by GNU Autoconf 2.65,
16426 with options \\"\$ac_cs_config\\"
16428 Copyright (C) 2009 Free Software Foundation, Inc.
16429 This config.status script is free software; the Free Software Foundation
16430 gives unlimited permission to copy, distribute and modify it."
16437 test -n "\$AWK" || AWK=awk
16440 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16441 # The default lists apply if the user does not specify any file.
16447 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16448 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
16459 # Handling of the options.
16460 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16462 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
16463 $as_echo "$ac_cs_version"; exit ;;
16464 --config |
--confi |
--conf |
--con |
--co |
--c )
16465 $as_echo "$ac_cs_config"; exit ;;
16466 --debug |
--debu |
--deb |
--de |
--d |
-d )
16468 --file |
--fil |
--fi |
--f )
16471 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16473 as_fn_append CONFIG_FILES
" '$ac_optarg'"
16474 ac_need_defaults
=false
;;
16475 --header |
--heade |
--head |
--hea )
16478 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16480 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
16481 ac_need_defaults
=false
;;
16483 # Conflict between --help and --header
16484 as_fn_error
"ambiguous option: \`$1'
16485 Try \`$0 --help' for more information.";;
16486 --help |
--hel |
-h )
16487 $as_echo "$ac_cs_usage"; exit ;;
16488 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16489 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16492 # This is an error.
16493 -*) as_fn_error
"unrecognized option: \`$1'
16494 Try \`$0 --help' for more information." ;;
16496 *) as_fn_append ac_config_targets
" $1"
16497 ac_need_defaults
=false
;;
16503 ac_configure_extra_args
=
16505 if $ac_cs_silent; then
16507 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16511 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16512 if \$ac_cs_recheck; then
16513 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16515 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16516 CONFIG_SHELL='$SHELL'
16517 export CONFIG_SHELL
16522 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16526 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16527 ## Running $as_me. ##
16533 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16537 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16538 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16539 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
16541 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
16542 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16543 LINGUAS="${LINGUAS-%UNSET%}"
16545 denoiserlevel=$with_denoise_level
16549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16551 # Handling of arguments.
16552 for ac_config_target
in $ac_config_targets
16554 case $ac_config_target in
16555 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
16556 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
16557 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
16558 "denoiser") CONFIG_COMMANDS
="$CONFIG_COMMANDS denoiser" ;;
16559 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16560 "docs/Makefile") CONFIG_FILES
="$CONFIG_FILES docs/Makefile" ;;
16561 "docs/man/Makefile") CONFIG_FILES
="$CONFIG_FILES docs/man/Makefile" ;;
16562 "intl/Makefile") CONFIG_FILES
="$CONFIG_FILES intl/Makefile" ;;
16563 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
16564 "src/pixmaps/Makefile") CONFIG_FILES
="$CONFIG_FILES src/pixmaps/Makefile" ;;
16565 "src/pixmaps/flags_xpm/Makefile") CONFIG_FILES
="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
16566 "src/libs/Makefile") CONFIG_FILES
="$CONFIG_FILES src/libs/Makefile" ;;
16567 "src/libs/ec/Makefile") CONFIG_FILES
="$CONFIG_FILES src/libs/ec/Makefile" ;;
16568 "src/libs/ec/cpp/Makefile") CONFIG_FILES
="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
16569 "src/libs/common/Makefile") CONFIG_FILES
="$CONFIG_FILES src/libs/common/Makefile" ;;
16570 "src/utils/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/Makefile" ;;
16571 "src/utils/aLinkCreator/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
16572 "src/utils/aLinkCreator/docs/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
16573 "src/utils/aLinkCreator/src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
16574 "src/utils/cas/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/cas/Makefile" ;;
16575 "src/utils/cas/docs/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
16576 "src/utils/fileview/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/fileview/Makefile" ;;
16577 "src/utils/plasmamule/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/plasmamule/Makefile" ;;
16578 "src/utils/wxCas/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
16579 "src/utils/wxCas/docs/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
16580 "src/utils/wxCas/src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
16581 "src/utils/xas/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/xas/Makefile" ;;
16582 "src/utils/xas/autostart-xas") CONFIG_FILES
="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
16583 "src/utils/xas/docs/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
16584 "src/skins/Makefile") CONFIG_FILES
="$CONFIG_FILES src/skins/Makefile" ;;
16585 "src/webserver/Makefile") CONFIG_FILES
="$CONFIG_FILES src/webserver/Makefile" ;;
16586 "src/webserver/src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/webserver/src/Makefile" ;;
16587 "src/webserver/default/Makefile") CONFIG_FILES
="$CONFIG_FILES src/webserver/default/Makefile" ;;
16588 "unittests/Makefile") CONFIG_FILES
="$CONFIG_FILES unittests/Makefile" ;;
16589 "unittests/muleunit/Makefile") CONFIG_FILES
="$CONFIG_FILES unittests/muleunit/Makefile" ;;
16590 "unittests/tests/Makefile") CONFIG_FILES
="$CONFIG_FILES unittests/tests/Makefile" ;;
16591 "po/Makefile.in") CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
16592 "Compilation.flags") CONFIG_FILES
="$CONFIG_FILES Compilation.flags" ;;
16593 "version.rc") CONFIG_FILES
="$CONFIG_FILES version.rc" ;;
16595 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16600 # If the user did not use the arguments to specify the items to instantiate,
16601 # then the envvar interface is used. Set only those that are not.
16602 # We use the long form for the default assignment because of an extremely
16603 # bizarre bug on SunOS 4.1.3.
16604 if $ac_need_defaults; then
16605 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16606 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16607 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16610 # Have a temporary directory for convenience. Make it in the build tree
16611 # simply because there is no reason against having it here, and in addition,
16612 # creating and moving files from /tmp can sometimes cause problems.
16613 # Hook for its removal unless debugging.
16614 # Note that there is a small window in which the directory will not be cleaned:
16615 # after its creation but before its name has been assigned to `$tmp'.
16619 trap 'exit_status=$?
16620 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16622 trap 'as_fn_exit 1' 1 2 13 15
16624 # Create a (secure) tmp directory for tmp files.
16627 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16628 test -n "$tmp" && test -d "$tmp"
16631 tmp
=.
/conf$$
-$RANDOM
16632 (umask 077 && mkdir
"$tmp")
16633 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
16635 # Set up the scripts for CONFIG_FILES section.
16636 # No need to generate them if there are no CONFIG_FILES.
16637 # This happens for instance with `./config.status config.h'.
16638 if test -n "$CONFIG_FILES"; then
16641 ac_cr
=`echo X | tr X '\015'`
16642 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16643 # But we know of no other shell where ac_cr would be empty at this
16644 # point, so we can use a bashism as a fallback.
16645 if test "x$ac_cr" = x
; then
16646 eval ac_cr
=\$
\'\\r
\'
16648 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16649 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16652 ac_cs_awk_cr
=$ac_cr
16655 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16660 echo "cat >conf$$subs.awk <<_ACEOF" &&
16661 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16663 } >conf$$subs.sh ||
16664 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16665 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16667 for ac_last_try in false false false false false :; do
16668 . ./conf$$subs.sh ||
16669 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16671 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
16672 if test $ac_delim_n = $ac_delim_num; then
16674 elif $ac_last_try; then
16675 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16677 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16680 rm -f conf$$subs.sh
16682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16683 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
16687 s/^/S["/; s
/!.
*/"]=/
16697 s/\(.\{148\}\)..*/\1/
16699 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16704 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16711 s/\(.\{148\}\)..*/\1/
16713 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
16717 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16722 ' <conf$$subs.awk | sed '
16727 ' >>$CONFIG_STATUS || ac_write_fail=1
16728 rm -f conf$$subs.awk
16729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16731 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
16732 for (key in S) S_is_set[key] = 1
16738 nfields = split(line, field, "@
")
16740 len = length(field[1])
16741 for (i = 2; i < nfields; i++) {
16743 keylen = length(key)
16744 if (S_is_set[key]) {
16746 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16747 len += length(value) + length(field[++i])
16758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16759 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16760 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
16763 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
16764 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
16767 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16768 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
16769 # trailing colons and then remove the whole line if VPATH becomes empty
16770 # (actually we leave an empty line to preserve line numbers).
16771 if test "x
$srcdir" = x.; then
16772 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16773 s/:*\$(srcdir):*/:/
16774 s/:*\${srcdir}:*/:/
16776 s/^\([^=]*=[ ]*\):*/\1/
16782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16783 fi # test -n "$CONFIG_FILES"
16785 # Set up the scripts for CONFIG_HEADERS section.
16786 # No need to generate them if there are no CONFIG_HEADERS.
16787 # This happens for instance with `./config.status Makefile'.
16788 if test -n "$CONFIG_HEADERS"; then
16789 cat >"$tmp/defines.
awk" <<\_ACAWK ||
16793 # Transform confdefs.h into an awk script `defines.awk', embedded as
16794 # here-document in config.status, that substitutes the proper values into
16795 # config.h.in to produce config.h.
16797 # Create a delimiter string that does not exist in confdefs.h, to ease
16798 # handling of long lines.
16800 for ac_last_try in false false :; do
16801 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
16802 if test -z "$ac_t"; then
16804 elif $ac_last_try; then
16805 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
16807 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16811 # For the awk script, D is an array of macro values keyed by name,
16812 # likewise P contains macro parameters if any. Preserve backslash
16813 # newline sequences.
16815 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16817 s/.\{148\}/&'"$ac_delim"'/g
16820 s/^[ ]*#[ ]*define[ ][ ]*/ /
16827 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
16829 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
16833 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
16834 D["\
1"]=" \
3\\\\\\n
"\\/p
16836 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
16841 s/.\{148\}/&'"$ac_delim"'/g
16846 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
16849 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
16851 ' <confdefs.h | sed '
16852 s/'"$ac_delim"'/"\\\
16853 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16856 for (key in D) D_is_set[key] = 1
16859 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16861 split(line, arg, " ")
16862 if (arg[1] == "#") {
16866 defundef
= substr
(arg
[1], 2)
16869 split(mac1
, mac2
, "(") #)
16871 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
16872 if (D_is_set
[macro
]) {
16873 # Preserve the white space surrounding the "#".
16874 print prefix
"define", macro P
[macro
] D
[macro
]
16877 # Replace #undef with comments. This is necessary, for example,
16878 # in the case of _POSIX_SOURCE, which is predefined and required
16879 # on some systems where configure will not decide to define it.
16880 if (defundef
== "undef") {
16881 print
"/*", prefix defundef
, macro
, "*/"
16889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16890 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
16891 fi # test -n "$CONFIG_HEADERS"
16894 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16899 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16901 case $ac_mode$ac_tag in
16903 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
16904 :[FH
]-) ac_tag
=-:-;;
16905 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16922 -) ac_f
="$tmp/stdin";;
16923 *) # Look for the file first in the build tree, then in the source tree
16924 # (if the path is not absolute). The absolute path cannot be DOS-style,
16925 # because $ac_f cannot contain `:'.
16929 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16931 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
16933 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16934 as_fn_append ac_file_inputs
" '$ac_f'"
16937 # Let's still pretend it is `configure' which instantiates (i.e., don't
16938 # use $as_me), people would be surprised to read:
16939 # /* config.h. Generated by config.status. */
16940 configure_input
='Generated from '`
16941 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16943 if test x
"$ac_file" != x-
; then
16944 configure_input
="$ac_file. $configure_input"
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16946 $as_echo "$as_me: creating $ac_file" >&6;}
16948 # Neutralize special characters interpreted by sed in replacement strings.
16949 case $configure_input in #(
16950 *\
&* |
*\|
* |
*\\* )
16951 ac_sed_conf_input
=`$as_echo "$configure_input" |
16952 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16953 *) ac_sed_conf_input
=$configure_input;;
16957 *:-:* |
*:-) cat >"$tmp/stdin" \
16958 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
16963 ac_dir
=`$as_dirname -- "$ac_file" ||
16964 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16965 X"$ac_file" : 'X\(//\)[^/]' \| \
16966 X"$ac_file" : 'X\(//\)$' \| \
16967 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16968 $as_echo X"$ac_file" |
16969 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16973 /^X\(\/\/\)[^/].*/{
16986 as_dir
="$ac_dir"; as_fn_mkdir_p
16990 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16992 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16993 # A ".." for each directory in $ac_dir_suffix.
16994 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16995 case $ac_top_builddir_sub in
16996 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16997 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17000 ac_abs_top_builddir
=$ac_pwd
17001 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17002 # for backward compatibility:
17003 ac_top_builddir
=$ac_top_build_prefix
17006 .
) # We are building in place.
17008 ac_top_srcdir
=$ac_top_builddir_sub
17009 ac_abs_top_srcdir
=$ac_pwd ;;
17010 [\\/]* | ?
:[\\/]* ) # Absolute name.
17011 ac_srcdir
=$srcdir$ac_dir_suffix;
17012 ac_top_srcdir
=$srcdir
17013 ac_abs_top_srcdir
=$srcdir ;;
17014 *) # Relative name.
17015 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17016 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17017 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17019 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17029 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
17030 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
17032 ac_MKDIR_P
=$MKDIR_P
17034 [\\/$
]* | ?
:[\\/]* ) ;;
17035 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
17039 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17040 # If the template does not know about datarootdir, expand it.
17041 # FIXME: This hack should be removed a few years after 2.60.
17042 ac_datarootdir_hack
=; ac_datarootdir_seen
=
17053 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17054 *datarootdir
*) ac_datarootdir_seen
=yes;;
17055 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
17056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17057 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17060 ac_datarootdir_hack='
17061 s&@datadir@&$datadir&g
17062 s&@docdir@&$docdir&g
17063 s&@infodir@&$infodir&g
17064 s&@localedir@&$localedir&g
17065 s&@mandir@&$mandir&g
17066 s&\\\${datarootdir}&$datarootdir&g' ;;
17070 # Neutralize VPATH when `$srcdir' = `.'.
17071 # Shell code in configure.ac might set extrasub.
17072 # FIXME: do we really want to maintain this feature?
17073 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17074 ac_sed_extra="$ac_vpsub
17077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17079 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17080 s|@configure_input@|
$ac_sed_conf_input|
;t t
17081 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
17082 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
17083 s
&@srcdir@
&$ac_srcdir&;t t
17084 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
17085 s
&@top_srcdir@
&$ac_top_srcdir&;t t
17086 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
17087 s
&@builddir@
&$ac_builddir&;t t
17088 s
&@abs_builddir@
&$ac_abs_builddir&;t t
17089 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
17090 s
&@INSTALL@
&$ac_INSTALL&;t t
17091 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
17092 $ac_datarootdir_hack
17094 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
17095 || as_fn_error "could not create
$ac_file" "$LINENO" 5
17097 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17098 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
17099 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
17100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
17101 which seems to be undefined. Please make sure it is defined." >&5
17102 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
17103 which seems to be undefined. Please make sure it is defined." >&2;}
17107 -) cat "$tmp/out" && rm -f "$tmp/out";;
17108 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17110 || as_fn_error "could not create $ac_file" "$LINENO" 5
17116 if test x"$ac_file" != x-; then
17118 $as_echo "/* $configure_input */" \
17119 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17120 } >"$tmp/config.h" \
17121 || as_fn_error "could not create $ac_file" "$LINENO" 5
17122 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17124 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17127 mv "$tmp/config.h" "$ac_file" \
17128 || as_fn_error "could not create $ac_file" "$LINENO" 5
17131 $as_echo "/* $configure_input */" \
17132 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17133 || as_fn_error "could not create -" "$LINENO" 5
17135 # Compute "$ac_file"'s index
in $config_headers.
17138 for _am_header
in $config_headers :; do
17139 case $_am_header in
17140 $_am_arg |
$_am_arg:* )
17143 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
17146 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17147 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17148 X"$_am_arg" : 'X\(//\)[^/]' \| \
17149 X"$_am_arg" : 'X\(//\)$' \| \
17150 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17151 $as_echo X"$_am_arg" |
17152 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17156 /^X\(\/\/\)[^/].*/{
17168 s/.*/./; q'`/stamp-h
$_am_stamp_count
17171 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17172 $as_echo "$as_me: executing $ac_file commands" >&6;}
17177 case $ac_file$ac_mode in
17178 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
17179 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17180 # are listed without --file. Let's play safe and only enable the eval
17181 # if we detect the quoting.
17182 case $CONFIG_FILES in
17183 *\'*) eval set x
"$CONFIG_FILES" ;;
17184 *) set x
$CONFIG_FILES ;;
17189 # Strip MF so we end up with the name of the file.
17190 mf
=`echo "$mf" | sed -e 's/:.*$//'`
17191 # Check whether this is an Automake generated Makefile or not.
17192 # We used to match only the files named `Makefile.in', but
17193 # some people rename them; so instead we look at the file content.
17194 # Grep'ing the first line is not enough: some people post-process
17195 # each Makefile.in and add a new line on top of each file to say so.
17196 # Grep'ing the whole file is not good either: AIX grep has a line
17197 # limit of 2048, but all sed's we know have understand at least 4000.
17198 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
17199 dirpart
=`$as_dirname -- "$mf" ||
17200 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17201 X"$mf" : 'X\(//\)[^/]' \| \
17202 X"$mf" : 'X\(//\)$' \| \
17203 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17209 /^X\(\/\/\)[^/].*/{
17225 # Extract the definition of DEPDIR, am__include, and am__quote
17226 # from the Makefile without running `make'.
17227 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
17228 test -z "$DEPDIR" && continue
17229 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
17230 test -z "am__include" && continue
17231 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
17232 # When using ansi2knr, U may be empty or an underscore; expand it
17233 U
=`sed -n 's/^U = //p' < "$mf"`
17234 # Find all dependency output files, they are included files with
17235 # $(DEPDIR) in their names. We invoke sed twice because it is the
17236 # simplest approach to changing $(DEPDIR) to its actual value in the
17238 for file in `sed -n "
17239 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17240 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17241 # Make sure the directory exists.
17242 test -f "$dirpart/$file" && continue
17243 fdir
=`$as_dirname -- "$file" ||
17244 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17245 X"$file" : 'X\(//\)[^/]' \| \
17246 X"$file" : 'X\(//\)$' \| \
17247 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17248 $as_echo X"$file" |
17249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17253 /^X\(\/\/\)[^/].*/{
17266 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
17267 # echo "creating $dirpart/$file"
17268 echo '# dummy' > "$dirpart/$file"
17274 for ac_file
in $CONFIG_FILES; do
17275 # Support "outfile[:infile[:infile...]]"
17277 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
17279 # PO directories have a Makefile.in generated from Makefile.in.in.
17280 case "$ac_file" in */Makefile.
in)
17281 # Adjust a relative srcdir.
17282 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17283 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
17284 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17285 # In autoconf-2.13 it is called $ac_given_srcdir.
17286 # In autoconf-2.50 it is called $srcdir.
17287 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
17288 case "$ac_given_srcdir" in
17289 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
17290 /*) top_srcdir
="$ac_given_srcdir" ;;
17291 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
17293 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17294 rm -f "$ac_dir/POTFILES"
17295 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
17296 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17297 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17298 # on $ac_dir but don't depend on user-specified configuration
17300 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17301 # The LINGUAS file contains the set of available languages.
17302 if test -n "$ALL_LINGUAS"; then
17303 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
17305 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17306 # Hide the ALL_LINGUAS assigment from automake.
17307 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17309 case "$ac_given_srcdir" in
17311 *) srcdirpre
='$(srcdir)/' ;;
17317 for lang
in $ALL_LINGUAS; do
17318 POFILES
="$POFILES $srcdirpre$lang.po"
17319 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
17320 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
17321 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
17323 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17324 # environment variable.
17326 if test -n "$ALL_LINGUAS"; then
17327 for presentlang
in $ALL_LINGUAS; do
17329 if test "%UNSET%" != "$LINGUAS"; then
17330 desiredlanguages
="$LINGUAS"
17332 desiredlanguages
="$ALL_LINGUAS"
17334 for desiredlang
in $desiredlanguages; do
17335 # Use the presentlang catalog if desiredlang is
17336 # a. equal to presentlang, or
17337 # b. a variant of presentlang (because in this case,
17338 # presentlang can be used as a fallback for messages
17339 # which are not translated in the desiredlang catalog).
17340 case "$desiredlang" in
17341 "$presentlang"*) useit
=yes;;
17344 if test $useit = yes; then
17345 INST_LINGUAS
="$INST_LINGUAS $presentlang"
17350 if test -n "$INST_LINGUAS"; then
17351 for lang
in $INST_LINGUAS; do
17352 CATALOGS
="$CATALOGS $lang.gmo"
17355 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
17356 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"
17357 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
17358 if test -f "$f"; then
17360 *.orig |
*.bak |
*~
) ;;
17361 *) cat "$f" >> "$ac_dir/Makefile" ;;
17369 "denoiser":C
) if test $denoiserlevel -gt 0; then
17370 if test ! -d src
/utils
/scripts
; then mkdir
-p src
/utils
/scripts
; fi
17371 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" \
17372 $srcdir/src
/utils
/scripts
/denoiser.rules
> src
/utils
/scripts
/denoiser.
sed
17373 for i
in `find . -name 'Makefile' -print`; do
17374 if test -n "`head -n 1 $i | grep '^#'`"; then
17375 sed -f src
/utils
/scripts
/denoiser.
sed $i > $i.tmp
&& mv $i.tmp
$i
17386 ac_clean_files
=$ac_clean_files_save
17388 test $ac_write_fail = 0 ||
17389 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
17392 # configure is writing to config.log, and then calls config.status.
17393 # config.status does its own redirection, appending to config.log.
17394 # Unfortunately, on DOS this fails, as config.log is still kept open
17395 # by configure, so config.status won't be able to write to it; its
17396 # output is simply discarded. So we exec the FD to /dev/null,
17397 # effectively closing config.log, so it can be properly (re)opened and
17398 # appended to by config.status. When coming back to configure, we
17399 # need to make the FD available again.
17400 if test "$no_create" != yes; then
17402 ac_config_status_args
=
17403 test "$silent" = yes &&
17404 ac_config_status_args
="$ac_config_status_args --quiet"
17406 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17408 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17409 # would make configure fail if this is the last instruction.
17410 $ac_cs_success || as_fn_exit $?
17412 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17414 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17418 if test -n "$svndate"; then :
17419 SVN_REVISION
=" ($svndate)"
17426 echo " Configure script has finished system check."
17428 echo " Configured aMule ${PACKAGE_VERSION}${SVN_REVISION} for '${host}'."
17430 echo " aMule enabled options:"
17432 echo " **** aMule Core ****"
17433 echo " Prefix where aMule should be installed? ${prefix:-none}"
17434 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
17435 echo " Should aMule be compiled in debug mode? ${enable_debug:-yes}"
17436 echo " Should aMule be compiled with profiling? ${enable_profile:-no}"
17437 echo " Should aMule be compiled with optimizations? ${enable_optimize:-no}"
17438 echo " Should aMule be compiled with UPnP support? ${enable_upnp:-yes}"
17439 echo " Should aMule be compiled with IP2country support? ${enable_geoip:-no}"
17440 echo " Should aMule monolithic application be built? ${enable_monolithic:-yes}"
17441 echo " Should aMule daemon version be built? ${enable_amule_daemon:-no}"
17442 echo " Should aMule remote gui be built? ${enable_amule_gui:-no}"
17443 echo " Crypto++ library/headers style? ${CRYPTOPP_STYLE:-not found}"
17446 echo " **** aMule TextClient ****"
17447 echo " Should aMule Command Line Client be built? ${enable_amulecmd:-no}"
17449 echo " **** aMule WebServer ****"
17450 echo " Should aMule WebServer be built? ${enable_webserver:-no}"
17452 echo " **** aMule ED2K Links Handler ****"
17453 echo " Should aMule ED2K Links Handler be built? ${enable_ed2k:-yes}"
17455 echo " **** aMuleLinkCreator ****"
17456 echo " Should aMuleLinkCreator GUI version (alc) be built? ${enable_alc:-no}"
17457 echo " Should aMuleLinkCreator for console (alcc) be built? ${enable_alcc:-no}"
17459 echo " **** aMule Statistics ****"
17460 echo " Should C aMule Statistics (CAS) be built? ${enable_cas:-no}"
17461 echo " Should aMule GUI Statistics (wxCas) be built? ${enable_wxcas:-no}"
17462 echo " Should xas XChat2 plugin be installed? ${enable_xas:-no}"
17463 echo " Should plasmaMule plasma-applet be build? ${enable_plasmamule:-no}"
17466 echo " **** General Libraries and Tools ****"
17467 echo " Should ccache support be enabled? ${enable_ccache:-no}"
17468 echo " Libraries aMule will use to build:"
17469 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 :
17472 if test $WX_DEBUG -eq 1; then :
17473 wxinfo
="$wxinfo,debug"
17475 if test $WX_SHARED -eq 1; then :
17476 wxinfo
="$wxinfo,shared"
17478 wxinfo
="$wxinfo,static"
17480 echo " wxWidgets ${WX_VERSION_FULL} ($wxinfo)"
17483 if test ${with_boost:-no} != no
; then :
17484 if test ${with_boost:-no} = disabled
; then
17485 echo " boost Not detected"
17486 elif test ${boost_cv_inc_path:-yes} != yes; then
17487 echo " boost `echo ${boost_cv_lib_version} | sed -e 's/_/./g'` (in ${boost_cv_inc_path})"
17488 elif echo " boost `echo ${boost_cv_lib_version} | sed -e 's/_/./g'`"; then
17493 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then :
17494 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (${CRYPTOPP_STYLE}, in ${CRYPTOPP_PREFIX})"
17496 if test ${enable_upnp:-yes} = yes; then :
17498 if test -n "$with_libupnp_prefix"; then :
17499 libupnp_place
=" (in $with_libupnp_prefix)"
17501 echo " libupnp ${LIBUPNP_VERSION:-Not detected}${libupnp_place:-}"
17504 if test ${enable_nls:-yes} = yes; then
17505 if test x
$USE_NLS = xno
; then :
17506 libintl_found
="Not detected"
17508 if test x
$USE_INCLUDED_LIBINTL = xyes
; then :
17509 libintl_found
="included"
17511 libintl_found
="system"
17514 echo " libintl $libintl_found"
17516 if test ${enable_geoip:-no} = yes; then :
17517 if test -z "${with_geoip_headers:-}${with_geoip_lib:-}"; then :
17522 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
17523 echo " libGeoIP ${geoip_style}"
17526 if test ${enable_webserver:-no} = yes; then :
17527 echo " libpng ${LIBPNG_VERSION:-Not detected}"
17529 if test ${enable_cas:-no} = yes; then :
17530 echo " libgd ${GDLIB_VERSION:-Not detected}"
17532 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 :
17533 echo " zlib ${ZLIB_VERSION:-Not detected}"
17535 if test ${enable_plasmamule:-no} = yes; then :
17536 echo " qt-moc ${QT_MOC} ${QT_MOC_VERSION}"
17537 echo " qt-core-libs ${QT_CORE_LIBS}"
17538 echo " qt-gui-libs ${QT_GUI_LIBS}"
17539 echo " kde4-config ${KDE4_CONFIG} (${KDE_CONF_VER})"
17540 echo " kde-headers ${KDE_HEADER_DIR}"
17541 echo " kde-services-path ${KDE_SERVICE_PATH}"
17542 echo " kde-module-path ${KDE_MODULE_PATH}"
17543 echo " kde-icon-path ${KDE_ICON_PATH}"
17544 echo " kde-mime-path ${KDE_MIME_PATH}"
17545 echo " kde-applinks-path ${KDE_APPLNK_PATH}"
17548 if test ${_mule_has_warnings:-no} = yes; then
17551 echo " *** Warnings during configuration ***"
17553 if test ${_mule_warning_0:-no} = yes; then
17556 * gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
17557 Please check that gdlib-config is in your default path, check out
17558 LD_LIBRARY_PATH or equivalent variable.
17559 Or this might also be that your gdlib-config has other name.
17560 Please try again with --with-gdlib-config=/usr/bin/gdlib-config (replace
17561 /usr/bin/gdlib-config with a valid path to your gdlib-config).
17562 If you use compiled packages check if you have devel pack installed.
17563 To download the latest version check http://www.boutell.com/gd for sources.
17566 if test ${_mule_warning_1:-no} = yes; then
17569 * libpng >= 1.2.0 not found.
17570 amuleweb will be compiled but file download progress bar images will NOT be
17574 if test ${_mule_warning_2:-no} = yes; then
17577 * File::Copy perl module is required by the mldonkey_importer script.
17578 If you want to use this script please install File::Copy from CPAN.
17581 if test ${_mule_warning_3:-no} = yes; then
17584 * Cannot link GeoIP statically, because your linker ($LD) does not support it.
17587 if test ${_mule_warning_4:-no} = yes; then
17590 * GeoIP support has been disabled because the GeoIP libraries were not found
17593 if test ${_mule_warning_5:-no} = yes; then
17596 * GeoIP support has been disabled because the GeoIP header files were not
17600 if test ${_mule_warning_6:-no} = yes; then
17603 * UPnP code has been disabled because ${libupnp_error}.
17606 if test ${_mule_warning_7:-no} = yes; then
17609 * Cross-compilation detected, so exception handling cannot be tested.
17610 Note that broken exception handling in your compiler may lead to unexpected
17614 if test ${_mule_warning_8:-no} = yes; then
17617 * Boost support has been disabled because Boost.System not found
17620 if test ${_mule_warning_9:-no} = yes; then
17623 * Boost support has been disabled because Boost.Asio not found
17626 if test ${_mule_warning_10:-no} = yes; then
17629 * Boost support has been disabled because Boost.Asio not found
17632 if test ${_mule_warning_11:-no} = yes; then
17635 * Boost support has been disabled because of insufficient Boost version.
17638 if test ${_mule_warning_12:-no} = yes; then
17641 * configure cannot check whether malloc() and realloc() are GNU libc
17642 compatible. You have to be ABSOLUTELY sure that they are, otherwise run
17643 configure with the --without-gnu-malloc switch.
17646 if test ${_mule_warning_13:-no} = yes; then
17649 * You need to install GNU gettext/gettext-tools to compile aMule with i18n
17653 if test ${_mule_warning_14:-no} = yes; then
17656 * bfd.h not found or unusable, please install binutils development package if
17657 you are a developer or want to help testing aMule